[PATCH 0/2] iommu/rockchip: turn rk_iommu_ops into data
Simon Xue
xxm at rock-chips.com
Tue Aug 25 02:21:30 PDT 2026
This series reworks rk_iommu_ops so the per-version behaviour is
expressed as data instead of function pointers, then uses that to
reject physical addresses the hardware cannot map.
Patch 1 folds the pt_address/mk_dtentries/mk_ptentries callbacks into
single encoders selected by paddr_mask. Patch 2 uses paddr_mask to
reject out-of-range physical addresses before they are silently truncated
Simon Xue (2):
iommu/rockchip: Reduce rk_iommu_ops to pure data
iommu/rockchip: Reject unsupported physical addresses
drivers/iommu/rockchip-iommu.c | 109 ++++++++++++++++-----------------
1 file changed, 54 insertions(+), 55 deletions(-)
--
2.34.1
More information about the linux-arm-kernel
mailing list