NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD 9.1 amd64, base X11: garbled display



On Sun 11 Apr 2021 at 08:07:20 -0500, John D. Baker wrote:
> I've seen/experienced these as well, mostly when trying to play videos
> through firefox (firefox52, actually).  IIRC, the workaround has been
> to set "LIBGL_ALWAYS_INDIRECT=1".  I do it in a wrapper script for
> firefox, but if other things trigger it, perhaps it should be set/exported
> in .xsession (or other display-manager session configuration/startup file).

I tried setting this and it certainly has some effect but not yet the
one I hoped for :) All programs I tried didn't like it: most terminate
with some error.

mpv runs, but simply doesn't paint its window. LIBGL_ALWAYS_INDIRECT
certainly has interesting effects :)

Grepping for this string I found
/usr/xsrc/external/mit/MesaLib/dist/docs/envvars.html which gave me some
other things to try. I could get extensive debugging output for example
with INTEL_DEBUG=all. But that was unfortunately so much detail that it
didn't mean much to me.

I did find a more interesting part of the kernel messages though
(related to the original problem I'd say). I'm including them for the
record, in case it means anything to somebody who could fix it.

Apr 11 18:43:26 vargaz /netbsd: [ 362.4169375] kern info: [drm] stuck on render ring
Apr 11 18:43:26 vargaz /netbsd: [ 362.4169375] kern info: [drm] GPU HANG: ecode 4:0:0x86fefffc, reason: Ring hung, action: reset
Apr 11 18:43:26 vargaz /netbsd: [ 362.4169375] kern error: [drm:(/usr/src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c:3196)i915_context_is_banned] *ERROR* gpu hanging too fast, banning!
Apr 11 18:43:26 vargaz /netbsd: [ 362.4169375] drm/i915: Resetting chip after gpu hang
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] kern error: [drm:(/usr/src/sys/external/bsd/drm2/dist/drm/i915/i915_irq.c:2703)i915_handle_error] *ERROR* Error state:
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] GPU HANG: ecode 4:0:0x86fffffd, reason: Ring hung, action: reset
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] Time: 1618159400 s 39278 us
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] Kernel: 901000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] Reset count: 0
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] Suspend count: 0
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] PCI ID: 0x2a42
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] IOMMU enabled?: -1
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] EIR: 0x00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] IER: 0x02028053
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] PGTBL_ER: 0x00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] FORCEWAKE: 0x00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] DERRMR: 0x00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] CCID: 0x00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] Missed interrupts: 0x00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   fence[0] = bc2000005c50cd
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   fence[1] = bd700000bd400d
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   fence[2] = bdb00000bd800d
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   fence[3] = ef600000c7704d
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   fence[4] = f3e00000f2301d
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   fence[5] = 00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   fence[6] = 00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   fence[7] = 00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   fence[8] = 00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   fence[9] = 00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   fence[10] = 00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   fence[11] = 00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   fence[12] = 00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   fence[13] = 00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   fence[14] = 00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   fence[15] = 00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   INSTDONE_0: 0xffffffff
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   INSTDONE_1: 0xbfffffdc
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   INSTDONE_2: 0x00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   INSTDONE_3: 0x00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] render command stream:
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   START: 0x00003000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   HEAD:  0x00014ef8
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   TAIL:  0x00014f60
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   CTL:   0x0001f001
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   HWS:   0x00001000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   ACTHD: 0x00000000 1f2632b4
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   IPEIR: 0x00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   IPEHR: 0x79000002
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   INSTDONE: 0xffffffff
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   BBADDR: 0x00000000 1f2632b3
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   BB_STATE: 0x000000a0
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   INSTPS: 0x8001e022
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   INSTPM: 0x00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   FADDR: 0x00000000 1f263480
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   seqno: 0xfffff85f
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   waiting: yes
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   ring->head: 0x00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   ring->tail: 0x00014f60
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   hangcheck: hung [40]
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] bsd command stream:
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   START: 0x00026000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   HEAD:  0x00000010
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   TAIL:  0x00000010
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   CTL:   0x0001f001
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   HWS:   0x00024000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   ACTHD: 0x00000000 00000010
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   IPEIR: 0x00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   IPEHR: 0x01000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   INSTDONE: 0x00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   BBADDR: 0x00000000 00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   BB_STATE: 0x00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   INSTPS: 0x00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   INSTPM: 0x00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   FADDR: 0x00000000 00026010
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   seqno: 0xfffff000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   waiting: no
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   ring->head: 0x00000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   ring->tail: 0x00000010
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   hangcheck: idle [0]
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] vm[0]
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   Active [12]:
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]     00000000_1f263000    20480 3f 00 [ fffff860 00 00 00 00 ] 00 dirty uncached
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]     00000000_1fbd2000    16384 37 00 [ fffff860 00 00 00 00 ] 00 dirty purgeable uncached
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]     00000000_1ffef000    65536 37 00 [ fffff860 00 00 00 00 ] 00 dirty uncached
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]     00000000_1fa78000    16384 37 00 [ fffff860 00 00 00 00 ] 00 dirty uncached
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]     00000000_1f678000  4194304 02 00 [ fffff860 00 00 00 00 ] fffff860 X dirty render uncached (name: 3)
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]     00000000_1f278000  4194304 02 00 [ fffff860 00 00 00 00 ] fffff860 Y dirty render uncached
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]     00000000_00bed000     4096 76 00 [ fffff860 00 00 00 00 ] 00 dirty uncached
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]     00000000_1f268000    65536 37 00 [ fffff860 00 00 00 00 ] 00 dirty uncached
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]     00000000_00f23000   114688 76 00 [ fffff860 00 00 00 00 ] 00 X dirty uncached (fence: 4)
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]     00000000_00bfe000    16384 7e 00 [ fffff861 00 00 00 00 ] 00 dirty uncached
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]     00000000_1facc000  1048576 36 00 [ fffff861 00 00 00 00 ] fffff861 X dirty render uncached
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]     00000000_00bca000    16384 7e 00 [ fffff862 00 00 00 00 ] 00 dirty uncached
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]   Pinned [7]:
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]     00000000_00001000     4096 01 01 [ 00 00 00 00 00 ] 00 P snooped
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]     00000000_00003000   131072 40 40 [ 00 00 00 00 00 ] 00 P dirty uncached
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]     00000000_00024000     4096 01 01 [ 00 00 00 00 00 ] 00 P snooped
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]     00000000_00026000   131072 40 40 [ 00 00 00 00 00 ] 00 P dirty uncached
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]     00000000_00046000  5763072 77 00 [ 00 00 00 00 00 ] 00 P dirty uncached (name: 1)
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]     00000000_00bce000    16384 40 00 [ 00 00 00 00 00 ] 00 P dirty uncached
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447]     00000000_005c5000  6291456 36 00 [ 00 00 00 00 00 ] 00 P X dirty uncached (name: 2) (fence: 0)
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] render ring --- gtt_offset = 0x00000000 1f263000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] 00000000 :  02000000
Apr 11 18:43:26 vargaz /netbsd: [ 362.4269447] 00000004 :  69040000
etc etc a very long dump, as before.

-Olaf.
-- 
___ Q: "What's an anagram of Banach-Tarski?"  -- Olaf "Rhialto" Seibert
\X/ A: "Banach-Tarski Banach-Tarski."         -- rhialto at falu dot nl

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index