From: sashiko-bot@kernel.org
To: Mahir <mail@mahirsn.net>
Cc: linux-pci@vger.kernel.org
Subject: Re: ACPI/PCI: GPU and HDMI audio inaccessible on FA608PP s2idle resume
Date: Mon, 30 Nov 2026 11:15:55 +0000 [thread overview]
Message-ID: <sashiko-outbox-240933@kernel.org> (raw)
In-Reply-To: <fa608pp-s2idle-e6-45cd908b6f5d453eba38ed7bec0abcf4@mahirsn.net>
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 <mail@mahirsn.net>
> 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=0 and
> pcie_port_pm=off. 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=platform 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=0, config_ret=0, PMCSR=0xffff.
> +0.007271 s Audio: D3hot, platform_ret=-22, config_ret=0, PMCSR=0xffff.
> +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")
> );
>
> +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 = message;
> + __entry->argument = argument;
> + __entry->start = start;
> + __entry->ret = ret;
> + ),
> +
> + TP_printk("message=0x%02x argument=0x%08x %s ret=%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 = state;
> + __entry->platform_ret = platform_ret;
> + __entry->config_ret = config_ret;
> + __entry->pmcsr = pmcsr;
> + ),
> +
> + TP_printk("%s state=%d platform_ret=%d config_ret=%d pmcsr=0x%04x",
> + __get_str(device), __entry->state, __entry->platform_ret,
> + __entry->config_ret, __entry->pmcsr)
> +);
> +
> DECLARE_EVENT_CLASS(wakeup_source,
>
> 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 <trace/events/power.h>
>
> 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.
--
Sashiko AI review · https://sashiko.dev/#/patchset/fa608pp-s2idle-e6-45cd908b6f5d453eba38ed7bec0abcf4@mahirsn.net?part=1
prev parent reply other threads:[~2026-11-30 11:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 11:06 ACPI/PCI: GPU and HDMI audio inaccessible on FA608PP s2idle resume Mahir
2026-11-30 11:15 ` sashiko-bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-240933@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mail@mahirsn.net \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox