Skip to contentSkip to conversation

For stable: "drm/ast: Create threshold values for AST2600"

PATCH In review Thomas Zimmermann 2 participants 3 messages Jun 9, 2022 – Jun 13, 2022

Subsystems (4)
lore
Share & tools
lore

Thomas Zimmermann

author maintainer
#0 lore raw

cover For stable: "drm/ast: Create threshold values for AST2600"

Mainline commit bcc77411e8a6 ("drm/ast: Create threshold values for AST2600") needs backporting into older Linux kernels. The earliest affected version is v5.11.

KuoHsiang Chou (1):
drm/ast: Create threshold values for AST2600

 drivers/gpu/drm/ast/ast_mode.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
2.36.1
author maintainer
#1 lore raw

PATCH 1/1 drm/ast: Create threshold values for AST2600

From: KuoHsiang Chou <[email protected]>

The threshold value is used for AST2600 only.

---
 drivers/gpu/drm/ast/ast_mode.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/ast/ast_mode.c +4 -1
index 44c2aafcb7c2..6fa8042a0dfd 100644
@@ -471,7 +471,10 @@ static void ast_set_color_reg(struct ast_private *ast,
 static void ast_set_crtthd_reg(struct ast_private *ast)
 {
 	/* Set Threshold */
-	if (ast->chip == AST2300 || ast->chip == AST2400 ||
+	if (ast->chip == AST2600) {
+		ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa7, 0xe0);
+		ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa6, 0xa0);
+	} else if (ast->chip == AST2300 || ast->chip == AST2400 ||
 	    ast->chip == AST2500) {
 		ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa7, 0x78);
 		ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa6, 0x60);
Signature · 1 line
2.36.1
#2 lore raw
In reply to Thomas Zimmermann
Quoted 4 lines · Thomas Zimmermann

Mainline commit bcc77411e8a6 ("drm/ast: Create threshold values for AST2600") needs backporting into older Linux kernels. The earliest affected version is v5.11.

Quoted 9 lines

KuoHsiang Chou (1):
drm/ast: Create threshold values for AST2600

 drivers/gpu/drm/ast/ast_mode.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
2.36.1

Now queued up, thanks.

greg k-h