Re: [PATCH 10/10] iommu/vt-d: Simplify calculate_psi_aligned_address()
From: Baolu Lu
Date: Thu Apr 02 2026 - 04:47:51 EST
On 4/2/26 14:57, Lu Baolu wrote:
From: Jason Gunthorpe<jgg@xxxxxxxxxx>
This is doing far too much math for the simple task of finding a power
of 2 that fully spans the given range. Use fls directly on the xor
which computes the common binary prefix.
Signed-off-by: Jason Gunthorpe<jgg@xxxxxxxxxx>
Link:https://lore.kernel.org/r/4-v1-f175e27af136+11647- iommupt_inv_vtd_jgg@xxxxxxxxxx
Signed-off-by: Lu Baolu<baolu.lu@xxxxxxxxxxxxxxx>
---
drivers/iommu/intel/cache.c | 49 ++++++++++++-------------------------
1 file changed, 16 insertions(+), 33 deletions(-)
Hi Joerg,
Can you please remove this last patch from the pull request? The AI
reviewer reported an issue in this patch.
https://sashiko.dev/#/patchset/20260402065734.1687476-1-baolu.lu%40linux.intel.com
We need more time to evaluate and address this before it is merged into
linux-next.
Thanks,
baolu