public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Suggestion for improving the handling of GPE enabling.
@ 2005-03-08 22:23 Nigel Cunningham
       [not found] ` <1110318037.3663.19.camel-r49W/1Cwd2ff0s6lnCXPX/uOuaPYTxhvJwvTLr3MMZM@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Nigel Cunningham @ 2005-03-08 22:23 UTC (permalink / raw)
  To: ACPI List

Hi all.

Thinking about this GPE enabling issue some more, I'm wondering if the
best solution would be to switch the enabling/disabling to be a handler
registered with the driver model. In this way, the action taken could be
better tied to what's actually happening (I'm assuming Pavel's
pm_message_t changes are applied). Something like:

PMSG_FREEZE: Disable GPEs.
PMSG_SUSPEND: Enable wake GPEs.
PMSG_ON: Disable wake GPEs, enable normal GPEs.

Regards,

Nigel
-- 
Nigel Cunningham
Software Engineer, Canberra, Australia
http://www.cyclades.com
Bus: +61 (2) 6291 9554; Hme: +61 (2) 6292 8028;  Mob: +61 (417) 100 574

Maintainer of Suspend2 Kernel Patches http://suspend2.net



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: Suggestion for improving the handling of GPE enabling.
@ 2005-03-11  2:30 Li, Shaohua
  0 siblings, 0 replies; 11+ messages in thread
From: Li, Shaohua @ 2005-03-11  2:30 UTC (permalink / raw)
  To: Matthew Garrett, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

>> > > an ACPI bus, we possibly can't show the bus hierarchy.
>> >
>> > Maybe ACPI device should be "under" real hardware one?
>>
>> I suspect that the current sysfs device tree hierarchy is largely
>> fiction and that Linux would be better served by taking advantage of
the
>> hierarchy embodied in the DSDT.
>>
>> The "ACPI devices" such as power, sleep, lid as well as the battery
are
>> represented at the root level in the DSDT.
>
>Are the ACPI HID names exposed to userspace yet? At the moment
userspace
>tools need to try loading every ACPI module. If the HIDs were exported
>via sysfs and the ACPI drivers exported the devices they could bind to,
>we could use hotplug to autoload the correct drivers.
Sure, after we add ACPI bus support, the ACPI module should be loaded
dynamically. 
This makes me think another issue. You know PNPACPI also could export
the HIDs to user space. We plan to add the hotplug in PNPACPI. So the
question is who (PNP layer or ACPI) should export the HID?

Thanks,
Shaohua


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: Suggestion for improving the handling of GPE enabling.
@ 2005-03-11  4:50 Li, Shaohua
  0 siblings, 0 replies; 11+ messages in thread
From: Li, Shaohua @ 2005-03-11  4:50 UTC (permalink / raw)
  To: Brown, Len, Pavel Machek; +Cc: ncunningham-3EexvZdKGZRWk0Htik3J/w, ACPI List

Hi Len,
>On Wed, 2005-03-09 at 17:21, Pavel Machek wrote:
>
>> > 4. ACPI devices are in many different physical buses. If we just
define
>> > an ACPI bus, we possibly can't show the bus hierarchy.
>>
>> Maybe ACPI device should be "under" real hardware one?
>
>I suspect that the current sysfs device tree hierarchy is largely
>fiction and that Linux would be better served by taking advantage of
the
>hierarchy embodied in the DSDT.
>
>The "ACPI devices" such as power, sleep, lid as well as the battery are
>represented at the root level in the DSDT.
Do you mean the ACPI bus should only include the devices at the root
level of DSDT? I agree we should not include all devices defined in DSDT
on ACPI bus, since apparently many devices aren't in ACPI bus. But there
is a dilemma. We add ACPI bus to device tree, then we can use device
core routines such as '.probe, .match'. To me, this should replace
current ACPI device/driver register mechanism and use standard. But if
only part of devices defined in DSDT is in ACPI bus, some devices can't
use the mechanism. What's up? Maintain two mechanisms?

Thanks,
Shaohua


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: Suggestion for improving the handling of GPE enabling.
@ 2005-03-11  5:05 Brown, Len
  0 siblings, 0 replies; 11+ messages in thread
From: Brown, Len @ 2005-03-11  5:05 UTC (permalink / raw)
  To: Li, Shaohua, Pavel Machek; +Cc: ncunningham-3EexvZdKGZRWk0Htik3J/w, ACPI List

>Hi Len,
>>On Wed, 2005-03-09 at 17:21, Pavel Machek wrote:
>>
>>> > 4. ACPI devices are in many different physical buses. If 
>we just define
>>> > an ACPI bus, we possibly can't show the bus hierarchy.
>>>
>>> Maybe ACPI device should be "under" real hardware one?
>>
>>I suspect that the current sysfs device tree hierarchy is largely
>>fiction and that Linux would be better served by taking 
>advantage of the
>>hierarchy embodied in the DSDT.
>>
>>The "ACPI devices" such as power, sleep, lid as well as the 
>battery are
>>represented at the root level in the DSDT.

>Do you mean the ACPI bus should only include the devices at 
>the root level of DSDT? I agree we should not include all 
>devices defined in DSDT on ACPI bus, since apparently many 
>devices aren't in ACPI bus. But there is a dilemma. We add 
>ACPI bus to device tree, then we can use device core routines 
>such as '.probe, .match'. To me, this should replace current 
>ACPI device/driver register mechanism and use standard. But if 
>only part of devices defined in DSDT is in ACPI bus, some 
>devices can't use the mechanism. What's up? Maintain two mechanisms?

I belive that on an ACPI-enabled sytem, the "root bus" and the "ACPI
bus" are synonymous.  The other busses hang off the root bus.

/sys/devices on an ACPI-enabled system should be constructed
with the aid of the ACPI sub-system, because the topology
information is embodied in the DSDT.  It should include
all devices enumerated in the DSDT/SSDT, whose drivers should
use the "core" driver methods -- just like any other driver.

I do not agree with suggestions that the linux device
tree is God's truth and that it should have symbolic links into
/sys/firmware/acpi.  I believe that /sys/devices should get it right in
the first place, should include all the devices, and /sys/firmware/acpi
should be deleted.

thanks,
-Len


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: Suggestion for improving the handling of GPE enabling.
@ 2005-03-11  5:43 Li, Shaohua
  0 siblings, 0 replies; 11+ messages in thread
From: Li, Shaohua @ 2005-03-11  5:43 UTC (permalink / raw)
  To: Brown, Len, Pavel Machek; +Cc: ncunningham-3EexvZdKGZRWk0Htik3J/w, ACPI List

>I belive that on an ACPI-enabled sytem, the "root bus" and the "ACPI
bus"
>are synonymous.  The other busses hang off the root bus.
>
>/sys/devices on an ACPI-enabled system should be constructed
>with the aid of the ACPI sub-system, because the topology
>information is embodied in the DSDT.  It should include
>all devices enumerated in the DSDT/SSDT, whose drivers should
>use the "core" driver methods -- just like any other driver.
>
>I do not agree with suggestions that the linux device
>tree is God's truth and that it should have symbolic links into
>/sys/firmware/acpi.  I believe that /sys/devices should get it right in
the
>first place, should include all the devices, and /sys/firmware/acpi
should
>be deleted.
Maintain a bus tree just like the ACPI DSDT? This possibly isn't easy.
Linux device core model seems hasn't a mechanism to show the
relationship of two buses. 

Thanks,
Shaohua


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-03-11  5:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-08 22:23 Suggestion for improving the handling of GPE enabling Nigel Cunningham
     [not found] ` <1110318037.3663.19.camel-r49W/1Cwd2ff0s6lnCXPX/uOuaPYTxhvJwvTLr3MMZM@public.gmane.org>
2005-03-09  1:31   ` Li Shaohua
     [not found]     ` <1110331896.12642.16.camel-U5EdaLXB8smDugQYiPIPGdh3ngVCH38I@public.gmane.org>
2005-03-09 22:21       ` Pavel Machek
     [not found]         ` <20050309222122.GA32516-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-03-10  5:10           ` Len Brown
2005-03-10 10:11             ` Pavel Machek
2005-03-10 13:30             ` Matthew Garrett
2005-03-10 17:18               ` Karol Kozimor
  -- strict thread matches above, loose matches on Subject: below --
2005-03-11  2:30 Li, Shaohua
2005-03-11  4:50 Li, Shaohua
2005-03-11  5:05 Brown, Len
2005-03-11  5:43 Li, Shaohua

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox