Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dcp: Fix firmware mapping check on t8103/t600x #392

Merged
merged 2 commits into from
May 18, 2024

Conversation

jannau
Copy link
Member

@jannau jannau commented May 17, 2024

On t8103/t600x devices the firmware mapping check needs to mask out asc-drm-mask. Fixes HDMI output initialization in stage 1 on M1* desktop devices.

jannau added 2 commits May 18, 2024 00:13
t8103 and t600x use "asc-dram-mask" in iop-dcp-nub to mask bits out of
DMA addresses. This needs to be used in the firmware mappings
check/remap since the segments have maskable bits sets.

Fixes: 8332e24 ("dcp: Undo carnage from bad stage1 DART code")
Signed-off-by: Janne Grunau <[email protected]>
memcpy(&tmp, prop, sizeof(tmp));
dart->vm_base = tmp;
} else {
printf("dart: unexpected length of vm-base property: %u\n", len);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't dart->vm_base be set to 0 here, just in case™?

@marcan marcan merged commit 421dfa4 into AsahiLinux:main May 18, 2024
3 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