drm/amdgpu: add atomfirmware helper function to query ecc status
authorHawking Zhang <Hawking.Zhang@amd.com>
Thu, 7 Mar 2019 02:14:13 +0000 (10:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:36:51 +0000 (15:36 -0500)
commit511c4348cf7bb4d224e944e6d84a5bf8edacbfef
treeafa3f4c6592388d3204dceea3cf9f876ec686274
parented606ca3d30d2e73d566e087214274399ca016d3
drm/amdgpu: add atomfirmware helper function to query ecc status

ecc default status (enabled or disabled) could be get from umc_config field in umc_info table

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h