Skip to content

Commit 589f492

Browse files
committed
i915/perf: Do not add ggtt offset to hw_tail
ggtt offset for hw_tail is not required for the calculations, so drop it. Signed-off-by: Umesh Nerlige Ramappa <[email protected]> Reviewed-by: Ashutosh Dixit <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 9cc3193 commit 589f492

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/i915/i915_perf.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ static bool oa_buffer_check_unlocked(struct i915_perf_stream *stream)
565565
partial_report_size %= report_size;
566566

567567
/* 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);
569569

570570
/* NB: The head we observe here might effectively be a little
571571
* 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)
574574
head = stream->oa_buffer.head - gtt_offset;
575575
read_tail = stream->oa_buffer.tail - gtt_offset;
576576

577-
hw_tail -= gtt_offset;
578577
tail = hw_tail;
579578

580579
/* Walk the stream backward until we find a report with report

0 commit comments

Comments
 (0)