public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Len Brown <len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Adam Belay <ambx1-IBH0VoN/3vPQT0dZR+AlfA@public.gmane.org>
Cc: ACPI Developers
	<acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: PNP & ACPI
Date: 17 Aug 2004 00:57:58 -0400	[thread overview]
Message-ID: <1092718677.16498.82.camel@dhcppc4> (raw)
In-Reply-To: <20040816204058.GA3824-IBH0VoN/3vPQT0dZR+AlfA@public.gmane.org>

On Mon, 2004-08-16 at 16:40, Adam Belay wrote:
> On Wed, Aug 11, 2004 at 06:16:15PM -0400, Len Brown wrote:

> > Do you have a patch to disable PNP when ACPI is running?

> We could always do something like this: (plus the necessary include)

This appears to work fine.
Looks like the definition of acpi_disabled comes in through smp.h which
includes fixmap.h which includes acpi.h -- how's that for working by
accident?;-)

> --- a/drivers/pnp/pnpbios/core.c        2004-08-05 13:05:45.000000000
> +0000
> +++ b/drivers/pnp/pnpbios/core.c        2004-08-16 20:21:29.000000000
> +0000
> @@ -531,7 +531,8 @@
>  {
>         int ret;
> 
> -       if (pnpbios_disabled || dmi_check_system(pnpbios_dmi_table)) {
> +       if (pnpbios_disabled || !acpi_disabled ||
> +           dmi_check_system(pnpbios_dmi_table)) {
>                 printk(KERN_INFO "PnPBIOS: Disabled\n");
>                 return -ENODEV;
>         }
> 
> We would just have to ensure acpi_disabled is exported.

It is, as various modules depend on it.

>   I would like PnPBIOS support to start if the system has blacklisted
> acpi support, or if ACPI isn't compiled.

Yep, that's exactly what this variable does for you.

>   Any further comments?

Should we have a similar thing in isapnp_init()?

Also, from a dmesg style point of view, maybe we want to be consistent
with apm?:

apm: overridden by ACPI.

Of course, now that we discuss this, I wonder if there exist any
devices on an ACPI-enabled motherboards that ACPI doesn't cover,
but PnP does...  Perhaps we should verify that is not the case?

note that ACPI covers motherboard device enumeration only.  Maybe we
still need PNP for old add-in devices?

> > ps. We discussed a more unified driver probe/register model.
> > Today we've got pnp_register_driver(), acpi_bus_register_driver()
> > etc.  Thoughts on that?
> >
> 
> Currently, I'm splitting "pnp_register_driver" into
> "isapnp_register_driver" and "pnpbios_register_driver".  This is now
> possible, because resource management is provided by the driver core
> with my resource managementrewrite patches (which I plan to release
> very soon).

Can you send me a preview that includes at least 1 device driver that
calls the API you intend to export?  Does it call something abstract, or
do the drivers have to know isapnp/pnpbios/acpi?

> Eventually I'd like
> to see an "acpi_register_driver" with a "struct acpi_driver" that
> includes an embedded "struct device_driver".

Why wait for eventually?;-)  This area seems a little crufty though. 
While pci_driver and usb_driver include device_driver, all three
structures include suspend and resume methods (as does acpi_driver...)

>   Is it possible to determine where in the sysfs topology to place
> acpi legacy devices using the firmware?

We haven't really cut over to sysfs in ACPI land yet.  I have to figure
out how this part is supposd to work and the semantics of the topology.

Also, looking over Documentation/pnp.txt and the sysfs files for PnP... 
To what extent do you envision resource management being done in user
space?  Is anybody using this user interface today?

thanks,
-Len




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

      parent reply	other threads:[~2004-08-17  4:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <566B962EB122634D86E6EE29E83DD808182C2317@hdsmsx403.hd.intel.com>
     [not found] ` <566B962EB122634D86E6EE29E83DD808182C2317-N2PTB0HCzHJviC08c4yzC1DQ4js95KgL@public.gmane.org>
2004-08-11 22:16   ` PNP & ACPI Len Brown
     [not found]     ` <20040816204058.GA3824@neo.rr.com>
     [not found]       ` <20040816204058.GA3824-IBH0VoN/3vPQT0dZR+AlfA@public.gmane.org>
2004-08-17  4:57         ` Len Brown [this message]

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=1092718677.16498.82.camel@dhcppc4 \
    --to=len.brown-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=ambx1-IBH0VoN/3vPQT0dZR+AlfA@public.gmane.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