6.6-stable review patch.  If anyone has any objections, please let me know.

------------------

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

[ Upstream commit c7c31f8dc54aa3c9b2c994b5f1ff7e740a654e97 ]

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
[ Applied change to ast_astdp_read_edid() instead of 
ast_astdp_read_edid_block() ]
Signed-off-by: Sasha Levin <sas...@kernel.org>
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
@@ -62,7 +62,7 @@ int ast_astdp_read_edid(struct drm_devic
                         *        of right-click of mouse.
                         * 2. The Delays are often longer a lot when system 
resume from S3/S4.
                         */
-                       mdelay(j+1);
+                       msleep(j + 1);
 
                        if (!(ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 
0xD1,
                                                        ASTDP_MCU_FW_EXECUTING) 
&&


Reply via email to