From: "Belgaumkar, Vinay" <vinay.belgaumkar@intel.com>
To: Badal Nilawar <badal.nilawar@intel.com>,
<intel-xe@lists.freedesktop.org>
Cc: <rodrigo.vivi@intel.com>, <sk.anirban@intel.com>
Subject: Re: [PATCH] drm/xe: Prevent runtime PM wake while reading rp0 frequency
Date: Wed, 15 Oct 2025 12:19:18 -0700 [thread overview]
Message-ID: <523ac791-b43e-41a3-bac6-26a882fe281f@intel.com> (raw)
In-Reply-To: <20251015094611.1468939-1-badal.nilawar@intel.com>
On 10/15/2025 2:46 AM, Badal Nilawar wrote:
> The rp0 frequency is a fused value that is read once during probe
> and then cached, so there’s no need to trigger a runtime wake
> when accessing rp0.
>
> Signed-off-by: Badal Nilawar <badal.nilawar@intel.com>
> ---
> drivers/gpu/drm/xe/xe_gt_freq.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_gt_freq.c b/drivers/gpu/drm/xe/xe_gt_freq.c
> index 4ff1b6b58d6b..701349251bbc 100644
> --- a/drivers/gpu/drm/xe/xe_gt_freq.c
> +++ b/drivers/gpu/drm/xe/xe_gt_freq.c
> @@ -99,13 +99,8 @@ static ssize_t rp0_freq_show(struct kobject *kobj,
> {
> struct device *dev = kobj_to_dev(kobj);
> struct xe_guc_pc *pc = dev_to_pc(dev);
> - u32 freq;
>
> - xe_pm_runtime_get(dev_to_xe(dev));
> - freq = xe_guc_pc_get_rp0_freq(pc);
> - xe_pm_runtime_put(dev_to_xe(dev));
> -
> - return sysfs_emit(buf, "%d\n", freq);
> + return sysfs_emit(buf, "%d\n", xe_guc_pc_get_rp0_freq(pc));
LGTM,
Reviewed-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
> }
> static struct kobj_attribute attr_rp0_freq = __ATTR_RO(rp0_freq);
>
next prev parent reply other threads:[~2025-10-15 19:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-15 9:46 [PATCH] drm/xe: Prevent runtime PM wake while reading rp0 frequency Badal Nilawar
2025-10-15 11:38 ` Poosa, Karthik
2025-10-16 19:05 ` Rodrigo Vivi
2025-10-15 14:41 ` ✗ CI.checkpatch: warning for " Patchwork
2025-10-15 14:42 ` ✓ CI.KUnit: success " Patchwork
2025-10-15 15:20 ` ✓ Xe.CI.BAT: " Patchwork
2025-10-15 19:19 ` Belgaumkar, Vinay [this message]
2025-10-16 0:10 ` ✗ Xe.CI.Full: failure " 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=523ac791-b43e-41a3-bac6-26a882fe281f@intel.com \
--to=vinay.belgaumkar@intel.com \
--cc=badal.nilawar@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=rodrigo.vivi@intel.com \
--cc=sk.anirban@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