mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
44 lines
1.4 KiB
Diff
44 lines
1.4 KiB
Diff
From c7d876495ffad298d7f5fa252000c80fd4fd1b74 Mon Sep 17 00:00:00 2001
|
|
From: Dom Cobley <popcornmix@gmail.com>
|
|
Date: Mon, 9 Dec 2024 17:58:48 +0000
|
|
Subject: [PATCH 697/697] drm/v3d: Correct clock settng calls to new APIs
|
|
|
|
There was a report that 6.12 kernel has lower benchmark
|
|
scores than 6.6.
|
|
|
|
I can confirm, and found it started with 6.8 kernel
|
|
which moved some code into a new file (v3d_submit.c)
|
|
and in two places the change to the clock api were missed.
|
|
|
|
The effect of the bug is the v3d clock sometimes
|
|
unwantedly drops to a lower rate.
|
|
|
|
With this patch the benchmark scores are good again.
|
|
|
|
Fixes: 86963038cb0c0ba99dad14665ca92936ca723f89
|
|
|
|
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
|
---
|
|
drivers/gpu/drm/v3d/v3d_submit.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/gpu/drm/v3d/v3d_submit.c
|
|
+++ b/drivers/gpu/drm/v3d/v3d_submit.c
|
|
@@ -18,7 +18,7 @@ v3d_clock_down_work(struct work_struct *
|
|
container_of(work, struct v3d_dev, clk_down_work.work);
|
|
int ret;
|
|
|
|
- ret = clk_set_rate(v3d->clk, v3d->clk_down_rate);
|
|
+ ret = clk_set_min_rate(v3d->clk, v3d->clk_down_rate);
|
|
v3d->clk_up = false;
|
|
WARN_ON_ONCE(ret != 0);
|
|
}
|
|
@@ -32,7 +32,7 @@ v3d_clock_up_get(struct v3d_dev *v3d)
|
|
if (!v3d->clk_up) {
|
|
int ret;
|
|
|
|
- ret = clk_set_rate(v3d->clk, v3d->clk_up_rate);
|
|
+ ret = clk_set_min_rate(v3d->clk, v3d->clk_up_rate);
|
|
WARN_ON_ONCE(ret != 0);
|
|
v3d->clk_up = true;
|
|
}
|