drm/amdgpu: workaround to avoid SET_Q_MODE packets v2
authorChristian König <christian.koenig@amd.com>
Thu, 17 Aug 2023 09:33:34 +0000 (11:33 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Mar 2024 20:59:08 +0000 (15:59 -0500)
commit8bc75586ea01f1c645063d3472c115ecab03e76c
tree91955f6900c3135c2c6b975f252cc020ca5974d8
parentc68cbbfd54c68485ac67b5a04c06feacdce15fec
drm/amdgpu: workaround to avoid SET_Q_MODE packets v2

It turned out that executing the SET_Q_MODE packet on every submission
creates to much overhead.

Implement a workaround which allows skipping the SET_Q_MODE packet if
subsequent submissions all use the same parameters.

v2: add a NULL check for ring_obj

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