Re: [PATCH RFC 01/11] iommu: Add pasid_bits field in struct dev_iommu

Lu Baolu
2022-03-22T00:45:16Z

On 2022/3/21 19:22, Jean-Philippe Brucker wrote:
> Hi Baolu,
>
> On Sun, Mar 20, 2022 at 02:40:20PM +0800, Lu Baolu wrote:
>> diff --git a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
>> index 627a3ed5ee8f..8e262210b5ad 100644
>> --- a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
>> +++ b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
>> @@ -2812,6 +2812,7 @@ static int arm_smmu_dev_enable_feature(struct device *dev,
>> master->iopf_enabled = true;
>> return 0;
>> case IOMMU_DEV_FEAT_SVA:
>> + dev->iommu->pasid_bits = master->ssid_bits;
> This would be better in arm_smmu_probe_device()

Sure.

Best regards,
baolu