Bug 227870 - i915 video corruption, hangs
Summary: i915 video corruption, hangs
Status: Closed Feedback Timeout
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.1-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: i915
Depends on:
Blocks:
 
Reported: 2018-04-30 13:17 UTC by Anonymized Account
Modified: 2021-09-26 11:46 UTC (History)
3 users (show)

See Also:


Attachments
Verbose boot dmesg (60.06 KB, text/plain)
2018-04-30 20:49 UTC, Anonymized Account
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anonymized Account freebsd_committer freebsd_triage 2018-04-30 13:17:38 UTC
When using 2D and 3D accelerated graphics I get corruption like missing/blinking characters in fonts, broken transparency and torn rectangles on screen, black with dark blue dots that sometimes move/blink, which sometimes also show up in textures.

Every half an hour or so of especially intensive use, such as switching workspaces a lot or running games/flightgear, I see the screen freeze for a minute, during which everything non-graphics related keeps going -- then most of the time it recovers, but if one hang happens more hangs are likely to occur soon, and sometimes they either start happening without a pause, or perf degrades so bad I have to kill X or reboot the computer.

During that minute I can not do anything at all:
- switching to console does not work;
- if I suspend to reset the video, the whole machine hangs.

So I either have to reboot it -- or just wait a whole minute.

Might be related to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194766 but I don't see the same stream of errors, only the "error: [drm:pid12:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed... GPU hung" and something else.

Is there a way to at least make this hangcheck run more often, say, every 10 seconds, so I don't have to just sit there?
Comment 1 Anonymized Account freebsd_committer freebsd_triage 2018-04-30 20:49:43 UTC
Created attachment 192939 [details]
Verbose boot dmesg
Comment 2 Anonymized Account freebsd_committer freebsd_triage 2018-04-30 20:52:15 UTC
That corruption I described happens _sometimes_, once in a few hours.
Comment 3 Anonymized Account freebsd_committer freebsd_triage 2018-08-23 12:26:17 UTC
...anyone?
Comment 4 Carlos J. Puga Medina freebsd_committer freebsd_triage 2018-08-23 20:56:11 UTC
I'm using a Intel Sandy Bridge GPU and I suffered/had the same issue that you have reported.

intel(4) driver is old and buggy so I installed graphics/drm-next-kmod following the instructions of pkg-message

/etc/rc.conf

# For drm-next-kmod
kld_list="/boot/modules/i915kms.ko"

Deinstall x11-drivers/xf86-video-intel and remove /etc/X11/xorg.conf

Finally check that your user is member of the 'video' group.
Comment 5 Anonymized Account freebsd_committer freebsd_triage 2018-08-25 00:01:30 UTC
But I get the corruption with modeset driver AND drm-next-kmod! No hangs so far, but lots of corruption!
Comment 6 Anonymized Account freebsd_committer freebsd_triage 2018-08-25 00:02:16 UTC
Eh sorry about shouting. I had written about this in the other bug, not here.
Comment 7 Carlos J. Puga Medina freebsd_committer freebsd_triage 2018-08-25 02:48:06 UTC
Have you taken a look at their bug database?

https://bugs.freedesktop.org/buglist.cgi?quicksearch=artifacts

If you report the issue there, maybe they can shed some light on the artifacts/misrendering that you are seeing.