Closed huanghwh closed 8 years ago
Are you running the latest xf86-video-intel per the wiki?
No, I am running xf86-video-intel from ports.
That's 3 or 4 years old. You need to either build newer from the xserver-next branch in: https://github.com/freebsd/freebsd-ports-graphics
I've built a bunch of up to date packages here: http://www.bsddesktop.com/images/xserver-next-pkgs/
After update to xserver-next-pkgs, got this error:
maybe you can bisect back to the change that introduced artifacts?
The version "fc26d6b" is good, and the version "ac46418" introduced artifacts.
Thanks.
https://github.com/FreeBSDDesktop/freebsd-base-graphics/commit/1dd30c600a765c60e59e9caebb36677ecb192ff3 should add a new tunable / sysctl for you to disable write combining mmap. I'm not reverting the code because it should work and I want to understand why it causes problems. But this knob will allow you to turn it off.
I should be mentioned that I still use xf86-video-intel from ports as xf86-video-intel from xserver-next-pkgs caused GPU hang. I set dev.drm.skipwc=1, still got this, artifacts in menu item:
Please let me know how the latest changes behave for you. They fix artifacts on some systems.
On second thought I should probably not have committed so soon.
Unfortunately, with 4059f9b, still got the artifacts in the mate system menu item.
I've disabled the MMAP_WC change for now. Does it bring it back to normal for you?
No,with ecd31fb still got the artifacts in the mate system menu item.
Then that change must not have introduced the artifacts. Can you check again?
OK, I will double-check it soon...
I had checked again,same result:
The artifacts is gone after I disable these code:
/ if (args->flags & ~(I915_MMAP_WC)) { DRM_DEBUG("Attempting to mmap with flag other than WC set\n"); return -EINVAL; } if (args->flags & I915_MMAP_WC && !cpu_has_pat) { DRM_DEBUG("Attempting to mmap WC without pat\n"); return -ENODEV; } /
"de6c000" fixed my problem.
Update to the latest, Got artifacts again. About week ago, no this problem.