drm/amd/amdgpu: Bail out of BO node creation if not enough VRAM (v3)
authorTom St Denis <tom.stdenis@amd.com>
Mon, 10 Jun 2019 13:53:58 +0000 (09:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Jun 2019 18:59:48 +0000 (13:59 -0500)
commitc5e4c6bbbdce750a52ae65c429384e7324a50fd3
tree5d6123812e96408941049b5b865a7ee3e0c24ec3
parente9bc1bf7916e006f62a27f400f74a6e10b874886
drm/amd/amdgpu: Bail out of BO node creation if not enough VRAM (v3)

(v2): Return 0 and set mem->mm_node to NULL.
(v3): Use atomic64_add_return instead.

Signed-off-by: Tom St Denis <tom.stdenis@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_vram_mgr.c