Draft: linux-postmarketos-allwinner: add patch to fix GPU misbehavior
Merge request reports
Activity
mentioned in issue #805
Well there is some ongoing discussion about if it's correct to patch the panel driver. I can only say that it works for me and I fairly certain that it doesn't break the panel.
However, I haven't heard back from other users. Is anyone
mrtest
ing this?Yes, I wouldn't want this merged until someone who had the issue confirms it is fixed for them, like ell1e from the original issue thread.
I'll mark it as draft again to be clear.
Otherwise when I have time on the weekend I'll try to repro and test the fix myself. IIRC it used to happened pretty reliably to me whenever I compiled some Rust code that kept all cores busy for a few minutes and I didn't have the udev rule to bump the GPU frequency to 312MHz, so hopefully that'll be sufficient.
- Resolved by Arnav Singh
added 1 commit
- 1e1b0678 - device/main/linux-postmarketos-allwinner: add panel fixes patch from LKML
- Resolved by Arnav Singh
added categorydevice device-categorymain device-pine64-pinephone typefix labels
added 1 commit
- ae342432 - device/main/linux-postmarketos-allwinner: add panel fixes patch from LKML
added 10 commits
-
ae342432...1229616e - 9 commits from branch
postmarketOS:master
- 93be57ab - device/main/linux-postmarketos-allwinner: add panel fixes patch from LKML
-
ae342432...1229616e - 9 commits from branch
- Resolved by Arnav Singh
added 9 commits
-
93be57ab...7cf39b60 - 8 commits from branch
postmarketOS:master
- 05543181 - device/main/linux-postmarketos-allwinner: add panel fixes patch from LKML
-
93be57ab...7cf39b60 - 8 commits from branch
mentioned in issue #2480 (closed)
- Resolved by Arnav Singh
retracted
Edited by Frank Oltmanns
- Resolved by Arnav Singh
Let's make one more test, before these lima patches come into play and possibly mask the issue. I've been running the following patch for a week now with great results.
@Arnavion, can you please add the following patch?
From cec4eba7a0cb216839d72fddb6ebc90ec4a61a18 Mon Sep 17 00:00:00 2001 From: Frank Oltmanns <frank@oltmanns.dev> Date: Sun, 14 Jan 2024 09:11:59 +0100 Subject: [PATCH] arm64: dts: allwinner: a64: Fix minimum GPU OPP rate The PLL-GPU has a minimum rate of 192 MHz according to the A64 manual. Increase the minimum rate in the GPU OPP table to 192 MHz. If run at less than 192 MHz the pinephone (based on the A64) sometimes replays the last few frames that were displayed over and over. Note, that running PLL-GPU at 240 MHz and using a divisor of 2 *should* circumvent this problem as well. But unfortunately, the GPU shows the erratic behaviour even more often, even though its parent is driven at a supported range. Running the GPU at more then 192 MHz seems to make the issue disappear. Link: https://gitlab.com/postmarketOS/pmaports/-/issues/805 Signed-off-by: Frank Oltmanns <frank@oltmanns.dev> --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 2bf345c04514..3d8fa2054a9a 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -113,8 +113,8 @@ de: display-engine { gpu_opp_table: opp-table-gpu { compatible = "operating-points-v2"; - opp-120000000 { - opp-hz = /bits/ 64 <120000000>; + opp-192000000 { + opp-hz = /bits/ 64 <192000000>; }; opp-312000000 { -- 2.43.0
Edited by Frank Oltmanns
added 120 commits
-
05543181...43922777 - 119 commits from branch
postmarketOS:master
- 36cbc6b7 - device/main/linux-postmarketos-allwinner: add panel fixes patch from LKML
-
05543181...43922777 - 119 commits from branch
added 41 commits
-
36cbc6b7...05a3c22d - 40 commits from branch
postmarketOS:master
- 254cd5cc - device/main/linux-postmarketos-allwinner: add panel fixes patch from LKML
-
36cbc6b7...05a3c22d - 40 commits from branch
added 242 commits
-
254cd5cc...aaade24f - 241 commits from branch
postmarketOS:master
- 4cf021a1 - linux-postmarketos-allwinner: add patch to fix GPU misbehavior
-
254cd5cc...aaade24f - 241 commits from branch