Inter-revision diff: patch 10

Comparing v7 (message) to v4 (message)

--- v7
+++ v4
@@ -6,7 +6,7 @@
 iommu_init_table() to make sure that we do not leave any IOMMU table
 with iommu_table_ops uninitialized. This is not a parameter of
 iommu_init_table() though as there will be cases when iommu_init_table()
-will not be called on TCE tables, for example - VFIO.
+will not be called on TCE tables used by VFIO.
 
 This does s/tce_build/set/, s/tce_free/clear/ and removes "tce_"
 redundand prefixes.
@@ -40,7 +40,7 @@
  12 files changed, 93 insertions(+), 88 deletions(-)
 
 diff --git a/arch/powerpc/include/asm/iommu.h b/arch/powerpc/include/asm/iommu.h
-index 2af2d70..d909e2a 100644
+index 45b07f6..eb5822d 100644
 --- a/arch/powerpc/include/asm/iommu.h
 +++ b/arch/powerpc/include/asm/iommu.h
 @@ -43,6 +43,22 @@
@@ -111,7 +111,7 @@
  				   unsigned long flags, void *caller);
  	void		(*iounmap)(volatile void __iomem *token);
 diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c
-index 029b1ea..eceb214 100644
+index 456acb1..c51ad3e 100644
 --- a/arch/powerpc/kernel/iommu.c
 +++ b/arch/powerpc/kernel/iommu.c
 @@ -322,11 +322,11 @@ static dma_addr_t iommu_alloc(struct device *dev, struct iommu_table *tbl,
@@ -220,7 +220,7 @@
  	/* number of bytes needed for the bitmap */
  	sz = BITS_TO_LONGS(tbl->it_size) * sizeof(unsigned long);
  
-@@ -934,8 +936,8 @@ EXPORT_SYMBOL_GPL(iommu_tce_direction);
+@@ -906,8 +908,8 @@ void iommu_register_group(struct iommu_table *tbl,
  void iommu_flush_tce(struct iommu_table *tbl)
  {
  	/* Flush/invalidate TLB caches if necessary */
@@ -231,7 +231,7 @@
  
  	/* Make sure updates are seen by hardware */
  	mb();
-@@ -946,7 +948,7 @@ int iommu_tce_clear_param_check(struct iommu_table *tbl,
+@@ -918,7 +920,7 @@ int iommu_tce_clear_param_check(struct iommu_table *tbl,
  		unsigned long ioba, unsigned long tce_value,
  		unsigned long npages)
  {
@@ -240,7 +240,7 @@
  	if (tce_value)
  		return -EINVAL;
  
-@@ -994,9 +996,9 @@ unsigned long iommu_clear_tce(struct iommu_table *tbl, unsigned long entry)
+@@ -966,9 +968,9 @@ unsigned long iommu_clear_tce(struct iommu_table *tbl, unsigned long entry)
  
  	spin_lock(&(pool->lock));
  
@@ -252,7 +252,7 @@
  	else
  		oldtce = 0;
  
-@@ -1019,10 +1021,10 @@ int iommu_tce_build(struct iommu_table *tbl, unsigned long entry,
+@@ -991,10 +993,10 @@ int iommu_tce_build(struct iommu_table *tbl, unsigned long entry,
  
  	spin_lock(&(pool->lock));
  
@@ -347,10 +347,10 @@
  }
  
 diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c
-index 6c9ff2b..85e64a5 100644
+index 5c74333..af7a689 100644
 --- a/arch/powerpc/platforms/powernv/pci-ioda.c
 +++ b/arch/powerpc/platforms/powernv/pci-ioda.c
-@@ -1231,6 +1231,7 @@ static void pnv_pci_ioda_setup_dma_pe(struct pnv_phb *phb,
+@@ -1208,6 +1208,7 @@ static void pnv_pci_ioda_setup_dma_pe(struct pnv_phb *phb,
  				 TCE_PCI_SWINV_FREE   |
  				 TCE_PCI_SWINV_PAIR);
  	}
@@ -358,7 +358,7 @@
  	iommu_init_table(tbl, phb->hose->node);
  	iommu_register_group(tbl, phb->hose->global_number, pe->pe_number);
  
-@@ -1364,6 +1365,7 @@ static void pnv_pci_ioda2_setup_dma_pe(struct pnv_phb *phb,
+@@ -1341,6 +1342,7 @@ static void pnv_pci_ioda2_setup_dma_pe(struct pnv_phb *phb,
  				8);
  		tbl->it_type |= (TCE_PCI_SWINV_CREATE | TCE_PCI_SWINV_FREE);
  	}
@@ -379,10 +379,10 @@
  		iommu_register_group(&phb->p5ioc2.iommu_table,
  				pci_domain_nr(phb->hose->bus), phb->opal_id);
 diff --git a/arch/powerpc/platforms/powernv/pci.c b/arch/powerpc/platforms/powernv/pci.c
-index 609f5b1..c619ec6 100644
+index 9ec7d68..c4782b1 100644
 --- a/arch/powerpc/platforms/powernv/pci.c
 +++ b/arch/powerpc/platforms/powernv/pci.c
-@@ -647,18 +647,11 @@ static unsigned long pnv_tce_get(struct iommu_table *tbl, long index)
+@@ -660,18 +660,11 @@ static unsigned long pnv_tce_get(struct iommu_table *tbl, long index)
  	return ((u64 *)tbl->it_base)[index - tbl->it_offset];
  }
  
@@ -406,7 +406,7 @@
  
  void pnv_pci_setup_iommu_table(struct iommu_table *tbl,
  			       void *tce_mem, u64 tce_size,
-@@ -692,6 +685,7 @@ static struct iommu_table *pnv_pci_setup_bml_iommu(struct pci_controller *hose)
+@@ -705,6 +698,7 @@ static struct iommu_table *pnv_pci_setup_bml_iommu(struct pci_controller *hose)
  		return NULL;
  	pnv_pci_setup_iommu_table(tbl, __va(be64_to_cpup(basep)),
  				  be32_to_cpup(sizep), 0, IOMMU_PAGE_SHIFT_4K);
@@ -414,7 +414,7 @@
  	iommu_init_table(tbl, hose->node);
  	iommu_register_group(tbl, pci_domain_nr(hose->bus), 0);
  
-@@ -817,11 +811,6 @@ void __init pnv_pci_init(void)
+@@ -859,11 +853,6 @@ void __init pnv_pci_init(void)
  
  	/* Configure IOMMU DMA hooks */
  	ppc_md.pci_dma_dev_setup = pnv_pci_dma_dev_setup;
@@ -423,9 +423,9 @@
 -	ppc_md.tce_build_rm = pnv_tce_build_rm;
 -	ppc_md.tce_free_rm = pnv_tce_free_rm;
 -	ppc_md.tce_get = pnv_tce_get;
+ 	ppc_md.pci_probe_mode = pnv_pci_probe_mode;
  	set_pci_dma_ops(&dma_iommu_ops);
  
- 	/* Configure MSIs */
 diff --git a/arch/powerpc/platforms/powernv/pci.h b/arch/powerpc/platforms/powernv/pci.h
 index 6c02ff8..f726700 100644
 --- a/arch/powerpc/platforms/powernv/pci.h
@@ -439,7 +439,7 @@
  void pnv_pci_dump_phb_diag_data(struct pci_controller *hose,
  				unsigned char *log_buff);
 diff --git a/arch/powerpc/platforms/pseries/iommu.c b/arch/powerpc/platforms/pseries/iommu.c
-index 7803a19..48d1fde 100644
+index 1d3d52d..1aa1815 100644
 --- a/arch/powerpc/platforms/pseries/iommu.c
 +++ b/arch/powerpc/platforms/pseries/iommu.c
 @@ -192,7 +192,7 @@ static int tce_buildmulti_pSeriesLP(struct iommu_table *tbl, long tcenum,
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help