Skip to content

Commit 12c35c5

Browse files
jammyaspeedThomas Zimmermann
authored andcommitted
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 Fixes: 5b71707 ("drm/ast: Enable and unlock device access early during init") Reported-by: Cary Garrett <[email protected]> Closes: https://lore.kernel.org/dri-devel/[email protected]/ Cc: Thomas Zimmermann <[email protected]> Cc: Jocelyn Falempe <[email protected]> Cc: Dave Airlie <[email protected]> Cc: [email protected] Cc: <[email protected]> # v6.6+ Signed-off-by: Jammy Huang <[email protected]> Reviewed-by: Thomas Zimmermann <[email protected]> Signed-off-by: Thomas Zimmermann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 4ecc24a commit 12c35c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/ast/ast_drv.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,11 @@ static int ast_drm_freeze(struct drm_device *dev)
391391

392392
static int ast_drm_thaw(struct drm_device *dev)
393393
{
394+
struct ast_device *ast = to_ast_device(dev);
395+
396+
ast_enable_vga(ast->ioregs);
397+
ast_open_key(ast->ioregs);
398+
ast_enable_mmio(dev->dev, ast->ioregs);
394399
ast_post_gpu(dev);
395400

396401
return drm_mode_config_helper_resume(dev);

0 commit comments

Comments
 (0)