This is a note to let you know that I've just added the patch titled

    drm/ast: Use msleep instead of mdelay for edid read

to the 6.12-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-use-msleep-instead-of-mdelay-for-edid-read.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <sta...@vger.kernel.org> know about it.


>From c7c31f8dc54aa3c9b2c994b5f1ff7e740a654e97 Mon Sep 17 00:00:00 2001
From: Nirmoy Das <nirm...@nvidia.com>
Date: Wed, 17 Sep 2025 12:43:46 -0700
Subject: drm/ast: Use msleep instead of mdelay for edid read

From: Nirmoy Das <nirm...@nvidia.com>

commit c7c31f8dc54aa3c9b2c994b5f1ff7e740a654e97 upstream.

The busy-waiting in `mdelay()` can cause CPU stalls and kernel timeouts
during boot.

Signed-off-by: Nirmoy Das <nirm...@nvidia.com>
Reviewed-by: Thomas Zimmermann <tzimmerm...@suse.de>
Tested-by: Carol L Soto cs...@nvidia.com<mailto:cs...@nvidia.com>
Fixes: 594e9c04b586 ("drm/ast: Create the driver for ASPEED proprietory 
Display-Port")
Cc: KuoHsiang Chou <kuohsiang_c...@aspeedtech.com>
Cc: Thomas Zimmermann <tzimmerm...@suse.de>
Cc: Dave Airlie <airl...@redhat.com>
Cc: Jocelyn Falempe <jfale...@redhat.com>
Cc: dri-devel@lists.freedesktop.org
Cc: <sta...@vger.kernel.org> # v5.19+
Signed-off-by: Thomas Zimmermann <tzimmerm...@suse.de>
Link: https://lore.kernel.org/r/20250917194346.2905522-1-nirm...@nvidia.com
Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org>
---
 drivers/gpu/drm/ast/ast_dp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/gpu/drm/ast/ast_dp.c
+++ b/drivers/gpu/drm/ast/ast_dp.c
@@ -79,7 +79,7 @@ static int ast_astdp_read_edid_block(voi
                         * 3. The Delays are often longer a lot when system 
resume from S3/S4.
                         */
                        if (j)
-                               mdelay(j + 1);
+                               msleep(j + 1);
 
                        /* Wait for EDID offset to show up in mirror register */
                        vgacrd7 = ast_get_index_reg(ast, AST_IO_VGACRI, 0xd7);


Patches currently in stable-queue which might be from nirm...@nvidia.com are

queue-6.12/drm-ast-use-msleep-instead-of-mdelay-for-edid-read.patch

Reply via email to