mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 09:41:54 +09:00
drm/amdgpu: Quit RAS initialization earlier if RAS is disabled
If RAS is disabled through amdgpu_ras_enable kernel parameter, we should quit the RAS initialization eariler to avoid initialization of some RAS data structure such as sysfs etc. Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Oak Zeng <Oak.Zeng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -2151,7 +2151,7 @@ int amdgpu_ras_init(struct amdgpu_device *adev)
|
||||
|
||||
amdgpu_ras_check_supported(adev);
|
||||
|
||||
if (!adev->ras_hw_enabled || adev->asic_type == CHIP_VEGA10) {
|
||||
if (!adev->ras_enabled || adev->asic_type == CHIP_VEGA10) {
|
||||
/* set gfx block ras context feature for VEGA20 Gaming
|
||||
* send ras disable cmd to ras ta during ras late init.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user