public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Problem: PnP BIOS driver reports outdated information
@ 2001-09-20 23:25 Thomas Hood
  2001-09-21  0:09 ` Alan Cox
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Hood @ 2001-09-20 23:25 UTC (permalink / raw)
  To: linux-kernel

The PnP BIOS interface driver builds a device list, including
resource information for each device, at init time.  Other
drivers search this list using pnpbios_find_device().

The problem is that the information in the device list may
be out of date if setpnp has been used.

Perhaps it will be said that setpnp is a "debugging tool" and
ordinarily one shouldn't change resource assignments, but
setpnp is useful for more than debugging.  E.g., with current
kernels it is necessary for me to run setpnp during the boot
sequence in order to set up certain devices properly.  
Sometimes, also, there aren't enough IRQs to go around, and
one may use setpnp to disable and enable different devices.

Thus I think that the PnP BIOS driver needs to be fixed so
that it will use and report the correct (current) resource
values.  Looking at the code, I see no reason why there
needs to be a device list at all.  Functions such as
pnpbios_find_device() could just as well scan through 
device info returned (fresh) by the PnP BIOS.  I don't 
think speed is a big issue here.  Are there other reasons
for maintaining a device list in the driver?

--
Thomas Hood
jdthood_AT_yahoo.co.uk

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

end of thread, other threads:[~2001-09-21  1:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-20 23:25 Problem: PnP BIOS driver reports outdated information Thomas Hood
2001-09-21  0:09 ` Alan Cox
2001-09-21  1:14   ` Thomas Hood
2001-09-21  1:31     ` Alan Cox

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