Re: i915kms and chip resets on rsc0?

From: Emmanuel Vadot <manu_at_bidouilliste.com>
Date: Thu, 28 Jan 2021 20:48:06 +0100
On Thu, 28 Jan 2021 11:15:10 -0800
Steve Kargl <sgk_at_troutmask.apl.washington.edu> wrote:

> All,
> 
> I have finally gotten my old laptop somewhat back to it
> 2 Dec 2020 working state.  The kernel/world/drm-current-kmod
> from 2 Dec 2020 worked wonderfully.  Sadly, the two week
> recover from a failed update has one final hurdle.
> 
> With nearly top-of-tree src/ and ports/
> 
> % cd /usr/src
> % git log | more
> commit 0e01ea872ee475d7aef11d21588504e2ef4eb32c
> Author: Cy Schubert <cy_at_FreeBSD.org>
> Date:   Wed Jan 27 21:52:08 2021 -0800
> 
> % pkg info | grep kmod
> drm-current-kmod-5.4.62.g20210128 DRM modules for the linuxkpi-based KMS components
> gpu-firmware-kmod-g20201213    Firmware modules for the linuxkpi-based KMS components
> 
> when I start x11, the screen flickers for 15-30 seconds
> where apparently the i915kms modules is resetting the 
> GPU.  This is a new previously unseen behavior.  Eventually,
> the X server comes up and I can my normal desktop.  I've
> trimmed dmesg output to include info about the system.
> 
> 
> -- 
> D 14.0-CURRENT #4 main-c256341-g0e01ea872ee-dirty: Wed Jan 27 17:11:57 PST 2021
>     root_at_mobile:/usr/obj/usr/src/i386.i386/sys/MOBILE i386
> FreeBSD clang version 11.0.1 (git_at_github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe)
> VT(vga): resolution 640x480
> CPU: Intel(R) Core(TM)2 Duo CPU     T7250  _at_ 2.00GHz (1995.04-MHz 686-class CPU)
>   Origin="GenuineIntel"  Id=0x6fd  Family=0x6  Model=0xf  Stepping=13
>   Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
>   Features2=0xe3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM>
>   AMD Features=0x20100000<NX,LM>
>   AMD Features2=0x1<LAHF>
>   VT-x: (disabled in BIOS) HLT,PAUSE
>   TSC: P-state invariant, performance statistics
> real memory  = 4294967296 (4096 MB)
> avail memory = 4178866176 (3985 MB)
> 
> 
> vgapci0: <VGA-compatible display> port 0xeff8-0xefff mem 0xfea00000-0xfeafffff,0xe0000000-0xefffffff irq 16 at device 2.0 on pci0
> agp0: <Intel GM965 SVGA controller> on vgapci0
> WARNING: Device "agp" is Giant locked and may be deleted before FreeBSD 13.0.
> agp0: aperture size is 256M, detected 7676k stolen memory
> vgapci0: Boot video device
> vgapci1: <VGA-compatible display> mem 0xfeb00000-0xfebfffff at device 2.1 on pci0
> 
> atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64,0x62,0x66 irq 1 on acpi0
> atkbd0: <AT Keyboard> irq 1 on atkbdc0
> kbd0 at atkbd0
> atkbd0: [GIANT-LOCKED]
> psm0: <PS/2 Mouse> irq 12 on atkbdc0
> psm0: [GIANT-LOCKED]
> WARNING: Device "psm" is Giant locked and may be deleted before FreeBSD 13.0.
> psm0: model GlidePoint, device ID 0
> orm0: <ISA Option ROMs> at iomem 0xc0000-0xcefff,0xcf000-0xcffff pnpid ORM0000 on isa0
> 
> 
> ugen4.2: <Logitech USB Receiver> at usbus4
> ukbd0 on uhub2
> ukbd0: <Logitech USB Receiver, class 0/0, rev 2.00/12.03, addr 2> on usbus4
> kbd2 at ukbd0
> ums0 on uhub2
> ums0: <Logitech USB Receiver, class 0/0, rev 2.00/12.03, addr 2> on usbus4
> ums0: 16 buttons and [XYZT] coordinates ID=2
> uhid0 on uhub2
> uhid0: <Logitech USB Receiver, class 0/0, rev 2.00/12.03, addr 2> on usbus4
> drmn0: <drmn> on vgapci0
> vgapci0: child drmn0 requested pci_enable_io
> vgapci0: child drmn0 requested pci_enable_io
> [drm] Unable to create a private tmpfs mount, hugepage support will be disabled(-19).
> Successfully added WC MTRR for [0xe0000000-0xefffffff]: 0; 
> [drm] Got stolen memory base 0x0, size 0x0
> [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
> [drm] Driver supports precise vblank timestamp query.
> [drm] Connector LVDS-1: get mode from tunables:
> [drm]   - kern.vt.fb.modes.LVDS-1
> [drm]   - kern.vt.fb.default_mode
> [drm] Connector VGA-1: get mode from tunables:
> [drm]   - kern.vt.fb.modes.VGA-1
> [drm]   - kern.vt.fb.default_mode
> [drm] Connector DVI-D-1: get mode from tunables:
> [drm]   - kern.vt.fb.modes.DVI-D-1
> [drm]   - kern.vt.fb.default_mode
> [drm] Connector SVIDEO-1: get mode from tunables:
> [drm]   - kern.vt.fb.modes.SVIDEO-1
> [drm]   - kern.vt.fb.default_mode
> [drm] RC6 disabled, disabling runtime PM support
> [drm] Initialized overlay support.
> sysctl_warn_reuse: can't re-use a leaf (hw.dri.debug)!
> [drm] Initialized i915 1.6.0 20190822 for drmn0 on minor 0
> WARNING: Device "fb" is Giant locked and may be deleted before FreeBSD 13.0.
> VT: Replacing driver "vga" with new "fb".
> start FB_INFO:
> type=11 height=1050 width=1400 depth=32
> cmsize=16 size=5914624
> pbase=0xe0020000 vbase=0x24e20000
> name=drmn0 flags=0x0 stride=5632 bpp=32
> cmap[0]=0 cmap[1]=7f0000 cmap[2]=7f00 cmap[3]=c4a000
> end FB_INFO
> drmn0: fb0: i915drmfb frame buffer device
> drmn0: GPU HANG: ecode 4:1:0x8b9192dd, in MainThread [100156], hang on rcs0
> drmn0: Resetting chip for hang on rcs0
> drmn0: Resetting chip for hang on rcs0
> drmn0: Resetting chip for hang on rcs0
> drmn0: Resetting chip for hang on rcs0
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> tun0: link state changed to UP
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> drmn0: Resetting chip for hang on rcs0
> Asynchronous wait on fence i915:Xorg[100156]:4 timed out (hint:0x24ad37f0S)
> drmn0: GPU recovery timed out, cancelling all in-flight rendering.
> drmn0: Resetting chip for hang on rcs0
> 
> 
> 
> _______________________________________________
> freebsd-x11_at_freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-x11
> To unsubscribe, send any mail to "freebsd-x11-unsubscribe_at_freebsd.org"

 Does 5.4.62.g20210118 works ?

 If so I suggest you clone the 5.4-lts branch from
https://github.com/freebsd/drm-kmod/ and bisect between tags
drm_v5.4.62_9 and drm_v5.4.92_1.

 Cheers,

-- 
Emmanuel Vadot <manu_at_bidouilliste.com>
Received on Thu Jan 28 2021 - 18:48:11 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:27 UTC