drm/amdgpu/vi: move virtualization detection forward
authorXiangliang Yu <Xiangliang.Yu@amd.com>
Mon, 9 Jan 2017 03:49:27 +0000 (11:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 16:13:05 +0000 (11:13 -0500)
commit91caa081378c612030bfa9762fd7d88036508238
tree1404f015f502e25e00f3bd19e8976710c0e501e9
parent5a5099cbf4d8e68bde0554cf6f61bd4adf9fa243
drm/amdgpu/vi: move virtualization detection forward

Move the detection forward into vi_set_ip_blocks function, then
add ip blocks virtualization need if device is VF.

V2: add ip blocks according to asic type.

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