Skip to content

Macbook Pro M4 J604: add Apple CTRR sysregs to m1n1 proxy - #27

Open
bretttegart wants to merge 1 commit into
GravityLinux:mainfrom
bretttegart:main
Open

bretttegart wants to merge 1 commit into
GravityLinux:mainfrom
bretttegart:main

Conversation

@bretttegart

Copy link
Copy Markdown

Needed to read the CTRR range at runtime on T8132/J604. The CTRR base moves every cold boot (iBoot places m1n1 at a varying address), so a static DTB reserve cannot cover it.

The stage-1 chainloader reads CTRR_D_UPR_EL1 (sys_reg 3,0,11,0,3) and reserves (D_UPR - 0xE4000)..D_UPR, which is the range that lets the kernel get past the initrd-free hang on untethered boot.

Needed to read the CTRR range at runtime on T8132/J604. The
CTRR base moves every cold boot (iBoot places m1n1 at a varying
address), so a static DTB reserve cannot cover it. The stage-1
chainloader reads CTRR_D_UPR_EL1 (sys_reg 3,0,11,0,3) and reserves
(D_UPR - 0xE4000)..D_UPR, which is the range that lets the kernel
get past the initrd-free hang on untethered boot.
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.

1 participant