]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Add reset_context flag for host FLR
authorYunxiang Li <Yunxiang.Li@amd.com>
Mon, 22 Apr 2024 18:44:38 +0000 (14:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 May 2024 19:40:50 +0000 (15:40 -0400)
commit25c01191c2555351922e5515b6b6d31357975031
tree6ae9d6296928adda447c2bb6cb2bbf16284559eb
parentf4322b9f8ad5f9f62add288c785d2e10bb6a5efe
drm/amdgpu: Add reset_context flag for host FLR

There are other reset sources that pass NULL as the job pointer, such as
amdgpu_amdkfd_reset_work. Therefore, using the job pointer to check if
the FLR comes from the host does not work.

Add a flag in reset_context to explicitly mark host triggered reset, and
set this flag when we receive host reset notification.

Signed-off-by: Yunxiang Li <Yunxiang.Li@amd.com>
Reviewed-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Zhigang Luo <zhigang.luo@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_reset.h
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c
drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c