[v2 PATCH] iommu/arm-smmu-v3: Fix L1 stream table index calculation for 32-bit sid size

Nicolin Chen nicolinc at nvidia.com
Wed Oct 2 11:17:24 PDT 2024


I think both v1 and v2 are missing iommu at lists.linux.dev in CC.

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?

Thanks
Nicolin



More information about the linux-arm-kernel mailing list