Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Feb 2014 15:27:41 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-current@freebsd.org
Cc:        Julian Stecklina <jsteckli@os.inf.tu-dresden.de>
Subject:   Re: [PATCH] PCI bus number management
Message-ID:  <201402071527.41452.jhb@freebsd.org>
In-Reply-To: <ld2kdq$srr$1@ger.gmane.org>
References:  <201402061437.53355.jhb@freebsd.org> <ld2kdq$srr$1@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402071527.41452.jhb>