All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anush V <j@gnu.org>
To: sashiko-reviews@lists.linux.dev
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/fb-helper: Keep blanked outputs off across restore and hotplug
Date: Sat, 05 Dec 2026 22:10:45 +0530	[thread overview]
Message-ID: <87mrqjhe9e.fsf@gnu.org> (raw)
In-Reply-To: <sashiko-outbox-251630@kernel.org>

> From: sashiko-bot@kernel.org
> Date: Sat,  5 Dec 2026 14:31:21 +0000

> Should the forced restore branch reset fb_helper->dpms_mode to
> DRM_MODE_DPMS_ON on success?

Yes. v2 sets it at every forced restore, whatever the commit returns,
as the field records what fbdev asked for rather than what the
hardware did. The outputs then stay lit through the delayed hotplug
that sysrq's restore runs, where v1 turned them off again, as you
describe.

> Can drm_fb_helper_dpms() latch fb_helper->dpms_mode even when
> drm_client_modeset_dpms() fails with -EBUSY?

It can, and with v1 the close in your scenario turned the outputs off.
In v2 the switch back to KD_TEXT forces a restore, which now sets the
mode to on, so the close leaves them lit.

> Updating fb_helper->dpms_mode only when drm_client_modeset_dpms() returns 0
> would avoid latching a failed blank request.

It would also lose requests fbcon has acted on. In KD_TEXT, fbcon
counts a blank or an unblank as done even when a program holding the
device, such as fwupd, makes its commit fail, and the restore at that
program's close is then the only commit left to apply it. With the mode
updated only on success, that close lit the outputs after a refused
blank, on a console counting itself blanked, and left them dark after a
refused unblank, on one counting itself unblanked, which keypresses
can't wake either. v2 keeps recording the mode, and a comment says why.

v2 is "[PATCH v2] drm/fb-helper: Keep blanked outputs off across
restore and hotplug", in a new thread.

      reply	other threads:[~2026-12-05 16:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05 13:55 [PATCH] drm/fb-helper: Keep blanked outputs off across restore and hotplug Anush Veeranala
2026-12-05 14:31 ` sashiko-bot
2026-12-05 16:40   ` Anush V [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=87mrqjhe9e.fsf@gnu.org \
    --to=j@gnu.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=sashiko-reviews@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 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.