Linux ACPI
 help / color / mirror / Atom feed
From: Armin Wolf <W_Armin@gmx.de>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Linux ACPI <linux-acpi@vger.kernel.org>,
	Linux PM <linux-pm@vger.kernel.org>,
	Linux PCI <linux-pci@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Bjorn Helgaas <helgaas@kernel.org>
Subject: Re: [PATCH v1 0/2] PCI: ACPI: PM: Rework root bus wakeup notification setup and wakeup source registration
Date: Tue, 9 Dec 2025 14:56:36 +0100	[thread overview]
Message-ID: <168f173d-0d1a-49b0-9461-72f8fb0fc701@gmx.de> (raw)
In-Reply-To: <CAJZ5v0jAH9FZrO5AvVF90zgy-0EeM+rsB6Zf8cMf+sR8=FFuDA@mail.gmail.com>

Am 09.12.25 um 12:31 schrieb Rafael J. Wysocki:

> On Mon, Dec 8, 2025 at 9:01 PM Armin Wolf <W_Armin@gmx.de> wrote:
>> Am 08.12.25 um 13:09 schrieb Rafael J. Wysocki:
>>
>>> Hi All,
>>>
>>> Patch [1/2] updates the registration of PCI root bus wakeup notification setup
>>> in order to simplify code in pci_acpi_wake_bus() and to prepare for the other
>>> change.  This is not expected to affect functionality.
>>>
>>> Patch [2/2] modifies the ACPI PM notifier registration to add wakeup sources
>>> under devices that are going to be affected by wakeup handling instead of
>>> registering them under ACPI companions of those devices (rationale explained
>>> in the patch changelog).  This will change the sysfs layout (wakeup source
>>> devices associated with PCI wakeup are now going to appear under PCI devices
>>> and the host bridge device), but it is not expected to affect user space
>>> adversely.
>>>
>>> Thanks!
>> I tested both patches, and the sysfs layout changes as expected:
>>
>> $ readlink /sys/class/wakeup/wakeup*/device
>> ../../../device:00
>> ../../../device:1a
>> ../../../device:1f
>> ../../../device:20
>> ../../../0000:00:08.1
>> ../../../device:36
>> ../../../device:31
>> ../../../device:32
>> ../../../device:3c
>> ../../../0000:01:00.0
>> ../../../device:3d
>> ../../../PNP0C02:00
>> ../../../0000:02:00.0
>> ../../../device:3e
>> ../../../device:3f
>> ../../../device:46
>> ../../../0000:04:00.0
>> ../../../device:47
>> ../../../0000:05:00.0
>> ../../../device:57
>> ../../../0000:05:08.0
>> ../../../device:59
>> ../../../device:01
>> ../../../0000:05:09.0
>> ../../../device:5b
>> ../../../0000:05:0a.0
>> ../../../device:5d
>> ../../../0000:05:0b.0
>> ../../../device:5f
>> ../../../0000:05:0c.0
>> ../../../device:74
>> ../../../0000:05:0d.0
>> ../../../device:5a
>> ../../../device:3a
>> ../../../device:5c
>> ../../../device:60
>> ../../../device:75
>> ../../../LNXVIDEO:00
>> ../../../device:22
>> ../../../PNP0C02:02
>> ../../../device:25
>> ../../../device:2b
>> ../../../device:24
>> ../../../device:37
>> ../../../0000:00:01.1
>> ../../../PNP0A08:00
>> ../../../LNXPWRBN:00
>> ../../../AMDI0010:00
>> ../../../AMDI0030:00
>> ../../../00:02
>> ../../../alarmtimer.0.auto
>> ../../../PNP0C0C:00
>> ../../../0000:0b:00.0
>> ../../../AMDIF031:00
>> ../../../PNP0C14:00
>> ../../../device:0a
>> ../../../PNP0C14:01
>> ../../../PNP0C14:02
>> ../../../PNP0C14:03
>> ../../../0000:0e:00.3
>> ../../../0000:0e:00.4
>> ../../../0000:0f:00.0
>> ../../../5-2
>> ../../../1-5.3
>> ../../hidpp_battery_0
>> ../../../device:44
>> ../../../0000:00:02.1
>> ../../../device:76
>> ../../../device:0b
>>
>> turns into:
>>
>> $ readlink /sys/class/wakeup/wakeup*/device
>> ../../../0000:00:00.0
>> ../../../0000:00:04.0
>> ../../../0000:00:08.0
>> ../../../0000:00:08.1
>> ../../../0000:00:08.1
>> ../../../0000:00:08.3
>> ../../../0000:00:14.0
>> ../../../0000:00:14.3
>> ../../../0000:01:00.0
>> ../../../0000:01:00.0
>> ../../../0000:02:00.0
>> ../../../0000:00:00.2
>> ../../../0000:02:00.0
>> ../../../0000:03:00.0
>> ../../../0000:03:00.1
>> ../../../0000:04:00.0
>> ../../../0000:04:00.0
>> ../../../0000:05:00.0
>> ../../../0000:05:00.0
>> ../../../0000:05:08.0
>> ../../../0000:05:08.0
>> ../../../0000:05:09.0
>> ../../../0000:00:01.0
>> ../../../0000:05:09.0
>> ../../../0000:05:0a.0
>> ../../../0000:05:0a.0
>> ../../../0000:05:0b.0
>> ../../../0000:05:0b.0
>> ../../../0000:05:0c.0
>> ../../../0000:05:0c.0
>> ../../../0000:05:0d.0
>> ../../../0000:05:0d.0
>> ../../../0000:08:00.0
>> ../../../0000:00:01.1
>> ../../../0000:09:00.0
>> ../../../0000:0b:00.0
>> ../../../0000:0c:00.0
>> ../../../0000:0e:00.0
>> ../../../0000:0e:00.1
>> ../../../0000:0e:00.2
>> ../../../0000:0e:00.3
>> ../../../0000:0e:00.4
>> ../../../0000:0e:00.6
>> ../../../0000:0f:00.0
>> ../../../0000:00:01.1
>> ../../../pci0000:00
>> ../../../LNXPWRBN:00
>> ../../../AMDI0010:00
>> ../../../AMDI0030:00
>> ../../../00:02
>> ../../../alarmtimer.0.auto
>> ../../../PNP0C0C:00
>> ../../../0000:0b:00.0
>> ../../../AMDIF031:00
>> ../../../PNP0C14:00
>> ../../../0000:00:02.0
>> ../../../PNP0C14:01
>> ../../../PNP0C14:02
>> ../../../PNP0C14:03
>> ../../../0000:0e:00.3
>> ../../../0000:0e:00.4
>> ../../../0000:0f:00.0
>> ../../../5-2
>> ../../../1-5.3
>> ../../hidpp_battery_0
>> ../../../0000:00:02.1
>> ../../../0000:00:02.1
>> ../../../0000:00:02.2
>> ../../../0000:00:03.0
>>
>> The remaining ACPI devices are likely caused by device drivers based upon struct acpi_driver.
>> I was unable to test the wakeup itself since suspend is currently broken due to issues with
>> cpuidle,
> Have you reported those?  What cpuidle driver is involved?
>
> If you happen to be using the ACPI idle driver, there is a regression
> between 6.18-rc7 and final 6.18 due to a missing revert, but final
> 6.18 should be as expected.

If i remember correctly the official 6.18 kernel was not affected by this, i used the the bleeding-edge
branch when building the test kernel.

I will do some further debugging once i am back home.

Thanks,
Armin Wolf

>> but i suspect that this has nothing to do with the patch series.
> Right, cpuidle is entirely orthogonal to this.
>
>> So for the whole series:
>> Reviewed-by: Armin Wolf <W_Armin@gmx.de>
> Thank you!

  reply	other threads:[~2025-12-09 13:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-08 12:09 [PATCH v1 0/2] PCI: ACPI: PM: Rework root bus wakeup notification setup and wakeup source registration Rafael J. Wysocki
2025-12-08 12:11 ` [PATCH v1 1/2] PCI: ACPI: PM: Rework root bus notification setup Rafael J. Wysocki
2025-12-08 12:13 ` [PATCH v1 2/2] ACPI: PM: Register wakeup sources under physical devices Rafael J. Wysocki
2025-12-08 20:01 ` [PATCH v1 0/2] PCI: ACPI: PM: Rework root bus wakeup notification setup and wakeup source registration Armin Wolf
2025-12-09 11:31   ` Rafael J. Wysocki
2025-12-09 13:56     ` Armin Wolf [this message]
2025-12-09 21:59       ` Armin Wolf
2025-12-09 22:18         ` Rafael J. Wysocki
2025-12-10  0:29           ` Armin Wolf
2025-12-10  1:56             ` Rafael J. Wysocki
2025-12-20 12:56               ` Armin Wolf

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=168f173d-0d1a-49b0-9461-72f8fb0fc701@gmx.de \
    --to=w_armin@gmx.de \
    --cc=helgaas@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rafael@kernel.org \
    /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