From: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
To: "Michał Grzelak" <michal.grzelak@intel.com>,
intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Cc: <jouni.hogander@intel.com>
Subject: Re: [PATCH v8 1/1] drm/i915/display: Add no_psr_reason to PSR debugfs
Date: Thu, 28 Aug 2025 14:12:15 +0000 [thread overview]
Message-ID: <DCE4ET9INSJ6.3LPUPKS0ONCJB@intel.com> (raw)
In-Reply-To: <20250828104951.1279862-2-michal.grzelak@intel.com>
Hi Michał
On Thu Aug 28, 2025 at 10:49 AM UTC, Michał Grzelak wrote:
> There is no reason in debugfs why PSR has been disabled. Add
It might be useful to explain the motivation behind this feature.
> no_psr_reason field into struct intel_psr. Write the reason,
> e.g. PSR setup timing not met, into proper PSR debugfs file.
> Extend format of debugfs file to have reason when non-NULL.
> Ensure no_psr_reason is up-to-date or NULL by resetting it
> at the beginning of intel_psr_compute_config. Clean it when
> PSR is activated.
>
> Refactor intel_psr_post_plane_update to use no_psr_reason
> along keep_disabled.
It appears to be version 8. I think it would be helpful to include a changelog.
>
> Signed-off-by: Michał Grzelak <michal.grzelak@intel.com>
> ---
> .../drm/i915/display/intel_display_types.h | 2 ++
> drivers/gpu/drm/i915/display/intel_psr.c | 21 +++++++++++++++----
> 2 files changed, 19 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h b/drivers/gpu/drm/i915/display/intel_display_types.h
> index fd9d2527889b..0f8332ce1aa0 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_types.h
> +++ b/drivers/gpu/drm/i915/display/intel_display_types.h
> @@ -1687,6 +1687,8 @@ struct intel_psr {
> bool pkg_c_latency_used;
>
> u8 active_non_psr_pipes;
> +
> + const char *no_psr_reason;
Have you considered using an enum or another type instead of a char pointer?
--
Best regards,
Sebastian
next prev parent reply other threads:[~2025-08-28 14:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-28 10:49 [PATCH v8 0/1] drm/i915/display: Add no_psr_reason to PSR debugfs Michał Grzelak
2025-08-28 10:49 ` [PATCH v8 1/1] " Michał Grzelak
2025-08-28 11:46 ` Hogander, Jouni
2025-08-28 14:12 ` Sebastian Brzezinka [this message]
2025-08-29 16:57 ` Grzelak, Michal
2025-08-28 16:47 ` ✓ i915.CI.BAT: success for " Patchwork
2025-08-28 22:31 ` ✓ i915.CI.Full: " Patchwork
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=DCE4ET9INSJ6.3LPUPKS0ONCJB@intel.com \
--to=sebastian.brzezinka@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jouni.hogander@intel.com \
--cc=michal.grzelak@intel.com \
/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;
as well as URLs for NNTP newsgroup(s).