[PATCH 0/3] Ring commit and padding micro-optimisations

Tvrtko Ursulin tursulin at igalia.com
Fri Jul 12 15:28:52 UTC 2024


From: Tvrtko Ursulin <tvrtko.ursulin at igalia.com>

A three patches to streamline the ring nop padding process which happens on
every submission.

I smoke tested graphics and video decode on the Steam Deck but cannot do much
more testing than that. Therefore no guarantees I did not break something.


Cc: Christian König <ckoenig.leichtzumerken at gmail.com>

Tvrtko Ursulin (3):
  drm/amdpgu: Micro-optimise amdgpu_ring_commit
  drm/amdgpu: More efficient ring padding
  drm/amdpug: More more efficient ring padding

 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 24 +++++++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 58 ++++++++++++++++++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c  | 13 +++---
 drivers/gpu/drm/amd/amdgpu/cik_sdma.c    | 15 +++---
 drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.c   |  7 +--
 drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c   |  7 +--
 drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c |  7 +--
 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c   | 16 ++++---
 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c   | 16 ++++---
 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c   | 16 ++++---
 drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c | 16 ++++---
 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c   | 16 ++++---
 drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c   | 16 ++++---
 drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c   | 16 ++++---
 drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c   | 16 ++++---
 drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c    |  7 +--
 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c    |  7 +--
 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c    |  7 +--
 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c    |  7 +--
 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c    |  8 ++--
 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c    |  8 ++--
 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c    |  6 +--
 22 files changed, 176 insertions(+), 133 deletions(-)

-- 
2.44.0



More information about the amd-gfx mailing list