Re: [RFC PATCH 3/6] iommu: Use bitmap to calculate page size in iommu_pgsize()

2021-04-06 Thread Will Deacon
On Thu, Apr 01, 2021 at 06:39:35PM -0700, isa...@codeaurora.org wrote: > On 2021-04-01 09:47, Will Deacon wrote: > > Avoid the potential for shifting values by amounts greater than the > > width of their type by using a bitmap to compute page size in > > iommu_pgsize(). > > > > Signed-off-by:

Re: [RFC PATCH 3/6] iommu: Use bitmap to calculate page size in iommu_pgsize()

2021-04-01 Thread isaacm
On 2021-04-01 09:47, Will Deacon wrote: Avoid the potential for shifting values by amounts greater than the width of their type by using a bitmap to compute page size in iommu_pgsize(). Signed-off-by: Will Deacon --- drivers/iommu/iommu.c | 31 --- 1 file changed,

[RFC PATCH 3/6] iommu: Use bitmap to calculate page size in iommu_pgsize()

2021-04-01 Thread Will Deacon
Avoid the potential for shifting values by amounts greater than the width of their type by using a bitmap to compute page size in iommu_pgsize(). Signed-off-by: Will Deacon --- drivers/iommu/iommu.c | 31 --- 1 file changed, 12 insertions(+), 19 deletions(-) diff