drm/panel: chipwealth-ch13726a: Fix washed out colors on 120hz mode
Subsystems (3)
PATCH 1/1 drm/panel: chipwealth-ch13726a: Fix washed out colors on 120hz mode
The issue was determined to be two-fold:
1. The non-continuous clock dropping into LPM during blanks causes voltage drift at 120hz enough to affect the gamma curve.
2. The agressive horizontal blanking width did not allow enough settle time, further compounding the voltage drift.
In addition to switching to continuous clock, burst mode is also enabled to further stabilize the blank intervals.
---
For the initial submission, the washed out colors were expected to need to be fixed by a color profile. However, further investigation showed there was a problem with the timings.
--- drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c +5 -5
@@ -128,11 +128,11 @@ static int ch13726a_unprepare(struct drm_panel *panel)static const struct drm_display_mode thor_bottom_modes[] = { {/* 120Hz */ - .clock = (1080 +28 +4 +36 ) * (1240 +16 +4 +8 ) *120 /1000 , + .clock = (1080 +60 +8 +60 ) * (1240 +16 +4 +8 ) *120 /1000 , .hdisplay =1080 , - .hsync_start =1080 +28 , - .hsync_end =1080 +28 +4 , - .htotal =1080 +28 +4 +36 , + .hsync_start =1080 +60 , + .hsync_end =1080 +28 +8 , + .htotal =1080 +28 +4 +60 , .vdisplay =1240 , .vsync_start =1240 +16 , .vsync_end =1240 +16 +4 ,
@@ -281,7 +281,7 @@ static int ch13726a_probe(struct mipi_dsi_device *dsi) dsi->lanes =4 ; dsi->format =MIPI_DSI_FMT_RGB888 ; dsi->mode_flags =MIPI_DSI_MODE_VIDEO | -MIPI_DSI_CLOCK_NON_CONTINUOUS ; +MIPI_DSI_MODE_VIDEO_BURST ; ctx->panel.prepare_prev_first = true;
---
base-commit: 0d33d21e47d9dc66f91e44da3fc9220c74d93df7
change-id: 20260727-ch13726a-washout-54ef8fa65be6
Best regards,
Signature · 1 line
Aaron Kling <[email protected]>
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [High] The newly introduced horizontal display timings for the 120Hz mode are mathematically incorrect…
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The newly introduced horizontal display timings for the 120Hz mode are mathematically incorrect, resulting in hsync_end being smaller than hsync_start, and an htotal value that doesn't match the .clock multiplier. --
--- Patch [1]: [PATCH] drm/panel: chipwealth-ch13726a: Fix washed out colors on 120hz mode --- commit 87afbda6cc13589f090573e5294d277fb599926d
Author: Aaron Kling <[email protected]>
drm/panel: chipwealth-ch13726a: Fix washed out colors on 120hz mode
This commit attempts to fix a washed out color issue at 120Hz by adjusting the horizontal display timings and enabling continuous clock and burst mode to stabilize blank intervals.
Quoted 6 lines
drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c +0
-0@@ -128,11 +128,11 @@ static int ch13726a_unprepare(struct drm_panel *panel)static const struct drm_display_mode thor_bottom_modes[] = { {
drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c static int ch13726a_unprepare(struct drm_panel *panel) · line 135
Quoted 10 lines
drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c +4
-4/* 120Hz */ - .clock = (1080 + 28 + 4 + 36) * (1240 + 16 + 4 + 8) * 120 / 1000, + .clock = (1080 + 60 + 8 + 60) * (1240 + 16 + 4 + 8) * 120 / 1000, .hdisplay = 1080, - .hsync_start = 1080 + 28, - .hsync_end = 1080 + 28 + 4, - .htotal = 1080 + 28 + 4 + 36, + .hsync_start = 1080 + 60, + .hsync_end = 1080 + 28 + 8, + .htotal = 1080 + 28 + 4 + 60,
[Severity: High]
Will this cause the hsync_end value to be smaller than the hsync_start value?
In the updated 120Hz mode timings, hsync_start evaluates to 1140 (1080 + 60), while hsync_end evaluates to 1116 (1080 + 28 + 8). If hsync_end is smaller than hsync_start, the DRM core's basic validation checks in drm_mode_validate_basic() will likely mark the mode as MODE_H_ILLEGAL and prune it, making the 120Hz mode unavailable.
Additionally, htotal evaluates to 1172 (1080 + 28 + 4 + 60), but the .clock calculation uses a horizontal multiplier of 1208 (1080 + 60 + 8 + 60). Should htotal match the multiplier used in the clock calculation?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Quoted 58 lines · On Mon, Jul 27, 2026 at 7:44 PM Aaron Kling via B4 Relay…
From: Aaron Kling <[email protected]>
The issue was determined to be two-fold:
1. The non-continuous clock dropping into LPM during blanks causes voltage drift at 120hz enough to affect the gamma curve.
2. The agressive horizontal blanking width did not allow enough settle time, further compounding the voltage drift.
In addition to switching to continuous clock, burst mode is also enabled to further stabilize the blank intervals.
Assisted-by Gemini:2.5-ProSigned-off-by Aaron Kling <[email protected]>---
For the initial submission, the washed out colors were expected to need to be fixed by a color profile. However, further investigation showed there was a problem with the timings.--- drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c +5
-6@@ -128,11 +128,11 @@ static int ch13726a_unprepare(struct drm_panel *panel)static const struct drm_display_mode thor_bottom_modes[] = { {/* 120Hz */ - .clock = (1080 +28 +4 +36 ) * (1240 +16 +4 +8 ) *120 /1000 , + .clock = (1080 +60 +8 +60 ) * (1240 +16 +4 +8 ) *120 /1000 , .hdisplay =1080 , - .hsync_start =1080 +28 , - .hsync_end =1080 +28 +4 , - .htotal =1080 +28 +4 +36 , + .hsync_start =1080 +60 , + .hsync_end =1080 +28 +8 , + .htotal =1080 +28 +4 +60 , .vdisplay =1240 , .vsync_start =1240 +16 , .vsync_end =1240 +16 +4 ,@@ -281,7 +281,7 @@ static int ch13726a_probe(struct mipi_dsi_device *dsi) dsi->lanes =4 ; dsi->format =MIPI_DSI_FMT_RGB888 ; dsi->mode_flags =MIPI_DSI_MODE_VIDEO | -MIPI_DSI_CLOCK_NON_CONTINUOUS ; +MIPI_DSI_MODE_VIDEO_BURST ; ctx->panel.prepare_prev_first = true; ---base-commit:
0d33d21e47d9dc66f91e44da3fc9220c74d93df7
change-id: 20260727-ch13726a-washout-54ef8fa65be6
Quoted 5 lines
Best regards,
--
Aaron Kling <[email protected]>
The sashiko report that the timings in this change are inconsistent is correct. Which caused the 120hz mode to be discarded entirely, so the 60hz mode was being used which has correct colors. Fixing the timings to be consistent restores the 120hz mode, but still with incorrect colors. So this patch should be abandoned while further investigations continue. Sorry for the churn.
Aaron
Neil Armstrong
maintainerQuoted 60 lines · Aaron Kling
Quoted 58 lines · On Mon, Jul 27, 2026 at 7:44 PM Aaron Kling via B4 Relay…
From: Aaron Kling <[email protected]>
The issue was determined to be two-fold:
1. The non-continuous clock dropping into LPM during blanks causes voltage drift at 120hz enough to affect the gamma curve.
2. The agressive horizontal blanking width did not allow enough settle time, further compounding the voltage drift.
In addition to switching to continuous clock, burst mode is also enabled to further stabilize the blank intervals.
Assisted-by Gemini:2.5-ProSigned-off-by Aaron Kling <[email protected]>---
For the initial submission, the washed out colors were expected to need to be fixed by a color profile. However, further investigation showed there was a problem with the timings.--- drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c +5
-6@@ -128,11 +128,11 @@ static int ch13726a_unprepare(struct drm_panel *panel)static const struct drm_display_mode thor_bottom_modes[] = { {/* 120Hz */ - .clock = (1080 +28 +4 +36 ) * (1240 +16 +4 +8 ) *120 /1000 , + .clock = (1080 +60 +8 +60 ) * (1240 +16 +4 +8 ) *120 /1000 , .hdisplay =1080 , - .hsync_start =1080 +28 , - .hsync_end =1080 +28 +4 , - .htotal =1080 +28 +4 +36 , + .hsync_start =1080 +60 , + .hsync_end =1080 +28 +8 , + .htotal =1080 +28 +4 +60 , .vdisplay =1240 , .vsync_start =1240 +16 , .vsync_end =1240 +16 +4 ,@@ -281,7 +281,7 @@ static int ch13726a_probe(struct mipi_dsi_device *dsi) dsi->lanes =4 ; dsi->format =MIPI_DSI_FMT_RGB888 ; dsi->mode_flags =MIPI_DSI_MODE_VIDEO | -MIPI_DSI_CLOCK_NON_CONTINUOUS ; +MIPI_DSI_MODE_VIDEO_BURST ; ctx->panel.prepare_prev_first = true; ---base-commit:
0d33d21e47d9dc66f91e44da3fc9220c74d93df7
change-id: 20260727-ch13726a-washout-54ef8fa65be6
Quoted 11 lines
Quoted 5 lines
Best regards,
--
Aaron Kling <[email protected]>The sashiko report that the timings in this change are inconsistent is correct. Which caused the 120hz mode to be discarded entirely, so the 60hz mode was being used which has correct colors. Fixing the timings to be consistent restores the 120hz mode, but still with incorrect colors. So this patch should be abandoned while further investigations continue. Sorry for the churn.
OK, please add a Fixes tag when you find a proper fix.
Thanks,
Neil
Quoted 2 lines
Aaron