OSDN Git Service

drm/amdgpu: add more warning to amdgpu_bo_offset
authorChristian König <christian.koenig@amd.com>
Mon, 25 Jul 2016 15:56:18 +0000 (17:56 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Aug 2016 15:32:17 +0000 (11:32 -0400)
commitcdb7e8f2733579e35ec2883bde7b594d07ad67e9
treeef1b244bae983088efd5c62e9fdb1447121916c2
parent78bbbd9c0fcde51b56c5bec99dd286cbad698712
drm/amdgpu: add more warning to amdgpu_bo_offset

Warn when we try to get the address and the BO isn't locked or reserved.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h