[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <dc607792-0285-6a11-83f9-9dafd083bd9b@linux.intel.com>
Date: Thu, 19 May 2022 19:55:13 +0800
From: Baolu Lu <baolu.lu@...ux.intel.com>
To: Jean-Philippe Brucker <jean-philippe@...aro.org>
Cc: baolu.lu@...ux.intel.com, Joerg Roedel <joro@...tes.org>,
Jason Gunthorpe <jgg@...dia.com>,
Christoph Hellwig <hch@...radead.org>,
Kevin Tian <kevin.tian@...el.com>,
Ashok Raj <ashok.raj@...el.com>, Will Deacon <will@...nel.org>,
Robin Murphy <robin.murphy@....com>,
Jean-Philippe Brucker <jean-philippe@...aro.com>,
Dave Jiang <dave.jiang@...el.com>,
Vinod Koul <vkoul@...nel.org>,
Eric Auger <eric.auger@...hat.com>,
Liu Yi L <yi.l.liu@...el.com>,
Jacob jun Pan <jacob.jun.pan@...el.com>,
iommu@...ts.linux-foundation.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v7 01/10] iommu: Add pasids field in struct iommu_device
Hi Jean,
On 2022/5/19 18:37, Jean-Philippe Brucker wrote:
> On Thu, May 19, 2022 at 03:20:38PM +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 88817a3376ef..6e2cd082c670 100644
>> --- a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
>> +++ b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
>> @@ -3546,6 +3546,7 @@ static int arm_smmu_device_hw_probe(struct arm_smmu_device *smmu)
>> /* SID/SSID sizes */
>> smmu->ssid_bits = FIELD_GET(IDR1_SSIDSIZE, reg);
>> smmu->sid_bits = FIELD_GET(IDR1_SIDSIZE, reg);
>> + smmu->iommu.pasids = smmu->ssid_bits;
> This should be 1UL << smmu->ssid_bits
Done. Thank you for the reminding.
Best regards,
baolu
Powered by blists - more mailing lists