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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Joao,

On 9/23/2023 6:55 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@xxxxxxxxxx>
> ---
>  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");

Note that this has a conflict with iommu/next branch. But it should be fairly
straight to fix it. Otherwise patch looks good to me.

Reviewed-by: Vasant Hegde <vasant.hegde@xxxxxxx>

-Vasant






[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux