[PATCH v3 2/5] iommu/io-pgtable: Move Apple DART support to its own file

2022-06-21 Thread Janne Grunau
without support for huge pages. Signed-off-by: Janne Grunau --- Changes in v3: - move APPLE_DART to its own io-pgtable implementation, copied from io-pgtable-arm and simplified Changes in v2: - add APPLE_DART2 io-pgtable format MAINTAINERS | 1 + drivers/iommu/Kconfig

[PATCH v3 1/5] dt-bindings: iommu: dart: add t6000 compatible

2022-06-21 Thread Janne Grunau
From: Sven Peter The M1 Max/Pro SoCs come with a new DART variant that is incompatible with the previous one. Add a new compatible for those. Signed-off-by: Sven Peter Acked-by: Rob Herring Signed-off-by: Janne Grunau --- (no changes since v2) Changes in v2: - added Rob's Acked

[PATCH v3 4/5] iommu/io-pgtable-dart: Add DART PTE support for t6000

2022-06-21 Thread Janne Grunau
to the entire page. This feature is already present but optional on the previous DARTs which allows to unconditionally configure it. Signed-off-by: Sven Peter Co-developed-by: Janne Grunau Signed-off-by: Janne Grunau --- Changes in v3: - apply change to io-pgtable-dart.c - handle pte <>

[PATCH v3 5/5] iommu: dart: Support t6000 variant

2022-06-21 Thread Janne Grunau
-by: Sven Peter Co-developed-by: Janne Grunau Signed-off-by: Janne Grunau --- Changes in v3: - apply change to io-pgtable-dart.c Changes in v2: - use APPLE_DART2 PTE format for dart-t6000 drivers/iommu/apple-dart.c | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff

[PATCH v3 3/5] iommu/io-pgtable: Add DART subpage protection support

2022-06-21 Thread Janne Grunau
From: Sven Peter DART allows to only expose a subpage to the device. While this is an optional feature on the M1 DARTs the new ones present on the Pro/Max models require this field in every PTE. Signed-off-by: Sven Peter Signed-off-by: Janne Grunau --- Changes in v3: - apply change to io

[PATCH v3 0/5] iommu: M1 Pro/Max DART support

2022-06-21 Thread Janne Grunau
its own io-pgtable implementation, copied from io-pgtable-arm and simplified Changes in v2: - added Rob's Acked-by: - add APPLE_DART2 io-pgtable format Janne Grunau (1): iommu/io-pgtable: Move Apple DART support to its own file Sven Peter (4): dt-bindings: iommu: dart: add t6000 compatible

Re: [PATCH v5 2/5] iommu: Implement of_iommu_get_resv_regions()

2022-05-15 Thread Janne Grunau
On 2022-05-12 21:00:49 +0200, Thierry Reding wrote: > From: Thierry Reding > > This is an implementation that IOMMU drivers can use to obtain reserved > memory regions from a device tree node. It uses the reserved-memory DT > bindings to find the regions associated with a given device. If these

Re: [PATCH v5 1/5] dt-bindings: reserved-memory: Document iommu-addresses

2022-05-15 Thread Janne Grunau
On 2022-05-12 21:00:48 +0200, Thierry Reding wrote: > From: Thierry Reding > > This adds the "iommu-addresses" property to reserved-memory nodes, which > allow describing the interaction of memory regions with IOMMUs. Two use- > cases are supported: > > 1. Static mappings can be described by

Re: [PATCH v5 0/5] iommu: Support mappings/reservations in reserved-memory regions

2022-05-15 Thread Janne Grunau
Hej, I'm working on the display controller for Apple silicon SoCs and will add some comments with support for it in mind. added as...@lists.linux.dev to CC for the Apple silicon related aspects On 2022-05-12 21:00:47 +0200, Thierry Reding wrote: > > this is another attempt at solving the

[PATCH v2 4/4] iommu: dart: Support t6000 variant

2022-05-03 Thread Janne Grunau
-by: Sven Peter Co-developed-by: Janne Grunau Signed-off-by: Janne Grunau --- Changes since v1: - use APPLE_DART PTE format for dart-t6000 --- drivers/iommu/apple-dart.c | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/drivers/iommu/apple-dart.c b/drivers

[PATCH v2 1/4] dt-bindings: iommu: dart: add t6000 compatible

2022-05-03 Thread Janne Grunau
From: Sven Peter The M1 Max/Pro SoCs come with a new DART variant that is incompatible with the previous one. Add a new compatible for those. Signed-off-by: Sven Peter Acked-by: Rob Herring --- v2 changes: - added Rob's Acked-by: --- Documentation/devicetree/bindings/iommu/apple,dart.yaml

[PATCH v2 0/4] iommu: M1 Pro/Max DART support

2022-05-03 Thread Janne Grunau
Hej, I've taken over this series to add support for DART on M1 Pro/Max from Sven. Since v1 we have discovered further differences in the PTE format. It has four differences which makes it incompatible with the one in the M1: - the physical addresses are shifted left by 4 bits and and have 2

[PATCH v2 3/4] iommu/io-pgtable: Add DART PTE support for t6000

2022-05-03 Thread Janne Grunau
; mappings. They also come with mandatory sub-page protection now which we just configure to always allow access to the entire page. This feature is already present but optional on the previous DARTs which allows to unconditionally configure it. Signed-off-by: Sven Peter Co-developed-by: Janne Grunau

[PATCH v2 2/4] iommu/io-pgtable: Add DART subpage protection support

2022-05-03 Thread Janne Grunau
From: Sven Peter DART allows to only expose a subpage to the device. While this is an optional feature on the M1 DARTs the new ones present on the Pro/Max models require this field in every PTE. Signed-off-by: Sven Peter --- drivers/iommu/io-pgtable-arm.c | 10 ++ 1 file changed, 10

Re: [PATCH v2 1/5] dt-bindings: reserved-memory: Document memory region specifier

2022-04-01 Thread Janne Grunau
On 2022-03-31 18:25:05 +0200, Thierry Reding wrote: > On Fri, Feb 11, 2022 at 12:15:44AM +0100, Janne Grunau wrote: > > On 2022-02-09 17:31:16 +0100, Thierry Reding wrote: > > > On Sun, Feb 06, 2022 at 11:27:00PM +0100, Janne Grunau wrote: > > > > On 2021-09-15 17:19:

Re: [PATCH v2 1/5] dt-bindings: reserved-memory: Document memory region specifier

2022-02-10 Thread Janne Grunau
On 2022-02-09 17:31:16 +0100, Thierry Reding wrote: > On Sun, Feb 06, 2022 at 11:27:00PM +0100, Janne Grunau wrote: > > On 2021-09-15 17:19:39 +0200, Thierry Reding wrote: > > > On Tue, Sep 07, 2021 at 07:44:44PM +0200, Thierry Reding wrote: > > > > On Tue, Sep 07,

Re: [PATCH v2 1/5] dt-bindings: reserved-memory: Document memory region specifier

2022-02-06 Thread Janne Grunau
On 2021-09-15 17:19:39 +0200, Thierry Reding wrote: > On Tue, Sep 07, 2021 at 07:44:44PM +0200, Thierry Reding wrote: > > On Tue, Sep 07, 2021 at 10:33:24AM -0500, Rob Herring wrote: > > > On Fri, Sep 3, 2021 at 10:36 AM Thierry Reding > > > wrote: > > > > > > > > On Fri, Sep 03, 2021 at

Re: [PATCH 0/4] iommu: M1 Pro/Max DART support

2021-11-30 Thread Janne Grunau
mmu/apple,dart.yaml | 4 +- > drivers/iommu/apple-dart.c| 19 - > drivers/iommu/io-pgtable-arm.c| 40 ++- > include/linux/io-pgtable.h| 2 + > 4 files changed, 61 insertions(+), 4 delet