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 26E8AEFB7EB for ; Tue, 24 Feb 2026 03:18:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1A76010E492; Tue, 24 Feb 2026 03:18:01 +0000 (UTC) Received: from us-smtp-delivery-44.mimecast.com (us-smtp-delivery-44.mimecast.com [205.139.111.44]) by gabe.freedesktop.org (Postfix) with ESMTPS id C660910E492 for ; Tue, 24 Feb 2026 03:17:59 +0000 (UTC) Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-526-V0-39w9VNhmGEN-YvCqi2g-1; Mon, 23 Feb 2026 22:17:57 -0500 X-MC-Unique: V0-39w9VNhmGEN-YvCqi2g-1 X-Mimecast-MFC-AGG-ID: V0-39w9VNhmGEN-YvCqi2g_1771903076 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C5D491800464; Tue, 24 Feb 2026 03:17:55 +0000 (UTC) Received: from dreadlord.taild9177d.ts.net (unknown [10.67.32.38]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 7CCFD30001BB; Tue, 24 Feb 2026 03:17:52 +0000 (UTC) From: Dave Airlie To: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org, dakr@kernel.org Subject: [PATCH] nouveau/dpcd: return EBUSY for aux xfer if the device is asleep Date: Tue, 24 Feb 2026 13:17:50 +1000 Message-ID: <20260224031750.791621-1-airlied@gmail.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: G5919o2n-Zf2H3I1_xGkE4FVZA3GMdYStmeC2GUzWLc_1771903076 X-Mimecast-Originator: gmail.com Content-Transfer-Encoding: quoted-printable content-type: text/plain; charset=WINDOWS-1252; x-default=true 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" 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/r= 535/rpc.c:164 r535_gsp_msgq_wait+0x9a/0xb0 [nouveau] Modules linked in: overlay uinput rfcomm snd_seq_dummy snd_hrtimer nf_connt= rack_netbios_ns nf_conntrack_broadcast nft_fib_inet nft_fib_ipv4 nft_fib_ip= v6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct = nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables q= rtr bnep s> snd_soc_acpi intel_rapl_msr libarc4 kvm crc8 soundwire_bus irqbypass snd_so= c_sdca rapl iwlwifi snd_soc_avs uvcvideo intel_cstate think_lmi uvc firmwar= e_attributes_class intel_uncore intel_wmi_thunderbolt wmi_bmof snd_hda_code= c_conexant snd_hda_codec_nvhdmi videobuf2_vmalloc snd_soc_hda_codec cfg8021= 1 videobu> processor_thermal_mbox sparse_keymap intel_soc_dts_iosf intel_pch_thermal p= latform_profile rfkill snd soundcore int3403_thermal int340x_thermal_zone i= nt3400_thermal acpi_thermal_rel acpi_pad joydev loop nfnetlink zram lz4hc_c= ompress lz4_compress xfs wacom hid_microsoft ff_memless nouveau ucsi_acpi t= ypec_ucsi> 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/20= 24 RIP: 0010:r535_gsp_msgq_wait+0x9a/0xb0 [nouveau] This is a simple fix to get backported. We should probably engineer a prope= r power domain solution to wake up devices and keep them away while fw upda= tes are happening. Cc: stable@vger.kernel.org Signed-off-by: Dave Airlie size; =09int ret; =20 +=09if (pm_runtime_suspended(nv_connector->base.dev->dev)) +=09=09return -EBUSY; + =09nv_encoder =3D find_encoder(&nv_connector->base, DCB_OUTPUT_DP); =09if (!nv_encoder) =09=09return -ENODEV; --=20 2.53.0