@@ -348,11 +348,17 @@ vc4_atomic_complete_commit(struct drm_atomic_state *state)
}
if (vc4->hvs && vc4->hvs->hvs5) {
+ unsigned long core_rate = max_t(unsigned long,
+ 500000000,
+ hvs_state->core_clock_rate);
+
+ drm_dbg(dev, "Raising the core clock at %lu Hz\n", core_rate);
+
/*
* Do a temporary request on the core clock during the
* modeset.
*/
- core_req = clk_request_start(hvs->core_clk, 500000000);
+ core_req = clk_request_start(hvs->core_clk, core_rate);
/*
* And remove the previous one based on the HVS