Skip to content

DRAFT: Deslop the M4 Support - #24

Merged
ADevWithAnIdea merged 4 commits into
mainfrom
PR_m4_deslop
Nov 16, 2026
Merged

ADevWithAnIdea merged 4 commits into
mainfrom
PR_m4_deslop

Conversation

@ADevWithAnIdea

Copy link
Copy Markdown
Member

No description provided.

ADevWithAnIdea and others added 3 commits November 15, 2026 02:35
This reverts commit 0b9f8ad.

Replace the fork-specific changes to the M3 initialization path with
upstream m1n1 T8132 support and its aperture-count width fix in the
following commits.

Signed-off-by: Cody Ho <codyho@stanford.edu>
Assisted-By: LLM
Verified tz_regs and the enable mechanism of t8132 are the same as
t6030. The global_base and dcs_* are unconfirmed, because I do not know
how to test it.

Add an mcc_init_m4 function, which uses the correct reg_offset, and
reads the mcc_count from amcc_aperture_count since extra trailing regs
break the reg_len based estimation.

The mcc_init_m4 function also checks amcc-count as a fallback to
amcc_aperture_count in preparation for t8140 and t6041 support. They can
later be added using the same mcc_init_m4 path, but with a new
to-be-written mcc_init_t6041 function and a different reg_offset.

Signed-off-by: Yureka <yureka@cyberchaos.dev>
(cherry picked from commit d7df51a586a82f8fed9344cb1646ac5a8aee32ed)
Signed-off-by: Cody Ho <codyho@stanford.edu>
Assisted-By: LLM
T8132 supplies a 32-bit aperture count, which the 64-bit property read
rejects. Accept either width and zero-extend 32-bit values.

Require the expected size for plane and DCS count properties,
including rejecting negative ADT_GETPROP errors.

Signed-off-by: Ramzi Abdiche <abdicheramzi@gmail.com>
(cherry picked from commit a6a2a30ae144da34d07254bfabb6f90baae03d22)
Signed-off-by: Cody Ho <codyho@stanford.edu>
Assisted-By: LLM
@ADevWithAnIdea
ADevWithAnIdea marked this pull request as draft November 15, 2026 11:47
@niklassheth

Copy link
Copy Markdown
Contributor

Tested, works on M4 Air and mini

Based on Sven's patches for T6040 support except we read cluster bases
from the ADT instead of hard coding them.

Also revert the original cpufreq patchset.

Co-Authored-By: Sven Peter <sven@svenpeter.dev>
Signed-off-by: Cody Ho <codyho@stanford.edu>
Assisted-By: LLM
@ADevWithAnIdea
ADevWithAnIdea marked this pull request as ready for review November 16, 2026 09:37
@ADevWithAnIdea
ADevWithAnIdea merged commit 3565c55 into main Nov 16, 2026
1 of 5 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.

4 participants