[PATCH] PCI bus number management
John Baldwin
jhb at freebsd.org
Fri Feb 7 20:47:35 UTC 2014
On Friday, February 07, 2014 7:43:51 am Julian Stecklina wrote:
> On 02/06/2014 08:37 PM, John Baldwin wrote:
> > I would like to commit this to HEAD soon but thought I would post it for some
> > pre-commit testing for the brave. :) If you are really brave, try booting
> > with 'hw.pci.clear_buses=1' which will force the kernel to renumber all buses
> > in the system.
>
> This is a really bad idea, because BIOS/SMM tends to have those
> hardcoded. Or am I misunderstanding the purpose of this patch?
The BIOS just programs them initially. By default we use whatever the BIOS
programs and only rely on this infrastructure if we need to grow the tree
for some reason (e.g. hotplug). However, it is definitely valid for an OS
to reassign bus numbers as it sees fit.
--
John Baldwin
More information about the freebsd-current
mailing list