Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=149.28.215.223 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796420928; b=5enqWqwSrbwlRAZs8NZO8SkzBhK9KaldbV5kuS8XUQG6LoktAFJ2XDD2V/A92auHIgwq eOxzMVocJB2MB0sQFM1vuThU0rH4dsYqPxmtImRPJqIK1aUFH8YlwQ62D/55b5338x1I6 zHQ93JGStT/nGAW5BSdQf8ElVgSsS2ENf7yOVJNWoYJLAy3HQ/jrpwGamZLa6AeIlLi32 t8LZkkrzp1hXfm0PxbizrvzS0OUaidI9AW8g3J6Z6xrmscpDcKdJlxvFS5TOijDUcj3wo UFnvO/aPMb88YQ3hLGNeepXlOXfT2ehsvh9iJqHjRtcEVCyciFvKQJ7Wl0FTFpCFGkw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796420928; h=DMARC-Filter:DKIM-Signature:DKIM-Signature:CFBL-Feedback-ID: CFBL-Address:X-Forward-Email-ID:X-Forward-Email-Sender: X-Forward-Email-Version:X-Forward-Email-Website:X-Complaints-To: X-Report-Abuse:X-Report-Abuse-To:Message-ID:Subject:From:To:Cc:Date: In-Reply-To:References:Content-Type:Content-Transfer-Encoding: User-Agent:MIME-Version; bh=OK8Kik2sTAKVdSv7WsIGKBMjtXPhjgQ1nLbFbNTzlM0=; b=u4qmFuS7erYOhehm1E0lD3IkPJ0AogyPrMv4QM9WCQmtRJ2ZXr+toywEk+y1jt/nAFpc VrWWhCBLrUsfx/I+LkJkVReESj/KhQytyXAgH7/V77QGNIiIgaTKUPheoA+OAGFGQDaaz viDe94Az1Jy1S7sO7rLzn9h/MLdx3u2hxK4Qqj6rThy6BVX4XHVui4MM7FmfldSZav4qZ 19CRFVjxbAIqwi1xs7wxL8NckhtaHYWh89l37R3fQmoto4Mm8allIC8Da2NnxYiCUChIj mu9bq7jI1S1sDnZxfYgqbAl7uAvewGf7wrAyAlgamBBc64tvo7ZjSZmV1Tjy93muULw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=maintainer.cc; spf=pass smtp.mailfrom=fe-bounces.maintainer.cc; dkim=pass header.d=maintainer.cc header.i=@maintainer.cc header.a=rsa-sha256 header.s=fe-54a0ea1b23 header.b=iTO5lcyn; dkim=pass header.d=forwardemail.net header.i=@forwardemail.net header.a=rsa-sha256 header.s=default header.b=lXl8JOAo; arc=none smtp.remote-ip=149.28.215.223 Received: from smtp.forwardemail.net (smtp.forwardemail.net [149.28.215.223]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B5988606A322 for ; Fri, 4 Dec 2026 21:48:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B5988606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=maintainer.cc Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fe-bounces.maintainer.cc Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=maintainer.cc header.i=@maintainer.cc header.a=rsa-sha256 header.s=fe-54a0ea1b23 header.b=iTO5lcyn; dkim=pass (1024-bit key) header.d=forwardemail.net header.i=@forwardemail.net header.a=rsa-sha256 header.s=default header.b=lXl8JOAo DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maintainer.cc; h=MIME-Version: Content-Transfer-Encoding: Content-Type: References: In-Reply-To: Date: Cc: To: From: Subject: Message-ID: CFBL-Address: CFBL-Feedback-ID; q=dns/txt; s=fe-54a0ea1b23; t=1796420927; bh=OK8Kik2sTAKVdSv7WsIGKBMjtXPhjgQ1nLbFbNTzlM0=; b=iTO5lcynRueFJhhgxYbZWDt+F9GvwAYP3C6HWiTLwgyrMcwvUTNtrL0b0GBlddvpGlswX31QV dnTo0QHX9WhOjWAdgF66WxVWH+M5SEmDIOu8ZvZloj46XOlhywm05q69oKwsO5lZcDOKssm1qIP OK2ZAN3AEKsvgIUE4IZPuXg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=forwardemail.net; h=MIME-Version: Content-Transfer-Encoding: Content-Type: References: In-Reply-To: Date: Cc: To: From: Subject: Message-ID: CFBL-Address: CFBL-Feedback-ID; q=dns/txt; s=default; t=1796420927; bh=OK8Kik2sTAKVdSv7WsIGKBMjtXPhjgQ1nLbFbNTzlM0=; b=lXl8JOAoI3NLwssPBE7jNol05ccPq5TiFdefG2sUOLB8Ub/fb7+ND9ez1IZ/Fy0IRKMTCp/wE 3a8CzihZvtOeRXEHSaarkxNgnXvrdKMwy8uwoYqJ9dtDvnOT7a0pTMBwnyqJLFJxxxozdahpzcq S0kzB0smRdQXN9GLvmhs6aU= CFBL-Feedback-ID: 6b13352dbdf6700a868ff8a1:752b450d98e3391abd1de7e206e2ef49 CFBL-Address: abuse@forwardemail.net; report=arf X-Forward-Email-ID: 6b13352dbdf6700a868ff8a1 X-Forward-Email-Sender: rfc822; lyude.paul@maintainer.cc, smtp.forwardemail.net, 149.28.215.223 X-Forward-Email-Version: 2.19.47 X-Forward-Email-Website: https://forwardemail.net X-Complaints-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Report-Abuse-To: abuse@forwardemail.net Message-ID: <19567e04deaeac6d444ccc9fc0ca61a8dd348d47.camel@maintainer.cc> Subject: Re: [PATCH] Revert "nouveau: pci: quiesce GPU on shutdown" From: Lyude Paul To: Thorsten Leemhuis , David Airlie Cc: dri-devel@lists.freedesktop.org, Danilo Krummrich , Marek Vasut , Li Chen , Maarten Lankhorst , Maxime Ripard , Ole Carlsen , Simona Vetter , Thomas Zimmermann , Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= , linux-kernel@vger.kernel.org, nouveau@lists.freedesktop.org, Linux kernel regressions list Date: Fri, 04 Dec 2026 16:48:28 -0500 In-Reply-To: References: <20261025213027.842978-1-marex@nabladev.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 (3.58.3-2.fc43) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Hi - did Dave ever pick this up? I'm back so I can look at this if not On Thu, 2026-11-26 at 08:58 +0100, Thorsten Leemhuis wrote: > On 10/25/26 22:30, Marek Vasut wrote: > > This reverts commit 310326bb7df4bba094a3fc60364c641c547fd923. > >=20 > > This breaks shutdown on ThinkPad W510, without the offending commit > > the system normally powers off, with the offending commit the > > system > > ends up spinning indefinitely and the CPU fan goes full throttle on > > shutdown. > >=20 > > The behavior was already reported in debian bugtracker multiple > > times > > for various other computers too, and git bisect lands as this > > commit. > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1141969 > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1146033 >=20 > @airlied: given that you recently applied a few nouveau bugfixes, > could > you maybe pick this one up, too? >=20 > I'd even say it's eligible for -fixes, as I'd say this is still a > somewhat recent regressions and the fix hence "should be expedited", > as > Linus said some time ago[1]. >=20 > And to make it obvious: this will reintroduce warnings during kexec > the > commit being reverted tried to fix. YMMV, but that seems like the > smaller problem. >=20 > Ciao, Thorsten >=20 > [1] > https://lore.kernel.org/all/CAHk-=3Dwis_qQy4oDNynNKi5b7Qhosmxtoj1jxo5wmB6= SRUwQUBQ@mail.gmail.com/ >=20 > > I tested the revert with Linux 7.2.12 from debian unstable, not > > next > > or drm trees, mainly because it was easier with debian test-patches > > script on that machine. > >=20 > > Signed-off-by: Marek Vasut > > --- > > Cc: Danilo Krummrich > > Cc: David Airlie > > Cc: Li Chen > > Cc: Lyude Paul > > Cc: Maarten Lankhorst > > Cc: Maxime Ripard > > Cc: Ole Carlsen > > Cc: Simona Vetter > > Cc: Thomas Zimmermann > > Cc: Uwe Kleine-K=C3=B6nig > > Cc: dri-devel@lists.freedesktop.org > > Cc: linux-kernel@vger.kernel.org > > Cc: nouveau@lists.freedesktop.org > > --- > > NOTE: Maybe the revert is not the ideal solution, but it does fix > > my > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 problem, and I think being able to shut = computer down is a > > good > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 functionality to have. > > --- > > =C2=A0drivers/gpu/drm/nouveau/nouveau_drm.c | 32 ----------------------= - > > ---- > > =C2=A01 file changed, 32 deletions(-) > >=20 > > diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c > > b/drivers/gpu/drm/nouveau/nouveau_drm.c > > index 5e1336615cf6d..36c74f9edaa83 100644 > > --- a/drivers/gpu/drm/nouveau/nouveau_drm.c > > +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c > > @@ -1090,37 +1090,6 @@ nouveau_pmops_resume(struct device *dev) > > =C2=A0 return ret; > > =C2=A0} > > =C2=A0 > > -static void > > -nouveau_drm_shutdown(struct pci_dev *pdev) > > -{ > > - struct nouveau_drm *drm =3D pci_get_drvdata(pdev); > > - int ret; > > - > > - if (!drm) > > - return; > > - > > - if (drm->dev->switch_power_state =3D=3D DRM_SWITCH_POWER_OFF > > || > > - =C2=A0=C2=A0=C2=A0 drm->dev->switch_power_state =3D=3D > > DRM_SWITCH_POWER_DYNAMIC_OFF) > > - return; > > - > > - ret =3D nouveau_do_suspend(drm, false); > > - if (ret) > > - NV_ERROR(drm, "shutdown suspend failed with: > > %d\n", ret); > > - > > - pci_save_state(pdev); > > - pci_disable_device(pdev); > > - pci_set_power_state(pdev, PCI_D3hot); > > - /* > > - *=C2=A0 This is just to give the pci power transition time to > > settle > > - *=C2=A0 before an immediate kexec jump. it=E2=80=99s mirroring the > > existing > > - *=C2=A0 nouveau_pmops_suspend() behavior, which already does > > - *=C2=A0 udelay(200) right after pci_set_power_state(..., > > pci_d3hot). In > > - *=C2=A0 ->shutdown() we=E2=80=99re allowed to sleep, so I used > > usleep_range() > > - *=C2=A0 instead of a busy-wait udelay(). > > - */ > > - usleep_range(200, 400); > > -} > > - > > =C2=A0static int > > =C2=A0nouveau_pmops_freeze(struct device *dev) > > =C2=A0{ > > @@ -1480,7 +1449,6 @@ nouveau_drm_pci_driver =3D { > > =C2=A0 .id_table =3D nouveau_drm_pci_table, > > =C2=A0 .probe =3D nouveau_drm_probe, > > =C2=A0 .remove =3D nouveau_drm_remove, > > - .shutdown =3D nouveau_drm_shutdown, > > =C2=A0 .driver.pm =3D &nouveau_pm_ops, > > =C2=A0}; > > =C2=A0