[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1c9767e1-4d05-4650-bc14-65a18fc63cc2@os.amperecomputing.com>
Date: Wed, 2 Oct 2024 12:04:32 -0700
From: Yang Shi <yang@...amperecomputing.com>
To: Nicolin Chen <nicolinc@...dia.com>
Cc: jgg@...pe.ca, james.morse@....com, will@...nel.org, robin.murphy@....com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [v2 PATCH] iommu/arm-smmu-v3: Fix L1 stream table index
calculation for 32-bit sid size
On 10/2/24 11:17 AM, Nicolin Chen wrote:
> I think both v1 and v2 are missing iommu@...ts.linux.dev in CC.
Will do it for the later revision.
>
> On Wed, Oct 02, 2024 at 10:55:14AM -0700, Yang Shi wrote:
>> +static inline unsigned int arm_smmu_strtab_max_sid(struct arm_smmu_device *smmu)
>> +{
>> + return (1ULL << smmu->sid_bits);
>> +}
>> +
> Hmm, why ULL gets truncated to unsigned int here?
No particular reason, but it should be better to not truncate here. Will
fix it.
>
> Thanks
> Nicolin
Powered by blists - more mailing lists