[PATCH u-boot 1/3] pci: mpc85xx: Do not access PCI BARs registers of BDF address 00:00.0

Tom Rini trini at konsulko.com
Tue May 2 18:51:45 CEST 2023


On Thu, Apr 20, 2023 at 09:44:23PM +0200, Pali Rohár wrote:

> At BDF address 00:00.0 is fictional device which PCI configuration header
> is for configuring mpc85xx PCI controller itself. PCI config space of this
> device has ATMU inbound registers on position of PCI BARs. Trying to do PCI
> auto configuration of this device cause rewriting ATMU inbound registers.
> To avoid it, do not allow overwriting registers at BARs positions. And
> because this device does not have any PCI memory, return zeros when trying
> to read PCI BARs config space registers. It signals to auto configuration
> tool to not allocate any PCI memory for this device.
> 
> This information is taken from MPC8544E Reference Manual, sections
> 17.3.1.3, 17.3.1.1.1, 17.3.2 and 17.3.2.11. Available at NXP website:
> https://www.nxp.com/docs/en/reference-manual/MPC8544ERM.pdf
> 
> Signed-off-by: Pali Rohár <pali at kernel.org>
> Reviewed-by: Heiko Schocher <hs at denx.de>
> Tested-by: Heiko Schocher <hs at denx.de>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230502/31954293/attachment.sig>


More information about the U-Boot mailing list