[U-Boot] [PATCH 5/5 v6] pci/layerscape: set LUT and msi-map for discovered PCI devices
york sun
york.sun at nxp.com
Tue Mar 22 16:39:50 CET 2016
On 03/10/2016 09:13 AM, Stuart Yoder wrote:
> From: Stuart Yoder <stuart.yoder at nxp.com>
>
> msi-map properties are used to tell an OS how PCI requester IDs are
> mapped to ARM SMMU stream IDs.
>
> for all PCI devices discovered in a system:
> -allocate a LUT (look-up-table) entry in that PCI controller
> -allocate a stream ID for the device
> -program and enable a LUT entry (maps PCI requester id to stream ID)
> -set the msi-map property on the controller reflecting the
> LUT mapping
>
> basic bus scanning loop/logic was taken from drivers/pci/pci.c
> pci_hose_scan_bus().
>
> Signed-off-by: Stuart Yoder <stuart.yoder at nxp.com>
> ---
> -v6: squashed lut, stream id, and msi-map helper functions
> (previously patches 4-6) into this patch
>
> drivers/pci/pcie_layerscape.c | 147 +++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 147 insertions(+)
>
Applied to u-boot-fsl-qoriq, awaiting upstream.
Thanks.
York
More information about the U-Boot
mailing list