Re: [PATCH v3 18/19] iommu/amd: Print access/dirty bits if supported

Joao Martins
2023-10-17T09:09:28Z

On 17/10/2023 04:48, Suthikulpanit, Suravee wrote:
> On 9/23/2023 8:25 AM, Joao Martins wrote:
>> Print the feature, much like other kernel-supported features.
>>
>> One can still probe its actual hw support via sysfs, regardless
>> of what the kernel does.
>>
>> Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
>> ---
>>   drivers/iommu/amd/init.c | 4 ++++
>>   1 file changed, 4 insertions(+)
>>
>> diff --git a/drivers/iommu/amd/init.c b/drivers/iommu/amd/init.c
>> index 45efb7e5d725..b091a3d10819 100644
>> --- a/drivers/iommu/amd/init.c
>> +++ b/drivers/iommu/amd/init.c
>> @@ -2208,6 +2208,10 @@ static void print_iommu_info(void)
>>                 if (iommu->features & FEATURE_GAM_VAPIC)
>>                   pr_cont(" GA_vAPIC");
>> +            if (iommu->features & FEATURE_HASUP)
>> +                pr_cont(" HASup");
>> +            if (iommu->features & FEATURE_HDSUP)
>> +                pr_cont(" HDSup");
>>                 if (iommu->features & FEATURE_SNP)
>>                   pr_cont(" SNP");
>
> Reviewed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
>
Thanks!