drm/amdgpu: add a compute pipe reset for RS64
authorHorace Chen <horace.chen@amd.com>
Thu, 21 Jul 2022 04:11:33 +0000 (12:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Sep 2022 19:11:03 +0000 (15:11 -0400)
commitca4ba3394e2aebcee123055a1275980940f21598
tree395470ce2ef75385e6af99c801206865ad99e2ff
parent119dc6c50eb9974e9dc0e6a17d8207592309c940
drm/amdgpu: add a compute pipe reset for RS64

[Why]
Under SR-IOV, we are not sure whether pipe status is
good or not when doing initialization. The compute engine
maybe fail to bringup if pipe status is bad.

[How]
Do an RS64 pipe reset for MEC before we do initialization.
Also apply to bare-metal.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Horace Chen <horace.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/gfx_v11_0.c