drm/amdkfd: Use a new capability bit for SRAM ECC
authorFelix Kuehling <Felix.Kuehling@amd.com>
Thu, 10 Sep 2020 19:06:53 +0000 (15:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Mar 2021 20:12:48 +0000 (15:12 -0500)
commit47c45c39d1a440830dbbf4c01c95b749765ed163
tree6b4b468a254574a793776cdd1db5f645fa129373
parenta00aacdf00b14b5afbb87f63bcc24a15ecd57452
drm/amdkfd: Use a new capability bit for SRAM ECC

Existing, buggy user mode breaks when SRAM ECC is correctly reported as
"enabled". To avoid breaking existing user mode, deprecate that bit and
leave it as 0. Define a new bit to report the actual SRAM ECC mode that
new, correct user mode can use in the future.

Fixes: 7ec177bdcfc1 ("drm/amdkfd: fix set kfd node ras properties value")
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Kent Russell <kent.russell@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_topology.h