From: "Ghimiray, Himal Prasad" <himal.prasad.ghimiray@intel.com>
To: "Cavitt, Jonathan" <jonathan.cavitt@intel.com>,
"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Cc: "Brost, Matthew" <matthew.brost@intel.com>,
"Nilawar, Badal" <badal.nilawar@intel.com>,
"Tauro, Riana" <riana.tauro@intel.com>,
"Gupta, Anshuman" <anshuman.gupta@intel.com>
Subject: Re: [PATCH i-g-t 2/2] tests/intel/xe_pm_residency: Limit max usleep time to 50sec.
Date: Tue, 8 Oct 2024 09:43:21 +0530 [thread overview]
Message-ID: <09afdbc1-10e7-45cf-a166-9335ca25ad30@intel.com> (raw)
In-Reply-To: <BL1PR11MB5445B1317311741B69A8BAB8E57D2@BL1PR11MB5445.namprd11.prod.outlook.com>
On 07-10-2024 23:02, Cavitt, Jonathan wrote:
> -----Original Message-----
> From: igt-dev <igt-dev-bounces@lists.freedesktop.org> On Behalf Of Himal Prasad Ghimiray
> Sent: Monday, October 7, 2024 10:24 AM
> To: igt-dev@lists.freedesktop.org
> Cc: Ghimiray, Himal Prasad <himal.prasad.ghimiray@intel.com>; Brost, Matthew <matthew.brost@intel.com>; Nilawar, Badal <badal.nilawar@intel.com>; Tauro, Riana <riana.tauro@intel.com>; Gupta, Anshuman <anshuman.gupta@intel.com>
> Subject: [PATCH i-g-t 2/2] tests/intel/xe_pm_residency: Limit max usleep time to 50sec.
/s/sec/milisec.
>>
>> There may be an approximately 1-second delay between xe_exec and
>> xe_sched_job_run, which could result in the usleep duration exceeding IGT
>> timeouts. To address this, limit the maximum usleep time to 50 seconds
/s/seconds/miliseconds/
will fix.
>>
>> Cc: Matthew Brost <matthew.brost@intel.com>
>> Cc: Badal Nilawar <badal.nilawar@intel.com>
>> Cc: Riana Tauro <riana.tauro@intel.com>
>> Cc: Anshuman Gupta <anshuman.gupta@intel.com>
>> Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
>
> Seems good.
> Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
> -Jonathan Cavitt
Thanks.
>
>> ---
>> tests/intel/xe_pm_residency.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/tests/intel/xe_pm_residency.c b/tests/intel/xe_pm_residency.c
>> index f4d05889c..a86107eca 100644
>> --- a/tests/intel/xe_pm_residency.c
>> +++ b/tests/intel/xe_pm_residency.c
>> @@ -150,7 +150,7 @@ static void exec_load(int fd, struct drm_xe_engine_class_instance *hwe, unsigned
>> * Execute the above workload for ~1% of the elapsed time and sleep for
>> * the rest of the time (~99%)
>> */
>> - usleep(elapsed / 10);
>> + usleep(min_t(elapsed, elapsed / 10, 50 * 1000));
>> } while (!READ_ONCE(*done));
>>
>> xe_vm_unbind_sync(fd, vm, 0, addr, bo_size);
>> --
>> 2.34.1
>>
>>
next prev parent reply other threads:[~2024-10-08 4:13 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-07 17:23 [PATCH i-g-t 1/2] Revert "tests/intel/xe_pm_residency: Add an assertion on MI_STORE execution time" Himal Prasad Ghimiray
2024-10-07 17:23 ` [PATCH i-g-t 2/2] tests/intel/xe_pm_residency: Limit max usleep time to 50sec Himal Prasad Ghimiray
2024-10-07 17:32 ` Cavitt, Jonathan
2024-10-08 4:13 ` Ghimiray, Himal Prasad [this message]
2024-10-08 4:13 ` Poosa, Karthik
2024-10-07 17:31 ` [PATCH i-g-t 1/2] Revert "tests/intel/xe_pm_residency: Add an assertion on MI_STORE execution time" Cavitt, Jonathan
2024-10-14 10:38 ` Gupta, Anshuman
2024-10-07 21:31 ` ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] " Patchwork
2024-10-07 21:36 ` ✓ CI.xeBAT: " Patchwork
2024-10-08 2:01 ` [PATCH i-g-t 1/2] " Gupta, Anshuman
2024-10-08 3:13 ` Ghimiray, Himal Prasad
2024-10-08 3:22 ` Gupta, Anshuman
2024-10-08 3:47 ` Ghimiray, Himal Prasad
2024-10-08 4:47 ` Poosa, Karthik
2024-10-08 5:00 ` Poosa, Karthik
2024-10-08 8:55 ` ✗ CI.xeFULL: failure for series starting with [i-g-t,1/2] " Patchwork
2024-10-08 20:06 ` ✗ 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=09afdbc1-10e7-45cf-a166-9335ca25ad30@intel.com \
--to=himal.prasad.ghimiray@intel.com \
--cc=anshuman.gupta@intel.com \
--cc=badal.nilawar@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jonathan.cavitt@intel.com \
--cc=matthew.brost@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 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.