Skip to content
Snippets Groups Projects

Draft: linux-postmarketos-allwinner: add patch to fix GPU misbehavior

Closed Arnav Singh requested to merge (removed):pinephone-panel-fixes-patch into master

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Arnav Singh added 1 commit

    added 1 commit

    • 1e1b0678 - device/main/linux-postmarketos-allwinner: add panel fixes patch from LKML

    Compare with previous version

  • clayton craft approved this merge request

    approved this merge request

  • Arnav Singh marked this merge request as draft

    marked this merge request as draft

  • Frank Oltmanns
  • Arnav Singh added 1 commit

    added 1 commit

    • ae342432 - device/main/linux-postmarketos-allwinner: add panel fixes patch from LKML

    Compare with previous version

  • Arnav Singh added 10 commits

    added 10 commits

    • ae342432...1229616e - 9 commits from branch postmarketOS:master
    • 93be57ab - device/main/linux-postmarketos-allwinner: add panel fixes patch from LKML

    Compare with previous version

  • Frank Oltmanns
  • Arnav Singh added 9 commits

    added 9 commits

    • 93be57ab...7cf39b60 - 8 commits from branch postmarketOS:master
    • 05543181 - device/main/linux-postmarketos-allwinner: add panel fixes patch from LKML

    Compare with previous version

  • Ellie mentioned in issue #2480 (closed)

    mentioned in issue #2480 (closed)

    • 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
  • Arnav Singh added 120 commits

    added 120 commits

    • 05543181...43922777 - 119 commits from branch postmarketOS:master
    • 36cbc6b7 - device/main/linux-postmarketos-allwinner: add panel fixes patch from LKML

    Compare with previous version

  • Arnav Singh added 41 commits

    added 41 commits

    • 36cbc6b7...05a3c22d - 40 commits from branch postmarketOS:master
    • 254cd5cc - device/main/linux-postmarketos-allwinner: add panel fixes patch from LKML

    Compare with previous version

  • Arnav Singh added 242 commits

    added 242 commits

    • 254cd5cc...aaade24f - 241 commits from branch postmarketOS:master
    • 4cf021a1 - linux-postmarketos-allwinner: add patch to fix GPU misbehavior

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading