Re: [PATCH] fsl_pamu: Use 40-bits for addressing where appropriate

2025-04-22 Thread Ben Collins
On Tue, Apr 22, 2025 at 08:43:05PM -0500, Jason Gunthorpe wrote: > On Tue, Apr 22, 2025 at 06:21:32PM -0400, Ben Collins wrote: > > On Tue, Apr 22, 2025 at 04:09:21PM -0500, Jason Gunthorpe wrote: > > > On Mon, Apr 21, 2025 at 10:46:19PM -0400, Ben Collins wrote: > > > > diff --git a/drivers/iommu/

Re: [PATCH] fsl_pamu: Use 40-bits for addressing where appropriate

2025-04-22 Thread Jason Gunthorpe
On Tue, Apr 22, 2025 at 06:21:32PM -0400, Ben Collins wrote: > On Tue, Apr 22, 2025 at 04:09:21PM -0500, Jason Gunthorpe wrote: > > On Mon, Apr 21, 2025 at 10:46:19PM -0400, Ben Collins wrote: > > > diff --git a/drivers/iommu/fsl_pamu_domain.c > > > b/drivers/iommu/fsl_pamu_domain.c > > > index 30

Re: [PATCH] fsl_pamu: Use 40-bits for addressing where appropriate

2025-04-22 Thread Ben Collins
On Tue, Apr 22, 2025 at 04:09:21PM -0500, Jason Gunthorpe wrote: > On Mon, Apr 21, 2025 at 10:46:19PM -0400, Ben Collins wrote: > > diff --git a/drivers/iommu/fsl_pamu_domain.c > > b/drivers/iommu/fsl_pamu_domain.c > > index 30be786bff11e..a4bc6482a00f7 100644 > > --- a/drivers/iommu/fsl_pamu_doma

Re: [PATCH] fsl_pamu: Use 40-bits for addressing where appropriate

2025-04-22 Thread Jason Gunthorpe
On Mon, Apr 21, 2025 at 10:46:19PM -0400, Ben Collins wrote: > diff --git a/drivers/iommu/fsl_pamu_domain.c b/drivers/iommu/fsl_pamu_domain.c > index 30be786bff11e..a4bc6482a00f7 100644 > --- a/drivers/iommu/fsl_pamu_domain.c > +++ b/drivers/iommu/fsl_pamu_domain.c > @@ -214,9 +214,10 @@ static str

[PATCH] fsl_pamu: Use 40-bits for addressing where appropriate

2025-04-21 Thread Ben Collins
On 64-bit QorIQ platforms like T4240, the CPU supports 40-bit addressing and it's safe to move resources to the upper bounds of the 1TiB limit to make room for > 64GiB of memory. The PAMU driver does not account for this, however. Setup fsl,pamu driver to make use of the full 40-bit addressing spa