]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amdgpu: Modify indirect buffer packages for resubmission
authorJiadong Zhu <Jiadong.Zhu@amd.com>
Thu, 25 May 2023 08:52:55 +0000 (16:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 14:02:11 +0000 (16:02 +0200)
commit0b4e8d90f2623cc0f17d972c046b501cb84d045d
treee7ecbdeaaa8bc538421a150ab29258c6ec85ac22
parente61d275f1aaf53a5232d9e847cffeb0aec6734cc
drm/amdgpu: Modify indirect buffer packages for resubmission

commit 87af86ae89963c227a3beb4d914f3dc7959a690e upstream.

When the preempted IB frame resubmitted to cp, we need to modify the frame
data including:
1. set PRE_RESUME 1 in CONTEXT_CONTROL.
2. use meta data(DE and CE) read from CSA in WRITE_DATA.

Add functions to save the location the first time IBs emitted and callback
to patch the package when resubmission happens.

Signed-off-by: Jiadong Zhu <Jiadong.Zhu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.3.x
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.h