OSDN Git Service

drm/amdgpu: fix number of fence calculations
authorChristian König <christian.koenig@amd.com>
Tue, 20 Jun 2023 11:18:13 +0000 (13:18 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Jun 2023 17:11:35 +0000 (13:11 -0400)
commit570b295248b00c3cf4cf59e397de5cb2361e10c2
treeb213a3131d88bf83776155475fb56041bf18e35d
parentaf22d6a869cc26b519bfdcd54293c53f2e491870
drm/amdgpu: fix number of fence calculations

Since adding gang submit we need to take the gang size into account
while reserving fences.

Signed-off-by: Christian König <christian.koenig@amd.com>
Fixes: 4624459c84d7 ("drm/amdgpu: add gang submit frontend v6")
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c