drm/amdgpu: Set ip_blocks according variable amdgpu_virtual_display.
authorEmily Deng <Emily.Deng@amd.com>
Mon, 8 Aug 2016 03:37:50 +0000 (11:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Aug 2016 18:33:28 +0000 (14:33 -0400)
commita6be7570518f85ce94ca9d6540543e00725828d3
treed817a1b9d03ccddbcbdea5a44e50c33d386fb378
parente443059d0f41fcc07f0fb6b3b8ae96dc3d2364c7
drm/amdgpu: Set ip_blocks according variable amdgpu_virtual_display.

For virtual display feature, if user set the option "amdgpu.virtual_display=1"
when load amdgpu.ko. Then need to set the ip_blocks with virtual display ip
blocks. And when enable virtual display, the amdgpu_dal need to be set to zero.

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/cik.c
drivers/gpu/drm/amd/amdgpu/vi.c