stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] For stable: "drm/ast: Create threshold values for AST2600"
@ 2022-06-09  7:22 Thomas Zimmermann
  2022-06-09  7:22 ` [PATCH 1/1] drm/ast: Create threshold values for AST2600 Thomas Zimmermann
  2022-06-13  8:05 ` [PATCH 0/1] For stable: "drm/ast: Create threshold values for AST2600" Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Zimmermann @ 2022-06-09  7:22 UTC (permalink / raw)
  To: airlied, kuohsiang_chou, jfalempe; +Cc: stable, dri-devel, 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.

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(-)

-- 
2.36.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] drm/ast: Create threshold values for AST2600
  2022-06-09  7:22 [PATCH 0/1] For stable: "drm/ast: Create threshold values for AST2600" Thomas Zimmermann
@ 2022-06-09  7:22 ` Thomas Zimmermann
  2022-06-13  8:05 ` [PATCH 0/1] For stable: "drm/ast: Create threshold values for AST2600" Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Zimmermann @ 2022-06-09  7:22 UTC (permalink / raw)
  To: airlied, kuohsiang_chou, jfalempe; +Cc: stable, dri-devel, Thomas Zimmermann

From: KuoHsiang Chou <kuohsiang_chou@aspeedtech.com>

The threshold value is used for AST2600 only.

Signed-off-by: KuoHsiang Chou <kuohsiang_chou@aspeedtech.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220117083643.41493-1-kuohsiang_chou@aspeedtech.com
---
 drivers/gpu/drm/ast/ast_mode.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c
index 44c2aafcb7c2..6fa8042a0dfd 100644
--- a/drivers/gpu/drm/ast/ast_mode.c
+++ b/drivers/gpu/drm/ast/ast_mode.c
@@ -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);
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 0/1] For stable: "drm/ast: Create threshold values for AST2600"
  2022-06-09  7:22 [PATCH 0/1] For stable: "drm/ast: Create threshold values for AST2600" Thomas Zimmermann
  2022-06-09  7:22 ` [PATCH 1/1] drm/ast: Create threshold values for AST2600 Thomas Zimmermann
@ 2022-06-13  8:05 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2022-06-13  8:05 UTC (permalink / raw)
  To: Thomas Zimmermann; +Cc: airlied, kuohsiang_chou, jfalempe, stable, dri-devel

On Thu, Jun 09, 2022 at 09:22:41AM +0200, Thomas Zimmermann wrote:
> 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(-)
> 
> -- 
> 2.36.1
> 

Now queued up, thanks.

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-13  8:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-09  7:22 [PATCH 0/1] For stable: "drm/ast: Create threshold values for AST2600" Thomas Zimmermann
2022-06-09  7:22 ` [PATCH 1/1] drm/ast: Create threshold values for AST2600 Thomas Zimmermann
2022-06-13  8:05 ` [PATCH 0/1] For stable: "drm/ast: Create threshold values for AST2600" Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).