* Re: problems about ACPI sysfs convert work
[not found] <58A36151585E4047913F40517D307BAE01719E@pdsmsx404.ccr.corp.intel.com>
@ 2006-11-20 11:18 ` Thomas Renninger
2006-11-21 16:34 ` Matthew Garrett
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Thomas Renninger @ 2006-11-20 11:18 UTC (permalink / raw)
To: Zhang, Rui; +Cc: linux-acpi, Brown, Len, Li, Shaohua, Yu, Luming, Kay Sievers
On Mon, 2006-11-20 at 18:10 +0800, Zhang, Rui wrote:
> Hello, lists
> I’m doing the ACPI sysfs convert work now. And I have some problems when duplicating some procfs interfaces to sysfs.
> Under driver model (this will be available soon), files under /proc/acpi/xxx(driver)/yyy(device)/ will be duplicated under /sys/device/ as they are properties of individual devices.
> But I still have some trouble on dealing with the files under /prco/acpi, including “alarm”, “sleep”, “wakeup”, “debug_layer”, “debug_level”, “dsdt”, “fadt”, “event” and “info”.
> Following is a proposal as well as some problem and I’m not quite sure about the places all these attributes should be located at. I wish to get some advice from you, and any comment is welcome☺.
>
> 1. Where should “alarm” be located? Another problem is whether we should put a duration into this file instead of a future time.
Don't know, never used...
> 2. “sleep” is already marked as deprecated because /sys/power/state has the same function. I won’t do the repeated work again.
Yep.
> 3. “wakeup” should not exist, but be an attribute of individual devices kobjects.
Maybe the devices can be linked
like /sys/.../wakeup/${links_to_wakeup_devices}
So that userspace does not need to search over the whole device tree to
find them?
> 4. “debug_layer” and “debug_level” are not decided yet. I think making them into two directories and locating them under /sys/bus/acpi is one choice.
> 5. Is “dsdt” and “fadt” still needed in sysfs? This is not necessary because the acpidump tools are quite handy.
> If “Yes”, are other tables also needed, e.g. multiple SSDTs and dynamically loaded op-regions? This is much more difficult, as they can’t be distinguished sometimes.
> And where should these tables locate?
IMO they can vanish (at least temporarily).
If really needed (AFAIK explicitly loaded tables via "Load(addr,)"
statement that are not listed in RSDT/XSDT can't be found by acpidump),
a /sys/../tables/* can still be implemented at later time? We are also
not able to grab them atm...
> If the answer is “No”, that’s good news for me. ☺.
> 6. “info” shows the ACPICA version. Is it ok to register “info” as an attribute of ACPI bus kobject?
Thomas
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: problems about ACPI sysfs convert work
2006-11-20 11:18 ` problems about ACPI sysfs convert work Thomas Renninger
@ 2006-11-21 16:34 ` Matthew Garrett
2006-11-22 8:13 ` Zhang Rui
2006-11-22 22:12 ` Len Brown
2006-11-22 1:28 ` Shaohua Li
2006-11-22 22:18 ` Len Brown
2 siblings, 2 replies; 10+ messages in thread
From: Matthew Garrett @ 2006-11-21 16:34 UTC (permalink / raw)
To: Thomas Renninger
Cc: Zhang, Rui, linux-acpi, Brown, Len, Li, Shaohua, Yu, Luming,
Kay Sievers
(I seem to be missing the original mail here...)
On Mon, Nov 20, 2006 at 12:18:13PM +0100, Thomas Renninger wrote:
> > Hello, lists
> > I’m doing the ACPI sysfs convert work now. And I have some problems when duplicating some procfs interfaces to sysfs.
> > Under driver model (this will be available soon), files under /proc/acpi/xxx(driver)/yyy(device)/ will be duplicated under /sys/device/ as they are properties of individual devices.
> > But I still have some trouble on dealing with the files under /prco/acpi, including “alarm”, “sleep”, “wakeup”, “debug_layer”, “debug_level”, “dsdt”, “fadt”, “event” and “info”.
> > Following is a proposal as well as some problem and I’m not quite sure about the places all these attributes should be located at. I wish to get some advice from you, and any comment is welcome☺.
> >
> > 1. Where should “alarm” be located? Another problem is whether we should put a duration into this file instead of a future time.
> Don't know, never used...
This should presumably just be handled by the clock driver rather than
the ACPI subsystem. There's only a tiny amount of acpi-related code in
the driver, and that's information that we could just export to the
clock instead.
--
Matthew Garrett | mjg59@srcf.ucam.org
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: problems about ACPI sysfs convert work
2006-11-20 11:18 ` problems about ACPI sysfs convert work Thomas Renninger
2006-11-21 16:34 ` Matthew Garrett
@ 2006-11-22 1:28 ` Shaohua Li
2006-11-22 7:53 ` Zhang Rui
2006-11-22 22:18 ` Len Brown
2 siblings, 1 reply; 10+ messages in thread
From: Shaohua Li @ 2006-11-22 1:28 UTC (permalink / raw)
To: trenn; +Cc: Zhang, Rui, linux-acpi, Brown, Len, Yu, Luming, Kay Sievers
On Mon, 2006-11-20 at 12:18 +0100, Thomas Renninger wrote:
> On Mon, 2006-11-20 at 18:10 +0800, Zhang, Rui wrote:
> > Hello, lists
> > I’m doing the ACPI sysfs convert work now. And I have some problems when duplicating some procfs interfaces to sysfs.
> > Under driver model (this will be available soon), files under /proc/acpi/xxx(driver)/yyy(device)/ will be duplicated under /sys/device/ as they are properties of individual devices.
> > But I still have some trouble on dealing with the files under /prco/acpi, including “alarm”, “sleep”, “wakeup”, “debug_layer”, “debug_level”, “dsdt”, “fadt”, “event” and “info”.
> > Following is a proposal as well as some problem and I’m not quite sure about the places all these attributes should be located at. I wish to get some advice from you, and any comment is welcome☺.
> >
> > 1. Where should “alarm” be located? Another problem is whether we should put a duration into this file instead of a future time.
> Don't know, never used...
> > 2. “sleep” is already marked as deprecated because /sys/power/state has the same function. I won’t do the repeated work again.
> Yep.
> > 3. “wakeup” should not exist, but be an attribute of individual devices kobjects.
> Maybe the devices can be linked
> like /sys/.../wakeup/${links_to_wakeup_devices}
> So that userspace does not need to search over the whole device tree to
> find them?
Sounds like a good idea. But this should be done in driver core. Other
devices like pci might support wakeup too. device declaims to support
wakeup, and driver core create a link to /sys/.../wakeup/xxx. I'd
suggest don't do this in acpi part.
Thanks,
Shaohua
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: problems about ACPI sysfs convert work
2006-11-22 1:28 ` Shaohua Li
@ 2006-11-22 7:53 ` Zhang Rui
2006-11-22 10:49 ` Thomas Renninger
0 siblings, 1 reply; 10+ messages in thread
From: Zhang Rui @ 2006-11-22 7:53 UTC (permalink / raw)
To: Shaohua Li, trenn; +Cc: linux-acpi, Brown, Len, Yu, Luming, Kay Sievers
On Wed, 2006-11-22 at 09:28 +0800, Shaohua Li wrote:
> On Mon, 2006-11-20 at 12:18 +0100, Thomas Renninger wrote:
> > On Mon, 2006-11-20 at 18:10 +0800, Zhang, Rui wrote:
> > > Hello, lists
> > > I’m doing the ACPI sysfs convert work now. And I have some problems when duplicating some procfs interfaces to sysfs.
> > > Under driver model (this will be available soon), files under /proc/acpi/xxx(driver)/yyy(device)/ will be duplicated under /sys/device/ as they are properties of individual devices.
> > > But I still have some trouble on dealing with the files under /prco/acpi, including “alarm”, “sleep”, “wakeup”, “debug_layer”, “debug_level”, “dsdt”, “fadt”, “event” and “info”.
> > > Following is a proposal as well as some problem and I’m not quite sure about the places all these attributes should be located at. I wish to get some advice from you, and any comment is welcome☺.
> > >
> > > 1. Where should “alarm” be located? Another problem is whether we should put a duration into this file instead of a future time.
> > Don't know, never used...
> > > 2. “sleep” is already marked as deprecated because /sys/power/state has the same function. I won’t do the repeated work again.
> > Yep.
> > > 3. “wakeup” should not exist, but be an attribute of individual devices kobjects.
> > Maybe the devices can be linked
> > like /sys/.../wakeup/${links_to_wakeup_devices}
> > So that userspace does not need to search over the whole device tree to
> > find them?
Sounds great. I'll have a try.
> Sounds like a good idea. But this should be done in driver core. Other
> devices like pci might support wakeup too. device declaims to support
> wakeup, and driver core create a link to /sys/.../wakeup/xxx. I'd
> suggest don't do this in acpi part.
>
Yes. That makes sense. But I don't want too many files to be involved,
especially at the beginning. :). This should be done in another patch in
the future if everything goes well.
Thanks,
Ray
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: problems about ACPI sysfs convert work
2006-11-21 16:34 ` Matthew Garrett
@ 2006-11-22 8:13 ` Zhang Rui
2006-11-23 2:29 ` Len Brown
2006-11-22 22:12 ` Len Brown
1 sibling, 1 reply; 10+ messages in thread
From: Zhang Rui @ 2006-11-22 8:13 UTC (permalink / raw)
To: Matthew Garrett
Cc: Thomas Renninger, linux-acpi, Brown, Len, Li, Shaohua, Yu, Luming,
Kay Sievers
On Tue, 2006-11-21 at 16:34 +0000, Matthew Garrett wrote:
> (I seem to be missing the original mail here...)
>
> On Mon, Nov 20, 2006 at 12:18:13PM +0100, Thomas Renninger wrote:
> > > Hello, lists
> > > I’m doing the ACPI sysfs convert work now. And I have some problems when duplicating some procfs interfaces to sysfs.
> > > Under driver model (this will be available soon), files under /proc/acpi/xxx(driver)/yyy(device)/ will be duplicated under /sys/device/ as they are properties of individual devices.
> > > But I still have some trouble on dealing with the files under /prco/acpi, including “alarm”, “sleep”, “wakeup”, “debug_layer”, “debug_level”, “dsdt”, “fadt”, “event” and “info”.
> > > Following is a proposal as well as some problem and I’m not quite sure about the places all these attributes should be located at. I wish to get some advice from you, and any comment is welcome☺.
> > >
> > > 1. Where should “alarm” be located? Another problem is whether we should put a duration into this file instead of a future time.
> > Don't know, never used...
>
> This should presumably just be handled by the clock driver rather than
> the ACPI subsystem. There's only a tiny amount of acpi-related code in
> the driver, and that's information that we could just export to the
> clock instead.
>
I prefer to locate "alarm" under /sys/power, together with "wakeup".
Yes, you are right that it does have a lot to do with the clock driver.
But I think this patch series should impact other parts little. You
know, the main purpose of this patch series is just to duplicate the
procfs function in sysfs. So only the functions for sysfs interface will
be added in the first step. :)
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: problems about ACPI sysfs convert work
2006-11-22 7:53 ` Zhang Rui
@ 2006-11-22 10:49 ` Thomas Renninger
0 siblings, 0 replies; 10+ messages in thread
From: Thomas Renninger @ 2006-11-22 10:49 UTC (permalink / raw)
To: Zhang Rui; +Cc: Shaohua Li, linux-acpi, Brown, Len, Yu, Luming, Kay Sievers
On Wed, 2006-11-22 at 15:53 +0800, Zhang Rui wrote:
> On Wed, 2006-11-22 at 09:28 +0800, Shaohua Li wrote:
> > On Mon, 2006-11-20 at 12:18 +0100, Thomas Renninger wrote:
> > > On Mon, 2006-11-20 at 18:10 +0800, Zhang, Rui wrote:
> > > > Hello, lists
> > > > I’m doing the ACPI sysfs convert work now. And I have some problems when duplicating some procfs interfaces to sysfs.
> > > > Under driver model (this will be available soon), files under /proc/acpi/xxx(driver)/yyy(device)/ will be duplicated under /sys/device/ as they are properties of individual devices.
> > > > But I still have some trouble on dealing with the files under /prco/acpi, including “alarm”, “sleep”, “wakeup”, “debug_layer”, “debug_level”, “dsdt”, “fadt”, “event” and “info”.
> > > > Following is a proposal as well as some problem and I’m not quite sure about the places all these attributes should be located at. I wish to get some advice from you, and any comment is welcome☺.
> > > >
> > > > 1. Where should “alarm” be located? Another problem is whether we should put a duration into this file instead of a future time.
> > > Don't know, never used...
> > > > 2. “sleep” is already marked as deprecated because /sys/power/state has the same function. I won’t do the repeated work again.
> > > Yep.
> > > > 3. “wakeup” should not exist, but be an attribute of individual devices kobjects.
> > > Maybe the devices can be linked
> > > like /sys/.../wakeup/${links_to_wakeup_devices}
> > > So that userspace does not need to search over the whole device tree to
> > > find them?
> Sounds great. I'll have a try.
> > Sounds like a good idea. But this should be done in driver core. Other
> > devices like pci might support wakeup too. device declaims to support
> > wakeup, and driver core create a link to /sys/.../wakeup/xxx. I'd
> > suggest don't do this in acpi part.
> >
> Yes. That makes sense. But I don't want too many files to be involved,
> especially at the beginning. :). This should be done in another patch in
> the future if everything goes well.
Yep, enabling the core ACPI sysfs stuff first sounds like a good idea?
(I am especially looking for ACPI module autoloading..., probing blindly
all ACPI modules on all x86 machines is really ugly atm...) Getting
every detail duplicated or not from /proc/acpi can later be integrated
as needed. Small on top patches later are easier to review and less
error prone, once the basic stuff runs fine?
Thomas
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: problems about ACPI sysfs convert work
2006-11-21 16:34 ` Matthew Garrett
2006-11-22 8:13 ` Zhang Rui
@ 2006-11-22 22:12 ` Len Brown
2006-11-22 22:25 ` Matthew Garrett
1 sibling, 1 reply; 10+ messages in thread
From: Len Brown @ 2006-11-22 22:12 UTC (permalink / raw)
To: Matthew Garrett
Cc: Thomas Renninger, Zhang, Rui, linux-acpi, Li, Shaohua, Yu, Luming,
Kay Sievers
On Tuesday 21 November 2006 11:34, Matthew Garrett wrote:
> > > I’m doing the ACPI sysfs convert work now. And I have some problems when duplicating some procfs interfaces to sysfs.
> > > Under driver model (this will be available soon), files under /proc/acpi/xxx(driver)/yyy(device)/ will be duplicated under /sys/device/ as they are properties of individual devices.
> > > But I still have some trouble on dealing with the files under /prco/acpi, including “alarm”, “sleep”, “wakeup”, “debug_layer”, “debug_level”, “dsdt”, “fadt”, “event” and “info”.
> > > Following is a proposal as well as some problem and I’m not quite sure about the places all these attributes should be located at. I wish to get some advice from you, and any comment is welcome☺.
> > >
> > > 1. Where should “alarm” be located? Another problem is whether we should put a duration into this file instead of a future time.
> > Don't know, never used...
>
> This should presumably just be handled by the clock driver rather than
> the ACPI subsystem. There's only a tiny amount of acpi-related code in
> the driver, and that's information that we could just export to the
> clock instead.
Matthew, exactly what code in "the clock driver" to you refer to that
should be involved here?
Re: duration vs. absolute time.
Currently use use absolute time, and that capability needs to stay.
I requested also a sleep duration capability.
I'd like to use it to make the suspend/resume stress test suite a little better,
but others might like it for "real" use as well.
Either a different sysfs file, or a special syntax like preceeding the time
with a '+' to make it a duration?
thanks,
-Len
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: problems about ACPI sysfs convert work
2006-11-20 11:18 ` problems about ACPI sysfs convert work Thomas Renninger
2006-11-21 16:34 ` Matthew Garrett
2006-11-22 1:28 ` Shaohua Li
@ 2006-11-22 22:18 ` Len Brown
2 siblings, 0 replies; 10+ messages in thread
From: Len Brown @ 2006-11-22 22:18 UTC (permalink / raw)
To: trenn; +Cc: Zhang, Rui, linux-acpi, Li, Shaohua, Yu, Luming, Kay Sievers
> > 5. Is “dsdt” and “fadt” still needed in sysfs? This is not necessary because the acpidump tools are quite handy.
> > If “Yes”, are other tables also needed, e.g. multiple SSDTs and dynamically loaded op-regions? This is much more difficult, as they can’t be distinguished sometimes.
> > And where should these tables locate?
> IMO they can vanish (at least temporarily).
> If really needed (AFAIK explicitly loaded tables via "Load(addr,)"
> statement that are not listed in RSDT/XSDT can't be found by acpidump),
> a /sys/../tables/* can still be implemented at later time? We are also
> not able to grab them atm...
FYI, The latest code on the ACPICA branch spits out the physical address
for dynamic tables in dmesg and the latest acpidump can read it by
specifying a physical address as a parameter.
My view is that if we export any tables in sysfs, we should export them all,
including dynamically loaded tables. The current /proc/acpi/fadt,dsdt
is inconsistent.
I agree, that we can do this later.
-Len
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: problems about ACPI sysfs convert work
2006-11-22 22:12 ` Len Brown
@ 2006-11-22 22:25 ` Matthew Garrett
0 siblings, 0 replies; 10+ messages in thread
From: Matthew Garrett @ 2006-11-22 22:25 UTC (permalink / raw)
To: Len Brown
Cc: Thomas Renninger, Zhang, Rui, linux-acpi, Li, Shaohua, Yu, Luming,
Kay Sievers
On Wed, Nov 22, 2006 at 05:12:35PM -0500, Len Brown wrote:
> Matthew, exactly what code in "the clock driver" to you refer to that
> should be involved here?
http://lkml.org/lkml/2006/7/15/85 - looking closer, it may not have been
merged yet. But it hooks the ACPI clock information into the general RTC
framework, so sounds like the right sort of answer.
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: problems about ACPI sysfs convert work
2006-11-22 8:13 ` Zhang Rui
@ 2006-11-23 2:29 ` Len Brown
0 siblings, 0 replies; 10+ messages in thread
From: Len Brown @ 2006-11-23 2:29 UTC (permalink / raw)
To: Zhang Rui
Cc: Matthew Garrett, Thomas Renninger, linux-acpi, Li, Shaohua,
Yu, Luming, Kay Sievers
On Wednesday 22 November 2006 03:13, Zhang Rui wrote:
> On Tue, 2006-11-21 at 16:34 +0000, Matthew Garrett wrote:
> > (I seem to be missing the original mail here...)
FYI, the original message was filtered from the list b/c it was HTML, but Thomas' reply quoted the whole thing.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-11-23 2:27 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <58A36151585E4047913F40517D307BAE01719E@pdsmsx404.ccr.corp.intel.com>
2006-11-20 11:18 ` problems about ACPI sysfs convert work Thomas Renninger
2006-11-21 16:34 ` Matthew Garrett
2006-11-22 8:13 ` Zhang Rui
2006-11-23 2:29 ` Len Brown
2006-11-22 22:12 ` Len Brown
2006-11-22 22:25 ` Matthew Garrett
2006-11-22 1:28 ` Shaohua Li
2006-11-22 7:53 ` Zhang Rui
2006-11-22 10:49 ` Thomas Renninger
2006-11-22 22:18 ` Len Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox