From 32616a8223f427e00d05dfade3bbb7bdcd1224ed Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Oct 07 2017 09:18:23 +0000 Subject: Fix for QCom GPU clock rate (Hack until interconnect API lands upstream) --- diff --git a/kernel.spec b/kernel.spec index 38a3284..ab92f6d 100644 --- a/kernel.spec +++ b/kernel.spec @@ -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 - 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 - 4.13.5-300 - Linux v4.13.5 diff --git a/qcom-clk-gpu-msm.patch b/qcom-clk-gpu-msm.patch new file mode 100644 index 0000000..657995d --- /dev/null +++ b/qcom-clk-gpu-msm.patch @@ -0,0 +1,27 @@ +From cf866c6ef2e421b5563ab34c04dd4b07be5aa013 Mon Sep 17 00:00:00 2001 +From: Peter Robinson +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 +