From owner-freebsd-current@freebsd.org Thu Jan 28 19:48:11 2021 Return-Path: Delivered-To: freebsd-current@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 DFBCA4EAFE2; Thu, 28 Jan 2021 19:48:11 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (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 "mx.blih.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DRWGy6K5Xz4bnc; Thu, 28 Jan 2021 19:48:10 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1611863287; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2NuGkNhKO3acsG6JaFSQ8W+pCD5pKQi9OukL2db6YgU=; b=AeIwpLBrxfEgKfSl0x5Vh4u2ig7tHml0E889wTyxRCgT6xwrWa0oynQH01CyUc2IFrANdJ +LXE03UgOROO5NNtBC4vSMhjOaq0+AD0/S68u5u2xsXz4Xj36pfyzr2NZNwrbAjW2afb9L hzvu+Ppn2nKJ/sb+UP8L2DbpGf/rB3Y= Received: from amy.home (lfbn-idf2-1-745-114.w86-247.abo.wanadoo.fr [86.247.192.114]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 302f3c71 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 28 Jan 2021 19:48:07 +0000 (UTC) Date: Thu, 28 Jan 2021 20:48:06 +0100 From: Emmanuel Vadot To: Steve Kargl Cc: freebsd-x11@freebsd.org, freebsd-current@freebsd.org Subject: Re: i915kms and chip resets on rsc0? Message-Id: <20210128204806.77d1e676a592ec638a82d5be@bidouilliste.com> In-Reply-To: <20210128191510.GA96585@troutmask.apl.washington.edu> References: <20200710192736.GA69592@troutmask.apl.washington.edu> <20210128191510.GA96585@troutmask.apl.washington.edu> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4DRWGy6K5Xz4bnc X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=AeIwpLBr; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-2.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+mx]; DKIM_TRACE(0.00)[bidouilliste.com:+]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[212.83.155.74:from]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; FREEFALL_USER(0.00)[manu]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[212.83.155.74:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current,freebsd-x11] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jan 2021 19:48:11 -0000 On Thu, 28 Jan 2021 11:15:10 -0800 Steve Kargl 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 > 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 > > > > _______________________________________________ > freebsd-x11@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-x11 > To unsubscribe, send any mail to "freebsd-x11-unsubscribe@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