]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix send ras disable cmd when asic not support ras
authorStanley.Yang <Stanley.Yang@amd.com>
Wed, 10 Mar 2021 11:10:11 +0000 (19:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 03:30:12 +0000 (23:30 -0400)
commitfb0aa718c78e05ad6cff1d8e6c315620cd8b363a
tree0658320eb20115d12de54b59d7b719304ad62235
parent37caa7ca9adc0e52dca75e9a5008c5c5c93ae79f
drm/amdgpu: fix send ras disable cmd when asic not support ras

    cause:
It is necessary to send ras disable command to ras-ta during gfx
block ras later init, because the ras capability is disable read
from vbios for vega20 gaming, but the ras context is released
during ras init process, this will cause send ras disable command
to ras-to failed.
    how:
Delay releasing ras context, the ras context
will be released after gfx block later init done.

Changed from V1:
    move release_ras_context into ras_resume

Changed from V2:
    check BIT(UMC) is more reasonable before access eeprom table

Signed-off-by: Stanley.Yang <Stanley.Yang@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_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c