Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/radeon: add driver option to disable vce 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>

authored by

Jérome Glisse and committed by
Alex Deucher
fabb5935 f1a0a67a

+7
+1
drivers/gpu/drm/radeon/radeon.h
··· 114 114 extern int radeon_auxch; 115 115 extern int radeon_mst; 116 116 extern int radeon_uvd; 117 + extern int radeon_vce; 117 118 118 119 /* 119 120 * Copy from radeon_drv.h so we don't have to include both and have conflicting
+2
drivers/gpu/drm/radeon/radeon_asic.c
··· 2698 2698 2699 2699 if (!radeon_uvd) 2700 2700 rdev->has_uvd = false; 2701 + if (!radeon_vce) 2702 + rdev->has_vce = false; 2701 2703 2702 2704 return 0; 2703 2705 }
+4
drivers/gpu/drm/radeon/radeon_drv.c
··· 197 197 int radeon_auxch = -1; 198 198 int radeon_mst = 0; 199 199 int radeon_uvd = 1; 200 + int radeon_vce = 1; 200 201 201 202 MODULE_PARM_DESC(no_wb, "Disable AGP writeback for scratch registers"); 202 203 module_param_named(no_wb, radeon_no_wb, int, 0444); ··· 291 290 292 291 MODULE_PARM_DESC(uvd, "uvd enable/disable uvd support (1 = enable, 0 = disable)"); 293 292 module_param_named(uvd, radeon_uvd, int, 0444); 293 + 294 + MODULE_PARM_DESC(vce, "vce enable/disable vce support (1 = enable, 0 = disable)"); 295 + module_param_named(vce, radeon_vce, int, 0444); 294 296 295 297 static struct pci_device_id pciidlist[] = { 296 298 radeon_PCI_IDS