[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAErSpo6aQMtav89V8wyu+NZxro91o1MnB1ViG-4ExrCgLPKmjg@mail.gmail.com>
Date: Wed, 26 Jun 2013 14:59:56 -0600
From: Bjorn Helgaas <bhelgaas@...gle.com>
To: Mika Westerberg <mika.westerberg@...ux.intel.com>
Cc: Jesse Barnes <jbarnes@...tuousgeek.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
Yinghai Lu <yinghai@...nel.org>,
"Ronciak, John" <john.ronciak@...el.com>,
"Penner, Miles J" <miles.j.penner@...el.com>,
Bruce Allan <bruce.w.allan@...el.com>,
"Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>,
Heikki Krogerus <heikki.krogerus@...ux.intel.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
"x86@...nel.org" <x86@...nel.org>,
"alex.williamson@...hat.com" <alex.williamson@...hat.com>
Subject: Re: [PATCH 6/6] x86/PCI: quirk Thunderbolt PCI-to-PCI bridges
[+cc Alex]
On Wed, Jun 26, 2013 at 6:17 AM, Mika Westerberg
<mika.westerberg@...ux.intel.com> wrote:
> On Tue, Jun 25, 2013 at 02:15:56PM -0700, Jesse Barnes wrote:
>> On Tue, 25 Jun 2013 19:22:10 +0300
>> Mika Westerberg <mika.westerberg@...ux.intel.com> wrote:
>>
>> > + if (!(pci_probe & PCI_NOASSIGN_ROMS)) {
>> > + pr_info("Thunderbolt host router detected disabling ROMs\n");
>> > + pci_probe |= PCI_NOASSIGN_ROMS;
>> > + }
>>
>> I wonder if this should just be the default on x86? Or do we allocate
>> ROM space to address some other platform where we need it and the BIOS
>> doesn't do it for the devices we care about?
>
> Good question. In our case it definitely helps to have pci=norom the
> default. Can't tell if it might break something that depends on the current
> behaviour.
I think the current default behavior is that if the BIOS has assigned
the ROM BAR, we keep that assignment, and if it hasn't, we allocate
MEM space for it. And "pci=norom" means that we don't allocate MEM
space for it, even if the BIOS hasn't assigned it.
"pci=norom" is only implemented on x86. I think most other arches
allocate MEM space for ROMs, with no way to turn that off. PA-RISC
seems to ignore ROMs (dino_fixup_bus()), but that looks like the
exception.
I'm slightly concerned that if we make the x86 default be "never
assign space for ROMs unless the BIOS has done it," we might break
virtualized guests that need access to ROMs. Alex?
Bjorn
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists