diff options
author | Emily Deng <Emily.Deng@amd.com> | 2016-08-07 23:37:50 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-08-08 14:33:28 -0400 |
commit | a6be7570518f85ce94ca9d6540543e00725828d3 (patch) | |
tree | d817a1b9d03ccddbcbdea5a44e50c33d386fb378 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | e443059d0f41fcc07f0fb6b3b8ae96dc3d2364c7 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 72d5d094965d..4bf9bd96a46e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -1185,6 +1185,8 @@ static int amdgpu_early_init(struct amdgpu_device *adev) | |||
1185 | { | 1185 | { |
1186 | int i, r; | 1186 | int i, r; |
1187 | 1187 | ||
1188 | DRM_INFO("virtual display enabled:%d\n", amdgpu_virtual_display); | ||
1189 | |||
1188 | switch (adev->asic_type) { | 1190 | switch (adev->asic_type) { |
1189 | case CHIP_TOPAZ: | 1191 | case CHIP_TOPAZ: |
1190 | case CHIP_TONGA: | 1192 | case CHIP_TONGA: |