Re: [PATCH 2/2] PCI: pci-bridge-emul: Extend pci_bridge_emul_init() with flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tested patch against Vanilla kernels 4.20.11 and 5.0-rc7. It is
working properly on both kernels.

Tested-by: Luis Mendes <luis.p.mendes@xxxxxxxxx>

On Wed, Feb 20, 2019 at 9:48 AM Thomas Petazzoni
<thomas.petazzoni@xxxxxxxxxxx> wrote:
>
> Depending on the capabilities of the PCI controller/platform, the
> PCI-to-PCI bridge emulation behavior might need to be different. For
> example, on platforms that use the pci-mvebu code, we currently don't
> support prefetchable memory BARs, so the corresponding fields in the
> PCI-to-PCI bridge configuration space should be read-only.
>
> To implement this, this commit extends pci_bridge_emul_init() to take
> a "flags" argument, with currently one flag supported:
> PCI_BRIDGE_EMUL_NO_PREFETCHABLE_BAR, that will make the prefetchable
> memory base and limit registers read-only.
>
> The pci-mvebu and pci-aardvark drivers are updated accordingly.
>
> Reported-by: Luís Mendes <luis.p.mendes@xxxxxxxxx>
> Reported-by: Leigh Brown <leigh@xxxxxxxxxxxxx>
> Cc: Luís Mendes <luis.p.mendes@xxxxxxxxx>
> Cc: Leigh Brown <leigh@xxxxxxxxxxxxx>
> Fixes: 1f08673eef123 ("PCI: mvebu: Convert to PCI emulated bridge config space")
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@xxxxxxxxxxx>
> ---
>  drivers/pci/controller/pci-aardvark.c | 2 +-
>  drivers/pci/controller/pci-mvebu.c    | 2 +-
>  drivers/pci/pci-bridge-emul.c         | 8 +++++++-
>  drivers/pci/pci-bridge-emul.h         | 7 ++++++-
>  4 files changed, 15 insertions(+), 4 deletions(-)
>




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux