From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01C383016E6 for ; Mon, 29 Sep 2025 11:43:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759146204; cv=none; b=OoxqN/Kk4+v/tjzYG1luI5ymucZuY36+JKezd/DvHHpqI7o+htnXpKqI5RaZ1cO3JdnxpaZTt+RZ8rheNIfokFg4Q2N2PxVtrRJEBJGmTnei2ltbH3+oEwkEU5FZuCRtftMJNEtFK4N6S3oeeZK0L6oGt4OcmJGHJyfOwszQcWw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759146204; c=relaxed/simple; bh=vsTG4gmS87m4BI/42UUHndh0H43UGkRWE3wQa1oBCwc=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=soPX6bL+sM/JizILYH/qHemFNtQdmzSzTdIhd+ZGoGo1/vNjD/KCNBequW1Of8AhfljeYVFRnekuYcltxq6sKYrWuvwexvUnjCW5hvnJseqB3b6PVttuZLiacUtEqZAINE6m+N1fnwU7qmoU2mteP+h50SVVl5Elj5Bss6EXyeM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OPn73UWr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="OPn73UWr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17900C4CEF4; Mon, 29 Sep 2025 11:43:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759146203; bh=vsTG4gmS87m4BI/42UUHndh0H43UGkRWE3wQa1oBCwc=; h=Subject:To:Cc:From:Date:From; b=OPn73UWrPVdvxaAW2XbcbYdeiFDxh6VQMe77kXY85uoeO/D6DEU1kkdEHZ+D4nvlb mrd6DmjMlwBfOjmu1Bnff3C3QcK/8/N9hci4Wm/gSIk0paDeqqJAaI/17hMcJ5qtQD wqB02sGJTfx+zWkI8a97n4Xr2lQut9klpymACGzU= Subject: FAILED: patch "[PATCH] drm/ast: Use msleep instead of mdelay for edid read" failed to apply to 6.6-stable tree To: nirmoyd@nvidia.com,airlied@redhat.com,jfalempe@redhat.com,kuohsiang_chou@aspeedtech.com,mailto:csoto@nvidia.com,stable@vger.kernel.org,tzimmermann@suse.de Cc: From: Date: Mon, 29 Sep 2025 13:43:20 +0200 Message-ID: <2025092920-backspin-glade-7b6c@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x c7c31f8dc54aa3c9b2c994b5f1ff7e740a654e97 # git commit -s git send-email --to '' --in-reply-to '2025092920-backspin-glade-7b6c@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From c7c31f8dc54aa3c9b2c994b5f1ff7e740a654e97 Mon Sep 17 00:00:00 2001 From: Nirmoy Das Date: Wed, 17 Sep 2025 12:43:46 -0700 Subject: [PATCH] drm/ast: Use msleep instead of mdelay for edid read The busy-waiting in `mdelay()` can cause CPU stalls and kernel timeouts during boot. Signed-off-by: Nirmoy Das Reviewed-by: Thomas Zimmermann Tested-by: Carol L Soto csoto@nvidia.com Fixes: 594e9c04b586 ("drm/ast: Create the driver for ASPEED proprietory Display-Port") Cc: KuoHsiang Chou Cc: Thomas Zimmermann Cc: Dave Airlie Cc: Jocelyn Falempe Cc: dri-devel@lists.freedesktop.org Cc: # v5.19+ Signed-off-by: Thomas Zimmermann Link: https://lore.kernel.org/r/20250917194346.2905522-1-nirmoyd@nvidia.com diff --git a/drivers/gpu/drm/ast/ast_dp.c b/drivers/gpu/drm/ast/ast_dp.c index 19c04687b0fe..8e650a02c528 100644 --- a/drivers/gpu/drm/ast/ast_dp.c +++ b/drivers/gpu/drm/ast/ast_dp.c @@ -134,7 +134,7 @@ static int ast_astdp_read_edid_block(void *data, u8 *buf, unsigned int block, si * 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);