Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iommu/fsl_pamu: remove the snoop_id field

The snoop_id is always set to ~(u32)0.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Will Deacon <will@kernel.org>
Acked-by: Li Yang <leoyang.li@nxp.com>
Link: https://lore.kernel.org/r/20210401155256.298656-12-hch@lst.de
Signed-off-by: Joerg Roedel <jroedel@suse.de>

authored by

Christoph Hellwig and committed by
Joerg Roedel
fd78696e 7d61cb6f

+2 -4
+2 -3
drivers/iommu/fsl_pamu_domain.c
··· 97 97 goto out_unlock; 98 98 ret = pamu_config_ppaace(liodn, geom->aperture_start, 99 99 geom->aperture_end + 1, omi_index, 0, 100 - dma_domain->snoop_id, dma_domain->stash_id, 0); 100 + ~(u32)0, dma_domain->stash_id, 0); 101 101 if (ret) 102 102 goto out_unlock; 103 103 ret = pamu_config_ppaace(liodn, geom->aperture_start, 104 104 geom->aperture_end + 1, ~(u32)0, 105 - 0, dma_domain->snoop_id, dma_domain->stash_id, 105 + 0, ~(u32)0, dma_domain->stash_id, 106 106 PAACE_AP_PERMS_QUERY | PAACE_AP_PERMS_UPDATE); 107 107 out_unlock: 108 108 spin_unlock_irqrestore(&iommu_lock, flags); ··· 210 210 return NULL; 211 211 212 212 dma_domain->stash_id = ~(u32)0; 213 - dma_domain->snoop_id = ~(u32)0; 214 213 INIT_LIST_HEAD(&dma_domain->devices); 215 214 spin_lock_init(&dma_domain->domain_lock); 216 215
-1
drivers/iommu/fsl_pamu_domain.h
··· 13 13 /* list of devices associated with the domain */ 14 14 struct list_head devices; 15 15 u32 stash_id; 16 - u32 snoop_id; 17 16 struct iommu_domain iommu_domain; 18 17 spinlock_t domain_lock; 19 18 };