]> www.infradead.org Git - users/hch/configfs.git/commit
drm/amdgpu: optimize the padding for gfx_v9_4_3
authorSunil Khatri <sunil.khatri@amd.com>
Wed, 31 Jul 2024 13:07:42 +0000 (18:37 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Aug 2024 15:11:00 +0000 (11:11 -0400)
commit62341f7bc2ccb7c024eb023a05714d798ba6437d
tree0dc9c0507017afbcddd852789eef99c0a4d03280
parentfd69ef05029f9beb7b031ef96e7a36970806a670
drm/amdgpu: optimize the padding for gfx_v9_4_3

Adding NOP packets one by one in the ring
does not use the CP efficiently.

Solution:
Use CP optimization while adding NOP packet's so PFP
can discard NOP packets based on information of count
from the Header instead of fetching all NOP packets
one by one.

Reviewed-by: Christian König <christian.koenig@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Cc: Tvrtko Ursulin <tursulin@igalia.com>
Cc: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c