Skip to content

clk-raspberrypi: Minimise firmware clocks #5041

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 2 commits into from
Jun 6, 2022

Conversation

popcornmix
Copy link
Collaborator

A follow-on from #4940

Currently, we don't try to minimise most firmware clocks.
e.g. if hevc requests a 550MHz clock, it continues to run at 550MHz after hevc driver has dropped its request,
and the same happens for all other non-minimised clocks.

This results in a higher required chip voltage, and so more heat/power than is necessary.

When minimising clocks you do need to switch from the clk_set_rate API, to clk_set_min_rate API.
I believe all fw clocks are using that API, apart from v3d which I've updated.

@popcornmix
Copy link
Collaborator Author

@mripard does this seem okay?
In testing, I do see clocks return to low frequencies where previously they get stuck high.

@mripard
Copy link
Contributor

mripard commented May 18, 2022

It looks good to me :)

@popcornmix popcornmix marked this pull request as ready for review May 24, 2022 12:18
@popcornmix
Copy link
Collaborator Author

@pelwell okay to merge?

@pelwell pelwell merged commit e72edc2 into raspberrypi:rpi-5.15.y Jun 6, 2022
@popcornmix popcornmix deleted the minimise_clks branch June 6, 2022 13:42
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jun 6, 2022
See: raspberrypi/linux#5041

kernel: media: i2c: imx477: Correct minimum exposure lines
See: raspberrypi/linux#5050

kernel: arm64: Initialize jump labels before setup_machine_fdt()
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Jun 6, 2022
See: raspberrypi/linux#5041

kernel: media: i2c: imx477: Correct minimum exposure lines
See: raspberrypi/linux#5050

kernel: arm64: Initialize jump labels before setup_machine_fdt()
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