summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/radeon_asic.c
diff options
context:
space:
mode:
authorJérome Glisse <jglisse@redhat.com>2016-03-18 18:58:36 +0300
committerAlex Deucher <alexander.deucher@amd.com>2016-05-02 20:08:52 +0300
commitf1a0a67a8aca257fc6d4a2d1753556a91f2186a7 (patch)
tree42d62aa034ade9a9828141e0f8452325940f12da /drivers/gpu/drm/radeon/radeon_asic.c
parentcb25f7e022b0fb1caf1bc50e5f85b3d31043b997 (diff)
downloadlinux-f1a0a67a8aca257fc6d4a2d1753556a91f2186a7.tar.xz
drm/radeon: add driver option to disable uvd block.
Quite few suspend/hibernation bugs are related to this block. Add an option to disable those as a work around. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Jérôme Glisse <jglisse@redhat.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_asic.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_asic.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_asic.c b/drivers/gpu/drm/radeon/radeon_asic.c
index 46a4ced338a4..b4810ef06aee 100644
--- a/drivers/gpu/drm/radeon/radeon_asic.c
+++ b/drivers/gpu/drm/radeon/radeon_asic.c
@@ -2696,6 +2696,9 @@ int radeon_asic_init(struct radeon_device *rdev)
rdev->asic->pm.set_memory_clock = NULL;
}
+ if (!radeon_uvd)
+ rdev->has_uvd = false;
+
return 0;
}