drm/amdkfd: fix set kfd node ras properties value
authorStanley.Yang <Stanley.Yang@amd.com>
Mon, 17 Aug 2020 07:48:21 +0000 (15:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Aug 2020 20:40:19 +0000 (16:40 -0400)
commit5436ab94cd946006271f4e80de90b9a2276e93e3
treedfacb6bd7e44d05bdee35d0c4b145e3ef5e00655
parent1887544d4ddd89fab8a76d150b46c329e7925da1
drm/amdkfd: fix set kfd node ras properties value

The ctx->features are new RAS implementation which
is only available for Vega20 and onwards, it is not
available for vega10, vega10 should follow legacy
ECC implementation.

Changed from V1:
    wrap function to initialize kfd node properties

Changed from V2:
    remove wrap function and SDMA SRAM ECC check

Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
drivers/gpu/drm/amd/amdkfd/kfd_topology.c