]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: update ras capability's query based on mem ecc configuration
authorGuchun Chen <guchun.chen@amd.com>
Tue, 10 Mar 2020 10:27:08 +0000 (18:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Mar 2020 15:52:34 +0000 (11:52 -0400)
commit55b3a2419231e9f825769973eb5152c4d309192b
tree999938cca07b883b30e8509a526106a5816e2fa4
parentb813e5db960d2572a56bf64854e29099f71d8fb4
drm/amdgpu: update ras capability's query based on mem ecc configuration

RAS support capability needs to be updated on top of different
memeory ECC enablement, and remove redundant memory ecc check
in gmc module for vega20 and arcturus.

v2: check HBM ECC enablement and set ras mask accordingly.
v3: avoid to invoke atomfirmware interface to query twice.

Suggested-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c