Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Sundaresan, Sujaritha" <sujaritha.sundaresan@intel.com>
To: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
	<igt-dev@lists.freedesktop.org>,
	Riana Tauro <riana.tauro@intel.com>
Subject: Re: [igt-dev] [v5 2/5] Add multi-gt support for the rc6_fence subtest
Date: Wed, 15 Nov 2023 18:17:54 +0530	[thread overview]
Message-ID: <8e89d875-c91b-4bf8-987b-93cd3b369a8d@intel.com> (raw)
In-Reply-To: <20231115124358.a3cz4evy2z6ynqaz@kamilkon-desk.igk.intel.com>


On 11/15/2023 6:13 PM, Kamil Konieczny wrote:
> Hi Sujaritha,
> On 2023-11-15 at 11:11:25 +0530, Sujaritha Sundaresan wrote:
>
> change subject of message, now it reads:
>
> [v5 2/5] Add multi-gt support for the rc6_fence subtest
> -------- ^^^^
>
> but should have at least tests/intel: at begin, or even whole test name,
> I would suggest:
>
> tests/intel/i915_pm_rc6_residency: Add multi-gt support
>
> Add also description here, before r-b from Riana,
> about what you added or changed and what will be tested now.
>
> Regards,
> Kamil

Ah yes. Not sure what happened here. Maybe just missed this one patch on 
the rebase.

All the others in the series have the prefix and the needed descriptions.

Will fix.

Thanks,

Suja

>
>> Reviewed-by: Riana Tauro <riana.tauro@intel.com>
>> Signed-off-by: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
>> ---
>>   tests/intel/i915_pm_rc6_residency.c | 13 +++++++++----
>>   1 file changed, 9 insertions(+), 4 deletions(-)
>>
>> diff --git a/tests/intel/i915_pm_rc6_residency.c b/tests/intel/i915_pm_rc6_residency.c
>> index 34619b79c..e84e8ea96 100644
>> --- a/tests/intel/i915_pm_rc6_residency.c
>> +++ b/tests/intel/i915_pm_rc6_residency.c
>> @@ -471,12 +471,13 @@ static void rc6_idle(int i915, uint32_t ctx_id, uint64_t flags, unsigned int gt)
>>   	}
>>   }
>>   
>> -static void rc6_fence(int i915, const intel_ctx_t *ctx)
>> +static void rc6_fence(int i915, unsigned int gt)
>>   {
>>   	const int64_t duration_ns = SLEEP_DURATION * (int64_t)NSEC_PER_SEC;
>>   	const int tolerance = 20; /* Some RC6 is better than none! */
>>   	const unsigned int gen = intel_gen(intel_get_drm_devid(i915));
>>   	const struct intel_execution_engine2 *e;
>> +	const intel_ctx_t *ctx;
>>   	struct power_sample sample[2];
>>   	unsigned long slept;
>>   	uint64_t rc6, ts[2], ahnd;
>> @@ -485,7 +486,7 @@ static void rc6_fence(int i915, const intel_ctx_t *ctx)
>>   
>>   	igt_require_sw_sync();
>>   
>> -	fd = open_pmu(i915, I915_PMU_RC6_RESIDENCY);
>> +	fd = open_pmu(i915, __I915_PMU_RC6_RESIDENCY(gt));
>>   	igt_drop_caches_set(i915, DROP_IDLE);
>>   	igt_require(__pmu_wait_for_rc6(fd));
>>   	igt_power_open(i915, &gpu, "gpu");
>> @@ -509,6 +510,7 @@ static void rc6_fence(int i915, const intel_ctx_t *ctx)
>>   	assert_within_epsilon(rc6, ts[1] - ts[0], 5);
>>   
>>   	/* Submit but delay execution, we should be idle and conserving power */
>> +	ctx = intel_ctx_create_for_gt(i915, gt);
>>   	ahnd = get_reloc_ahnd(i915, ctx->id);
>>   	for_each_ctx_engine(i915, ctx, e) {
>>   		igt_spin_t *spin;
>> @@ -550,6 +552,7 @@ static void rc6_fence(int i915, const intel_ctx_t *ctx)
>>   		gem_quiescent_gpu(i915);
>>   	}
>>   	put_ahnd(ahnd);
>> +	intel_ctx_destroy(i915, ctx);
>>   
>>   	igt_power_close(&gpu);
>>   	close(fd);
>> @@ -584,11 +587,13 @@ igt_main
>>   		}
>>   	}
>>   
>> -	igt_subtest("rc6-fence") {
>> +	igt_subtest_with_dynamic("rc6-fence") {
>>   		igt_require_gem(i915);
>>   		gem_quiescent_gpu(i915);
>>   
>> -		rc6_fence(i915, ctx);
>> +		i915_for_each_gt(i915, dirfd, gt)
>> +			igt_dynamic_f("gt%u", gt)
>> +				rc6_fence(i915, gt);
>>   	}
>>   
>>   	igt_subtest_group {
>> -- 
>> 2.25.1
>>

  reply	other threads:[~2023-11-15 12:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-15  5:41 [igt-dev] [v5 0/5] Add multi-gt support for RC6 residency test Sujaritha Sundaresan
2023-11-15  5:41 ` [igt-dev] [v5 1/5] tests/intel: Add multi-gt support for rc6-idle test Sujaritha Sundaresan
2023-11-15  5:41 ` [igt-dev] [v5 2/5] Add multi-gt support for the rc6_fence subtest Sujaritha Sundaresan
2023-11-15 12:43   ` Kamil Konieczny
2023-11-15 12:47     ` Sundaresan, Sujaritha [this message]
2023-11-15  5:41 ` [igt-dev] [v5 3/5] tests/intel: Add multi-gt support for rc6-accuracy test Sujaritha Sundaresan
2023-11-15  5:41 ` [igt-dev] [v5 4/5] tests/intel: Print drpc info for rc6_residency test Sujaritha Sundaresan
2023-11-15  5:41 ` [igt-dev] [v5 5/5] HAX: Add rc6 residency to fast-feedback.testlist Sujaritha Sundaresan
2023-11-15  6:09 ` [igt-dev] ✓ CI.xeBAT: success for Add multi-gt support for RC6 residency test (rev8) Patchwork
2023-11-15  6:19 ` [igt-dev] ✓ Fi.CI.BAT: " Patchwork
2023-11-15 13:45   ` Gupta, Anshuman
2023-11-17  0:05 ` [igt-dev] ✗ Fi.CI.IGT: failure " 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=8e89d875-c91b-4bf8-987b-93cd3b369a8d@intel.com \
    --to=sujaritha.sundaresan@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@linux.intel.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox