]> git.ipfire.org Git - thirdparty/linux.git/commit
iommu/riscv: Include the dword number in RISCV_IOMMU_CMD macros
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 8 May 2026 14:53:06 +0000 (11:53 -0300)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 19 May 2026 08:48:09 +0000 (10:48 +0200)
commit835d06ee7ef0c2fc2adcf5bae5355c8bad900c21
tree0ff5fb23378a1611963f64d19f1a8684539ddb1e
parente4084c6bbb42b0ef2dbfceca70513cc1f49aff61
iommu/riscv: Include the dword number in RISCV_IOMMU_CMD macros

The command queue entry format is 128 bits. Follow the pattern of the
other drivers and encode the 64 bit dword number in the macro
itself. RISC-V further has similarly named macros that are not field
layout macros, but field content macros which won't get a new number.

Overall this is clearer to understand the code and check for errors like
using the wrong macro in the wrong spot.

Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Tomasz Jeznach <tjeznach@rivosinc.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