drm/amdgpu: impl sriov detection for vega10
authorXiangliang Yu <Xiangliang.Yu@amd.com>
Wed, 8 Mar 2017 07:00:48 +0000 (15:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:54:57 +0000 (23:54 -0400)
commit1b922423ced7fbe7f1a8366eb399b7daf4ebaea7
tree02e0910d9d852a758503cf6169a6bb204c05ad10
parent3fc08b61df3837701fd6665c1b2b3df7ca44225b
drm/amdgpu: impl sriov detection for vega10

Read vega10 hw register to detect if sriov is enabled, and call
it before IP blocks setting.

Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Monk Liu <Monk.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nbio_v6_1.c
drivers/gpu/drm/amd/amdgpu/nbio_v6_1.h
drivers/gpu/drm/amd/amdgpu/soc15.c