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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2023 14:22:03 +0000 (16:22 +0200)
commit0d4e60e23c7d6a54f80e1b8ceec9a8c3df736dad
tree2d9784618410a0afa6642887b57f6af6dfafd6f0
parentd3dcdb43c872a3b967345144151a2c9bb9124c9b
drm/amdgpu: fix number of fence calculations

[ Upstream commit 570b295248b00c3cf4cf59e397de5cb2361e10c2 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c