drm/bochs: Fix DPMS regression
Subsystems (4)
PATCH 1/1 drm/bochs: Fix DPMS regression
The recent rewrite with the use of regular atomic helpers broke the DPMS unblanking on X11. Fix it by moving the call of bochs_hw_blank(false) from CRTC mode_set_nofb() to atomic_enable().
Fixes 2037174993c8 ("drm/bochs: Use regular atomic helpers")
Signed-off-by Takashi Iwai <[email protected]>
--- drivers/gpu/drm/tiny/bochs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/tiny/bochs.c +3 -2
@@ -323,8 +323,6 @@ static void bochs_hw_setmode(struct bochs_device *bochs, struct drm_display_mode bochs->xres, bochs->yres, bochs->bpp, bochs->yres_virtual); -bochs_hw_blank (bochs, false); -bochs_dispi_write (bochs,VBE_DISPI_INDEX_ENABLE ,0 );bochs_dispi_write (bochs,VBE_DISPI_INDEX_BPP , bochs->bpp);bochs_dispi_write (bochs,VBE_DISPI_INDEX_XRES , bochs->xres);
@@ -494,6 +492,9 @@ static int bochs_crtc_helper_atomic_check(struct drm_crtc *crtc,static void bochs_crtc_helper_atomic_enable (struct drm_crtc *crtc,struct drm_atomic_state *state) { +struct bochs_device *bochs =to_bochs_device (crtc->dev); + +bochs_hw_blank (bochs, false); } static void bochs_crtc_helper_atomic_disable(struct drm_crtc *crtc,
Signature · 1 line
2.43.0
Am 04.03.25 um 14:41 schrieb Takashi Iwai:
Quoted 7 lines
The recent rewrite with the use of regular atomic helpers broke the DPMS unblanking on X11. Fix it by moving the call of
bochs_hw_blank(false)from CRTCmode_set_nofb()toatomic_enable().Fixes 2037174993c8 ("drm/bochs: Use regular atomic helpers")Signed-off-by Takashi Iwai <[email protected]>
Reviewed-by Thomas Zimmermann <[email protected]>
Thanks for the patch.
Quoted 27 lines
--- drivers/gpu/drm/tiny/bochs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/tiny/bochs.c +3
-2@@ -323,8 +323,6 @@ static void bochs_hw_setmode(struct bochs_device *bochs, struct drm_display_mode bochs->xres, bochs->yres, bochs->bpp, bochs->yres_virtual); -bochs_hw_blank (bochs, false); -bochs_dispi_write (bochs,VBE_DISPI_INDEX_ENABLE ,0 );bochs_dispi_write (bochs,VBE_DISPI_INDEX_BPP , bochs->bpp);bochs_dispi_write (bochs,VBE_DISPI_INDEX_XRES , bochs->xres);@@ -494,6 +492,9 @@ static int bochs_crtc_helper_atomic_check(struct drm_crtc *crtc,static void bochs_crtc_helper_atomic_enable (struct drm_crtc *crtc,struct drm_atomic_state *state) { +struct bochs_device *bochs =to_bochs_device (crtc->dev); + +bochs_hw_blank (bochs, false); } static void bochs_crtc_helper_atomic_disable(struct drm_crtc *crtc,
Signature · 7 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)