From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: "Moore, Robert" <robert.moore@intel.com>,
Matthew Garrett <mjg@redhat.com>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
Len Brown <lenb@kernel.org>,
Jesse Barnes <jbarnes@virtuousgeek.org>
Subject: Re: [RFC][PATCH 0/3] Introduce GPE refcounting (was: Re: Recent GPE patches - some questions.)
Date: Sun, 14 Feb 2010 03:24:17 +0100 [thread overview]
Message-ID: <201002140324.17650.rjw@sisk.pl> (raw)
In-Reply-To: <1266077283.25058.1.camel@maxim-laptop>
On Saturday 13 February 2010, Maxim Levitsky wrote:
> On Thu, 2010-02-11 at 21:34 +0100, Rafael J. Wysocki wrote:
> > On Thursday 11 February 2010, Maxim Levitsky wrote:
> > > On Wed, 2010-02-10 at 22:36 +0100, Rafael J. Wysocki wrote:
> > > > On Wednesday 10 February 2010, Maxim Levitsky wrote:
> > > > > On Sun, 2010-02-07 at 03:17 +0100, Rafael J. Wysocki wrote:
> > > > > > On Sunday 07 February 2010, Rafael J. Wysocki wrote:
> > > > > > > Hi,
> > > > > > >
> > > > > > > On Wednesday 03 February 2010, Moore, Robert wrote:
> > > > > > > > Matthew,
> > > > > > > >
> > > > > > > > Thanks for your response to my questions.
> > > > > > > >
> > > > > > > > I've been thinking about these interfaces:
> > > > > > > >
> > > > > > > > acpi_ref_runtime_gpe
> > > > > > > > acpi_ref_wakeup_gpe
> > > > > > > > acpi_unref_runtime_gpe
> > > > > > > > acpi_unref_wakeup_gpe
> > > > > > > >
> > > > >
> > > > > One minor, mostly off-topic question.
> > > > > Currently to enable static wakeup one has to write /proc/acpi/wakeup.
> > > >
> > > > That depends on the device. For PCI devices there's another interface for
> > > > that, which is /sys/devices/.../power/wakeup .
> > > >
> > > > > Do you consider propagating device wakeup settings to acpi,
> > > > > so /proc/acpi/wakeup could finally be deprecated?
> > > >
> > > > We already do that for PCI devices.
> > >
> > > Not in 2.6.33-rc6
> > >
> > > maxim@maxim-laptop:~$ cat /proc/acpi/wakeup
> > > Device S-state Status Sysfs node
> > > UHC1 S3 disabled pci:0000:00:1d.0
> > > UHC2 S3 disabled pci:0000:00:1d.1
> > > UHC3 S3 disabled pci:0000:00:1d.2
> > > UHC4 S3 disabled pci:0000:00:1a.0
> > > UHC5 S3 disabled pci:0000:00:1a.1
> > > EHC1 S3 disabled pci:0000:00:1d.7
> > > EHC2 S3 disabled pci:0000:00:1a.7
> > > EXP3 S4 disabled pci:0000:00:1c.2
> > > EXP5 S4 disabled
> > > EXP6 S4 disabled
> > > AZAL S4 disabled pci:0000:00:1b.0
> > > MODM S4 disabled
> > >
> > > maxim@maxim-laptop:~$ echo enabled | sudo tee /sys/devices/pci0000
> > > \:00/0000\:00\:1d.0/power/wakeup
> > > enabled
> > >
> > > cat /sys/devices/pci0000\:00/0000\:00\:1d.0/power/wakeup enabled
> > >
> > >
> > > maxim@maxim-laptop:~$ cat /proc/acpi/wakeup
> > > Device S-state Status Sysfs node
> > > UHC1 S3 disabled pci:0000:00:1d.0
> > > UHC2 S3 disabled pci:0000:00:1d.1
> > > UHC3 S3 disabled pci:0000:00:1d.2
> > > UHC4 S3 disabled pci:0000:00:1a.0
> > > UHC5 S3 disabled pci:0000:00:1a.1
> > > EHC1 S3 disabled pci:0000:00:1d.7
> > > EHC2 S3 disabled pci:0000:00:1a.7
> > > EXP3 S4 disabled pci:0000:00:1c.2
> > > EXP5 S4 disabled
> > > EXP6 S4 disabled
> > > AZAL S4 disabled pci:0000:00:1b.0
> > > MODM S4 disabled
> > >
> > >
> > > Or am I mistaken somehow?
> >
> > You are. Please ignore the "Status" column in /proc/acpi/wakeup, it shows
> > the value of a flag that's not used for PCI devices (unless you set it via
> > /proc/acpi/wakeup
>
> It is indeed true.
>
> PnP device too are supported in this way?
I don't know really.
> Then I think it would be very nice to remove all pci and pnp devices
> from this list to avoid confusion.
I wouldn't do that, because it allows us to see easily which devices are seen
by ACPI as wakeup-capable. Perhaps the format of the file may be changed,
though.
Rafael
next prev parent reply other threads:[~2010-02-14 2:23 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-29 20:30 Recent GPE patches - some questions Moore, Robert
2010-02-01 22:36 ` Matthew Garrett
2010-02-02 23:02 ` Moore, Robert
2010-02-06 23:31 ` Rafael J. Wysocki
2010-02-07 2:17 ` [RFC][PATCH 0/3] Introduce GPE refcounting (was: Re: Recent GPE patches - some questions.) Rafael J. Wysocki
2010-02-07 2:22 ` [RFC][PATCH 1/3] ACPI: Add infrastructure for refcounting GPE consumers Rafael J. Wysocki
2010-02-07 2:23 ` [RFC][PATCH 2/3] ACPI: Modify GPE consumers to use GPE refcounting Rafael J. Wysocki
2010-02-07 2:24 ` [RFC][PATCH 3/3] ACPI: Remove old GPE API and transition code entirely to new one Rafael J. Wysocki
2010-02-07 11:56 ` [Update] Re: [RFC][PATCH 0/3] Introduce GPE refcounting (was: Re: Recent GPE patches - some questions.) Rafael J. Wysocki
2010-02-07 11:58 ` [Update][RFC][PATCH 1/3] ACPI: Add infrastructure for refcounting GPE consumers Rafael J. Wysocki
2010-02-07 11:58 ` [Update][RFC][PATCH 2/3] ACPI: Modify GPE consumers to use GPE refcounting Rafael J. Wysocki
2010-02-07 11:59 ` [Update][RFC][PATCH 3/3] ACPI: Remove old GPE API and transition code entirely to new one Rafael J. Wysocki
2010-02-10 21:29 ` [RFC][PATCH 0/3] Introduce GPE refcounting (was: Re: Recent GPE patches - some questions.) Maxim Levitsky
2010-02-10 21:36 ` Rafael J. Wysocki
2010-02-11 17:36 ` Maxim Levitsky
2010-02-11 20:34 ` Rafael J. Wysocki
2010-02-13 16:08 ` Maxim Levitsky
2010-02-14 2:24 ` Rafael J. Wysocki [this message]
2010-02-10 21:36 ` Recent GPE patches - some questions Moore, Robert
2010-02-11 22:51 ` [PATCH] ACPI: Use GPE reference counting to support shared GPEs (was: Re: Recent GPE patches - some questions.) Rafael J. Wysocki
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=201002140324.17650.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=jbarnes@virtuousgeek.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=maximlevitsky@gmail.com \
--cc=mjg@redhat.com \
--cc=robert.moore@intel.com \
/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