From owner-freebsd-x11@freebsd.org Thu Jan 28 19:15:23 2021 Return-Path: Delivered-To: freebsd-x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8DDC94E7DB7; Thu, 28 Jan 2021 19:15:23 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DRVY64sBYz4Xdf; Thu, 28 Jan 2021 19:15:22 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.16.1/8.16.1) with ESMTPS id 10SJFAK5096614 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 28 Jan 2021 11:15:10 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.16.1/8.16.1/Submit) id 10SJFAk4096613; Thu, 28 Jan 2021 11:15:10 -0800 (PST) (envelope-from sgk) Date: Thu, 28 Jan 2021 11:15:10 -0800 From: Steve Kargl To: freebsd-x11@freebsd.org, freebsd-current@freebsd.org Subject: i915kms and chip resets on rsc0? Message-ID: <20210128191510.GA96585@troutmask.apl.washington.edu> References: <20200710192736.GA69592@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200710192736.GA69592@troutmask.apl.washington.edu> X-Rspamd-Queue-Id: 4DRVY64sBYz4Xdf X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=washington.edu (policy=none); spf=none (mx1.freebsd.org: domain of sgk@troutmask.apl.washington.edu has no SPF policy when checking 128.95.76.21) smtp.mailfrom=sgk@troutmask.apl.washington.edu X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[washington.edu : No valid SPF, No valid DKIM,none]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[128.95.76.21:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; SPAMHAUS_ZRD(0.00)[128.95.76.21:from:127.0.2.255]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:73, ipnet:128.95.0.0/16, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; MAILMAN_DEST(0.00)[freebsd-x11,freebsd-current]; RCVD_COUNT_TWO(0.00)[2] X-Mailman-Approved-At: Thu, 28 Jan 2021 19:38:54 +0000 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jan 2021 19:15:23 -0000 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 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@mobile:/usr/obj/usr/src/i386.i386/sys/MOBILE i386 FreeBSD clang version 11.0.1 (git@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 @ 2.00GHz (1995.04-MHz 686-class CPU) Origin="GenuineIntel" Id=0x6fd Family=0x6 Model=0xf Stepping=13 Features=0xbfebfbff Features2=0xe3bd AMD Features=0x20100000 AMD Features2=0x1 VT-x: (disabled in BIOS) HLT,PAUSE TSC: P-state invariant, performance statistics real memory = 4294967296 (4096 MB) avail memory = 4178866176 (3985 MB) vgapci0: port 0xeff8-0xefff mem 0xfea00000-0xfeafffff,0xe0000000-0xefffffff irq 16 at device 2.0 on pci0 agp0: 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: mem 0xfeb00000-0xfebfffff at device 2.1 on pci0 atkbdc0: port 0x60,0x64,0x62,0x66 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: 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: at iomem 0xc0000-0xcefff,0xcf000-0xcffff pnpid ORM0000 on isa0 ugen4.2: at usbus4 ukbd0 on uhub2 ukbd0: on usbus4 kbd2 at ukbd0 ums0 on uhub2 ums0: on usbus4 ums0: 16 buttons and [XYZT] coordinates ID=2 uhid0 on uhub2 uhid0: on usbus4 drmn0: 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