Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] iommu/rockchip: turn rk_iommu_ops into data
@ 2026-08-25  9:21 Simon Xue
  2026-08-25  9:21 ` [PATCH 1/2] iommu/rockchip: Reduce rk_iommu_ops to pure data Simon Xue
  2026-08-25  9:21 ` [PATCH 2/2] iommu/rockchip: Reject unsupported physical addresses Simon Xue
  0 siblings, 2 replies; 3+ messages in thread
From: Simon Xue @ 2026-08-25  9:21 UTC (permalink / raw)
  To: Heiko Stuebner; +Cc: Simon Xue, linux-arm-kernel, linux-rockchip

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-25  9:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-25  9:21 [PATCH 0/2] iommu/rockchip: turn rk_iommu_ops into data Simon Xue
2026-08-25  9:21 ` [PATCH 1/2] iommu/rockchip: Reduce rk_iommu_ops to pure data Simon Xue
2026-08-25  9:21 ` [PATCH 2/2] iommu/rockchip: Reject unsupported physical addresses Simon Xue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox