From: Ramalingam C <ramalingam.c@intel.com>
To: Riana Tauro <riana.tauro@intel.com>
Cc: igt-dev@lists.freedesktop.org, chris.p.wilson@linux.intel.com
Subject: Re: [igt-dev] [PATCH i-g-t 1/1] tests/i915/i915_pm_rc6_residency: Use the correct context in rc6-idle
Date: Tue, 5 Jul 2022 18:52:39 +0530 [thread overview]
Message-ID: <20220705132238.GA21210@intel.com> (raw)
In-Reply-To: <20220704125008.150389-2-riana.tauro@intel.com>
On 2022-07-04 at 18:20:08 +0530, Riana Tauro wrote:
> Use the correct context id in execbuf of rc6-idle test
>
> Signed-off-by: Riana Tauro <riana.tauro@intel.com>
Looks good to me.
Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
> ---
> tests/i915/i915_pm_rc6_residency.c | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/tests/i915/i915_pm_rc6_residency.c b/tests/i915/i915_pm_rc6_residency.c
> index e377e70c..67d25918 100644
> --- a/tests/i915/i915_pm_rc6_residency.c
> +++ b/tests/i915/i915_pm_rc6_residency.c
> @@ -292,7 +292,7 @@ static void sighandler(int sig)
> {
> }
>
> -static void bg_load(int i915, uint64_t engine_flags, unsigned int flags, unsigned long *ctl)
> +static void bg_load(int i915, uint32_t ctx_id, uint64_t engine_flags, unsigned int flags, unsigned long *ctl)
> {
> const bool has_execlists = intel_gen(intel_get_drm_devid(i915)) >= 8;
> struct drm_i915_gem_exec_object2 obj = {
> @@ -302,6 +302,7 @@ static void bg_load(int i915, uint64_t engine_flags, unsigned int flags, unsigne
> .buffers_ptr = to_user_pointer(&obj),
> .buffer_count = 1,
> .flags = engine_flags,
> + .rsvd1 = ctx_id,
> };
> struct sigaction act = {
> .sa_handler = sighandler
> @@ -359,7 +360,7 @@ static void kill_children(int sig)
> signal(sig, old);
> }
>
> -static void rc6_idle(int i915, uint64_t flags)
> +static void rc6_idle(int i915, uint32_t ctx_id, uint64_t flags)
> {
> const int64_t duration_ns = SLEEP_DURATION * (int64_t)NSEC_PER_SEC;
> const int tolerance = 20; /* Some RC6 is better than none! */
> @@ -405,7 +406,7 @@ static void rc6_idle(int i915, uint64_t flags)
> for (int p = 0; p < ARRAY_SIZE(phases); p++) {
> memset(done, 0, 2 * sizeof(*done));
> igt_fork(child, 1) /* Setup up a very light load */
> - bg_load(i915, flags, phases[p].flags, done);
> + bg_load(i915, ctx_id, flags, phases[p].flags, done);
>
> rapl_read(&rapl, &sample[0]);
> cycles = -READ_ONCE(done[1]);
> @@ -549,7 +550,7 @@ igt_main
> for_each_ctx_engine(i915, ctx, e) {
> if (e->instance == 0) {
> igt_dynamic_f("%s", e->name)
> - rc6_idle(i915, e->flags);
> + rc6_idle(i915, ctx->id, e->flags);
> }
> }
> }
> --
> 2.25.1
>
next prev parent reply other threads:[~2022-07-05 13:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-04 12:50 [igt-dev] [PATCH i-g-t 0/1] Correct context in rc6-idle Riana Tauro
2022-07-04 12:50 ` [igt-dev] [PATCH i-g-t 1/1] tests/i915/i915_pm_rc6_residency: Use the correct " Riana Tauro
2022-07-05 13:22 ` Ramalingam C [this message]
2022-07-05 13:55 ` Tauro, Riana
2022-07-04 17:53 ` [igt-dev] ✓ Fi.CI.BAT: success for Correct " Patchwork
2022-07-04 20:49 ` [igt-dev] ✓ Fi.CI.IGT: " 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=20220705132238.GA21210@intel.com \
--to=ramalingam.c@intel.com \
--cc=chris.p.wilson@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=riana.tauro@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.