]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: refine the security check for RAS functions
authorDennis Li <Dennis.Li@amd.com>
Thu, 16 Jan 2020 03:07:55 +0000 (11:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Jan 2020 21:36:04 +0000 (16:36 -0500)
commitf7d186a9908e6997cfccb2763bf79ecb875b2206
treed1c182271e9f1b062461af7c80277a965d0e2851
parent53ba38a7b2a4aeea8270da7a3f886fa25f2e0e25
drm/amdgpu: refine the security check for RAS functions

To avoid calling RAS related functions when RAS feature isn't
supported in hardware. Change to check supported features, instead
of checking asic type.

v2: reuse amdgpu_ras_is_supported function, instead of introducing
a new flag for hardware ras feature.

Signed-off-by: Dennis Li <Dennis.Li@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c