Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Nirmoy Das <nirmoy.das@intel.com>
To: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
	<igt-dev@lists.freedesktop.org>,
	Sai Gowtham Ch <sai.gowtham.ch@intel.com>,
	Jonathan Cavitt <jonathan.cavitt@intel.com>
Subject: Re: [PATCH i-g-t] tests/intel/xe_tlb: Print tlb inval counts on failure
Date: Fri, 11 Oct 2024 12:10:47 +0200	[thread overview]
Message-ID: <10caac74-98c8-4d38-b05d-2c917101fbc1@intel.com> (raw)
In-Reply-To: <20241011100306.eubqguiqm5pt4clb@kamilkon-desk.igk.intel.com>

Hi Kamil,

On 10/11/2024 12:03 PM, Kamil Konieczny wrote:
> Hi Nirmoy,
> On 2024-10-08 at 22:21:46 +0200, Nirmoy Das wrote:
>> Print tlb inval counts on failure with igt_assert_lt_u64()
> Looks good as it prints them but why u64? Actual type is int.

My quick search didn't yield, igt_assert_lt(). This could be igt_assert_lt() I see it now in the header file.

Thanks for catching it.


Regards,

Nirmoy

>
> Regards,
> Kamil
>
>> Cc: kamil.konieczny@linux.intel.com
>> Cc: Sai Gowtham Ch <sai.gowtham.ch@intel.com>
>> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
>> ---
>>  tests/intel/xe_tlb.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/tests/intel/xe_tlb.c b/tests/intel/xe_tlb.c
>> index 8104e45d8..15d89931c 100644
>> --- a/tests/intel/xe_tlb.c
>> +++ b/tests/intel/xe_tlb.c
>> @@ -116,7 +116,7 @@ static void tlb_invalidation(int fd, struct drm_xe_engine_class_instance *eci)
>>  	tlb_pos = xe_gt_stats_get_count(fd, eci->gt_id, stat);
>>  	igt_assert_eq(data1->data, value1);
>>  	igt_assert_eq(data2->data, value2);
>> -	igt_assert(tlb_pos > tlb_pre);
>> +	igt_assert_lt_u64(tlb_pre, tlb_pos);
>>  
>>  	syncobj_destroy(fd, sync[0].handle);
>>  	syncobj_destroy(fd, syncobj);
>> -- 
>> 2.46.0
>>

      reply	other threads:[~2024-10-11 10:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-08 20:21 [PATCH i-g-t] tests/intel/xe_tlb: Print tlb inval counts on failure Nirmoy Das
2024-10-08 21:44 ` Cavitt, Jonathan
2024-10-08 21:45 ` ✓ CI.xeBAT: success for " Patchwork
2024-10-08 22:00 ` ✓ Fi.CI.BAT: " Patchwork
2024-10-09  4:44 ` ✗ CI.xeFULL: failure " Patchwork
2024-10-10  2:12 ` ✗ Fi.CI.IGT: " Patchwork
2024-10-11 10:03 ` [PATCH i-g-t] " Kamil Konieczny
2024-10-11 10:10   ` Nirmoy Das [this message]

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=10caac74-98c8-4d38-b05d-2c917101fbc1@intel.com \
    --to=nirmoy.das@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jonathan.cavitt@intel.com \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=sai.gowtham.ch@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