linux/drivers/iommu
Jason Gunthorpe ced24bf435 iommu/qcom: Fix pgsize_bitmap
qcom uses the ARM_32_LPAE_S1 format which uses the ARM long descriptor
page table. Eventually arm_32_lpae_alloc_pgtable_s1() will adjust
the pgsize_bitmap with:

	cfg->pgsize_bitmap &= (SZ_4K | SZ_2M | SZ_1G);

So the current declaration is nonsensical. Fix it to be just SZ_4K which
is what it has actually been using so far. Most likely the qcom driver
copy and pasted the pgsize_bitmap from something using the ARM_V7S format.

Fixes: db64591de4 ("iommu/qcom: Remove iommu_ops pgsize_bitmap")
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Closes: https://lore.kernel.org/all/CA+G9fYvif6kDDFar5ZK4Dff3XThSrhaZaJundjQYujaJW978yg@mail.gmail.com/
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/0-v1-65a7964d2545+195-qcom_pgsize_jgg@nvidia.com
Signed-off-by: Will Deacon <will@kernel.org>
2025-07-14 12:02:45 +01:00
..
amd iommu/amd: Convert to msi_create_parent_irq_domain() helper 2025-07-04 10:28:10 +02:00
arm iommu/qcom: Fix pgsize_bitmap 2025-07-14 12:02:45 +01:00
intel iommu/intel: Convert to msi_create_parent_irq_domain() helper 2025-07-04 10:28:11 +02:00
iommufd iommu: Remove ops.pgsize_bitmap from drivers that don't use it 2025-06-27 08:55:56 +02:00
riscv iommu: Remove ops.pgsize_bitmap from drivers that don't use it 2025-06-27 08:55:56 +02:00
apple-dart.c iommu: Remove ops.pgsize_bitmap from drivers that don't use it 2025-06-27 08:55:56 +02:00
dma-iommu.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
dma-iommu.h iommu: Drop sw_msi from iommu_domain 2025-03-25 10:18:19 -03:00
exynos-iommu.c iommu: Remove iommu_ops pgsize_bitmap from simple drivers 2025-06-27 08:55:57 +02:00
fsl_pamu_domain.c iommu/fsl_pamu: remove trailing space after \n 2025-05-16 08:39:04 +02:00
fsl_pamu_domain.h
fsl_pamu.c
fsl_pamu.h
hyperv-iommu.c hyperv: Log hypercall status codes as strings 2025-03-20 21:23:03 +00:00
io-pgfault.c iommu: Fix potential memory leak in iopf_queue_remove_device() 2025-02-10 14:49:30 +01:00
io-pgtable-arm-v7s.c iommu/io-pgtable-arm-v7s: Remove split on unmap behavior 2024-11-06 15:42:36 +00:00
io-pgtable-arm.c Merge branches 'fixes', 'apple/dart', 'arm/smmu/updates', 'arm/smmu/bindings', 'fsl/pamu', 'mediatek', 'renesas/ipmmu', 's390', 'intel/vt-d', 'amd/amd-vi' and 'core' into next 2025-05-23 17:14:32 +02:00
io-pgtable-arm.h
io-pgtable-dart.c iommu: Update various drivers to pass in lg2sz instead of order to iommu pages 2025-04-17 16:22:48 +02:00
io-pgtable.c iommu: Allow passing custom allocators to pgtable drivers 2023-11-27 11:10:12 +01:00
iommu-debugfs.c
iommu-pages.c iommu: Clear the freelist after iommu_put_pages_list() 2025-05-16 14:29:16 +02:00
iommu-pages.h iommu/vtd: Remove iommu_alloc_pages_node() 2025-04-17 16:22:54 +02:00
iommu-priv.h iommufd 6.15 merge window pull 2025-04-01 18:03:46 -07:00
iommu-sva.c iommu: Do not call domain_alloc() in iommu_sva_domain_alloc() 2025-04-28 13:14:59 +02:00
iommu-sysfs.c iommu/sysfs: constify the class struct 2024-10-29 09:50:24 +01:00
iommu-traces.c
iommu.c iommu: Remove ops->pgsize_bitmap 2025-06-27 17:34:11 +02:00
iova.c - The series "zram: optimal post-processing target selection" from 2024-11-23 09:58:07 -08:00
ipmmu-vmsa.c iommu: Remove iommu_ops pgsize_bitmap from simple drivers 2025-06-27 08:55:57 +02:00
irq_remapping.c IOMMU Updates for Linux v6.10 2024-05-18 10:55:13 -07:00
irq_remapping.h iommu/vt-d: Allocate DMAR fault interrupts locally 2024-04-26 11:57:36 +02:00
Kconfig iommu/intel: Convert to msi_create_parent_irq_domain() helper 2025-07-04 10:28:11 +02:00
Makefile iommu: make inclusion of riscv directory conditional 2025-05-16 08:46:47 +02:00
msm_iommu_hw-8xxx.h
msm_iommu.c iommu/msm: Remove ops->pgsize_bitmap 2025-06-27 17:34:10 +02:00
msm_iommu.h
mtk_iommu_v1.c iommu: Remove iommu_ops pgsize_bitmap from simple drivers 2025-06-27 08:55:57 +02:00
mtk_iommu.c iommu/mtk: Remove iommu_ops pgsize_bitmap 2025-06-27 08:56:00 +02:00
of_iommu.c iommu: Get DT/ACPI parsing into the proper probe path 2025-03-11 14:05:43 +01:00
omap-iommu-debug.c
omap-iommu.c iommu: Remove iommu_ops pgsize_bitmap from simple drivers 2025-06-27 08:55:57 +02:00
omap-iommu.h
omap-iopgtable.h
rockchip-iommu.c iommu: Remove iommu_ops pgsize_bitmap from simple drivers 2025-06-27 08:55:57 +02:00
s390-iommu.c iommu: Remove iommu_ops pgsize_bitmap from simple drivers 2025-06-27 08:55:57 +02:00
sprd-iommu.c iommu: Remove iommu_ops pgsize_bitmap from simple drivers 2025-06-27 08:55:57 +02:00
sun50i-iommu.c iommu: Remove iommu_ops pgsize_bitmap from simple drivers 2025-06-27 08:55:57 +02:00
tegra-smmu.c iommu: Remove iommu_ops pgsize_bitmap from simple drivers 2025-06-27 08:55:57 +02:00
virtio-iommu.c iommu: Remove ops.pgsize_bitmap from drivers that don't use it 2025-06-27 08:55:56 +02:00