linux-pikaos-template/patches/nobara/amdgpu-si-cik-default.patch

71 lines
2.8 KiB
Diff
Raw Normal View History

2023-12-12 12:10:53 +01:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Jan200101 <sentrycraft123@gmail.com>
Date: Mon, 27 Nov 2023 09:53:59 +0100
Subject: [PATCH] drm/amdgpu: enable SI and CIK support by default
Signed-off-by: Jan200101 <sentrycraft123@gmail.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 10 ----------
drivers/gpu/drm/radeon/radeon_drv.c | 10 ++++++++++
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index 81edf66dbea8..5021d03089ff 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -582,13 +582,8 @@ module_param_named(timeout_period, amdgpu_watchdog_timer.period, uint, 0644);
2023-02-24 09:12:59 +01:00
*/
#ifdef CONFIG_DRM_AMDGPU_SI
2023-12-12 12:10:53 +01:00
2023-11-04 19:46:45 +01:00
-#if IS_ENABLED(CONFIG_DRM_RADEON) || IS_ENABLED(CONFIG_DRM_RADEON_MODULE)
2023-02-24 09:12:59 +01:00
-int amdgpu_si_support = 0;
-MODULE_PARM_DESC(si_support, "SI support (1 = enabled, 0 = disabled (default))");
-#else
int amdgpu_si_support = 1;
MODULE_PARM_DESC(si_support, "SI support (1 = enabled (default), 0 = disabled)");
-#endif
2023-12-12 12:10:53 +01:00
2023-02-24 09:12:59 +01:00
module_param_named(si_support, amdgpu_si_support, int, 0444);
#endif
2023-12-12 12:10:53 +01:00
@@ -601,13 +596,8 @@ module_param_named(si_support, amdgpu_si_support, int, 0444);
2023-02-24 09:12:59 +01:00
*/
#ifdef CONFIG_DRM_AMDGPU_CIK
2023-12-12 12:10:53 +01:00
2023-11-04 19:46:45 +01:00
-#if IS_ENABLED(CONFIG_DRM_RADEON) || IS_ENABLED(CONFIG_DRM_RADEON_MODULE)
2023-02-24 09:12:59 +01:00
-int amdgpu_cik_support = 0;
-MODULE_PARM_DESC(cik_support, "CIK support (1 = enabled, 0 = disabled (default))");
-#else
int amdgpu_cik_support = 1;
MODULE_PARM_DESC(cik_support, "CIK support (1 = enabled (default), 0 = disabled)");
-#endif
2023-12-12 12:10:53 +01:00
2023-02-24 09:12:59 +01:00
module_param_named(cik_support, amdgpu_cik_support, int, 0444);
#endif
2023-12-12 12:10:53 +01:00
diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c
index 7bf08164140e..865f186f48c4 100644
--- a/drivers/gpu/drm/radeon/radeon_drv.c
+++ b/drivers/gpu/drm/radeon/radeon_drv.c
@@ -239,12 +239,22 @@ module_param_named(uvd, radeon_uvd, int, 0444);
2023-02-24 09:12:59 +01:00
MODULE_PARM_DESC(vce, "vce enable/disable vce support (1 = enable, 0 = disable)");
module_param_named(vce, radeon_vce, int, 0444);
2023-12-12 12:10:53 +01:00
2023-02-24 09:12:59 +01:00
+#ifdef CONFIG_DRM_AMDGPU_SI
+int radeon_si_support = 0;
+MODULE_PARM_DESC(si_support, "SI support (1 = enabled, 0 = disabled (default))");
+#else
int radeon_si_support = 1;
MODULE_PARM_DESC(si_support, "SI support (1 = enabled (default), 0 = disabled)");
+#endif
module_param_named(si_support, radeon_si_support, int, 0444);
2023-12-12 12:10:53 +01:00
2023-02-24 09:12:59 +01:00
+#ifdef CONFIG_DRM_AMDGPU_CIK
+int radeon_cik_support = 0;
+MODULE_PARM_DESC(cik_support, "CIK support (1 = enabled, 0 = disabled (default))");
+#else
int radeon_cik_support = 1;
MODULE_PARM_DESC(cik_support, "CIK support (1 = enabled (default), 0 = disabled)");
+#endif
module_param_named(cik_support, radeon_cik_support, int, 0444);
2023-12-12 12:10:53 +01:00
2023-02-24 09:12:59 +01:00
static struct pci_device_id pciidlist[] = {