Fix for QCom GPU clock rate (Hack until interconnect API lands upstream)

This commit is contained in:
Peter Robinson 2017-10-07 10:18:23 +01:00
parent ee0bddee93
commit 32616a8223
2 changed files with 31 additions and 0 deletions

View File

@ -615,6 +615,9 @@ Patch313: qcom-Force-host-mode-for-USB-on-apq8016-sbc.patch
# https://patchwork.kernel.org/patch/9850189/
Patch314: qcom-msm-ci_hdrc_msm_probe-missing-of_node_get.patch
# Hack until interconnect API lands upstream
Patch315: qcom-clk-gpu-msm.patch
# Fix USB on the RPi https://patchwork.kernel.org/patch/9879371/
Patch321: bcm283x-dma-mapping-skip-USB-devices-when-configuring-DMA-during-probe.patch
@ -2239,6 +2242,7 @@ fi
* Fri Oct 6 2017 Peter Robinson <pbrobinson@fedoraproject.org>
- ARM ACPI fix for x-gene RHBZ #1498117
- Initial support for Socionext Synquacer platform
- Fix for QCom GPU clock rate
* Thu Oct 05 2017 Laura Abbott <labbott@fedoraproject.org> - 4.13.5-300
- Linux v4.13.5

27
qcom-clk-gpu-msm.patch Normal file
View File

@ -0,0 +1,27 @@
From cf866c6ef2e421b5563ab34c04dd4b07be5aa013 Mon Sep 17 00:00:00 2001
From: Peter Robinson <pbrobinson@gmail.com>
Date: Sat, 7 Oct 2017 10:11:39 +0100
Subject: [PATCH] hack for bus clk
Turn it up to 11!
---
drivers/gpu/drm/msm/msm_gpu.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c
index 9f3dbc236ab3..75acdda496b5 100644
--- a/drivers/gpu/drm/msm/msm_gpu.c
+++ b/drivers/gpu/drm/msm/msm_gpu.c
@@ -93,6 +93,9 @@ static int enable_clk(struct msm_gpu *gpu)
{
int i;
+ if (gpu->grp_clks[4])
+ clk_set_rate(gpu->grp_clks[4], INT_MAX);
+
if (gpu->core_clk && gpu->fast_rate)
clk_set_rate(gpu->core_clk, gpu->fast_rate);
--
2.14.2