From: Jani Nikula <jani.nikula@intel.com>
To: imre.deak@intel.com
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/power: move runtime power status info to power debugfs
Date: Wed, 26 Feb 2025 15:44:48 +0200 [thread overview]
Message-ID: <87frk04y7j.fsf@intel.com> (raw)
In-Reply-To: <Z772S8QBkIrVJucR@ideak-desk.fi.intel.com>
On Wed, 26 Feb 2025, Imre Deak <imre.deak@intel.com> wrote:
> On Tue, Feb 25, 2025 at 02:17:42PM +0200, Jani Nikula wrote:
>> The i915 core debugfs has no business looking at power domain guts for
>> runtime power status. Move the info to the more appropriate place.
>>
>> Cc: Imre Deak <imre.deak@intel.com>
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>
> Reviewed-by: Imre Deak <imre.deak@intel.com>
Thanks, pushed to din.
BR,
Jani.
>
>> ---
>> drivers/gpu/drm/i915/display/intel_display_power.c | 3 +++
>> drivers/gpu/drm/i915/i915_debugfs.c | 3 ---
>> 2 files changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/display/intel_display_power.c b/drivers/gpu/drm/i915/display/intel_display_power.c
>> index 396930937d98..96346b33d7e9 100644
>> --- a/drivers/gpu/drm/i915/display/intel_display_power.c
>> +++ b/drivers/gpu/drm/i915/display/intel_display_power.c
>> @@ -2317,6 +2317,9 @@ void intel_display_power_debug(struct intel_display *display, struct seq_file *m
>>
>> mutex_lock(&power_domains->lock);
>>
>> + seq_printf(m, "Runtime power status: %s\n",
>> + str_enabled_disabled(!power_domains->init_wakeref));
>> +
>> seq_printf(m, "%-25s %s\n", "Power well/domain", "Use count");
>> for (i = 0; i < power_domains->power_well_count; i++) {
>> struct i915_power_well *power_well;
>> diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
>> index 1c2a97f593c7..0d9e263913ff 100644
>> --- a/drivers/gpu/drm/i915/i915_debugfs.c
>> +++ b/drivers/gpu/drm/i915/i915_debugfs.c
>> @@ -411,9 +411,6 @@ static int i915_runtime_pm_status(struct seq_file *m, void *unused)
>> if (!HAS_RUNTIME_PM(dev_priv))
>> seq_puts(m, "Runtime power management not supported\n");
>>
>> - seq_printf(m, "Runtime power status: %s\n",
>> - str_enabled_disabled(!dev_priv->display.power.domains.init_wakeref));
>> -
>> seq_printf(m, "GPU idle: %s\n", str_yes_no(!to_gt(dev_priv)->awake));
>> seq_printf(m, "IRQs disabled: %s\n",
>> str_yes_no(!intel_irqs_enabled(dev_priv)));
>> --
>> 2.39.5
>>
--
Jani Nikula, Intel
prev parent reply other threads:[~2025-02-26 13:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-25 12:17 [PATCH] drm/i915/power: move runtime power status info to power debugfs Jani Nikula
2025-02-25 14:16 ` ✓ i915.CI.BAT: success for " Patchwork
2025-02-25 16:45 ` ✗ i915.CI.Full: failure " Patchwork
2025-02-26 11:08 ` [PATCH] " Imre Deak
2025-02-26 13:44 ` Jani Nikula [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=87frk04y7j.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.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;
as well as URLs for NNTP newsgroup(s).