drm/ast: Fix black screen when getting out of suspend
authorJocelyn Falempe <jfalempe@redhat.com>
Wed, 22 Jun 2022 12:48:15 +0000 (14:48 +0200)
committerJocelyn Falempe <jfalempe@redhat.com>
Mon, 27 Jun 2022 08:15:02 +0000 (10:15 +0200)
commit5171660cbb14f3359e8a8bf7523afb0789fe1bcd
tree34f823e6f846e95efb97d35b52d83108520ea56a
parent3a149169e4a2f9127022fec6ef5d71b4e804b3b9
drm/ast: Fix black screen when getting out of suspend

With an AST2600, the screen is garbage when going out of suspend.
This is because color settings are lost, and not restored on resume.
Force the color settings on DPMS_ON, to make sure the settings are correct.

I didn't write this code, it comes from the out-of-tree aspeed driver v1.13
https://www.aspeedtech.com/support_driver/

Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Tested-by: Venkat Tadikonda <venkateswara.rao@intel.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220622124815.356035-1-jfalempe@redhat.com
drivers/gpu/drm/ast/ast_mode.c