Merge branch 'akpm' (patches from Andrew)
[sfrench/cifs-2.6.git] / arch / powerpc / platforms / powernv / npu-dma.c
index 3f58c7dbd581e1f018c7e941fc2ea1b649436c07..dc23d9d2a7d9ae60c9c956dfeadd7e480e243891 100644 (file)
  */
 static DEFINE_SPINLOCK(npu_context_lock);
 
-/*
- * Other types of TCE cache invalidation are not functional in the
- * hardware.
- */
 static struct pci_dev *get_pci_dev(struct device_node *dn)
 {
        struct pci_dn *pdn = PCI_DN(dn);
@@ -220,7 +216,7 @@ static void pnv_npu_dma_set_32(struct pnv_ioda_pe *npe)
         * their parent device so drivers shouldn't be doing DMA
         * operations directly on these devices.
         */
-       set_dma_ops(&npe->pdev->dev, NULL);
+       set_dma_ops(&npe->pdev->dev, &dma_dummy_ops);
 }
 
 /*
@@ -917,15 +913,6 @@ static void pnv_npu2_mn_release(struct mmu_notifier *mn,
        mmio_invalidate(npu_context, 0, ~0UL);
 }
 
-static void pnv_npu2_mn_change_pte(struct mmu_notifier *mn,
-                               struct mm_struct *mm,
-                               unsigned long address,
-                               pte_t pte)
-{
-       struct npu_context *npu_context = mn_to_npu_context(mn);
-       mmio_invalidate(npu_context, address, PAGE_SIZE);
-}
-
 static void pnv_npu2_mn_invalidate_range(struct mmu_notifier *mn,
                                        struct mm_struct *mm,
                                        unsigned long start, unsigned long end)
@@ -936,7 +923,6 @@ static void pnv_npu2_mn_invalidate_range(struct mmu_notifier *mn,
 
 static const struct mmu_notifier_ops nv_nmmu_notifier_ops = {
        .release = pnv_npu2_mn_release,
-       .change_pte = pnv_npu2_mn_change_pte,
        .invalidate_range = pnv_npu2_mn_invalidate_range,
 };