@@ -64,7 +64,6 @@ LIST_HEAD(acpihid_map);
64
64
65
65
const struct iommu_ops amd_iommu_ops ;
66
66
67
- static ATOMIC_NOTIFIER_HEAD (ppr_notifier );
68
67
int amd_iommu_max_glx_val = -1 ;
69
68
70
69
/*
@@ -815,24 +814,6 @@ static void iommu_poll_events(struct amd_iommu *iommu)
815
814
writel (head , iommu -> mmio_base + MMIO_EVT_HEAD_OFFSET );
816
815
}
817
816
818
- static void iommu_handle_ppr_entry (struct amd_iommu * iommu , u64 * raw )
819
- {
820
- struct amd_iommu_fault fault ;
821
-
822
- if (PPR_REQ_TYPE (raw [0 ]) != PPR_REQ_FAULT ) {
823
- pr_err_ratelimited ("Unknown PPR request received\n" );
824
- return ;
825
- }
826
-
827
- fault .address = raw [1 ];
828
- fault .pasid = PPR_PASID (raw [0 ]);
829
- fault .sbdf = PCI_SEG_DEVID_TO_SBDF (iommu -> pci_seg -> id , PPR_DEVID (raw [0 ]));
830
- fault .tag = PPR_TAG (raw [0 ]);
831
- fault .flags = PPR_FLAGS (raw [0 ]);
832
-
833
- atomic_notifier_call_chain (& ppr_notifier , 0 , & fault );
834
- }
835
-
836
817
static void iommu_poll_ppr_log (struct amd_iommu * iommu )
837
818
{
838
819
u32 head , tail ;
@@ -878,8 +859,7 @@ static void iommu_poll_ppr_log(struct amd_iommu *iommu)
878
859
head = (head + PPR_ENTRY_SIZE ) % PPR_LOG_SIZE ;
879
860
writel (head , iommu -> mmio_base + MMIO_PPR_HEAD_OFFSET );
880
861
881
- /* Handle PPR entry */
882
- iommu_handle_ppr_entry (iommu , entry );
862
+ /* TODO: PPR Handler will be added when we add IOPF support */
883
863
884
864
/* Refresh ring-buffer information */
885
865
head = readl (iommu -> mmio_base + MMIO_PPR_HEAD_OFFSET );
@@ -2545,29 +2525,6 @@ const struct iommu_ops amd_iommu_ops = {
2545
2525
}
2546
2526
};
2547
2527
2548
- /*****************************************************************************
2549
- *
2550
- * The next functions do a basic initialization of IOMMU for pass through
2551
- * mode
2552
- *
2553
- * In passthrough mode the IOMMU is initialized and enabled but not used for
2554
- * DMA-API translation.
2555
- *
2556
- *****************************************************************************/
2557
-
2558
- /* IOMMUv2 specific functions */
2559
- int amd_iommu_register_ppr_notifier (struct notifier_block * nb )
2560
- {
2561
- return atomic_notifier_chain_register (& ppr_notifier , nb );
2562
- }
2563
- EXPORT_SYMBOL (amd_iommu_register_ppr_notifier );
2564
-
2565
- int amd_iommu_unregister_ppr_notifier (struct notifier_block * nb )
2566
- {
2567
- return atomic_notifier_chain_unregister (& ppr_notifier , nb );
2568
- }
2569
- EXPORT_SYMBOL (amd_iommu_unregister_ppr_notifier );
2570
-
2571
2528
static int __flush_pasid (struct protection_domain * domain , u32 pasid ,
2572
2529
u64 address , bool size )
2573
2530
{
0 commit comments