drm/amd/pp: fix "Delete the wrapper layer of smu_allocate/free_memory"
authorChristian König <christian.koenig@amd.com>
Tue, 6 Mar 2018 13:56:00 +0000 (14:56 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Mar 2018 21:10:11 +0000 (16:10 -0500)
commit586b9a4d7de9508ef714e5e913406376ba9c9623
tree2d8a0a68a0dc6e319fba8682bf9496062c63c93d
parentbb03c9c4a917ed602a6b9b01824dbfde5f6b9248
drm/amd/pp: fix "Delete the wrapper layer of smu_allocate/free_memory"

For amdgpu_bo_create_kernel to work the handle must be NULL initialized,
otherwise we only try to pin and map the BO.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Rex Zhu <rezhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.c
drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c