Skip to content

vc-sm-cma: Restore correct cache maintainance operations #5047

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

Merged
merged 1 commit into from
May 25, 2022

Conversation

popcornmix
Copy link
Collaborator

We have been using the more expensive flush operations rather than
invalidate and clean since kernel rpi-5.9.y

These are exposed with:
52f1453 Re-expose some dmi APIs for use in VCSM

But I believe that commit was dropped when (non-cma) vc-sm was dropped,
and didn't get updated when the commit was restored

Signed-off-by: Dom Cobley [email protected]

We have been using the more expensive flush operations rather than
invalidate and clean since kernel rpi-5.9.y

These are exposed with:
52f1453 Re-expose some dmi APIs for use in VCSM

But I believe that commit was dropped when (non-cma) vc-sm was dropped,
and didn't get updated when the commit was restored

Signed-off-by: Dom Cobley <[email protected]>
@popcornmix
Copy link
Collaborator Author

Ping @6by9

@6by9
Copy link
Contributor

6by9 commented May 25, 2022

Doesn't this break 64bit kernels? Those functions only appear to exist for 32bit ARM architectures.

@6by9
Copy link
Contributor

6by9 commented May 25, 2022

Doesn't this break 64bit kernels? Those functions only appear to exist for 32bit ARM architectures.

Ah, this is all under a #ifndef CONFIG_ARM64 as the UAPI is 32bit only. Forget that then.

@6by9
Copy link
Contributor

6by9 commented May 25, 2022

This will do no harm, but AFAIK it is only used by the Pi3 HEVC decode, not generic cache management of vcsm buffers.

@pelwell pelwell merged commit 08bca69 into raspberrypi:rpi-5.15.y May 25, 2022
@popcornmix popcornmix deleted the vcsm_dmac branch May 25, 2022 17:16
popcornmix added a commit to raspberrypi/firmware that referenced this pull request May 27, 2022
kernel: kms/vc4_hdmi: Refuse 4096x2160@60 hdmi modes
See: raspberrypi/linux#5038

kernel: vc-sm-cma: Restore correct cache maintainance operations
See: raspberrypi/linux#5047
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request May 27, 2022
kernel: kms/vc4_hdmi: Refuse 4096x2160@60 hdmi modes
See: raspberrypi/linux#5038

kernel: vc-sm-cma: Restore correct cache maintainance operations
See: raspberrypi/linux#5047
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