Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Petri Latvala <petri.latvala@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] i915_pm_freq_mult: Compare scale factors as floats
Date: Tue, 15 Nov 2022 10:39:35 -0500	[thread overview]
Message-ID: <Y3OytxtSKi9mxR1D@intel.com> (raw)
In-Reply-To: <20221115102206.2493050-1-petri.latvala@intel.com>

On Tue, Nov 15, 2022 at 12:22:06PM +0200, Petri Latvala wrote:
> igt_assert_eq converts parameters to ints. The checked values are
> floats, so use igt_assert_eq_double instead.
> 
> Fixes: d47beef9b015 ("tests/i915_pm_freq_mult: New test for media freq factor")
> Signed-off-by: Petri Latvala <petri.latvala@intel.com>
> Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
>  tests/i915/i915_pm_freq_mult.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/i915/i915_pm_freq_mult.c b/tests/i915/i915_pm_freq_mult.c
> index 70cd7ffc..894ae294 100644
> --- a/tests/i915/i915_pm_freq_mult.c
> +++ b/tests/i915/i915_pm_freq_mult.c
> @@ -102,7 +102,7 @@ static void media_freq(int gt, int dir)
>  	igt_require(igt_sysfs_has_attr(dir, "media_freq_factor"));
>  
>  	igt_sysfs_scanf(dir, "media_freq_factor.scale", "%g", &scale);
> -	igt_assert_eq(scale, FREQ_SCALE_FACTOR);
> +	igt_assert_eq_double(scale, FREQ_SCALE_FACTOR);


Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

>  
>  	setup_freq(gt, dir);
>  
> -- 
> 2.30.2
> 

  parent reply	other threads:[~2022-11-15 15:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-15 10:22 [igt-dev] [PATCH i-g-t] i915_pm_freq_mult: Compare scale factors as floats Petri Latvala
2022-11-15 12:37 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-11-15 15:39 ` Rodrigo Vivi [this message]
2022-11-15 17:49 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-11-16  9:43   ` Petri Latvala
2022-11-16 22:12     ` Vudum, Lakshminarayana
2022-11-16 11:53 ` Patchwork
2022-11-16 22:07 ` [igt-dev] ✓ Fi.CI.IGT: success " 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=Y3OytxtSKi9mxR1D@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=petri.latvala@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