drm/amdgpu: cleanup SA inti and fini(v2)
authorMonk Liu <Monk.Liu@amd.com>
Fri, 26 Jan 2018 08:57:25 +0000 (16:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Feb 2018 19:18:07 +0000 (14:18 -0500)
commitbffe07b8b97d7faaf3d291129aafef2ee8a80e90
treec1fc52dbe840a7018a308bb21c29fb9aed4b777e
parent6f31fe6ec6ee77a82dafc4f72efba6272f279b9f
drm/amdgpu: cleanup SA inti and fini(v2)

should use bo_create_kernel instead of split to two
function that create and pin the SA bo

issue:
before this patch, there are DMAR read error in host
side when running SRIOV test, the DMAR address dropped
in the range of SA bo.

fix:
after this cleanups of SA init and fini, above DMAR
eror gone.

v2:
keep sa_bo's fini instead of suspend, to keep
reporting error

Signed-off-by: Monk Liu <Monk.Liu@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_ib.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c