From: Simon Xue <xxm@rock-chips.com>
To: Heiko Stuebner <heiko@sntech.de>
Cc: Simon Xue <xxm@rock-chips.com>,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org
Subject: [PATCH 0/2] iommu/rockchip: turn rk_iommu_ops into data
Date: Tue, 25 Aug 2026 17:21:30 +0800 [thread overview]
Message-ID: <20260825092132.154150-1-xxm@rock-chips.com> (raw)
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
next reply other threads:[~2026-08-25 9:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-25 9:21 Simon Xue [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260825092132.154150-1-xxm@rock-chips.com \
--to=xxm@rock-chips.com \
--cc=heiko@sntech.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-rockchip@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox