]> www.infradead.org Git - users/hch/configfs.git/commit
drm/amdgpu: optimize the padding for gfx10
authorSunil Khatri <sunil.khatri@amd.com>
Mon, 29 Jul 2024 18:54:44 +0000 (00:24 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Aug 2024 14:43:01 +0000 (10:43 -0400)
commite89d2fec4cde967445e16e02e406481bac380cc4
tree0492e67f1d3b10750f758d022fa8a6676129d1c3
parent4a4c815b08dc774dde67fb90a0286925f98204af
drm/amdgpu: optimize the padding for gfx10

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.

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>
Reviewed-by: Christian König <christian.koenig@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_v10_0.c