drm/amdgpu: optimize insert_nop using multi dwords
authorSunil Khatri <sunil.khatri@amd.com>
Tue, 8 Oct 2024 13:02:16 +0000 (18:32 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Oct 2024 15:16:40 +0000 (11:16 -0400)
commitea4e4754c9efb53b3f70e5c4c75d08a48b2f7693
tree05af30e4fa7dc4cc8caffd160b2e0fc09144e8e0
parented3dac4bf9588b5a68e1a85ac45cbbe180df6d4b
drm/amdgpu: optimize insert_nop using multi dwords

Optimize the ring_insert_nop fn for n dwords in one
step rather then call to amdgpu_ring_write for each
nop packet. This avoid function call for each nop
packet and also wptr is updated once only.

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Suggested-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c