public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Thierry Reding" <thierry.reding@gmail.com>
To: "Douglas Anderson" <dianders@chromium.org>,
	<dri-devel@lists.freedesktop.org>,
	"Maxime Ripard" <mripard@kernel.org>
Cc: "Daniel Vetter" <daniel@ffwll.ch>,
	"David Airlie" <airlied@gmail.com>,
	"Jonathan Hunter" <jonathanh@nvidia.com>,
	"Mikko Perttunen" <mperttunen@nvidia.com>,
	<linux-kernel@vger.kernel.org>, <linux-tegra@vger.kernel.org>
Subject: Re: [PATCH v2 3/8] drm/tegra: Call drm_atomic_helper_shutdown() at shutdown time
Date: Thu, 27 Jun 2024 08:58:13 +0200	[thread overview]
Message-ID: <D2ALRV4G5SZF.229WKTA9B95QN@gmail.com> (raw)
In-Reply-To: <20240612152336.v2.3.Ifb4450979b62976fd5a98847dade2e5b377d47c8@changeid>

[-- Attachment #1: Type: text/plain, Size: 892 bytes --]

On Thu Jun 13, 2024 at 12:23 AM CEST, Douglas Anderson wrote:
> Based on grepping through the source code this driver appears to be
> missing a call to drm_atomic_helper_shutdown() at system shutdown
> time. Among other things, this means that if a panel is in use that it
> won't be cleanly powered off at system shutdown time.
>
> The fact that we should call drm_atomic_helper_shutdown() in the case
> of OS shutdown/restart comes straight out of the kernel doc "driver
> instance overview" in drm_drv.c.
>
> Suggested-by: Maxime Ripard <mripard@kernel.org>
> Reviewed-by: Maxime Ripard <mripard@kernel.org>
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
> ---
> This commit is only compile-time tested.
>
> (no changes since v1)
>
>  drivers/gpu/drm/tegra/drm.c | 6 ++++++
>  1 file changed, 6 insertions(+)

Acked-by: Thierry Reding <treding@nvidia.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2024-06-27  6:58 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-12 22:23 [PATCH v2 0/8] drm: make leftover drivers call drm_atomic_helper_shutdown() at the right times Douglas Anderson
2024-06-12 22:23 ` [PATCH v2 1/8] drm/kmb: Call drm_atomic_helper_shutdown() at shutdown time Douglas Anderson
2024-06-12 22:23 ` [PATCH v2 2/8] drm/nouveau: Call drm_atomic_helper_shutdown() or equiv " Douglas Anderson
2024-06-12 22:23 ` [PATCH v2 3/8] drm/tegra: Call drm_atomic_helper_shutdown() " Douglas Anderson
2024-06-27  6:58   ` Thierry Reding [this message]
2024-07-08 20:57     ` Doug Anderson
2024-06-12 22:23 ` [PATCH v2 4/8] drm/arcpgu: " Douglas Anderson
2024-06-12 22:23 ` [PATCH v2 5/8] drm/sprd: Call drm_atomic_helper_shutdown() at remove time Douglas Anderson
2024-06-12 22:23 ` [PATCH v2 6/8] drm/gma500: Call drm_helper_force_disable_all() at shutdown/remove time Douglas Anderson
2024-06-12 22:28 ` [PATCH v2 7/8] drm/radeon: " Douglas Anderson
2024-06-12 22:28 ` [PATCH v2 8/8] drm/amdgpu: Call drm_atomic_helper_shutdown() at shutdown time Douglas Anderson
2024-06-17 15:01   ` Alex Deucher
2024-06-18 21:34     ` Doug Anderson
2024-06-18 21:59       ` Alex Deucher
2024-06-18 23:52         ` Doug Anderson
2024-06-19 13:50           ` Alex Deucher
2024-06-19 13:53             ` Alex Deucher
2024-06-20  7:10               ` Maxime Ripard
2024-06-20 13:00                 ` Alex Deucher
2024-06-21  8:42                   ` Maxime Ripard

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=D2ALRV4G5SZF.229WKTA9B95QN@gmail.com \
    --to=thierry.reding@gmail.com \
    --cc=airlied@gmail.com \
    --cc=daniel@ffwll.ch \
    --cc=dianders@chromium.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jonathanh@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=mperttunen@nvidia.com \
    --cc=mripard@kernel.org \
    /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