From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
igt-dev@lists.freedesktop.org,
Anshuman Gupta <anshuman.gupta@intel.com>,
Ashutosh Dixit <ashutosh.dixit@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t 3/3] tests/i915_pm_disag_freq: New test for media freq factor
Date: Tue, 26 Apr 2022 12:46:46 -0700 [thread overview]
Message-ID: <87r15j6315.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <YmLUiTSwt81DVenc@kamilkon-DESK1>
On Fri, 22 Apr 2022 09:15:05 -0700, Kamil Konieczny wrote:
>
> > + igt_debug("RP0 mhz: %d, RP1 mhz: %d, RPn mhz: %d, min mhz: %d, max mhz: %d, act mhz: %d\n", rp0, rp1, rpn, min, max, act);
> ---------------------- ^
>
> When printing please use proper names, so s/mhz/MHz/g
Done.
> > + igt_debug("media RP0 mhz: %d, media RPn mhz: %d\n",
> ---------------------------- ^ ---------------- ^
> Same here.
This line is dropped for now but will fix when it's added back.
> > + for (int v = 256; v >= 0; v -= 64) {
> > + int getv, ret;
> > +
> > + /*
> > + * Check that we can set the mode. Ratios other than 1:2
> > + * and 1:1 are not supported.
> > + */
> > + ret = igt_sysfs_printf(dir, "media_freq_factor", "%u", v);
> > + if (ret <= 0) {
> > + igt_debug("Media ratio %.2f is not supported\n", v * scale);
> > + continue;
> > + }
> > +
> > + wait_freq_set();
> > +
> > + getv = igt_sysfs_get_u32(dir, "media_freq_factor");
> > +
> > + igt_debug("media ratio set: %.2f, media ratio get: %.2f\n",
> > + v * scale, getv * scale);
>
> Maybe it is worth to print RPx and actual frequncies here ?
The problem is the actual media freq after setting the freq factor is not
available on current platforms but may be available on some future
platforms. RPx freq's don't change and they are being printed at the
beginning (now if you run the test with --debug).
Thanks.
--
Ashutosh
next prev parent reply other threads:[~2022-04-26 19:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-20 6:12 [igt-dev] [PATCH i-g-t 1/3] lib/igt_sysfs: Add helpers to iterate over GTs Ashutosh Dixit
2022-04-20 6:12 ` [igt-dev] [PATCH i-g-t 2/3] lib/igt_sysfs: Add RPS sysfs helpers Ashutosh Dixit
2022-04-21 15:49 ` Kamil Konieczny
2022-04-25 23:15 ` Dixit, Ashutosh
2022-04-20 6:12 ` [igt-dev] [PATCH i-g-t 3/3] tests/i915_pm_disag_freq: New test for media freq factor Ashutosh Dixit
2022-04-21 17:00 ` Kamil Konieczny
2022-04-26 19:45 ` Dixit, Ashutosh
2022-04-22 16:15 ` Kamil Konieczny
2022-04-26 19:46 ` Dixit, Ashutosh [this message]
2022-04-20 7:09 ` [igt-dev] ✗ Fi.CI.BAT: failure for series starting with [i-g-t,1/3] lib/igt_sysfs: Add helpers to iterate over GTs Patchwork
2022-04-21 11:05 ` [igt-dev] [PATCH i-g-t 1/3] " Dandamudi, Priyanka
-- strict thread matches above, loose matches on Subject: below --
2022-04-13 17:27 [igt-dev] [PATCH i-g-t 1/2] lib/igt_sysfs: Add helpers to iterate over gts Ashutosh Dixit
2022-04-20 5:02 ` [igt-dev] [PATCH i-g-t 3/3] tests/i915_pm_disag_freq: New test for media freq factor Ashutosh Dixit
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=87r15j6315.wl-ashutosh.dixit@intel.com \
--to=ashutosh.dixit@intel.com \
--cc=anshuman.gupta@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox