drm/amdgpu: max_pde_used usage should be under protect
authormonk.liu <monk.liu@amd.com>
Tue, 26 May 2015 02:22:41 +0000 (10:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 Jun 2015 01:03:53 +0000 (21:03 -0400)
commit3d5a08c114585e5b9f890807b04d2730dafde5e1
treeca7104751852e063528f2e6c28ae93f9d367f8d4
parentca95261325cfdff85eb2c9107198c714e266cb5b
drm/amdgpu: max_pde_used usage should be under protect

Need to take the lock when accessing this.

Signed-off-by: monk.liu <monk.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <jammy.zhou@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c