OSDN Git Service

drm/amdgpu: Reserve VM root shared fence slot for command submission (v3)
authorMichel Dänzer <michel.daenzer@amd.com>
Mon, 25 Jun 2018 09:07:17 +0000 (11:07 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Jul 2018 20:36:21 +0000 (15:36 -0500)
commited6b4b5559769c6c5a0fcb3fac8a9e1f4e58c4ae
tree0e5340306fc66bbf8835c9ad49011ce69ec111db
parent5292221d6ddfed75e5b46cd42237a677094b99f3
drm/amdgpu: Reserve VM root shared fence slot for command submission (v3)

Without this, there could not be enough slots, which could trigger the
BUG_ON in reservation_object_add_shared_fence.

v2:
* Jump to the error label instead of returning directly (Jerry Zhang)
v3:
* Reserve slots for command submission after VM updates (Christian König)

Cc: stable@vger.kernel.org
Bugzilla: https://bugs.freedesktop.org/106418
Reported-by: mikhail.v.gavrilov@gmail.com
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Junwei Zhang <Jerry.Zhang@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_cs.c