drm/amdgpu: stop reserving the BO in the MMU callback v3
authorChristian König <christian.koenig@amd.com>
Tue, 12 Sep 2017 18:25:14 +0000 (14:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Sep 2017 18:26:37 +0000 (14:26 -0400)
commit3fe89771cb0a65d3b686bcafb5b7e3ebae0ea604
treea952951fd0b2b4334eb9616a283b3ce39d26fd02
parent60de1c1740f390fe48141b54d04cc53a6073d347
drm/amdgpu: stop reserving the BO in the MMU callback v3

Instead take the callback lock during the final parts of CS.

This should solve the last remaining locking order problems with BO reservations.

v2: rebase, make dummy functions static inline
v3: add one more missing inline and comments

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