]> www.infradead.org Git - users/hch/dma-mapping.git/commit
drm/amdgpu: Modify unmap_queue format for gfx9 (v6)
authorJiadong.Zhu <Jiadong.Zhu@amd.com>
Wed, 13 Jul 2022 09:30:25 +0000 (17:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 2 Dec 2022 15:04:45 +0000 (10:04 -0500)
commitbe2545506476b3e6c3a1df11892ed10ca4246eb7
tree82bf7220621978d4b166933c82d9597868412d81
parent0c97a19aa9940491f0374166fb2f2c47667b4e3d
drm/amdgpu: Modify unmap_queue format for gfx9 (v6)

1. Modify the unmap_queue package on gfx9. Add trailing fence to track the
   preemption done.
2. Modify emit_ce_meta emit_de_meta functions for the resumed ibs.

v2: Restyle code not to use ternary operator.
v3: Modify code format.
v4: Enable Mid-Command Buffer Preemption for gfx9 by default.
v5: Optimize the flag bit set for emit_fence.
v6: Modify log message for preemption timeout.

Cc: Christian Koenig <Christian.Koenig@amd.com>
Cc: Michel Dänzer <michel@daenzer.net>
Cc: Luben Tuikov <Luben.Tuikov@amd.com>
Signed-off-by: Jiadong.Zhu <Jiadong.Zhu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
drivers/gpu/drm/amd/amdgpu/soc15d.h