Skip to content

Commit 7b14848

Browse files
WangYuliopsiff
authored andcommitted
drm: Modify the driver of Southern Islands(SI) and Sea Islands (CIK) to be amdgpu
Some older AMD graphics cards using the radeon driver may experience a black screen upon resuming from suspend. *This is a temporary workaround.* This commit should be reverted once a proper fix for this bug is found directly within the radeon driver. Co-developed-by: hongao <hongao@uniontech.com> Signed-off-by: hongao <hongao@uniontech.com> Co-developed-by: luozhijia <luozhijia@uniontech.com> Signed-off-by: luozhijia <luozhijia@uniontech.com> Signed-off-by: WangYuli <wangyuli@uniontech.com>
1 parent 375b928 commit 7b14848

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ module_param_named(timeout_period, amdgpu_watchdog_timer.period, uint, 0644);
583583
#ifdef CONFIG_DRM_AMDGPU_SI
584584

585585
#if IS_ENABLED(CONFIG_DRM_RADEON) || IS_ENABLED(CONFIG_DRM_RADEON_MODULE)
586-
int amdgpu_si_support = 0;
586+
int amdgpu_si_support = 1;
587587
MODULE_PARM_DESC(si_support, "SI support (1 = enabled, 0 = disabled (default))");
588588
#else
589589
int amdgpu_si_support = 1;
@@ -602,7 +602,7 @@ module_param_named(si_support, amdgpu_si_support, int, 0444);
602602
#ifdef CONFIG_DRM_AMDGPU_CIK
603603

604604
#if IS_ENABLED(CONFIG_DRM_RADEON) || IS_ENABLED(CONFIG_DRM_RADEON_MODULE)
605-
int amdgpu_cik_support = 0;
605+
int amdgpu_cik_support = 1;
606606
MODULE_PARM_DESC(cik_support, "CIK support (1 = enabled, 0 = disabled (default))");
607607
#else
608608
int amdgpu_cik_support = 1;

drivers/gpu/drm/radeon/radeon_drv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,11 @@ module_param_named(uvd, radeon_uvd, int, 0444);
239239
MODULE_PARM_DESC(vce, "vce enable/disable vce support (1 = enable, 0 = disable)");
240240
module_param_named(vce, radeon_vce, int, 0444);
241241

242-
int radeon_si_support = 1;
242+
int radeon_si_support = 0;
243243
MODULE_PARM_DESC(si_support, "SI support (1 = enabled (default), 0 = disabled)");
244244
module_param_named(si_support, radeon_si_support, int, 0444);
245245

246-
int radeon_cik_support = 1;
246+
int radeon_cik_support = 0;
247247
MODULE_PARM_DESC(cik_support, "CIK support (1 = enabled (default), 0 = disabled)");
248248
module_param_named(cik_support, radeon_cik_support, int, 0444);
249249

0 commit comments

Comments
 (0)