diff options
| author | Ashutosh Dixit <[email protected]> | 2023-09-20 04:02:11 +0000 |
|---|---|---|
| committer | Ashutosh Dixit <[email protected]> | 2023-09-26 05:58:12 +0000 |
| commit | a383a021804ce5eb8fada3ee83ce8a74077fe9b9 (patch) | |
| tree | 6ec24d22a6f4d4a6fb98d5ae815b825aa5fa81cd /drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | |
| parent | drm/i915: Add Wa_18028616096 (diff) | |
| download | kernel-a383a021804ce5eb8fada3ee83ce8a74077fe9b9.tar.gz kernel-a383a021804ce5eb8fada3ee83ce8a74077fe9b9.zip | |
drm/i915/perf: Remove gtt_offset from stream->oa_buffer.head/.tail
There is no reason to add gtt_offset to the cached head/tail pointers
stream->oa_buffer.head and stream->oa_buffer.tail. This causes the code to
constantly add gtt_offset and subtract gtt_offset and is error
prone.
It is much simpler to maintain stream->oa_buffer.head and
stream->oa_buffer.tail without adding gtt_offset to them and just allow for
the gtt_offset when reading/writing from/to HW registers.
v2: Minor tweak to commit message due to dropping patch in previous series
Signed-off-by: Ashutosh Dixit <[email protected]>
Reviewed-by: Umesh Nerlige Ramappa <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c')
0 files changed, 0 insertions, 0 deletions
