All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] tests/perf_pmu: Compare against requested freq in frequency subtest
Date: Tue, 08 Nov 2022 22:03:15 -0800	[thread overview]
Message-ID: <87cz9w1x7g.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <87fses28z3.wl-ashutosh.dixit@intel.com>

On Tue, 08 Nov 2022 17:49:04 -0800, Dixit, Ashutosh wrote:
>
> > Is it then expected to respect the 300MHz max in this case? Or if it can't,
> > should it be reflected in the sysfs readback?
>
> The max is set to 300 MHz but is not respected. So the sysfs readback shows
> max as 300 MHz but actual requested freq is higher. The flow is that i915
> sets min/max using h2g. GuC FW validates the parameters in the top-half and
> returns success (which results in max freq being set in i915 to 300 MHz)
> but the actual min/max freq change in PCODE is done later in the
> bottom-half because of which the delay is needed.
>
> Though Vinay we never read the max freq back from FW, that is we call
> intel_rps_get_max_frequency and not intel_guc_slpc_get_max_freq when
> displaying in sysfs. That is we display i915 cached values rather than
> interrogate FW, assuming that FW min/max values are same as the cached
> values. I can add a couple more prints and see what actual FW values are.

So I submitted this patch which queries freq's from FW rather than
displaying cached values:

https://patchwork.freedesktop.org/series/110685/

But here also we see the same min/max freq's:

https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_110685v1/bat-dg2-11/igt@perf_pmu@frequency.html

So this means freq's set in FW match the cached values in i915.

(Compare the above results against:
https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8071/bat-dg2-11/igt@perf_pmu@frequency.html
which uses cached values).

So again we are back to the earlier conclusion that "max is set to 300 MHz
but is not respected".

So finally let's think about whether v1 or v2 of the IGT patch makes sense:

https://patchwork.freedesktop.org/series/110574/

Thanks.
--
Ashutosh

  reply	other threads:[~2022-11-09  6:03 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-07  6:23 [igt-dev] [PATCH i-g-t] tests/perf_pmu: Compare against requested freq in frequency subtest Ashutosh Dixit
2022-11-07  6:58 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-11-07  7:58 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2022-11-07 10:27 ` [igt-dev] [PATCH i-g-t] " Tvrtko Ursulin
2022-11-08  0:18   ` Dixit, Ashutosh
2022-11-08  0:22     ` Dixit, Ashutosh
2022-11-08  0:57       ` Belgaumkar, Vinay
2022-11-08  1:31         ` Dixit, Ashutosh
2022-11-08  9:24           ` Tvrtko Ursulin
2022-11-08 21:02             ` Belgaumkar, Vinay
2022-11-09  1:53               ` Dixit, Ashutosh
2022-11-10  1:37                 ` Belgaumkar, Vinay
2022-11-10  4:20                   ` Dixit, Ashutosh
2022-11-09  1:49             ` Dixit, Ashutosh
2022-11-09  6:03               ` Dixit, Ashutosh [this message]
2022-11-08 19:06 Ashutosh Dixit
2022-11-19  2:00 Ashutosh Dixit
2022-11-21  9:09 ` Tvrtko Ursulin
2022-11-23  6:03   ` Dixit, Ashutosh
2022-11-24 12:42     ` Tvrtko Ursulin
2022-12-16  6:21       ` Dixit, Ashutosh
2022-12-16  9:37         ` Tvrtko Ursulin
2022-12-16 15:39           ` Rodrigo Vivi
2022-12-17  2:49             ` Dixit, Ashutosh
2022-12-19  8:46               ` Tvrtko Ursulin
2022-12-22 20:28                 ` Rodrigo Vivi
2022-12-23  9:22                   ` Tvrtko Ursulin
2022-12-23 15:39                     ` Rodrigo Vivi
2023-01-05 21:26                       ` Dixit, Ashutosh
2023-01-06 20:12                         ` Rodrigo Vivi
2023-01-06 20:39                           ` Belgaumkar, Vinay
2023-01-06 21:38                             ` Dixit, Ashutosh
2023-01-09 21:01                               ` Rodrigo Vivi
2023-01-10 19:49                                 ` Dixit, Ashutosh

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=87cz9w1x7g.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=tvrtko.ursulin@linux.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 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.