Re: [PATCH] PCI bus number management

From: John Baldwin <jhb_at_freebsd.org>
Date: Fri, 7 Feb 2014 15:27:41 -0500
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
Received on Fri Feb 07 2014 - 19:47:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:46 UTC