]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/radeon: add driver option to disable vce block.
authorJérome Glisse <jglisse@redhat.com>
Fri, 18 Mar 2016 15:58:37 +0000 (16:58 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 May 2016 17:08:53 +0000 (13:08 -0400)
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>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_asic.c
drivers/gpu/drm/radeon/radeon_drv.c

index 1b26ceffed2416628008fe3d5eb42420175e3b82..91828ecf39cf4a5bc35c14383c283b1bf68d44cb 100644 (file)
@@ -114,6 +114,7 @@ extern int radeon_backlight;
 extern int radeon_auxch;
 extern int radeon_mst;
 extern int radeon_uvd;
+extern int radeon_vce;
 
 /*
  * Copy from radeon_drv.h so we don't have to include both and have conflicting
index b4810ef06aee13082d855950a0201a89a879028f..bc5121d1a7bc56f777c7a1ef76c49c8753cd8ed4 100644 (file)
@@ -2698,6 +2698,8 @@ int radeon_asic_init(struct radeon_device *rdev)
 
        if (!radeon_uvd)
                rdev->has_uvd = false;
+       if (!radeon_vce)
+               rdev->has_vce = false;
 
        return 0;
 }
index d637828ae53ca1646a321aeec02817597622c86a..261462e85d1ca62dd5d40bd038d18016f9a42808 100644 (file)
@@ -197,6 +197,7 @@ int radeon_backlight = -1;
 int radeon_auxch = -1;
 int radeon_mst = 0;
 int radeon_uvd = 1;
+int radeon_vce = 1;
 
 MODULE_PARM_DESC(no_wb, "Disable AGP writeback for scratch registers");
 module_param_named(no_wb, radeon_no_wb, int, 0444);
@@ -291,6 +292,9 @@ module_param_named(mst, radeon_mst, int, 0444);
 MODULE_PARM_DESC(uvd, "uvd enable/disable uvd support (1 = enable, 0 = disable)");
 module_param_named(uvd, radeon_uvd, int, 0444);
 
+MODULE_PARM_DESC(vce, "vce enable/disable vce support (1 = enable, 0 = disable)");
+module_param_named(vce, radeon_vce, int, 0444);
+
 static struct pci_device_id pciidlist[] = {
        radeon_PCI_IDS
 };