All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] drm/amdgpu: Add flag to disable implicit sync for GEM operations.
@ 2023-10-31 13:40 ` Tatsuyuki Ishi
  0 siblings, 0 replies; 68+ messages in thread
From: Tatsuyuki Ishi @ 2023-10-31 13:40 UTC (permalink / raw)
  To: dri-devel, amd-gfx; +Cc: Tatsuyuki Ishi, christian.koenig, daniel, bas

In Vulkan, it is the application's responsibility to perform adequate
synchronization before a sparse unmap, replace or BO destroy operation.
This adds an option to AMDGPU_VA_OPs to disable redundant implicit sync
that happens on sparse unmap or replace operations.

This has seen a significant improvement in stutter in Forza Horizon 5
and Forza Horizon 4. (As games that had significant issues in sparse
binding related stutter).

This patchset also address a tangential issue that some changes were
not being flushed immediately after the ioctls, but were deferred to be
processed on the next CS submission, which also results in stalling.
A refactor of state machine is included to achieve this.

Compared to the previous series [1], this specifically targets the VM
operations and keep everything else intact, including implicit sync on
kernel-initiated moves.

I've been able to pass a full Vulkan CTS run on Navi 10 with this.

Userspace code for this is available at [2] and a branch for the kernel
code is available at [3].

[1]: https://lore.kernel.org/all/20230821062005.109771-1-ishitatsuyuki@gmail.com/
[2]: https://gitlab.freedesktop.org/ishitatsuyuki/mesa/-/commits/vm-explicit-sync
[3]: https://github.com/ishitatsuyuki/linux/tree/explicit-sync-drm-misc-next

Tatsuyuki Ishi (6):
  drm/amdgpu: Don't implicit sync PRT maps.
  drm/amdgpu: Separate eviction from VM status.
  drm/amdgpu: Flush VM updates for split bindings eagerly.
  drm/amdgpu: Remove redundant state change after validation.
  drm/amdgpu: Add flag to disable implicit sync for GEM operations.
  drm/amdgpu: Bump amdgpu driver version.

 .../gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c  |   2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c       |   2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c       |   3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c       |  32 +--
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h    |   7 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h     |   6 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c        | 185 ++++++++++--------
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h        |  27 +--
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c     |   1 +
 drivers/gpu/drm/amd/amdkfd/kfd_svm.c          |  18 +-
 include/uapi/drm/amdgpu_drm.h                 |   2 +
 11 files changed, 165 insertions(+), 120 deletions(-)

-- 
2.42.0


^ permalink raw reply	[flat|nested] 68+ messages in thread

end of thread, other threads:[~2023-11-06 19:14 UTC | newest]

Thread overview: 68+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-31 13:40 [PATCH 0/6] drm/amdgpu: Add flag to disable implicit sync for GEM operations Tatsuyuki Ishi
2023-10-31 13:40 ` Tatsuyuki Ishi
2023-10-31 13:40 ` [PATCH 1/6] drm/amdgpu: Don't implicit sync PRT maps Tatsuyuki Ishi
2023-10-31 13:40   ` Tatsuyuki Ishi
2023-10-31 13:40 ` [PATCH 2/6] drm/amdgpu: Separate eviction from VM status Tatsuyuki Ishi
2023-10-31 13:40   ` Tatsuyuki Ishi
2023-10-31 13:55   ` Christian König
2023-10-31 13:55     ` Christian König
2023-10-31 14:39     ` Tatsuyuki Ishi
2023-10-31 14:39       ` Tatsuyuki Ishi
2023-10-31 14:44       ` Christian König
2023-10-31 14:44         ` Christian König
2023-10-31 23:52   ` kernel test robot
2023-10-31 23:52     ` kernel test robot
2023-10-31 13:40 ` [PATCH 3/6] drm/amdgpu: Flush VM updates for split bindings eagerly Tatsuyuki Ishi
2023-10-31 13:40   ` Tatsuyuki Ishi
2023-10-31 13:57   ` Christian König
2023-10-31 13:57     ` Christian König
2023-10-31 13:59     ` Bas Nieuwenhuizen
2023-10-31 13:59       ` Bas Nieuwenhuizen
2023-10-31 14:07       ` Christian König
2023-10-31 14:07         ` Christian König
2023-10-31 14:17         ` Bas Nieuwenhuizen
2023-10-31 14:17           ` Bas Nieuwenhuizen
2023-10-31 14:39           ` Tatsuyuki Ishi
2023-10-31 14:39             ` Tatsuyuki Ishi
2023-11-02  2:36         ` Lang Yu
2023-11-02  2:36           ` Lang Yu
2023-11-02  6:41           ` Christian König
2023-11-02  6:41             ` Christian König
2023-11-06  7:56         ` Tatsuyuki Ishi
2023-11-06  7:56           ` Tatsuyuki Ishi
2023-11-06 13:33           ` Christian König
2023-11-06 13:33             ` Christian König
2023-11-01  1:18   ` kernel test robot
2023-11-01  1:18     ` kernel test robot
2023-10-31 13:40 ` [PATCH 4/6] drm/amdgpu: Remove redundant state change after validation Tatsuyuki Ishi
2023-10-31 13:40   ` Tatsuyuki Ishi
2023-10-31 14:01   ` Christian König
2023-10-31 14:01     ` Christian König
2023-10-31 13:40 ` [PATCH 5/6] drm/amdgpu: Add flag to disable implicit sync for GEM operations Tatsuyuki Ishi
2023-10-31 13:40   ` Tatsuyuki Ishi
2023-10-31 14:14   ` Michel Dänzer
2023-10-31 14:14     ` Michel Dänzer
2023-10-31 14:20     ` Bas Nieuwenhuizen
2023-10-31 14:20       ` Bas Nieuwenhuizen
2023-10-31 14:34     ` Christian König
2023-10-31 14:34       ` Christian König
2023-10-31 14:56       ` Michel Dänzer
2023-10-31 14:56         ` Michel Dänzer
2023-11-01  2:42   ` kernel test robot
2023-11-01  2:42     ` kernel test robot
2023-10-31 13:40 ` [PATCH 6/6] drm/amdgpu: Bump amdgpu driver version Tatsuyuki Ishi
2023-10-31 13:40   ` Tatsuyuki Ishi
2023-11-02 14:04 ` [PATCH v2 0/3] drm/amdgpu: Add flag to disable implicit sync for GEM operations Tatsuyuki Ishi
2023-11-02 14:04   ` Tatsuyuki Ishi
2023-11-02 14:04   ` [PATCH v2 1/3] drm/amdgpu: Don't implicit sync PRT maps Tatsuyuki Ishi
2023-11-02 14:04     ` Tatsuyuki Ishi
2023-11-02 14:04   ` [PATCH v2 2/3] drm/amdgpu: Add flag to disable implicit sync for GEM operations Tatsuyuki Ishi
2023-11-02 14:04     ` Tatsuyuki Ishi
2023-11-06 13:44     ` Christian König
2023-11-06 13:44       ` Christian König
2023-11-06 15:47       ` Tatsuyuki Ishi
2023-11-06 15:47         ` Tatsuyuki Ishi
2023-11-06 19:14         ` Christian König
2023-11-06 19:14           ` Christian König
2023-11-02 14:04   ` [PATCH v2 3/3] drm/amdgpu: Bump amdgpu driver version Tatsuyuki Ishi
2023-11-02 14:04     ` Tatsuyuki Ishi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.