Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
341cd38
arm64: dts: apple: share the T604x SoC and PMGR description
astaff Oct 28, 2026
b805376
arm64: dts: apple: add the T6041 J616c board
astaff Oct 28, 2026
553968e
drm/asahi: share T604x register-window constructors
astaff Oct 28, 2026
3ae8de4
drm/asahi: add T6041 and the measured 25F84 firmware profile
astaff Oct 28, 2026
91f4fbe
drm/asahi: isolate 25F84 recovery and serial-render workarounds
astaff Oct 28, 2026
f3492cd
drm/apple: support T6041 desktop 26.5.2 DCP firmware
astaff Oct 28, 2026
3ca17e7
drm/apple: wait for flip completion before retiring a commit
astaff Oct 28, 2026
3db1129
soc: apple: use explicit word access for T6041 AOP bootargs
astaff Oct 28, 2026
285fe12
ASoC: apple: add protected J616c AOP audio
astaff Oct 28, 2026
5f7fc7b
media: apple: avd: admit qualified HEVC on J616c
astaff Oct 28, 2026
1ee7691
watchdog: apple: set ownership and honour nowayout
astaff Oct 28, 2026
fc821a8
tools: check T6041 initialization data against explicit captures
astaff Oct 28, 2026
edbddfe
arm64: dts: apple: preserve T604x CPU order for m1n1
astaff Oct 28, 2026
c048e0e
drm/asahi: scope experimental TA mode 1 to T6041 25F84
astaff Oct 30, 2026
a07b079
accel/ane: import the H16 series from aurora-silicon/linux#720 (works…
astaff Nov 1, 2026
9dfaefb
arm64: dts: apple: t6041-j616c: describe the Neural Engine (workspace…
astaff Nov 1, 2026
61881da
accel/ane: h16_identity=observe publishes an unknown resident image (…
astaff Nov 1, 2026
1b14873
accel/ane: identify the H16 resident image among known builds (worksp…
astaff Nov 1, 2026
3bfb448
accel/ane: the 25F84 resident image and J616c DAPF (workspace ane)
astaff Nov 1, 2026
482eb67
arm64: dts: apple: t6041-j616c: the Neural Engine is DMA-coherent (wo…
astaff Nov 1, 2026
a9ee13e
accel/ane: h16_job runs host-built jobs on the started firmware (diag…
astaff Nov 1, 2026
2ae3238
accel/ane: h16_job polls command slots every 10-20 us (diagnostic, wo…
astaff Nov 1, 2026
d3b6abb
accel/ane: re-ring a pending command's doorbell every 10 ms (workspac…
astaff Nov 1, 2026
6f08b20
accel/ane: job counters and the macOS post-boot writes (diagnostic, w…
astaff Nov 1, 2026
cdfdffc
accel/ane: h16_job can pipeline EXECUTEs and reuses its command pool …
astaff Nov 1, 2026
8068d19
accel/ane: add a bounded default-off spin budget to diagnostic job waits
astaff Nov 1, 2026
135e016
accel/ane: snapshot coherent channel state on startup timeout
astaff Nov 1, 2026
ab9d6f2
accel/ane: drain type-2 terminal messages while waiting for H16 firmware
astaff Nov 1, 2026
0071536
accel/ane: snapshot live memory only after diagnostic startup failure
astaff Nov 1, 2026
97adb77
accel/ane: keep failure snapshot cleanup in module exit
astaff Nov 1, 2026
a7accd9
accel/ane: add bounded pre-IO service diagnostic for startup ordering
astaff Nov 1, 2026
7355a34
accel/ane: make diagnostic result memory capacity tunable
astaff Nov 1, 2026
71bea16
accel/ane: test pre-IO allocation service and fault quarantine
astaff Nov 1, 2026
d441d29
accel/ane: give simulated shared allocations distinct DMA ranges
astaff Nov 1, 2026
983966e
accel/ane: read DART fault addresses only for faults or diagnostics
astaff Nov 1, 2026
e0775fd
accel/ane: include owned extra heap in failure-only snapshots
astaff Nov 1, 2026
671974e
accel/ane: avoid second zero pass over already zeroed DMA pages
astaff Nov 1, 2026
2b0cb15
accel/ane: isolate startup ordering from service cadence with bounded…
astaff Nov 1, 2026
9990f77
accel/ane: read vendor ASC idle predicate on startup failure
astaff Nov 1, 2026
5813efb
accel/ane: add bounded no-poll residency discriminator
astaff Nov 1, 2026
b340780
accel/ane: qualify quiet probes and retain counter anchors
astaff Nov 1, 2026
8b0fa20
accel/ane: exclude overlapped batches from quiet probe
astaff Nov 1, 2026
a53375d
accel/ane: bound diagnostic execute identity decode
astaff Nov 1, 2026
180a837
accel/ane: separate private wake cadence from device polling
astaff Nov 1, 2026
54f5e02
accel/ane: record scheduler CPU usage around quiet windows
astaff Nov 1, 2026
0db2727
accel/ane: add race-safe IRQ wait and bounded auxiliary draining
astaff Nov 1, 2026
d94912f
accel/ane: add optional interrupt-driven diagnostic completions
astaff Nov 1, 2026
7170f08
accel/ane: keep expired event waits failing and test prepared wakeups
astaff Nov 1, 2026
24d326c
accel/ane: unlock after rejecting incompatible probe modes
astaff Nov 1, 2026
681b21c
accel/ane: add bounded report-retirement gap experiment
astaff Nov 1, 2026
1fdeaa8
accel/ane: add bounded optional report-consume stage timestamps
astaff Nov 1, 2026
b926475
accel/ane: add optional batched private DART maps and cold operation …
astaff Nov 1, 2026
1e86f52
accel/ane: expose optional fixed DATA snapshots for post-job history …
astaff Nov 1, 2026
b3246c8
accel/ane: add bounded optional T2H service during EXEC acceptance
astaff Nov 1, 2026
82051ae
accel/ane: add bounded one-shot sleep gap for report retirement diagn…
astaff Nov 1, 2026
41892a2
accel/ane: bound read-only firmware pending sampling within one-shot gap
astaff Nov 1, 2026
9735ff4
accel/ane: observe firmware pending around existing report ACK doorbell
astaff Nov 1, 2026
f530483
accel/ane: add bounded periodic report recovery gap experiment
astaff Nov 1, 2026
53ec3d8
accel/ane: add bounded worker IRQ coalescing experiment
astaff Nov 1, 2026
b8fc22a
accel/ane: add bounded initial drain plus serial hold discriminator
astaff Nov 1, 2026
8bc9ed0
accel/ane: add bounded serial report ACK notification batching
astaff Nov 1, 2026
61a9adf
accel/ane: add bounded serial completion-driven recovery policy
astaff Nov 1, 2026
6218452
Documentation: record J616c ANE diagnostic benchmark scope
astaff Nov 1, 2026
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
684 changes: 684 additions & 0 deletions Documentation/accel/apple-ane.rst

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Documentation/accel/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Compute Accelerators
:maxdepth: 1

introduction
apple-ane
amdxdna/index
qaic/index
rocket/index
11 changes: 11 additions & 0 deletions Documentation/devicetree/bindings/gpu/apple,agx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ properties:
- apple,agx-g14g
- apple,agx-g14s
- apple,agx-t6040
- apple,agx-t6041
- apple,agx-t8132
- apple,agx-t8140
- items:
Expand Down Expand Up @@ -307,6 +308,15 @@ allOf:
apple,afr-leak-coef:
minItems: 1
maxItems: 1
- if:
properties:
compatible:
contains:
enum:
- apple,agx-t6040
- apple,agx-t6041
then:
properties:
reg:
items:
- description: GFX coprocessor control registers
Expand Down Expand Up @@ -354,6 +364,7 @@ allOf:
contains:
enum:
- apple,agx-t6040
- apple,agx-t6041
- apple,agx-t8132
- apple,agx-t8140
then:
Expand Down
269 changes: 243 additions & 26 deletions Documentation/devicetree/bindings/npu/apple,ane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ description:
drives the engine through its register window. On T602x and T8112 a
coprocessor runs the ANE firmware and the host talks to it through an ASC
mailbox. T8140 has two interrupts and one system power domain; its
coprocessor uses a different firmware interface. T6041 likewise needs a
generation-specific firmware backend; it has one interrupt and its CPU
power state supplies the engine through the ANE system domain.
coprocessor is exclave-assigned and cannot be used directly without a
Linux ownership provider. T6041 has one interrupt and preloaded firmware;
its CPU, MPM and task domains depend on the ANE system domain, and its
base domain depends on the task domain. Interrupt roles on T6041 and
T8140 are not yet established.

properties:
compatible:
Expand All @@ -34,20 +36,34 @@ properties:
reg:
minItems: 1
items:
- description: Engine registers. On T602x and T8112 this is the whole
ANE block, including the coprocessor.
- description: Engine registers, including the coprocessor on firmware
managed generations
- description: Power manager (PMGR) registers of the ANE
- description: ANE power state registers in the PMGR
- description: eFuse words that give the SoC revision to the ANE
firmware
- description: Power state registers or first auxiliary window
- description: Revision registers or second auxiliary window
- description: Third auxiliary window
- description: Fourth auxiliary window
- description: Fifth auxiliary window

reg-names:
minItems: 1
items:
- const: engine
- const: pmgr
- const: set
- const: fuse
maxItems: 7

apple,performance-controller:
$ref: /schemas/types.yaml#/definitions/phandle
description:
PMP report provider that owns the ANE clock-level request interface.
Only supported on T6000. The ANE and report SRAM must remain powered
while the driver holds a request.

interconnects:
maxItems: 1

interconnect-names:
const: memory
description: DRAM/fabric path; bandwidth requests come from the level OPP.

operating-points-v2: true

interrupts:
minItems: 1
Expand All @@ -58,11 +74,16 @@ properties:
- const: ane

iommus:
maxItems: 3
description:
Stream 0 of each of the three DARTs, followed on T6041 by stream 11 of
each, which the ANE's MPM uses.
minItems: 3
maxItems: 6

power-domains:
description:
The power states the engine needs, five on T8103 and T6000, eight on
The power states the engine needs, five on T8103, six on T6000 with
ANE level control (including PMP report SRAM), eight on
T602x, seven on T8112 and one system domain on T8140.
minItems: 1
maxItems: 8
Expand All @@ -76,10 +97,64 @@ properties:
description: Mailbox of the ANE coprocessor

memory-region:
maxItems: 1
minItems: 1
maxItems: 2
description:
IOVA-only reservation of the firmware entry alias in the ANE DART
address space.
On T602x, the IOVA-only reservation of the firmware entry alias.
On T6041 and T8140, bootloader-provided physical TEXT and DATA preload
reservations in that order. Each reservation must have no-map, must
not be reusable, and must remain reserved until reboot. Physical
addresses vary per boot and must not be hard-coded in a board DTS.

memory-region-names:
items:
- const: firmware-text
- const: firmware-data

apple,firmware-iovas:
$ref: /schemas/types.yaml#/definitions/uint64-array
items:
- const: 0x10000000000
- const: 0x100000c0000
description:
Device addresses of the preloaded TEXT and DATA segments. Their sizes
are 0xc0000 and 0x2ac000 bytes respectively. The bootloader supplies
the physical reservations. The device addresses are fixed by the
firmware layout and may be described statically.

apple,dapf-ranges:
$ref: /schemas/types.yaml#/definitions/uint64-matrix
minItems: 4
maxItems: 4
items:
items:
- description: Physical start address, inclusive
- description: Physical end address, inclusive
description:
Four DART address protection filter (DAPF) ranges, in hardware record
order. Each pair contains inclusive 64-bit physical bounds, not a
base and length. The same records apply to all three ANE DARTs.
Firmware accesses these registers through identity mappings of the
containing 16 KiB pages in its private domain. These are MMIO ranges,
not allocatable DMA memory or additional preload segments.

apple,ane-type:
$ref: /schemas/types.yaml#/definitions/uint32
enum: [0x110, 0x200]
description: Firmware generation identifier supplied by the bootloader

apple,firmware-preloaded:
type: boolean
description:
Firmware has been personalized and preloaded by iBoot. The driver
must preserve its runtime patches and must not stage a disk image.

apple,exclave-assigned:
type: boolean
description:
The ANE belongs to an exclave. Direct access requires a separate
Linux ownership provider to acquire a quiesced device and isolate
the exclave DART contexts. Absence does not prove a handoff on T8140.

required:
- compatible
Expand All @@ -90,6 +165,24 @@ required:
- power-domains

allOf:
- if:
required:
- interconnects
then:
required:
- interconnect-names
- operating-points-v2
- if:
required:
- apple,performance-controller
then:
properties:
compatible:
const: apple,t6000-ane
power-domains:
minItems: 6
maxItems: 6

- if:
properties:
compatible:
Expand All @@ -98,6 +191,56 @@ allOf:
properties:
interrupts:
minItems: 2
power-domains:
maxItems: 1
apple,ane-type:
const: 0x200
- if:
properties:
compatible:
const: apple,t8140-ane
then:
properties:
reg:
maxItems: 6
reg-names:
minItems: 1
items:
- const: engine
- const: pmgr
- const: aux-0
- const: aux-1
- const: aux-2
- const: aux-3
- if:
required:
- apple,firmware-iovas
then:
properties:
memory-region:
minItems: 2
required:
- memory-region
- memory-region-names
- apple,firmware-preloaded
- if:
properties:
compatible:
enum:
- apple,t6041-ane
- apple,t8140-ane
required:
- memory-region
then:
required:
- memory-region-names
- apple,firmware-iovas
- if:
required:
- memory-region-names
then:
required:
- apple,firmware-iovas
- if:
properties:
compatible:
Expand All @@ -106,6 +249,32 @@ allOf:
properties:
interrupts:
maxItems: 1
reg:
minItems: 7
reg-names:
items:
- const: engine
- const: pmgr
- const: aux-0
- const: aux-1
- const: aux-2
- const: aux-3
- const: aux-4
iommus:
minItems: 6
power-domains:
minItems: 5
maxItems: 5
apple,ane-type:
const: 0x110
required:
- apple,ane-type
- apple,firmware-preloaded
- apple,dapf-ranges
else:
properties:
iommus:
maxItems: 3
- if:
properties:
compatible:
Expand All @@ -115,24 +284,34 @@ allOf:
- apple,t6041-ane
then:
properties:
reg:
maxItems: 1
reg-names:
maxItems: 1
interrupt-names: false
iommus:
minItems: 3
power-domains:
maxItems: 1
resets: false
mboxes: false
memory-region: false
else:
properties:
interrupts:
maxItems: 1
power-domains:
minItems: 5
reg:
maxItems: 4
reg-names:
minItems: 1
items:
- const: engine
- const: pmgr
- const: set
- const: fuse
memory-region:
maxItems: 1
memory-region-names: false
apple,firmware-iovas: false
apple,ane-type: false
apple,firmware-preloaded: false
apple,exclave-assigned: false
apple,dapf-ranges: false
required:
- interrupt-names

Expand All @@ -150,7 +329,7 @@ allOf:
reg-names:
maxItems: 1
power-domains:
maxItems: 5
maxItems: 6
resets: false
mboxes: false
memory-region: false
Expand Down Expand Up @@ -268,3 +447,41 @@ examples:
memory-region = <&ane_alias_iova>;
};
};

- |
#include <dt-bindings/interrupt-controller/apple-aic.h>
#include <dt-bindings/interrupt-controller/irq.h>

soc {
#address-cells = <2>;
#size-cells = <2>;

ane@484000000 {
compatible = "apple,t6041-ane";
reg = <0x4 0x84000000 0x0 0x2000000>,
<0x5 0x02280000 0x0 0x18000>,
<0x5 0x022a0000 0x0 0x4000>,
<0x5 0x003c0000 0x0 0x30000>,
<0x2 0x12000000 0x0 0xff4000>,
<0x5 0x22000000 0x0 0x2000000>,
<0x5 0x08374000 0x0 0x4000>;
reg-names = "engine", "pmgr", "aux-0", "aux-1", "aux-2",
"aux-3", "aux-4";
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 1054 IRQ_TYPE_LEVEL_HIGH>;
iommus = <&ane_dart0 0>, <&ane_dart1 0>, <&ane_dart2 0>,
<&ane_dart0 11>, <&ane_dart1 11>, <&ane_dart2 11>;
power-domains = <&ps_ane_sys>, <&ps_ane_cpu>, <&ps_ane_mpm>,
<&ps_ane_td>, <&ps_ane_base>;
apple,ane-type = <0x110>;
apple,firmware-preloaded;
apple,dapf-ranges = /bits/ 64 <0x5022803c0 0x5022803c3>,
<0x50228c000 0x50228c01b>,
<0x581668000 0x581668003>,
<0x28a668000 0x28a668003>;
memory-region = <&ane_fw_text>, <&ane_fw_data>;
memory-region-names = "firmware-text", "firmware-data";
apple,firmware-iovas = /bits/ 64 <0x10000000000 0x100000c0000>;
status = "disabled";
};
};
Loading