]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit598a4180b1043317b21940239683c939c6e8c645
treea952951fd0b2b4334eb9616a283b3ce39d26fd02
parentfd8ec73655a9b4d652f3fb59217dcf0d8ba98142
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