[Skiboot] [PATCH 1/2] PCI: Introduce config register filter

Stewart Smith stewart at linux.vnet.ibm.com
Thu Oct 8 15:44:59 AEDT 2015

Gavin Shan <gwshan at linux.vnet.ibm.com> writes:
> We have to provide the emulated result for PCI config register
> access on some devices to eleminate the gap between hardware and
> software. One example would be the 0x28 (prefetchable memory window
> upper 32-bits) of the root complex on Naples isn't writable. Linux
> kernel relies on that to detect 64-bits window successfully.
> This introduces config register filter to PCI device to eleminate
> above gap. Each PCI device maintains a list of filters, which are
> populated when the PCI device is initialized. When PCI config space
> is accessed, the filter is searched to override the result from user
> (write) or hardware (read) if necessary.
> Reported-by: Vaibhav Jain <vaibhav at linux.vnet.ibm.com>
> Suggested-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> Signed-off-by: Gavin Shan <gwshan at linux.vnet.ibm.com>
> Tested-by: Vaibhav Jain <vaibhav at linux.vnet.ibm.com>

Thanks, applied as of 0c1cbc1

More information about the Skiboot mailing list