Thread (55 messages) 55 messages, 7 authors, 2025-03-18

Re: [PATCH v3 20/23] iommu: Update various drivers to pass in lg2sz instead of order to iommu pages

From: Baolu Lu <baolu.lu@linux.intel.com>
Date: 2025-02-26 13:27:33
Also in: asahi, linux-iommu, linux-patches, linux-riscv, linux-rockchip, linux-samsung-soc, linux-sunxi, linux-tegra

On 2025/2/26 3:39, Jason Gunthorpe wrote:
Convert most of the places calling get_order() as an argument to the
iommu-pages allocator into order_base_2() or the _sz flavour
instead. These places already have an exact size, there is no particular
reason to use order here.

Signed-off-by: Jason Gunthorpe<jgg@nvidia.com>
---
  drivers/iommu/amd/init.c        | 29 +++++++++++++++--------------
  drivers/iommu/intel/dmar.c      |  6 +++---
  drivers/iommu/io-pgtable-arm.c  |  3 +--
  drivers/iommu/io-pgtable-dart.c | 12 +++---------
  drivers/iommu/sun50i-iommu.c    |  4 ++--
  5 files changed, 24 insertions(+), 30 deletions(-)
For changes in intel iommu driver,

Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help