diff options
author | Dmitry Baryshkov <[email protected]> | 2022-04-20 02:54:47 +0300 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2022-04-21 19:49:19 -0700 |
commit | d968fda3de91ec2f250ba27149cb1b5e9516415f (patch) | |
tree | 21dae89f79a41527a0d4722cd4a9de58027132c9 /scripts/gdb/linux/modules.py | |
parent | 37843d0f6e7a23af19a6cbe68b9503d318fe1a29 (diff) |
clk: qcom: clk-rcg2: fix gfx3d frequency calculation
Since the commit 948fb0969eae ("clk: Always clamp the rounded rate"),
the clk_core_determine_round_nolock() would clamp the requested rate
between min and max rates from the rate request. Normally these fields
would be filled by clk_core_get_boundaries() called from
clk_round_rate().
However clk_gfx3d_determine_rate() uses a manually crafted rate request,
which did not have these fields filled. Thus the requested frequency
would be clamped to 0, resulting in weird frequencies being requested
from the hardware.
Fix this by filling min_rate and max_rate to the values valid for the
respective PLLs (0 and ULONG_MAX).
Fixes: 948fb0969eae ("clk: Always clamp the rounded rate")
Signed-off-by: Dmitry Baryshkov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Bjorn Andersson <[email protected]>
Reported-by: Rob Clark <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions