All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: bare pci configuration access functions ?
@ 2002-11-01  2:07 Grover, Andrew
  2002-11-01  2:45 ` Greg KH
  0 siblings, 1 reply; 14+ messages in thread
From: Grover, Andrew @ 2002-11-01  2:07 UTC (permalink / raw)
  To: 'Greg KH', KOCHI, Takayoshi
  Cc: Grover, Andrew, Lee, Jung-Ik, linux-kernel

> From: Greg KH [mailto:greg@kroah.com] 
> Nice, thanks for pointing that out.  But what about the fact that I
> think we can now start optimizing certain parts of the 
> "generic" code to
> play nicer with Linux?

It is much much more important that ACPI be *correct* than fast or small. To
that end, it is better to not fork ACPI-Linux from ACPI-everyone else. Linux
benefits from core bugs found by other OSes (FBSD is not the only one - for
some reason I'm not allowed to mention who else is using ACPI CA but they
*do* send bug reports) and vice versa.

> Now I don't mean this to be an ACPI rant, I know why they did 
> their code
> this way, and without it, there probably would not be any ACPI Linux
> code.  I just don't think it's the best way (from an engineering
> standpoint) to do things.  And again, we are getting way off 
> topic from
> the original problem, sorry.

I'm used to ACPI ranting from all quarters, you know that ;-) but let me
just say this:

- ACPI is not performance-critical
- ACPI will never be simple and elegant, even if you made it Linux-specific
- Portability enhances correctness and maximizes developer productivity
- Read my lips, no new taxes!

(dunno where that last one came from ;-)

Regards -- Andy

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: bare pci configuration access functions ?
@ 2002-10-31 22:00 Grover, Andrew
  2002-10-31 22:11 ` Greg KH
  0 siblings, 1 reply; 14+ messages in thread
From: Grover, Andrew @ 2002-10-31 22:00 UTC (permalink / raw)
  To: 'Greg KH'; +Cc: Lee, Jung-Ik, linux-kernel

> From: Greg KH [mailto:greg@kroah.com] 
> In 2.5 we now have a 
> pci_bus_read_*
> and pci_bus_write_* functions, which the pci hotplug drivers use, as
> they at least know the bus on which the devices they are 
> looking for are
> on.  I also had to convert over some ACPI code that was using the
> pci_read_config functions to get everything to work properly, but I
> don't seem to be able to find that code in the latest 2.5 tree, so I
> guess you don't need to do that anymore?

It's still there in drivers/acpi/osl.c. We use the pci_root_ops directly,
instead of bus->ops (which is usually set to pci_root_ops anyways) but I
just mention this as a sidenote.

Regards -- Andy

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: bare pci configuration access functions ?
@ 2002-10-31 21:07 Grover, Andrew
  2002-10-31 21:23 ` Greg KH
  2002-10-31 23:40 ` Kai Germaschewski
  0 siblings, 2 replies; 14+ messages in thread
From: Grover, Andrew @ 2002-10-31 21:07 UTC (permalink / raw)
  To: Lee, Jung-Ik, linux-kernel; +Cc: 'Greg@kroah.com'

> From: Lee, Jung-Ik [mailto:jung-ik.lee@intel.com] 
> 	Some kernel drivers/components such as hotplug 
> pci/io-node drivers,
> ACPI driver, some console drivers, etc **need bare pci 
> configuration space
> access** before either pci driver is initialized or struct pci_dev is
> constructed.
> 
> ACPI needs this for ACPI/PCI population, hotplug pci driver 
> for populating
> hot-added pci hierarchy. As more drivers are cross ported 
> over to wider
> architectures, this would become wider need. Help me if 
> others need this
> too.

When the PCI Config stuff got revamped a few months ago, Greg KH, myself,
and some other people discussed this, and the conclusion seemed to be that
it was less ugly to make the code that needs bare PCI config access use fake
structs, than to have the bare functions exposed. Greg, am I remembering
correctly?

Regards -- Andy

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

end of thread, other threads:[~2002-11-01  2:41 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-01  2:07 bare pci configuration access functions ? Grover, Andrew
2002-11-01  2:45 ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2002-10-31 22:00 Grover, Andrew
2002-10-31 22:11 ` Greg KH
2002-10-31 22:50   ` Scott Murray
2002-10-31 23:46     ` Greg KH
2002-11-01  0:23       ` Scott Murray
2002-10-31 23:37   ` KOCHI, Takayoshi
2002-10-31 23:54     ` Greg KH
2002-11-01  0:23       ` KOCHI, Takayoshi
2002-11-01  1:13         ` Greg KH
2002-10-31 21:07 Grover, Andrew
2002-10-31 21:23 ` Greg KH
2002-10-31 23:40 ` Kai Germaschewski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.