Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Matthew Wilcox <matthew@...>
Cc: Ivan Kokshaysky <ink@...>, Arjan van de Ven <arjan@...>, Daniel Barkalow <barkalow@...>, Linus Torvalds <torvalds@...>, Kai Ruhnau <kai@...>, Robert Hancock <hancockr@...>, Jeff Garzik <jeff@...>, Linux Kernel Mailing List <linux-kernel@...>, <gregkh@...>, linux-pci <linux-pci@...>, Benjamin Herrenschmidt <benh@...>, Martin Mares <mj@...>
Date: Sunday, January 13, 2008 - 3:19 am

On 1/13/2008 1:01 AM, Matthew Wilcox wrote:



As PCI-X2 bridge/chipset, I only knows about the AMD-8132 (from what I 
understand it does PCI-X Mode 2), and some obscure IBM enterprise 
chipset (I am sure there are a few more).



Too bad for the spec, but we definitely know for sure the AMD-8132 
doesn't do ext-space (and makes it unusable for any device behind it).






True.






mmconfig has been a pain on the servers too (there are a lot of server 
class amd machines using one pcie/mmconfig/chipset + amd-8131/2).




Sure it might be needed on PCI-X2. But contrary to pcie (where the 
driver/pci/pcie/aer subsystem already use ext-conf-space, and other 
usages are bound to increase), needing ext-conf-space in the future on 
pci-x2 is quite unlikely (pcie is long-lived, whereas PCI-X2 was 
short-lived, obsoleted by PCI-E, and nobody has mentioned yet an example 
of using ext-registers with a PCI-X2 device).

I was only mentioning that because of the very small trade-off:  if you 
don't exclude PCI-X2, on platforms with the amd-8132+bad-MCFG, you might 
trigger a cfg-read==0xffffffff/master-abort in pci_cfg_space_size() for 
such devices with Ivan patch. This is harmless, because a lot of similar 
master-abort happen during PCI-probing anyway, so one more won't change 
anything.


Anyway, I am equally happy with keeping pci_cfg_space_size() as it is.


Loic

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

Messages in current thread:
Re: [Patch v2] Make PCI extended config space (MMCONFIG) a d..., Benjamin Herrenschmidt, (Fri Dec 28, 1:29 am)
Re: [Patch v2] Make PCI extended config space (MMCONFIG) a d..., Benjamin Herrenschmidt, (Fri Dec 28, 2:06 am)
Re: [Patch v2] Make PCI extended config space (MMCONFIG) a d..., Benjamin Herrenschmidt, (Fri Dec 28, 4:42 pm)
Re: [Patch v2] Make PCI extended config space (MMCONFIG) a d..., Benjamin Herrenschmidt, (Fri Dec 28, 1:27 am)
Re: [Patch v2] Make PCI extended config space (MMCONFIG) a d..., Benjamin Herrenschmidt, (Fri Dec 28, 1:31 am)
Re: [Patch v2] Make PCI extended config space (MMCONFIG) a d..., Arjan van de Ven, (Fri Dec 28, 12:14 pm)
Re: [Patch v2] Make PCI extended config space (MMCONFIG) a d..., Loic Prylli, (Sun Jan 13, 3:19 am)