drm/vc4: Increase the core clock to a minimum of 500MHz
authorMaxime Ripard <maxime@cerno.tech>
Mon, 28 Jun 2021 09:15:13 +0000 (11:15 +0200)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Fri, 9 Jul 2021 16:48:50 +0000 (17:48 +0100)
commit0a7c2180876d9c7748e055091be21efb959934e2
tree2c21b6a8a21a8595c5f4b045bf2ac4bbe4b82ae5
parent5146eb7b0878d80009e2b27c47a668316683ef7e
drm/vc4: Increase the core clock to a minimum of 500MHz

The core clock needs to be raised temporarily during a modeset to
500MHz. However, the HVS core clock requirement might be higher than
500MHz. This rate will be enforced at the end of the mode setting,
meaning that might might end up with a core clock rate lower than
planned on the first mode set.

Use the maximum value of 500MHz and the HVS core clock rate for our
temporary boost to fix this issue.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_kms.c