diff mbox series

[i-g-t,02/25] trace.pl: Ignore signaling on non i915 fences

Message ID 20190517112526.6738-3-tvrtko.ursulin@linux.intel.com (mailing list archive)
State New, archived
Headers show
Series Media scalability tooling | expand

Commit Message

Tvrtko Ursulin May 17, 2019, 11:25 a.m. UTC
From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

gem_wsim uses the sw_fence timeline and confuses the script.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
---
 scripts/trace.pl | 1 +
 1 file changed, 1 insertion(+)

Comments

Chris Wilson May 17, 2019, 7:20 p.m. UTC | #1
Quoting Tvrtko Ursulin (2019-05-17 12:25:03)
> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> 
> gem_wsim uses the sw_fence timeline and confuses the script.

sw_sync

How does this fare with clflush fences (which are .driver="i915") and
all of the future .driver="i915" fences?

Looks like we are still prone to hitting that die. (Should die pretty
quick on !llc)
-Chris
Tvrtko Ursulin May 20, 2019, 10:30 a.m. UTC | #2
On 17/05/2019 20:20, Chris Wilson wrote:
> Quoting Tvrtko Ursulin (2019-05-17 12:25:03)
>> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>
>> gem_wsim uses the sw_fence timeline and confuses the script.
> 
> sw_sync
> 
> How does this fare with clflush fences (which are .driver="i915") and
> all of the future .driver="i915" fences?
> 
> Looks like we are still prone to hitting that die. (Should die pretty
> quick on !llc)

Okay I have to use the timeline name as well, thanks!

Regards,

Tvrtko
diff mbox series

Patch

diff --git a/scripts/trace.pl b/scripts/trace.pl
index b7bbabc79f68..930e502ad8eb 100755
--- a/scripts/trace.pl
+++ b/scripts/trace.pl
@@ -439,6 +439,7 @@  while (<>) {
 	} elsif ($tp_name eq 'dma_fence:dma_fence_signaled:') {
 		my $gkey;
 
+		next unless $tp{'driver'} eq 'i915';
 		die unless exists $ctxengines{$tp{'context'}};
 
 		$gkey = db_key($ctxengines{$tp{'context'}}, $tp{'context'}, $tp{'seqno'});