]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Quit RAS initialization earlier if RAS is disabled
authorOak Zeng <Oak.Zeng@amd.com>
Thu, 6 May 2021 16:24:17 +0000 (11:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 May 2021 22:08:48 +0000 (18:08 -0400)
commitc68088e3099b2f982d3e3b6afd90982a348fb1a8
tree590a796133dc3bc29415a5432ead598533845d18
parent2568df194592def92daac00e2511ae24003ccdee
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c