drm/amdgpu: fix and cleanup amdgpu_bo_create v2
authorChristian König <christian.koenig@amd.com>
Tue, 12 Sep 2017 08:56:17 +0000 (10:56 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Sep 2017 16:10:14 +0000 (12:10 -0400)
commitc09312a6532a9a976ec4e72eb3b7fa10e87a8b07
tree76ac1c2e7915283c4870e6f9329f1009f2183737
parent88531913a841a6354adfb40c78c86599639e5f32
drm/amdgpu: fix and cleanup amdgpu_bo_create v2

We adjusted the BO flags for USWC handling, but those never took effect
because the placement was passed in instead of generated inside this
function.

v2: better commit message

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@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