File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -565,7 +565,7 @@ static bool oa_buffer_check_unlocked(struct i915_perf_stream *stream)
565
565
partial_report_size %= report_size ;
566
566
567
567
/* Subtract partial amount off the tail */
568
- hw_tail = gtt_offset + OA_TAKEN (hw_tail , partial_report_size );
568
+ hw_tail = OA_TAKEN (hw_tail , partial_report_size );
569
569
570
570
/* NB: The head we observe here might effectively be a little
571
571
* out of date. If a read() is in progress, the head could be
@@ -574,7 +574,6 @@ static bool oa_buffer_check_unlocked(struct i915_perf_stream *stream)
574
574
head = stream -> oa_buffer .head - gtt_offset ;
575
575
read_tail = stream -> oa_buffer .tail - gtt_offset ;
576
576
577
- hw_tail -= gtt_offset ;
578
577
tail = hw_tail ;
579
578
580
579
/* Walk the stream backward until we find a report with report
You can’t perform that action at this time.
0 commit comments