]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommu/riscv: Add RISCV_IOMMU_CAPABILITIES_NL
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 8 May 2026 14:53:05 +0000 (11:53 -0300)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 19 May 2026 08:48:09 +0000 (10:48 +0200)
commite4084c6bbb42b0ef2dbfceca70513cc1f49aff61
treea58045f7ee39afed70ad6130062bcc901fbb5e50
parentbb62adcf451336301f75763d3a4851febf1dd9ba
iommu/riscv: Add RISCV_IOMMU_CAPABILITIES_NL

Non-leaf invalidation allows the single invalidate command to also
clear the walk cache. If NL is available, set the NL bit if the
gather indicates tables have been changed. The stride is already
calculated properly.

Reviewed-by: Tomasz Jeznach <tjeznach@rivosinc.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Tested-by: Andrew Jones <andrew.jones@oss.qualcomm.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/riscv/iommu-bits.h
drivers/iommu/riscv/iommu.c