Skip to content

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

Merged
pelwell merged 1 commit into
raspberrypi:rpi-5.15.yfrom
popcornmix:vcsm_dmac
May 25, 2022
Merged

pelwell merged 1 commit into
raspberrypi:rpi-5.15.yfrom
popcornmix:vcsm_dmac

Conversation

@popcornmix

Copy link
Copy Markdown
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 popcornmix@gmail.com

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 <popcornmix@gmail.com>
@popcornmix

Copy link
Copy Markdown
Collaborator Author

Ping @6by9

@6by9

6by9 commented May 25, 2022

Copy link
Copy Markdown
Contributor

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

@6by9

6by9 commented May 25, 2022

Copy link
Copy Markdown
Contributor

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

6by9 commented May 25, 2022

Copy link
Copy Markdown
Contributor

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