Commit a9b67c03 authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu: add experimental resets debug flag

Add this flag to enable experimental resets for testing before they
are fully validated.
Reviewed-and-tested-by: default avatarJiadong Zhu <Jiadong.Zhu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7745a1de
...@@ -1164,6 +1164,7 @@ struct amdgpu_device { ...@@ -1164,6 +1164,7 @@ struct amdgpu_device {
bool debug_disable_soft_recovery; bool debug_disable_soft_recovery;
bool debug_use_vram_fw_buf; bool debug_use_vram_fw_buf;
bool debug_enable_ras_aca; bool debug_enable_ras_aca;
bool debug_exp_resets;
bool enforce_isolation[MAX_XCP]; bool enforce_isolation[MAX_XCP];
/* Added this mutex for cleaner shader isolation between GFX and compute processes */ /* Added this mutex for cleaner shader isolation between GFX and compute processes */
......
...@@ -131,6 +131,7 @@ enum AMDGPU_DEBUG_MASK { ...@@ -131,6 +131,7 @@ enum AMDGPU_DEBUG_MASK {
AMDGPU_DEBUG_DISABLE_GPU_SOFT_RECOVERY = BIT(2), AMDGPU_DEBUG_DISABLE_GPU_SOFT_RECOVERY = BIT(2),
AMDGPU_DEBUG_USE_VRAM_FW_BUF = BIT(3), AMDGPU_DEBUG_USE_VRAM_FW_BUF = BIT(3),
AMDGPU_DEBUG_ENABLE_RAS_ACA = BIT(4), AMDGPU_DEBUG_ENABLE_RAS_ACA = BIT(4),
AMDGPU_DEBUG_ENABLE_EXP_RESETS = BIT(5),
}; };
unsigned int amdgpu_vram_limit = UINT_MAX; unsigned int amdgpu_vram_limit = UINT_MAX;
...@@ -2199,6 +2200,11 @@ static void amdgpu_init_debug_options(struct amdgpu_device *adev) ...@@ -2199,6 +2200,11 @@ static void amdgpu_init_debug_options(struct amdgpu_device *adev)
pr_info("debug: enable RAS ACA\n"); pr_info("debug: enable RAS ACA\n");
adev->debug_enable_ras_aca = true; adev->debug_enable_ras_aca = true;
} }
if (amdgpu_debug_mask & AMDGPU_DEBUG_ENABLE_EXP_RESETS) {
pr_info("debug: enable experimental reset features\n");
adev->debug_exp_resets = true;
}
} }
static unsigned long amdgpu_fix_asic_type(struct pci_dev *pdev, unsigned long flags) static unsigned long amdgpu_fix_asic_type(struct pci_dev *pdev, unsigned long flags)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment