* [PATCH] drm/radeon: A gray screen appears when going into hibernation(S4)
@ 2021-02-22 6:46 ` wangjingyu
0 siblings, 0 replies; 3+ messages in thread
From: wangjingyu @ 2021-02-22 6:46 UTC (permalink / raw)
To: alexander.deucher, christian.koenig, airlied
Cc: amd-gfx, dri-devel, linux-kernel, wangjingyu, zhuyong
Radeon Card:
Caicos[Radeon HD 6450/7450/8450 /R5 230 OEM]
there is no gray screen when echo 4>/sys/module/drm/parameters/debug,
so the WREG32 function after DRM_DEBUG_KMS may have wrong when going
into hibernation.the delay of msleep(50) just can fix gray screen.
Signed-off-by: wangjingyu <wangjingyu@uniontech.com>
Signed-off-by: zhuyong <zhuyong@uniontech.com>
---
drivers/gpu/drm/radeon/radeon_display.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
index ddfe91efa61e..1f7f0904e4a5 100644
--- a/drivers/gpu/drm/radeon/radeon_display.c
+++ b/drivers/gpu/drm/radeon/radeon_display.c
@@ -215,6 +215,7 @@ void radeon_crtc_load_lut(struct drm_crtc *crtc)
if (!crtc->enabled)
return;
+ msleep(50);
if (ASIC_IS_DCE5(rdev))
dce5_crtc_load_lut(crtc);
else if (ASIC_IS_DCE4(rdev))
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] drm/radeon: A gray screen appears when going into hibernation(S4)
@ 2021-02-22 6:46 ` wangjingyu
0 siblings, 0 replies; 3+ messages in thread
From: wangjingyu @ 2021-02-22 6:46 UTC (permalink / raw)
To: alexander.deucher, christian.koenig, airlied
Cc: wangjingyu, zhuyong, dri-devel, amd-gfx, linux-kernel
Radeon Card:
Caicos[Radeon HD 6450/7450/8450 /R5 230 OEM]
there is no gray screen when echo 4>/sys/module/drm/parameters/debug,
so the WREG32 function after DRM_DEBUG_KMS may have wrong when going
into hibernation.the delay of msleep(50) just can fix gray screen.
Signed-off-by: wangjingyu <wangjingyu@uniontech.com>
Signed-off-by: zhuyong <zhuyong@uniontech.com>
---
drivers/gpu/drm/radeon/radeon_display.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
index ddfe91efa61e..1f7f0904e4a5 100644
--- a/drivers/gpu/drm/radeon/radeon_display.c
+++ b/drivers/gpu/drm/radeon/radeon_display.c
@@ -215,6 +215,7 @@ void radeon_crtc_load_lut(struct drm_crtc *crtc)
if (!crtc->enabled)
return;
+ msleep(50);
if (ASIC_IS_DCE5(rdev))
dce5_crtc_load_lut(crtc);
else if (ASIC_IS_DCE4(rdev))
--
2.11.0
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] drm/radeon: A gray screen appears when going into hibernation(S4)
@ 2021-02-22 6:46 ` wangjingyu
0 siblings, 0 replies; 3+ messages in thread
From: wangjingyu @ 2021-02-22 6:46 UTC (permalink / raw)
To: alexander.deucher, christian.koenig, airlied
Cc: wangjingyu, zhuyong, dri-devel, amd-gfx, linux-kernel
Radeon Card:
Caicos[Radeon HD 6450/7450/8450 /R5 230 OEM]
there is no gray screen when echo 4>/sys/module/drm/parameters/debug,
so the WREG32 function after DRM_DEBUG_KMS may have wrong when going
into hibernation.the delay of msleep(50) just can fix gray screen.
Signed-off-by: wangjingyu <wangjingyu@uniontech.com>
Signed-off-by: zhuyong <zhuyong@uniontech.com>
---
drivers/gpu/drm/radeon/radeon_display.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
index ddfe91efa61e..1f7f0904e4a5 100644
--- a/drivers/gpu/drm/radeon/radeon_display.c
+++ b/drivers/gpu/drm/radeon/radeon_display.c
@@ -215,6 +215,7 @@ void radeon_crtc_load_lut(struct drm_crtc *crtc)
if (!crtc->enabled)
return;
+ msleep(50);
if (ASIC_IS_DCE5(rdev))
dce5_crtc_load_lut(crtc);
else if (ASIC_IS_DCE4(rdev))
--
2.11.0
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-02-22 18:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-22 6:46 [PATCH] drm/radeon: A gray screen appears when going into hibernation(S4) wangjingyu
2021-02-22 6:46 ` wangjingyu
2021-02-22 6:46 ` wangjingyu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.