diff options
author | xinhui pan <xinhui.pan@amd.com> | 2018-10-25 02:35:13 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-03-19 16:36:50 -0400 |
commit | 1218252ff2bc7c7c4bcd182581995d688aa92b4f (patch) | |
tree | 300ff92a2eebdc2bd4dd17b5cf2c9003e7e22fc4 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
parent | 9b9ca62ddeec541bc7633410dacccefd96f0cc68 (diff) |
drm/amdgpu: add module parameters for ras
Allow RAS feature enable/disable via boot parameter.
Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index d35c5a273e84..b4ac80d20f75 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |||
@@ -137,6 +137,8 @@ uint amdgpu_dc_feature_mask = 0; | |||
137 | struct amdgpu_mgpu_info mgpu_info = { | 137 | struct amdgpu_mgpu_info mgpu_info = { |
138 | .mutex = __MUTEX_INITIALIZER(mgpu_info.mutex), | 138 | .mutex = __MUTEX_INITIALIZER(mgpu_info.mutex), |
139 | }; | 139 | }; |
140 | int amdgpu_ras_enable = -1; | ||
141 | uint amdgpu_ras_mask = 0xffffffff; | ||
140 | 142 | ||
141 | /** | 143 | /** |
142 | * DOC: vramlimit (int) | 144 | * DOC: vramlimit (int) |
@@ -496,6 +498,21 @@ MODULE_PARM_DESC(emu_mode, "Emulation mode, (1 = enable, 0 = disable)"); | |||
496 | module_param_named(emu_mode, amdgpu_emu_mode, int, 0444); | 498 | module_param_named(emu_mode, amdgpu_emu_mode, int, 0444); |
497 | 499 | ||
498 | /** | 500 | /** |
501 | * DOC: amdgpu_ras_enable (int) | ||
502 | * Enable RAS features on the GPU (0 = disable, 1 = enable, -1 = auto (default)) | ||
503 | */ | ||
504 | MODULE_PARM_DESC(amdgpu_ras_enable, "Enable RAS features on the GPU (0 = disable, 1 = enable, -1 = auto (default))"); | ||
505 | module_param_named(ras_enable, amdgpu_ras_enable, int, 0444); | ||
506 | |||
507 | /** | ||
508 | * DOC: amdgpu_ras_mask (uint) | ||
509 | * Mask of RAS features to enable (default 0xffffffff), only valid when ras_enable == 1 | ||
510 | * See the flags in drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | ||
511 | */ | ||
512 | MODULE_PARM_DESC(amdgpu_ras_mask, "Mask of RAS features to enable (default 0xffffffff), only valid when ras_enable == 1"); | ||
513 | module_param_named(ras_mask, amdgpu_ras_mask, uint, 0444); | ||
514 | |||
515 | /** | ||
499 | * DOC: si_support (int) | 516 | * DOC: si_support (int) |
500 | * Set SI support driver. This parameter works after set config CONFIG_DRM_AMDGPU_SI. For SI asic, when radeon driver is enabled, | 517 | * Set SI support driver. This parameter works after set config CONFIG_DRM_AMDGPU_SI. For SI asic, when radeon driver is enabled, |
501 | * set value 0 to use radeon driver, while set value 1 to use amdgpu driver. The default is using radeon driver when it available, | 518 | * set value 0 to use radeon driver, while set value 1 to use amdgpu driver. The default is using radeon driver when it available, |