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>
This commit is contained in:
Emily Deng
2016-08-08 11:37:50 +08:00
committed by Alex Deucher
parent e443059d0f
commit a6be757051
3 changed files with 113 additions and 50 deletions

View File

@@ -1185,6 +1185,8 @@ static int amdgpu_early_init(struct amdgpu_device *adev)
{
int i, r;
DRM_INFO("virtual display enabled:%d\n", amdgpu_virtual_display);
switch (adev->asic_type) {
case CHIP_TOPAZ:
case CHIP_TONGA: