OSDN Git Service

drm/amdgpu: fix amdgpu_bo_pin_restricted VRAM placing v2
authorChristian König <christian.koenig@amd.com>
Tue, 19 Jan 2016 11:48:14 +0000 (12:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Mar 2016 23:07:18 +0000 (15:07 -0800)
commit7c105b06bc6296ce215b4dc942204bdf82237323
treeefff7a4d0f4ce77783acaef49671e6f0ca237cf5
parent17ab2f11145f6e0c9657d098f3dcefd22f9e7478
drm/amdgpu: fix amdgpu_bo_pin_restricted VRAM placing v2

commit 78d0e182b6c1f5336f6e8cbb197f403276dabc7f upstream.

We could pin BOs into invisible VRAM otherwise.

v2: make logic more readable as suggested by Michel

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)
Reviewed-by: Rex Zhu <Rex.Zhu@amd.com> (v1)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c