From: Thomas Zimmermann <tzimmermann@suse.de>
To: Takashi Iwai <tiwai@suse.de>, Gerd Hoffmann <kraxel@redhat.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
virtualization@lists.linux.dev, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm/bochs: Fix DPMS regression
Date: Tue, 4 Mar 2025 15:13:41 +0100 [thread overview]
Message-ID: <f6441c24-667d-4127-ba34-0a600361e788@suse.de> (raw)
In-Reply-To: <20250304134203.20534-1-tiwai@suse.de>
Am 04.03.25 um 14:41 schrieb Takashi Iwai:
> 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>
Thanks for the patch.
> ---
> drivers/gpu/drm/tiny/bochs.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/tiny/bochs.c b/drivers/gpu/drm/tiny/bochs.c
> index 76e29950a807..c1c7d6c9e85f 100644
> --- a/drivers/gpu/drm/tiny/bochs.c
> +++ b/drivers/gpu/drm/tiny/bochs.c
> @@ -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,
--
--
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)
prev parent reply other threads:[~2025-03-04 14:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-04 13:41 Takashi Iwai
2025-03-04 14:13 ` Thomas Zimmermann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f6441c24-667d-4127-ba34-0a600361e788@suse.de \
--to=tzimmermann@suse.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=kraxel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=tiwai@suse.de \
--cc=virtualization@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®