FAILED: patch "[PATCH] drm/ast: Fix black screen after resume" failed to apply to 6.6-stable tree
[email protected]
maintainerThe 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 <[email protected]>.
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 12c35c5582acb0fd8f7713ffa75f450766022ff1
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2024080750-lance-overcrowd-731e@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^..
Possible dependencies:
12c35c5582ac ("drm/ast: Fix black screen after resume")
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 12c35c5582acb0fd8f7713ffa75f450766022ff1 Mon Sep 17 00:00:00 2001
From: Jammy Huang <[email protected]>
Date: Thu, 18 Jul 2024 11:03:52 +0800
Subject: [PATCH] drm/ast: Fix black screen after resume
Suspend will disable pcie device. Thus, resume should do full hw initialization again.
Add some APIs to ast_drm_thaw() before ast_post_gpu() to fix the issue.
v2:
- fix function-call arguments
drivers/gpu/drm/ast/ast_drv.c +5 -0
@@ -391,6 +391,11 @@ static int ast_drm_freeze(struct drm_device *dev)static int ast_drm_thaw (struct drm_device *dev) { +struct ast_device *ast =to_ast_device (dev); + +ast_enable_vga (ast->ioregs); +ast_open_key (ast->ioregs); +ast_enable_mmio (dev->dev, ast->ioregs);ast_post_gpu (dev);return drm_mode_config_helper_resume (dev);