[PATCH v2 08/10] iommu/arm-smmu-v3: Shrink the cdtab l1_desc array

Jason Gunthorpe jgg at nvidia.com
Tue Jul 9 16:53:15 PDT 2024


On Tue, Jul 02, 2024 at 07:46:07PM +0100, Will Deacon wrote:

> > +static dma_addr_t arm_smmu_cd_l1_get_desc(const __le64 *src)
> > +{
> > +	return le64_to_cpu(src) & CTXDESC_L1_DESC_L2PTR_MASK;
> > +}
> 
> I'm assuming this is supposed to be *src, in which case this could
> be

Oh I see now, a few patches later it becomes:

static dma_addr_t arm_smmu_cd_l1_get_desc(const struct arm_smmu_cdtab_l1 *src)
{
	return le64_to_cpu(src->l2ptr) & CTXDESC_L1_DESC_L2PTR_MASK;
}

Which makes it fine, it is just a bisection thing.

Jason



More information about the linux-arm-kernel mailing list