[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <172840906883.3011353.5847751267067117740.b4-ty@kernel.org>
Date: Tue, 8 Oct 2024 19:24:08 +0100
From: Will Deacon <will@...nel.org>
To: iommu@...ts.linux.dev,
linux-kernel@...r.kernel.org,
Daniel Mentz <danielmentz@...gle.com>
Cc: catalin.marinas@....com,
kernel-team@...roid.com,
Will Deacon <will@...nel.org>,
Nicolin Chen <nicolinc@...dia.com>,
Ryan Huang <tzukui@...gle.com>,
Mostafa Saleh <smostafa@...gle.com>,
Jason Gunthorpe <jgg@...pe.ca>
Subject: Re: [PATCH] iommu/arm-smmu-v3: Fix last_sid_idx calculation for sid_bits==32
On Tue, 01 Oct 2024 18:53:57 -0700, Daniel Mentz wrote:
> The function arm_smmu_init_strtab_2lvl uses the expression
>
> ((1 << smmu->sid_bits) - 1)
>
> to calculate the largest StreamID value. However, this fails for the
> maximum allowed value of SMMU_IDR1.SIDSIZE which is 32. The C standard
> states:
>
> [...]
Applied to will (for-joerg/arm-smmu/fixes), thanks!
[1/1] iommu/arm-smmu-v3: Fix last_sid_idx calculation for sid_bits==32
https://git.kernel.org/will/c/f63237f54cf1
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
Powered by blists - more mailing lists