From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: "Nilawar, Badal" <badal.nilawar@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t v2] tests/xe: Verify actual frequency on the basis of GT state
Date: Mon, 17 Jul 2023 21:51:29 -0700 [thread overview]
Message-ID: <87jzuxizzi.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <87lefdj0ex.wl-ashutosh.dixit@intel.com>
On Mon, 17 Jul 2023 21:42:14 -0700, Dixit, Ashutosh wrote:
>
> On Mon, 17 Jul 2023 21:27:02 -0700, Nilawar, Badal wrote:
> >
> > >> @@ -226,6 +226,9 @@ static void test_freq_fixed(int fd, int gt_id)
> > >>
> > >> igt_debug("Starting testing fixed request\n");
> > >>
> > >> + if (gt_idle)
> > >> + igt_require(igt_wait(xe_is_gt_in_c6(fd, gt_id), 1000, 1));
> > >> +
> > >> /*
> > >> * For Fixed freq we need to set both min and max to the desired value
> > >> * Then we check if hardware is actually operating at the desired freq
> > >> @@ -235,13 +238,25 @@ static void test_freq_fixed(int fd, int gt_id)
> > >> igt_assert(set_freq(fd, gt_id, "max", rpn) > 0);
> > >> usleep(ACT_FREQ_LATENCY_US);
> > >> igt_assert(get_freq(fd, gt_id, "cur") == rpn);
> > >> - igt_assert(get_freq(fd, gt_id, "act") == rpn);
> > >> +
> > >> + if (gt_idle) {
> > >> + usleep(ACT_FREQ_LATENCY_US);
> > >
> > > Looks like this usleep should in the else? Since we've already igt_wait'ed
> > > above for the idle case? In all places in this patch.
> >
> > As get_freq(fd, gt_id, "cur") will forcewake the gt so added usleep to gt
> > to settle down.
>
> Ah good point. I missed that reading requested freq takes forcewake (unlike
> act freq).
One idea to remove this extra delay would be to read act freq first and
then read cur. Otherwise, maybe add a comment in one place saying reading
cur will take forcewake. Thanks.
next prev parent reply other threads:[~2023-07-18 4:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-17 10:57 [igt-dev] [PATCH i-g-t v2] tests/xe: Verify actual frequency on the basis of GT state Badal Nilawar
2023-07-17 12:42 ` [igt-dev] ○ CI.xeBAT: info for " Patchwork
2023-07-17 12:50 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2023-07-17 16:21 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-07-18 2:32 ` [igt-dev] [PATCH i-g-t v2] " Dixit, Ashutosh
2023-07-18 4:27 ` Nilawar, Badal
2023-07-18 4:42 ` Dixit, Ashutosh
2023-07-18 4:51 ` Dixit, Ashutosh [this message]
2023-07-18 8:51 ` 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=87jzuxizzi.wl-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=badal.nilawar@intel.com \
--cc=igt-dev@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.