From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796037356; b=5DqxdZprdeM8W3gmo5ya2Mo1E+zl1n6GQOvRnWHaDVpVu1l07IZTHpEd530wbZMUGB7B VpHiNKS0fph0kHpbyRZAn0tRyQcnjF7sL/j2XMTdSEtchOHO4b1sB8pEM4xpmndIxDEIh j/N4EeHArmZ4e9UKpafVMtI3iDW3c7dsp4DG6d+zOqIrrU8V3PfcqzmKp2VpG5hWIf+Eq pkU92BczFNHKUmOLVUTGBt43KrM0xagzBEpqQtom8rHyWYpssapwY5YcTe5Qw+zi0Gpai APMM9vqaKT+h5PePkiiJ3fWoFERAcyslmi+WOxDgeP1/7qixEY64GBOSoJm6z2Yf5Ow== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796037356; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=pY4SMI82zFGAm3QYjJdHSRMy97eWK/gGNLK4wKZl+C0=; b=freQWsiZR54xPAxv/I29fKjW/AgaieaXPcIaCIBdgIYRjiqvyGvamY73s7l6zUCg1Drj WVwqlIdxbmneq5josD+yLIaFx0eyfGI4BXcBDbAIWFp+lIUD19wIjGEIpA84X1I8qrP9e qyuLcilkRHKYg+wBcOLP62MD5H7gRny4cn7A8jL4fxVkU4w74PitgAkmlLvRfTt/DR7Qk nvyphvB2IdpZkK+BzOMHyh00t8zVi6VYSe6Ac+S9YqJY2I7FZkTaA4f0xVMHVBP2ly+/G AbCXFQHnwoZhXlN/6vYpPrv/8aQNU7SQ+05xZYTKx9VP/3J9elqoLREvLHDzWHBXvtA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fEIpTFAP; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 306AE606A31C for ; Mon, 30 Nov 2026 11:15:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fEIpTFAP Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69F421F00897; Mon, 30 Nov 2026 11:15:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796037355; bh=pY4SMI82zFGAm3QYjJdHSRMy97eWK/gGNLK4wKZl+C0=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=fEIpTFAPX3nYfTY4QxL4v3a1yyazavuZTbVstbflUH+1jYijAqNHWbudZ/EA8E4wf PShc+EpP9bPO2fnbAAVqSVLCTTzyCdnDTL9705LJJGQMyWoMwSbu1FVV13s5qD9Kx4 nY/nvyW5JqlUfI/B85IOpPSffYbXlXFzudqmZwMv6l+k+IfBTgIW7S//HaIMa8aEoe 1uH0vYTpAEe8T0Vz/VOxRbHIpyPidezNx315FpamE70FwwHVimBpJyNu+nIImb9iSp KiPeknEWpJL4WIL0AYmUaanLahPlGklj1n4wujTws7oK+oK7dqyBpn3/GdskuN4B9g cIYqwz+5w6v7A== Message-ID: From: sashiko-bot@kernel.org Subject: Re: ACPI/PCI: GPU and HDMI audio inaccessible on FA608PP s2idle resume Reply-To: sashiko-reviews@lists.linux.dev To: Mahir Cc: linux-pci@vger.kernel.org In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 11:15:55 +0000 X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [High] commit_message: missing Signed-off-by trailer - [Medium] tracing: power: non-upstream diagnostic patch and vendor event in core trace -- commit f8bb24e5bbdbe53f9ad143b424b4bed1621a082e Author: Mahir > ACPI/PCI: GPU and HDMI audio inaccessible on FA608PP s2idle resume > > Hi, > > On an ASUS TUF Gaming A16 FA608PP, the RTX 5070 and its HDMI audio > function become inaccessible during real s2idle resume. Both functions > are below Root Port 0000:00:01.1. The display stays black. An Ethernet > collector saved the E6 trace after resume. > > The failure occurred on Arch Linux 7.3.6-arch1-1 and an instrumented > build, 7.3.6-arch1-1-pwtrace1. The Arch source base was commit > bba1a17262fbcd7bbc9c40220391c0765ff09c08. Reproduction on current > vanilla mainline has not been verified. No known-good kernel or > regression range is known. I am asking which evidence would best > separate the hypotheses. > > Hardware and configuration > > - BIOS FA608PP.311, Ryzen 9 8940HX, AMD PMC AMDI0008:00. > - Root Port 1022:14db at 0000:00:01.1, GPU 10de:2d58 at > 0000:01:00.0, HDMI audio 10de:22eb at 0000:01:00.1. > - Discrete-GPU MUX mode, Hyprland, NVIDIA open kernel modules 620.73.04. > - VRAM preservation and kernel suspend notifiers enabled. NVIDIA S0ix > and runtime D3 disabled. AMD IOMMU enabled. > - Boot options include nvme_core.default_ps_max_latency_us=3D0 and > pcie_port_pm=3Doff. The Kioxia BG6 has previously disappeared with > power management. > > Steps used to reproduce > > 1. Boot the above configuration on AC power with amd_pmc bound. > 2. Confirm /sys/power/mem_sleep selects s2idle and > /sys/power/pm_test selects none. > 3. Set an RTC wake alarm for 120 seconds. Start suspend.target > once with systemctl and allow the system to wake. > 4. Check the kernel log for D3hot-to-D0 access errors at 01:00.0 > and 01:00.1. Both functions should resume and the display should > return. > > E5 used the stock Arch kernel. It woke near the RTC alarm and > reproduced the failure. In E6, IRQ 7 woke the system before the alarm. > Kernel timekeeping reported 1.312 s asleep. The PMC reported 163,543 us > in S0i3. Both PCI functions became inaccessible again. > > The only PMC-unbound run, E4, resumed successfully. This single > observation supports an association with the bound platform path. > Unbinding changes several callbacks. The sample cannot identify the > driver as the cause or establish a failure rate. The PMC-bound > pm_test=3Dplatform run passed late/noirq without a real s2idle loop. > > E6 trace > > Times are relative to the end of machine_suspend. Alignment between > kernel messages and ftrace is approximate. > > -1.854084 s AMD PMC entry hint (0x03, argument 1) returned 0. > +0.000088 s AMD PMC exit hint (0x03, argument 0) returned 0. > +0.000809 s ACPI LPS0 exit completed. > +0.001560 s ACPI Modern Standby exit completed. > +0.003396 s Root Port 00:01.1 noirq callback returned 0. > +0.004197 s GPU: D3hot, platform_ret=3D0, config_ret=3D0, PMCSR=3D0xfff= f. > +0.007271 s Audio: D3hot, platform_ret=3D-22, config_ret=3D0, PMCSR=3D0= xffff. > +5.073452 s First NVMe AMD-Vi I/O page fault trace event. > +35.555333 s NVIDIA Xid 79. > +65.558380 s NVIDIA Xid 154. > +65.558415 s NVIDIA Xid 143. > +65.568055 s Oops in nvEvoDisableVblankSemControl [nvidia_modeset]. > > The Root Port callback took 9 us. Its end preceded the first GPU > PMCSR event by 801 us. The system-wide noirq phase took 5.070411 s. > The trace filtered callbacks to three PCI functions, so it cannot > attribute the remaining time. The first NVMe IOMMU event appeared > 43 us after the noirq end marker. That marker precedes > resume_device_irqs(). The originating DMA request time is unknown. > > The x86 Type 1 config-access return code is 0, but the data is all > ones. The PCI core rejects that value before the D0 write and the > D3hot readiness wait. The audio platform return of -EINVAL also > occurred before suspend, with readable PMCSR 0x000b. Its ACPI > companion NHDA has no _PS0 or _PR0. > > PCIe access loss predates the NVIDIA Oops. Shutdown later stalled and > required the power button. Further suspend tests are paused. > > Questions for maintainers > > Does the SMU exit acknowledgment guarantee downstream PCIe readiness > on this platform? The trace captured the mailbox response. It did not > measure physical power, reset or link state. Successful ACPI LPS0 exits > do not show whether PG00._ON or PEGP._PS0 ran. Which existing traces > or firmware evidence could clarify the Root Port resume path and the > power-resource sequence without extra config reads? > > Attachments and tool disclosure > > e6-linux-excerpt.txt contains selected events with host identifiers > removed. amd-pmc-pci-trace.patch is the diagnostic diff used in E6. > It records existing AMD PMC and PCI operations. It adds no hardware > reads, waits, retries or power changes. It is attached for diagnostic > context only. I am not proposing it as an upstream fix. > > OpenAI Codex (GPT-6 family) helped inspect the source and trace, > calculate event intervals and draft this report. It also helped > design and write the two diagnostic tracepoints. The requests were > to trace the existing SMU hint and first PMCSR read without changing > their behavior, then document the captured failure. The instrumented > Arch build booted and captured E6. An independent review checked > the submission files and timing. No fix was developed or tested. > > Thanks. [Severity: High] The commit message is missing a Signed-off-by: trailer, which is required by Documentation/process/submitting-patches.rst for any patch to be merged. > diff --git a/include/trace/events/power.h b/include/trace/events/power.h > index 4d17eb307b6ab..b2fe83a03aee8 100644 > --- a/include/trace/events/power.h > +++ b/include/trace/events/power.h > @@ -286,6 +286,59 @@ TRACE_EVENT(suspend_resume, > (__entry->start)?"begin":"end") > ); > =20 > +TRACE_EVENT(amd_pmc_s2idle_hint, > + > + TP_PROTO(u8 message, u32 argument, bool start, int ret), > + > + TP_ARGS(message, argument, start, ret), > + > + TP_STRUCT__entry( > + __field(u8, message) > + __field(u32, argument) > + __field(bool, start) > + __field(int, ret) > + ), > + > + TP_fast_assign( > + __entry->message =3D message; > + __entry->argument =3D argument; > + __entry->start =3D start; > + __entry->ret =3D ret; > + ), > + > + TP_printk("message=3D0x%02x argument=3D0x%08x %s ret=3D%d", > + __entry->message, __entry->argument, > + __entry->start ? "begin" : "end", __entry->ret) > +); > + > +TRACE_EVENT(pci_power_up_pmcsr, > + > + TP_PROTO(const char *device, int state, int platform_ret, > + int config_ret, u16 pmcsr), > + > + TP_ARGS(device, state, platform_ret, config_ret, pmcsr), > + > + TP_STRUCT__entry( > + __string(device, device) > + __field(int, state) > + __field(int, platform_ret) > + __field(int, config_ret) > + __field(u16, pmcsr) > + ), > + > + TP_fast_assign( > + __assign_str(device); > + __entry->state =3D state; > + __entry->platform_ret =3D platform_ret; > + __entry->config_ret =3D config_ret; > + __entry->pmcsr =3D pmcsr; > + ), > + > + TP_printk("%s state=3D%d platform_ret=3D%d config_ret=3D%d pmcsr=3D0x%0= 4x", > + __get_str(device), __entry->state, __entry->platform_ret, > + __entry->config_ret, __entry->pmcsr) > +); > + > DECLARE_EVENT_CLASS(wakeup_source, > =20 > TP_PROTO(const char *name, unsigned int state), > diff --git a/kernel/trace/power-traces.c b/kernel/trace/power-traces.c > index f2fe33573e544..bd573954951f1 100644 > --- a/kernel/trace/power-traces.c > +++ b/kernel/trace/power-traces.c > @@ -15,6 +15,7 @@ > #include > =20 > EXPORT_TRACEPOINT_SYMBOL_GPL(suspend_resume); > +EXPORT_TRACEPOINT_SYMBOL_GPL(amd_pmc_s2idle_hint); > EXPORT_TRACEPOINT_SYMBOL_GPL(cpu_idle); > EXPORT_TRACEPOINT_SYMBOL_GPL(cpu_frequency); [Severity: Medium] Should this diagnostic diff be applied to the tree? The commit message notes that amd-pmc-pci-trace.patch is attached only for diagnostic context in a bug report and is not proposed for upstream inclusion. If any of this tracing is later submitted for mainline, the vendor-specific amd_pmc_s2idle_hint event should live in a driver-scoped trace header rather than include/trace/events/power.h and kernel/trace/power-traces.c, where it is unconditionally built and exported in core vmlinux across all architectures whenever CONFIG_TRACEPOINTS is enabled. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/fa608pp-s2idle-e6-4= 5cd908b6f5d453eba38ed7bec0abcf4@mahirsn.net?part=3D1