PCI: EPF: dma-test: Add outbound ATU test function

PCIe endpoint controller supports 8 outbound channels to map Root port
address and access it as memory mapped IO. Add test function to verify
this feature.

Bug 4705051

Change-Id: I126e94619c581ed15f1d6db54845de209742af0e
Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3163953
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Nagarjuna Kristam <nkristam@nvidia.com>
This commit is contained in:
Manikanta Maddireddy
2024-06-25 14:12:07 +00:00
committed by mobile promotions
parent fb5a616f92
commit 49bb1dec11
3 changed files with 62 additions and 0 deletions

View File

@@ -64,6 +64,10 @@ static inline void dma_common_wr(void __iomem *p, u32 val, u32 offset)
/* DMA base offset starts at 0x20000 from ATU_DMA base */
#define DMA_OFFSET 0x20000
/* Outbound magic number */
#define PCIE_EP_OB_MAGIC 0xA5A519885A5A1984LU
#define PCIE_EP_OB_OFFSET SZ_16K
struct sanity_data {
u32 size;
u32 src_offset;