drm/amdgpu: request/release full gpu access if device is vf
authorXiangliang Yu <Xiangliang.Yu@amd.com>
Thu, 12 Jan 2017 07:14:36 +0000 (15:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 16:13:25 +0000 (11:13 -0500)
commit3149d9da12263b696d6123f90e44968ebde2115d
treed72701f0fec1914431e9a10adff0aaddefd533e7
parentab71ac56f6d832443fcd9f884460263b2dc3ff6b
drm/amdgpu: request/release full gpu access if device is vf

For gpu vf device, first need to request full gpu access before
accessing gpu registers, and release full gpu access after the
access is done.

Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@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_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c