Re: [PATCH] iommu/generic_pt: Fix the RISC-V supported feature mask

"Nutty.Liu" <[email protected]>
Newsgroups dev.linux.lists.iommu,org.infradead.lists.linux-riscv,org.kernel.vger.linux-kernel
Message-ID <SE3PR04MB892225C3EBCB09734BD2FD16F3A52@SE3PR04MB8922.apcprd04.prod.outlook.com>
On 8/18/2026 5:24 PM, Andrew Jones wrote:
> The RISC-V format advertises Svpbmt to its users, but omits the feature
> from PT_SUPPORTED_FEATURES. Add it there so configurations which enable
> Svpbmt pass generic page-table feature validation.
>
> Fixes: f196a8668797 ("iommu/riscv: Advertise Svpbmt support to generic page table")
> Signed-off-by: Andrew Jones <[email protected]>
Reviewed-by: Nutty Liu <[email protected]>

Thanks,
Nutty
> ---
>   drivers/iommu/generic_pt/fmt/iommu_riscv64.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/iommu/generic_pt/fmt/iommu_riscv64.c b/drivers/iommu/generic_pt/fmt/iommu_riscv64.c
> index b18fc4d109f5..1bb74114fb02 100644
> --- a/drivers/iommu/generic_pt/fmt/iommu_riscv64.c
> +++ b/drivers/iommu/generic_pt/fmt/iommu_riscv64.c
> @@ -7,7 +7,8 @@
>   #define PT_SUPPORTED_FEATURES                                  \
>   	(BIT(PT_FEAT_SIGN_EXTEND) | BIT(PT_FEAT_FLUSH_RANGE) | \
>   	 BIT(PT_FEAT_RISCV_SVNAPOT_64K) |                      \
> -	 BIT(PT_FEAT_DETAILED_GATHER))
> +	 BIT(PT_FEAT_DETAILED_GATHER) |                        \
> +	 BIT(PT_FEAT_RISCV_SVPBMT))
>   #define PT_FORCE_ENABLED_FEATURES BIT(PT_FEAT_DETAILED_GATHER)
>   
>   #include "iommu_template.h"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.