mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-23 17:47:28 +08:00

These patches were generated from: https://github.com/raspberrypi/linux/commits/rpi-6.12.y With the following command: git format-patch -N v6.12.27..HEAD (HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e) Exceptions: - (def)configs patches - github workflows patches - applied & reverted patches - readme patches - wireless patches Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
45 lines
1.4 KiB
Diff
45 lines
1.4 KiB
Diff
From 73e5b7f992342da556755cdf23b8ee7c99797c94 Mon Sep 17 00:00:00 2001
|
|
From: Dom Cobley <popcornmix@gmail.com>
|
|
Date: Mon, 9 Dec 2024 17:58:48 +0000
|
|
Subject: [PATCH] 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;
|
|
}
|