Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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")
Link: https://bugzilla.suse.com/show_bug.cgi?id=1238209
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20250304134203.20534-1-tiwai@suse.de

authored by

Takashi Iwai and committed by
Thomas Zimmermann
80da96d7 23e0832d

+3 -2
+3 -2
drivers/gpu/drm/tiny/bochs.c
··· 335 335 bochs->xres, bochs->yres, bochs->bpp, 336 336 bochs->yres_virtual); 337 337 338 - bochs_hw_blank(bochs, false); 339 - 340 338 bochs_dispi_write(bochs, VBE_DISPI_INDEX_ENABLE, 0); 341 339 bochs_dispi_write(bochs, VBE_DISPI_INDEX_BPP, bochs->bpp); 342 340 bochs_dispi_write(bochs, VBE_DISPI_INDEX_XRES, bochs->xres); ··· 504 506 static void bochs_crtc_helper_atomic_enable(struct drm_crtc *crtc, 505 507 struct drm_atomic_state *state) 506 508 { 509 + struct bochs_device *bochs = to_bochs_device(crtc->dev); 510 + 511 + bochs_hw_blank(bochs, false); 507 512 } 508 513 509 514 static void bochs_crtc_helper_atomic_disable(struct drm_crtc *crtc,