drm/amdgpu: move vsync_timer_enabled setup to dce virtual early_init
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Aug 2016 18:35:55 +0000 (14:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Aug 2016 18:35:55 +0000 (14:35 -0400)
Put it in one place.

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

index 15200b1b77d675bec379f7c3ac5dc8cc01b6cee3..e539b28dbef7cd32585d09df53e2adf3ab4889c6 100644 (file)
@@ -2324,7 +2324,6 @@ static const struct amdgpu_ip_block_version kaveri_ip_blocks_vd[] =
 int cik_set_ip_blocks(struct amdgpu_device *adev)
 {
        if (amdgpu_virtual_display) {
-               adev->mode_info.vsync_timer_enabled = AMDGPU_IRQ_STATE_DISABLE;
                switch (adev->asic_type) {
                case CHIP_BONAIRE:
                        adev->ip_blocks = bonaire_ip_blocks_vd;
index 1c16983ec8b63fd972c90936d1da13c6ebfab53b..4c8ca58a3f94fac55d0ca708e6ec4bce76b83a4c 100644 (file)
@@ -353,6 +353,7 @@ static int dce_virtual_early_init(void *handle)
 {
        struct amdgpu_device *adev = (struct amdgpu_device *)handle;
 
+       adev->mode_info.vsync_timer_enabled = AMDGPU_IRQ_STATE_DISABLE;
        dce_virtual_set_display_funcs(adev);
        dce_virtual_set_irq_funcs(adev);
 
index 064291771d7985b232f6dc4f585da6ec0c71b373..2d3e3ed84dcb0d007189c596acb5da636f5481ec 100644 (file)
@@ -1388,7 +1388,6 @@ static const struct amdgpu_ip_block_version cz_ip_blocks_vd[] =
 int vi_set_ip_blocks(struct amdgpu_device *adev)
 {
        if (amdgpu_virtual_display) {
-               adev->mode_info.vsync_timer_enabled = AMDGPU_IRQ_STATE_DISABLE;
                switch (adev->asic_type) {
                case CHIP_TOPAZ:
                        adev->ip_blocks = topaz_ip_blocks;