Bug 213779

Summary: Screen stays blank on resume from hibernate
Product: Drivers Reporter: alex14641
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: NEW ---    
Severity: high CC: alexdeucher
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 5.13 Subsystem:
Regression: Yes Bisected commit-id:

Description alex14641 2021-07-18 23:18:34 UTC
If I close my laptop lid and reopen it, the screen stays blank. Reverting the following commit fixes the issue:

commit 9127daa0a8d88a6e6452eb8b7c9be4c3f42a867e
Author: Stylon Wang <stylon.wang@amd.com>
Date:   Tue Mar 2 19:25:56 2021 +0800

    drm/amd/display: Guard ASSR with internal display flag
    
    [Why]
    ASSR enabling only considers capability declared in DPCD.
    We also need to check whether the connector is internal.
    
    [How]
    ASSR enabling need to check both DPCD capability and internal display
    flag.
    
    Signed-off-by: Stylon Wang <stylon.wang@amd.com>
    Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
    Acked-by: Anson Jacob <Anson.Jacob@amd.com>
    Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Comment 1 alex14641 2021-07-18 23:20:03 UTC
The graphics card is a RX580.
Comment 2 Alex Deucher 2021-07-19 14:53:43 UTC
Can you try the patch here:
https://gitlab.freedesktop.org/drm/amd/-/issues/1620
Comment 3 alex14641 2021-07-20 12:27:31 UTC
That patch works.
Comment 4 Alex Deucher 2021-07-28 04:49:50 UTC
Fix is in 5.14 and should land in stable shortly:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6be50f5d83adc9541de3d5be26e968182b5ac150