From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 57523EE0207 for ; Wed, 13 Sep 2023 19:22:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 98DDF10E0B4; Wed, 13 Sep 2023 19:22:37 +0000 (UTC) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id 33C2710E0B4 for ; Wed, 13 Sep 2023 19:22:36 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3A76661AB0; Wed, 13 Sep 2023 19:22:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25F65C433C7; Wed, 13 Sep 2023 19:22:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1694632954; bh=UIVdu92aEOXuc79uAr75IrzT7q9rw0JcSwNHCo1J4WA=; h=Subject:To:Cc:From:Date:From; b=j6kiKmTyee0a+QDfmqI5L5CNxWVmcpVlUbISC78F7pXnwd0A2L5YXjHRHO5OmcS/Q zPbDYXecRbhCGn9yvPCUNzs8jCn5bTKmTnYefGDsgqoxfVNgUXEEgydSiCtXr8sTm1 SvL/PlFzkFgoI0PTUc7UbJn1+yIBZ/G3ADBNory0= Subject: Patch "drm/ast: Fix DRAM init on AST2200" has been added to the 4.19-stable tree To: airlied@redhat.com, dri-devel@lists.freedesktop.org, gregkh@linuxfoundation.org, jfalempe@redhat.com, suijingfeng@loongson.cn, tzimmermann@suse.de From: Date: Wed, 13 Sep 2023 21:22:19 +0200 Message-ID: <2023091319-embroider-embark-2079@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit X-stable: commit X-Patchwork-Hint: ignore X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: stable-commits@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This is a note to let you know that I've just added the patch titled drm/ast: Fix DRAM init on AST2200 to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: drm-ast-fix-dram-init-on-ast2200.patch and it can be found in the queue-4.19 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >From 4cfe75f0f14f044dae66ad0e6eea812d038465d9 Mon Sep 17 00:00:00 2001 From: Thomas Zimmermann Date: Wed, 21 Jun 2023 14:53:35 +0200 Subject: drm/ast: Fix DRAM init on AST2200 From: Thomas Zimmermann commit 4cfe75f0f14f044dae66ad0e6eea812d038465d9 upstream. Fix the test for the AST2200 in the DRAM initialization. The value in ast->chip has to be compared against an enum constant instead of a numerical value. This bug got introduced when the driver was first imported into the kernel. Signed-off-by: Thomas Zimmermann Fixes: 312fec1405dd ("drm: Initial KMS driver for AST (ASpeed Technologies) 2000 series (v2)") Cc: Dave Airlie Cc: dri-devel@lists.freedesktop.org Cc: # v3.5+ Reviewed-by: Sui Jingfeng Reviewed-by: Jocelyn Falempe Tested-by: Jocelyn Falempe # AST2600 Link: https://patchwork.freedesktop.org/patch/msgid/20230621130032.3568-2-tzimmermann@suse.de Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/ast/ast_post.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/ast/ast_post.c +++ b/drivers/gpu/drm/ast/ast_post.c @@ -291,7 +291,7 @@ static void ast_init_dram_reg(struct drm ; } while (ast_read32(ast, 0x10100) != 0xa8); } else {/* AST2100/1100 */ - if (ast->chip == AST2100 || ast->chip == 2200) + if (ast->chip == AST2100 || ast->chip == AST2200) dram_reg_info = ast2100_dram_table_data; else dram_reg_info = ast1100_dram_table_data; Patches currently in stable-queue which might be from tzimmermann@suse.de are queue-4.19/backlight-gpio_backlight-compare-against-struct-fb_info.device.patch queue-4.19/fbdev-ep93xx-fb-do-not-assign-to-struct-fb_info.dev.patch queue-4.19/backlight-lv5207lp-compare-against-struct-fb_info.device.patch queue-4.19/backlight-bd6107-compare-against-struct-fb_info.device.patch queue-4.19/drm-ast-fix-dram-init-on-ast2200.patch queue-4.19/drm-msm-replace-drm_framebuffer_-un-reference-with-p.patch