Skip to content

T8122 bringup#518

Merged
jannau merged 6 commits intoAsahiLinux:mainfrom
jannau:t8122_bringup
Feb 7, 2026
Merged

T8122 bringup#518
jannau merged 6 commits intoAsahiLinux:mainfrom
jannau:t8122_bringup

Conversation

@jannau
Copy link
Member

@jannau jannau commented Dec 7, 2025

Adds chickens, midr and bringup UART address and refactors dapf parsing

@jannau jannau requested a review from svenpeter42 as a code owner December 7, 2025 13:49
@jannau jannau marked this pull request as draft January 20, 2026 07:56
0x40 from "dart-options" does not identify the layout. T8122's dart-pmp
has this set but uses in macOS 26.0.1 the 52 byte descriptor layout.
Since this is not used in python code just simplify the parsing so that
it does not fall over.

Signed-off-by: Janne Grunau <j@jannau.net>
T8122's dart-pmp dapf-instance-0 has no fixed layout. At least up to
macOS 15.1 it uses a 56 byte layout (DAPFT8110B in m1n1/adt.py) and
macOS 26.0.1 switches to the standard 52 byte layout. The flag from
"dart-options" used in m1n1/adt.py does not distinguish these two
variants.
Support both variants and prefer the original 52 byte variant. The
array length does not identify the variant for multiples of 728. This
actually occurs on t8122's dart-aop.dapf-instance-0 and the 52 byte
variant is correct in that case.

Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Janne Grunau <j@jannau.net>
@jannau jannau force-pushed the t8122_bringup branch 2 times, most recently from 127ea03 to 346bb7f Compare February 7, 2026 09:15
@jannau jannau marked this pull request as ready for review February 7, 2026 09:16
Add register definitions for AGTCNTRDIR_EL1 and AGTCNTRDIR_EL12 and
activate counter scaling to 1GHz as per ARMv8.6 requirements.
Do not enable trapping for EL0 accesses via BIT(0) of AGTCNTRDIR_*.

Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Janne Grunau <j@jannau.net>
@asdfugil
Copy link
Contributor

asdfugil commented Feb 7, 2026

Looks good, with the AGTCNTRDIR registers set to zero XNU won't boot correctly but that's the job of the HV code and a story for another time.

@jannau jannau merged commit 09db6f3 into AsahiLinux:main Feb 7, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants