[RFC PATCH v2 01/10] iommupt: Add RISC-V Second-stage (iohgatp) page table support
fangyu.yu at linux.alibaba.com
fangyu.yu at linux.alibaba.com
Tue Aug 18 05:59:10 PDT 2026
>On Thu, May 07, 2026 at 07:36:57PM +0800, fangyu.yu at linux.alibaba.com wrote:
>...
>> diff --git a/include/linux/generic_pt/common.h b/include/linux/generic_pt/common.h
>> index fc5d0b5edadc..59448125159e 100644
>> --- a/include/linux/generic_pt/common.h
>> +++ b/include/linux/generic_pt/common.h
>> @@ -188,7 +188,10 @@ enum {
>> * Support the 64k contiguous page size following the Svnapot extension.
>> */
>> PT_FEAT_RISCV_SVNAPOT_64K = PT_FEAT_FMT_START,
>> -
>> + /*
>> + * Using second-stage / iohgatp address translation.
>> + */
>> + PT_FEAT_RISCV_S2,
>
>Hi Fangyu,
>
>I just sent [1], but I actually discovered that issue when testing this
>patch and finding PT_FEAT_RISCV_S2 was missing from PT_SUPPORTED_FEATURES.
>So this patch needs the same fix as [1] as well.
>
Hi Andrew,
Thanks for catching this. I'll fix it in the next revision.
>Thanks,
>drew
>
>[1] https://lore.kernel.org/all/20260818092444.42755-1-andrew.jones@oss.qualcomm.com/
More information about the linux-riscv
mailing list