Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions chips/s8003.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ stages = ["iBSS", "iBEC"]
page_size = "xnu-6153.141.1 osfmk/arm/proc_reg.h"
platform = "J71t on hardware; USB serial and networking verified"
stages = "remote_boot two-stage CPID list"
display = "J71t: display DART/SMMU pattern CRC passed; desktop and imported-plane scanout verified on the full development kernel"
1 change: 1 addition & 0 deletions chips/t8010.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ stages = ["iBSS"]
page_size = "xnu-6153.141.1 osfmk/arm/proc_reg.h"
platform = "J71b on hardware"
stages = "J71b single-stage on hardware; iBSS and iBEC same size"
display_dart = "J71b/J171 ADT display DART/SMMU; iPad 6 translation guarded by pipe CRC, untested on hardware"
1 change: 1 addition & 0 deletions devices/j71b/device.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ status = "supported"

# States: working, untested, missing, none (features.toml).
[features]
# Display DART/SMMU scanout is enabled behind the pipe-CRC gate; untested on A10.
display = "working"
screen_off = "working"
backlight = "working"
Expand Down
3 changes: 2 additions & 1 deletion devices/j71t/device.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ status = "experimental"

# States: working, untested, missing, none (features.toml).
[features]
display = "untested"
# Display DART/SMMU pattern CRC and imported-plane scanout verified on J71t.
display = "working"
screen_off = "untested"
backlight = "untested"
touch = "untested"
Expand Down
1 change: 1 addition & 0 deletions devices/j72b/device.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ status = "experimental"

# States: working, untested, missing, none (features.toml).
[features]
# Display DART/SMMU scanout is enabled behind the pipe-CRC gate; untested on A10.
display = "untested"
screen_off = "untested"
backlight = "untested"
Expand Down
2 changes: 1 addition & 1 deletion docs/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Boards Orchard builds for. States: working, untested, missing, none (no such har
| `n66` | untested | missing | untested | missing | untested | untested | untested | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | untested | untested | untested | untested | missing | missing | missing | missing | missing |
| `n69u` | untested | missing | untested | missing | untested | untested | untested | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | untested | untested | untested | untested | missing | missing | missing | missing | missing |
| `n71` | untested | missing | untested | missing | untested | untested | untested | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | untested | untested | untested | untested | missing | missing | missing | missing | missing |
| `j71t` | untested | untested | untested | untested | untested | working | working | working | missing | untested | untested | untested | untested | untested | none | untested | untested | untested | untested | untested | working | working | working | working | untested | missing | working |
| `j71t` | working | untested | untested | untested | untested | working | working | working | missing | untested | untested | untested | untested | untested | none | untested | untested | untested | untested | untested | working | working | working | working | untested | missing | working |
| `j72t` | untested | untested | untested | untested | untested | untested | untested | untested | missing | untested | untested | untested | untested | untested | missing | untested | untested | untested | untested | untested | untested | untested | untested | untested | untested | missing | untested |
| `n66m` | untested | missing | untested | missing | untested | untested | untested | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | untested | untested | untested | untested | missing | missing | missing | missing | missing |
| `n69` | untested | missing | untested | missing | untested | untested | untested | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | untested | untested | untested | untested | missing | missing | missing | missing | missing |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
From 003db12ba455457f107026f6d80d61e63e46befb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Berkay=20K=C3=B6sebay?= <brkosebay@users.noreply.github.com>
Date: Mon, 16 Nov 2026 18:46:22 +0100
Subject: [PATCH] arm64: dts: apple: s8003: Describe the display DART and SMMU

The display pipe fetches through two translation front ends. Describe
the DART and SMMU windows, both fault interrupts, and the deferred-attach
scanout master so the boot framebuffer can be mapped before attachment.
Keep the IOMMU disabled until the display driver prepares the live mapping.
Only S8003 gets this node; T8010 scanout is unchanged.
Record the supplied J71t display proof in the hardware catalog and
regenerate its support matrix; other boards retain their recorded status.

Affects: Apple A9 S8003 display DART.

Assisted-by: LLM
---
arch/arm64/boot/dts/apple/s8003.dtsi | 38 ++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)

diff --git a/arch/arm64/boot/dts/apple/s8003.dtsi b/arch/arm64/boot/dts/apple/s8003.dtsi
index 1ed521d..f7c6c6f 100644
--- a/arch/arm64/boot/dts/apple/s8003.dtsi
+++ b/arch/arm64/boot/dts/apple/s8003.dtsi
@@ -94,6 +94,44 @@
<AIC_IRQ 146 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&ps_disp0>, <&ps_dp>;
status = "disabled";
+
+ /*
+ * The pipe's reads as a DMA master behind dart-disp0: every
+ * stream of its DART. Used for verified translated
+ * scanout; it then enables the DART below and
+ * creates this device itself, after mapping the live boot
+ * framebuffer, so translation never starts under an unmapped
+ * fetch.
+ */
+ scanout {
+ iommus = <&disp0_dart 0>, <&disp0_dart 1>,
+ <&disp0_dart 2>, <&disp0_dart 3>;
+ apple,dart-deferred-attach;
+ };
+ };
+
+ /*
+ * ADT dart-disp0: the DART and its SMMU front end. iOS enables
+ * each stream in both windows; only the DART owns tables and TLB
+ * commands. The pipe maps dart1 without requesting it, so this
+ * node owns the SMMU resource. Disabled until the display driver prepares
+ * its live mapping and verifies translated scanout.
+ */
+ disp0_dart: iommu@206304000 {
+ compatible = "apple,s8000-dart", "apple,s5l8960x-dart";
+ reg = <0x2 0x06304000 0x0 0x4000>,
+ <0x2 0x06300000 0x0 0x4000>;
+ reg-names = "dart", "smmu";
+ #iommu-cells = <1>;
+ interrupt-parent = <&aic>;
+ interrupts = <AIC_IRQ 141 IRQ_TYPE_LEVEL_HIGH>,
+ <AIC_IRQ 142 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "dart", "smmu";
+ power-domains = <&ps_disp0>;
+ apple,error-reflector = /bits/ 64 <0x20fffc000>;
+ apple,fetch-config = <0x000e0303>;
+ apple,diag-config = <0x00000100>;
+ status = "disabled";
};

/* ADT tempsensor,s8000 (AppleT700XTempSensor): SOC and TCC blocks */
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
From 6b012d7280861afb8365c708e5992aa1644fe644 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Berkay=20K=C3=B6sebay?= <brkosebay@users.noreply.github.com>
Date: Mon, 16 Nov 2026 19:29:13 +0100
Subject: [PATCH] arm64: dts: apple: t8010: Describe verified display DART
scanout

Fullscreen imported buffers otherwise require a compositor pass on the
1536x2048 iPad 6 panel. Describe the display DART and SMMU with their ADT
windows, reflector, configuration and fault interrupts, and give disp0 a
deferred-attach scanout master. Reuse the same map-before-attach and mandatory
pipe-CRC gate as S8003; no unchecked T8010 translation path is introduced.

Use the display back-end domain, which keeps its front end powered, because
there is no separate DISP0_DART domain in the current PMGR description.
The ADT's smmu-options=2 and dart-options=5 are noted for hardware testers;
no speculative properties or register writes are added for them.
disp0 is enabled on the iPad 6 and, through the shared iPad 6 include, on
the iPad 7. On the iPad 7 the display driver rejects the boot framebuffer
size at probe, before any DART code runs, so it stays on simpledrm and the
scanout master is never attached there. Translated scanout is untested on
A10 hardware.

Affects: Apple A10 iPad 6 display scanout; the iPad 7 stays on simpledrm.

Assisted-by: LLM
---
arch/arm64/boot/dts/apple/t8010.dtsi | 30 ++++++++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/apple/t8010.dtsi b/arch/arm64/boot/dts/apple/t8010.dtsi
index 73262df..d4be88a 100644
--- a/arch/arm64/boot/dts/apple/t8010.dtsi
+++ b/arch/arm64/boot/dts/apple/t8010.dtsi
@@ -613,8 +613,8 @@

/*
* iBoot leaves the eDP link, the panel and the pipe running; the
- * driver adopts that mode. The display DART (dart-disp0) is only
- * read, to check that the scanout bypasses translation.
+ * driver adopts that mode. The display DART (dart-disp0) stays
+ * in bypass until the driver maps and verifies translated scanout.
*/
disp0: display-controller@206200000 {
compatible = "apple,t8010-display-pipe", "apple,s8000-display-pipe";
@@ -631,6 +631,32 @@
<AIC_IRQ 155 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&ps_disp0_fe>, <&ps_disp0_be>, <&ps_dp>;
status = "disabled";
+
+ /* Map the live boot framebuffer before enabling translation. */
+ scanout {
+ iommus = <&disp0_dart 0>, <&disp0_dart 1>,
+ <&disp0_dart 2>, <&disp0_dart 3>;
+ apple,dart-deferred-attach;
+ };
+ };
+
+ /* Disabled until the display driver maps and verifies scanout. */
+ disp0_dart: iommu@206304000 {
+ compatible = "apple,t8010-dart", "apple,s5l8960x-dart";
+ reg = <0x2 0x06304000 0x0 0x4000>,
+ <0x2 0x06300000 0x0 0x4000>;
+ reg-names = "dart", "smmu";
+ #iommu-cells = <1>;
+ interrupt-parent = <&aic>;
+ interrupts = <AIC_IRQ 156 IRQ_TYPE_LEVEL_HIGH>,
+ <AIC_IRQ 157 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "dart", "smmu";
+ /* No separate DISP0_DART domain; BE keeps FE powered too. */
+ power-domains = <&ps_disp0_be>;
+ apple,error-reflector = /bits/ 64 <0x20fffc000>;
+ apple,fetch-config = <0x000e0303>;
+ apple,diag-config = <0x00000100>;
+ status = "disabled";
};

pmgr: power-management@20e000000 {
Loading
Loading