diff options
author | Timothy Pearson <tpearson@raptorengineering.com> | 2018-06-23 16:20:48 -0500 |
---|---|---|
committer | root <root@rcs-power9-talos> | 2018-10-27 02:51:26 -0400 |
commit | 1d2e1f844750a50b508453e1e6ea3dc10134d6a2 (patch) | |
tree | 05d1054b6aabdb194af31c188c2ce89d893424fc | |
parent | 08f2791cb620d89c55dc5714c2f3483b67716159 (diff) | |
download | op-kernel-dev-1d2e1f844750a50b508453e1e6ea3dc10134d6a2.zip op-kernel-dev-1d2e1f844750a50b508453e1e6ea3dc10134d6a2.tar.gz |
powerpc/powernv/pci: Export pnv_pci_ioda2_tce_invalidate_pe
Pseudo DMA support requires a method to invalidate the TCE cache
Export pnv_pci_ioda2_tce_invalidate_pe for use by the pseudo DMA
mapper.
Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
-rw-r--r-- | arch/powerpc/platforms/powernv/pci-ioda.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/powernv/pci.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c index 3598ca8..83f9db1 100644 --- a/arch/powerpc/platforms/powernv/pci-ioda.c +++ b/arch/powerpc/platforms/powernv/pci-ioda.c @@ -2100,7 +2100,7 @@ static void pnv_pci_phb3_tce_invalidate(struct pnv_ioda_pe *pe, bool rm, } } -static inline void pnv_pci_ioda2_tce_invalidate_pe(struct pnv_ioda_pe *pe) +void pnv_pci_ioda2_tce_invalidate_pe(struct pnv_ioda_pe *pe) { struct pnv_phb *phb = pe->phb; diff --git a/arch/powerpc/platforms/powernv/pci.h b/arch/powerpc/platforms/powernv/pci.h index 9418c6e..bea565c 100644 --- a/arch/powerpc/platforms/powernv/pci.h +++ b/arch/powerpc/platforms/powernv/pci.h @@ -244,6 +244,7 @@ extern void pe_level_printk(const struct pnv_ioda_pe *pe, const char *level, /* Nvlink functions */ extern void pnv_npu_try_dma_set_bypass(struct pci_dev *gpdev, bool bypass); extern void pnv_pci_ioda2_tce_invalidate_entire(struct pnv_phb *phb, bool rm); +extern void pnv_pci_ioda2_tce_invalidate_pe(struct pnv_ioda_pe *pe); extern struct pnv_ioda_pe *pnv_pci_npu_setup_iommu(struct pnv_ioda_pe *npe); extern long pnv_npu_set_window(struct pnv_ioda_pe *npe, int num, struct iommu_table *tbl); |