Re: [PATCH]PCI:disable resource decode in PCI BAR detection

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Benjamin Herrenschmidt <benh@...>
Cc: Greg KH <gregkh@...>, Matthew Wilcox <matthew@...>, Shaohua Li <shaohua.li@...>, lkml <linux-kernel@...>, linux-pci <linux-pci@...>, Andrew Morton <akpm@...>
Date: Monday, September 17, 2007 - 6:22 am

On Sun, Sep 16, 2007 at 10:01:52PM +0200, Benjamin Herrenschmidt wrote:

I think the P2P probing code is pretty safe now - there are read-only
accesses to the bridge config, unless you request to reassign the bus
numbers. Though it won't be safe anymore with the patch in question.


If you can get reliable PCI info from firmware, it should be relatively easy
to avoid at least a bar sizing. You can install an "early" fixup for
PCI_ANY_ID and fill the resource fields of the pci_dev with values obtained
from firmware. Then all we need in probe.c is just to check that the resource
is already non-zero and skip the sizing of respective BAR, if so.


It's not supposed to do that. Certainly, there were problems of that sort,
but hopefully they are in the past.

Ivan.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH]PCI:disable resource decode in PCI BAR detection, Ivan Kokshaysky, (Thu Sep 13, 7:16 am)
Re: [PATCH]PCI:disable resource decode in PCI BAR detection, Benjamin Herrenschmidt, (Sun Sep 16, 4:01 pm)
Re: [PATCH]PCI:disable resource decode in PCI BAR detection, Ivan Kokshaysky, (Mon Sep 17, 6:22 am)
Re: [PATCH]PCI:disable resource decode in PCI BAR detection, Benjamin Herrenschmidt, (Mon Sep 17, 4:30 pm)
Re: [PATCH]PCI:disable resource decode in PCI BAR detection, Ivan Kokshaysky, (Tue Sep 18, 5:54 am)