Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AF10CEFCE47 for ; Wed, 4 Mar 2026 21:09:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0E48010EAB0; Wed, 4 Mar 2026 21:09:27 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="dc3/VCpO"; dkim-atps=neutral Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id CA0C110EAB0; Wed, 4 Mar 2026 21:09:25 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 7FDF540868; Wed, 4 Mar 2026 21:09:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B284CC4CEF7; Wed, 4 Mar 2026 21:09:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772658565; bh=UrgLcwHU8FgZjtEFEnz7U7KqnQOrgNyuhrBqFpTsLUc=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=dc3/VCpO1Uw8lxiyJljSZKPgiwfZprS8L14LpBbkv6LP5+4yTkh95vx8ubJiSCIMK tnecHG3yL7n2kGzQqglMJdpVnD29d2diK/aC2PzmmKefvyeslxsTdY5LEDi3v2og8t T+yf+qxoJ9M5VQOwBVp46G9BflnqQeP8ROqzdZ1hNAuv8Z7WaGZA3hQQsQzaK44uZQ jlxCJyQ/vijB3QWMXOfjAc6ve3QLjo05Jx29eGDwGm93Fd+8Ci5rORFZKJyZenDvh3 UR4z9/ex4rITF9NDYAdf3XPhWA9CPkgcSHQGQL6oF9uPUzxl7029U8Q8JgeRpaoUwB PqUpEvbeZKg/Q== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 04 Mar 2026 22:09:23 +0100 Message-Id: Subject: Re: [PATCH] nouveau/dpcd: return EBUSY for aux xfer if the device is asleep Cc: , To: "Dave Airlie" From: "Danilo Krummrich" References: <20260224031750.791621-1-airlied@gmail.com> In-Reply-To: X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Wed Mar 4, 2026 at 10:02 PM CET, Dave Airlie wrote: > On Thu, 5 Mar 2026 at 03:14, Danilo Krummrich wrote: >> >> On Tue Feb 24, 2026 at 4:17 AM CET, Dave Airlie wrote: >> > From: Dave Airlie >> > >> > If we have runtime suspended, and userspace wants to use /dev/drm_dp_* >> > then just tell it the device is busy instead of crashing in the GSP >> > code. >> > >> > WARNING: CPU: 2 PID: 565741 at drivers/gpu/drm/nouveau/nvkm/subdev/gsp= /rm/r535/rpc.c:164 r535_gsp_msgq_wait+0x9a/0xb0 [nouveau] >> > Modules linked in: overlay uinput rfcomm snd_seq_dummy snd_hrtimer nf_= conntrack_netbios_ns nf_conntrack_broadcast nft_fib_inet nft_fib_ipv4 nft_f= ib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nf= t_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tab= les qrtr bnep s> >> > snd_soc_acpi intel_rapl_msr libarc4 kvm crc8 soundwire_bus irqbypass s= nd_soc_sdca rapl iwlwifi snd_soc_avs uvcvideo intel_cstate think_lmi uvc fi= rmware_attributes_class intel_uncore intel_wmi_thunderbolt wmi_bmof snd_hda= _codec_conexant snd_hda_codec_nvhdmi videobuf2_vmalloc snd_soc_hda_codec cf= g80211 videobu> >> > processor_thermal_mbox sparse_keymap intel_soc_dts_iosf intel_pch_ther= mal platform_profile rfkill snd soundcore int3403_thermal int340x_thermal_z= one int3400_thermal acpi_thermal_rel acpi_pad joydev loop nfnetlink zram lz= 4hc_compress lz4_compress xfs wacom hid_microsoft ff_memless nouveau ucsi_a= cpi typec_ucsi> >> >> I'd remove the modules linked in, it seems not relevant. >> >> > CPU: 2 UID: 0 PID: 565741 Comm: fwupd Not tainted 6.18.10-200.fc43.x86= _64 #1 PREEMPT(lazy) >> > Hardware name: LENOVO 20QTS0PQ00/20QTS0PQ00, BIOS N2OET65W (1.52 ) 08/= 05/2024 >> > RIP: 0010:r535_gsp_msgq_wait+0x9a/0xb0 [nouveau] >> > >> > This is a simple fix to get backported. We should probably engineer a = proper power domain solution to wake up devices and keep them away while fw= updates are happening. >> >> s/away/awake/ and line length. >> >> > Cc: stable@vger.kernel.org >> >> Do we want this backported before GSP introduction? >> >> I.e. if it's only about the WARN_ON() and otherwise doesn't cause proble= ms it >> should probably be >> >> Fixes: 176fdcbddfd2 ("drm/nouveau/gsp/r535: add support for booting GSP-= RM") >> >> otherwise >> >> Fixes: 8894f4919bc4 ("drm/nouveau: register a drm_dp_aux channel for eac= h dp connector") > > Go back to this for safety, probably won't blow up but it could still > cause wierd register timeouts. > >> >> > Signed-off-by: Dave Airlie > >> No need to resend, I can fix up the above (and the minor typo in the SoB= ) on >> apply. Applied to drm-misc-fixes, thanks!