drm/amdgpu: optimize the padding for gfx9
authorSunil Khatri <sunil.khatri@amd.com>
Wed, 31 Jul 2024 13:05:14 +0000 (18:35 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Aug 2024 15:11:00 +0000 (11:11 -0400)
commitdee44a7cb577f2aba39e1713a51e9faee2f65534
treead65ca2417dc4cc397e4e1f83b0d564f006e00af
parentbb670c31e13a402d30afa3d484403196031d0fbd
drm/amdgpu: optimize the padding for gfx9

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