All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Badal Nilawar <badal.nilawar@intel.com>
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [Intel-xe] [PATCH] drm/xe/mtl: Use 16.67 Mhz freq scale factor to get rpX
Date: Wed, 01 Nov 2023 09:28:49 -0700	[thread overview]
Message-ID: <87h6m5a14u.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20231101163212.1629685-1-badal.nilawar@intel.com>

On Wed, 01 Nov 2023 09:32:12 -0700, Badal Nilawar wrote:
>
> For mtl and above 16.67 Mhz is the scale factor to calculate
> rpX frequencies.
>
> v2: Fix review comment (Ashutosh)

Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>

>
> Signed-off-by: Badal Nilawar <badal.nilawar@intel.com>
> ---
>  drivers/gpu/drm/xe/xe_guc_pc.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_guc_pc.c b/drivers/gpu/drm/xe/xe_guc_pc.c
> index 74247e0d3674..020c6597cd78 100644
> --- a/drivers/gpu/drm/xe/xe_guc_pc.c
> +++ b/drivers/gpu/drm/xe/xe_guc_pc.c
> @@ -313,7 +313,7 @@ static void mtl_update_rpe_value(struct xe_guc_pc *pc)
>	else
>		reg = xe_mmio_read32(gt, MTL_GT_RPE_FREQUENCY);
>
> -	pc->rpe_freq = REG_FIELD_GET(MTL_RPE_MASK, reg) * GT_FREQUENCY_MULTIPLIER;
> +	pc->rpe_freq = decode_freq(REG_FIELD_GET(MTL_RPE_MASK, reg));
>  }
>
>  static void tgl_update_rpe_value(struct xe_guc_pc *pc)
> @@ -653,10 +653,10 @@ static void mtl_init_fused_rp_values(struct xe_guc_pc *pc)
>		reg = xe_mmio_read32(gt, MTL_MEDIAP_STATE_CAP);
>	else
>		reg = xe_mmio_read32(gt, MTL_RP_STATE_CAP);
> -	pc->rp0_freq = REG_FIELD_GET(MTL_RP0_CAP_MASK, reg) *
> -		GT_FREQUENCY_MULTIPLIER;
> -	pc->rpn_freq = REG_FIELD_GET(MTL_RPN_CAP_MASK, reg) *
> -		GT_FREQUENCY_MULTIPLIER;
> +
> +	pc->rp0_freq = decode_freq(REG_FIELD_GET(MTL_RP0_CAP_MASK, reg));
> +
> +	pc->rpn_freq = decode_freq(REG_FIELD_GET(MTL_RPN_CAP_MASK, reg));
>  }
>
>  static void tgl_init_fused_rp_values(struct xe_guc_pc *pc)
> --
> 2.25.1
>

  reply	other threads:[~2023-11-01 16:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-01 16:32 [Intel-xe] [PATCH] drm/xe/mtl: Use 16.67 Mhz freq scale factor to get rpX Badal Nilawar
2023-11-01 16:28 ` Dixit, Ashutosh [this message]
2023-11-01 17:45 ` [Intel-xe] ✓ CI.Patch_applied: success for drm/xe/mtl: Use 16.67 Mhz freq scale factor to get rpX (rev2) Patchwork
2023-11-01 17:45 ` [Intel-xe] ✓ CI.checkpatch: " Patchwork
2023-11-01 17:47 ` [Intel-xe] ✓ CI.KUnit: " Patchwork
2023-11-01 17:54 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-11-01 17:55 ` [Intel-xe] ✓ CI.Hooks: " Patchwork
2023-11-01 17:57 ` [Intel-xe] ✓ CI.checksparse: " Patchwork
2023-11-01 18:31 ` [Intel-xe] ✓ CI.BAT: " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2023-11-01 15:17 [Intel-xe] [PATCH] drm/xe/mtl: Use 16.67 Mhz freq scale factor to get rpX Badal Nilawar
2023-11-01 15:23 ` Dixit, Ashutosh
2023-11-01 15:58   ` Nilawar, Badal

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=87h6m5a14u.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=badal.nilawar@intel.com \
    --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 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.