* Userspace ACPI interpreter ( was RE: [ACPI] [RFC] dev_acpi: support for userspace access to acpi)
@ 2004-10-28 4:04 Yu, Luming
2004-10-28 5:37 ` Len Brown
2004-10-28 15:18 ` Bjorn Helgaas
0 siblings, 2 replies; 8+ messages in thread
From: Yu, Luming @ 2004-10-28 4:04 UTC (permalink / raw)
To: Bjorn Helgaas, Brown, Len, Moore, Robert
Cc: Alex Williamson, linux-kernel, acpi-devel
>On Wednesday 27 October 2004 11:17 am, Yu, Luming wrote:
>> If don't use acpi_early_init , acpi is initialized in
>do_basic_setup() in kernel thread --init.
>> It is very close to launch first user space
>process(/sbin/init ..). So, if we can invent
>> acpi_later_init, it is possible to move interpreter out of kernel.
>
>It's true that some early init stuff is based on the static tables
>and doesn't require the interpreter. But there is a lot of stuff
>that DOES require the interpreter, like finding PCI root bridges,
>PRTs, PCI interrupt link devices, etc. It's not clear to me that
>it's feasible to deal with all these from userspace.
On IA64 platform, ACPI interpreter seems to be mandatory for those
stuff, but IA32 is not. So, the ram disk is the generic solution
for loading user space interpreter for boot.
>
>> The difficulty for inventing userspace interpreter is to
>eliminate the ACPI-interpreter dependency
>> of drivers for booting. But this dependency is not
>mandatory. Once kernel booted to be able
>> to launch /sbin/init, it is also able to launch
>/sbin/user_space_interpreter, then kernel can enjoy
>> acpi from then on, despite the acpi interpreter is a user
>space daemon, we just need to invent
>> or user a communication method between kernel and user space daemon.
>
>Before the interpreter, you don't have ANY devices (legacy ones are
>described via the namespace of course, and PCI devices depend on root
>bridges that are also in the namespace). So you end up at least
>requiring a ramdisk, plus a bunch of encoding to communicate resource
>information from the interpreter to the drivers.
>
>Maybe not impossible, but it certainly requires a lot of work. Moving
>the interpreter to userspace has been proposed many times, but I've
>never seen any indication that anybody is actually working on it.
>
Yes, it needs a lot of work. If we want to continue, we should find out
what's the benefit of doing so. The biggest benefit could be that kernel
will be less complex, thus kernel will be more stable. At least, some
ACPI operation (like information query) is not needed to be handled in
kernel in synchronous manner, which is kernel invoking ACPI interpreter
like calling a C function. On laptop, I DO get many bug reports that
kernel
crashes, or hang for a while ,or input event lost..., just due to AML
call executed
by ACPI interpreter running in the kernel. I expect all this symptom
will
be gone, if interpreter is running in user space.
Thanks,
Luming
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Userspace ACPI interpreter ( was RE: [ACPI] [RFC] dev_acpi: support for userspace access to acpi)
2004-10-28 4:04 Userspace ACPI interpreter ( was RE: [ACPI] [RFC] dev_acpi: support for userspace access to acpi) Yu, Luming
@ 2004-10-28 5:37 ` Len Brown
[not found] ` <418085B0.30208-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2004-10-28 15:18 ` Bjorn Helgaas
1 sibling, 1 reply; 8+ messages in thread
From: Len Brown @ 2004-10-28 5:37 UTC (permalink / raw)
To: Yu, Luming
Cc: Bjorn Helgaas, Moore, Robert, Alex Williamson, linux-kernel,
acpi-devel
One way to experiment with a user-mode ACPI interpreter would be to
continue to use the kernel-mode interpreter for boot up , and cut over
to the user-mode interpreter at /sbin/init. The kernel-mode interpreter
could be sent the way of free_initmem() which is called just before
/sbin/init is invoked.
-Len
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Userspace ACPI interpreter ( was RE: [RFC] dev_acpi: support for userspace access to acpi)
2004-10-28 4:04 Userspace ACPI interpreter ( was RE: [ACPI] [RFC] dev_acpi: support for userspace access to acpi) Yu, Luming
2004-10-28 5:37 ` Len Brown
@ 2004-10-28 15:18 ` Bjorn Helgaas
1 sibling, 0 replies; 8+ messages in thread
From: Bjorn Helgaas @ 2004-10-28 15:18 UTC (permalink / raw)
To: Yu, Luming
Cc: Brown, Len, Moore, Robert, Alex Williamson, linux-kernel,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On Wednesday 27 October 2004 10:04 pm, Yu, Luming wrote:
> On IA64 platform, ACPI interpreter seems to be mandatory for those
> stuff, but IA32 is not. So, the ram disk is the generic solution
> for loading user space interpreter for boot.
In two sentences: If you want to play with moving the interpreter
to user-space, please do so, and do it on ia64, so you have to
deal with the interesting problems.
And this whole thing is a gigantic tangent that is only distracting
attention from the real question at hand, namely, Alex's dev_acpi
patch, which exists today and enables some very interesting new
functionality.
-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Userspace ACPI interpreter ( was RE: [RFC] dev_acpi: support for userspace access to acpi)
@ 2004-10-29 2:40 Yu, Luming
0 siblings, 0 replies; 8+ messages in thread
From: Yu, Luming @ 2004-10-29 2:40 UTC (permalink / raw)
To: Theodore Ts'o, Brown, Len
Cc: Bjorn Helgaas, Moore, Robert, Alex Williamson, linux-kernel,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
>
>On Thu, Oct 28, 2004 at 01:37:52AM -0400, Len Brown wrote:
>> One way to experiment with a user-mode ACPI interpreter would be to
>> continue to use the kernel-mode interpreter for boot up ,
>and cut over
>> to the user-mode interpreter at /sbin/init. The kernel-mode
>interpreter
>> could be sent the way of free_initmem() which is called just before
>> /sbin/init is invoked.
>
>Is there a significant advantage to doing having a user-mode ACPI
>interpreter? The only advantage I can think of is that the ACPI
>interpreter could now live in pageable memory. Are there any others?
One reason for kernel-mode interpreter is to live in unpageable memory.
User-mode ACPI interpreter advantages:
1. Without losing platform functionality, user-mode interpreter
can make kernel less complex, thus more stronger.
2. Kernel can release from AML issues.
...
Thanks,
Luming
-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Userspace ACPI interpreter ( was RE: [RFC] dev_acpi: support for userspace access to acpi)
@ 2004-10-29 2:51 Yu, Luming
0 siblings, 0 replies; 8+ messages in thread
From: Yu, Luming @ 2004-10-29 2:51 UTC (permalink / raw)
To: Bjorn Helgaas
Cc: Brown, Len, Moore, Robert, Alex Williamson, linux-kernel,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
>On Wednesday 27 October 2004 10:04 pm, Yu, Luming wrote:
>> On IA64 platform, ACPI interpreter seems to be mandatory for those
>> stuff, but IA32 is not. So, the ram disk is the generic solution
>> for loading user space interpreter for boot.
>
>In two sentences: If you want to play with moving the interpreter
>to user-space, please do so, and do it on ia64, so you have to
>deal with the interesting problems.
>
>And this whole thing is a gigantic tangent that is only distracting
>attention from the real question at hand, namely, Alex's dev_acpi
>patch, which exists today and enables some very interesting new
>functionality.
>
Yes, I agree Alex's dev_acpi is interesting, which could result in
the removal of some acpi specific drive such as battery.c, button.c,
fan.c, thermal.c .... So, I raised the question of userspace ACPI
interpreter. Intuitively, userspace is the right place for interpreter.
Thanks,
Luming
-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-10-29 4:58 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-28 4:04 Userspace ACPI interpreter ( was RE: [ACPI] [RFC] dev_acpi: support for userspace access to acpi) Yu, Luming
2004-10-28 5:37 ` Len Brown
[not found] ` <418085B0.30208-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2004-10-28 15:24 ` Userspace ACPI interpreter ( was " Theodore Ts'o
2004-10-29 4:48 ` Userspace ACPI interpreter ( was RE: [ACPI] " Len Brown
2004-10-29 4:58 ` Userspace ACPI interpreter ( was " Andi Kleen
2004-10-28 15:18 ` Bjorn Helgaas
-- strict thread matches above, loose matches on Subject: below --
2004-10-29 2:40 Yu, Luming
2004-10-29 2:51 Yu, Luming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox