]> www.infradead.org Git - users/hch/configfs.git/commit
drm/amdgpu: optimize the padding for gfx11
authorSunil Khatri <sunil.khatri@amd.com>
Wed, 31 Jul 2024 08:09:20 +0000 (13:39 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Aug 2024 14:43:49 +0000 (10:43 -0400)
commit847e387e00547b0cc728a5e61f5beb2ff861ed1d
tree3b2d5660c5ca0099c5f7f06bdb39040311dfa388
parentb41a382932263b2951bc9e83a22168d579a94865
drm/amdgpu: optimize the padding for gfx11

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_v11_0.c