linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND 0/2] drm/gpuvm+msm: Handle in-place remaps
@ 2025-08-04 21:43 Rob Clark
  2025-08-04 21:43 ` [PATCH RESEND 1/2] drm/gpuvm: Send in-place re-maps to the driver as remap Rob Clark
  2025-08-04 21:43 ` [PATCH RESEND 2/2] drm/msm: Handle in-place remaps Rob Clark
  0 siblings, 2 replies; 7+ messages in thread
From: Rob Clark @ 2025-08-04 21:43 UTC (permalink / raw)
  To: dri-devel
  Cc: freedreno, linux-arm-msm, Danilo Krummrich, Connor Abbott,
	Rob Clark, Abhinav Kumar, Danilo Krummrich, David Airlie,
	Dmitry Baryshkov, Jessica Zhang, open list, Lyude Paul,
	Maarten Lankhorst, Marijn Suijten, Maxime Ripard,
	open list:DRM DRIVER FOR NVIDIA GEFORCE/QUADRO GPUS, Sean Paul,
	Simona Vetter, Thomas Zimmermann

turnip+msm uses a DUMP flag on the gpuva to indicate VA ranges to dump
(ie. for devcoredump).  In most cases (internal BOs like shader
instructions) this is known at the time the BO is MAPd, and the DUMP
flag can be set at the same time as the BO is initially bound into the
VM.  But for descriptor buffers, this isn't known until VkBuffer is
bound to the already mapped VkDeviceMemory, requiring an atomic remap
to set the flag.

The problem is that drmvm turns this into discreet unmap and remap
steps.  So there is a window where the VA is not mapped, which can
race with cmdstream exec (SUBMIT).

This series attempts to avoid that by turning an exact-remap into a
remap op instead, where the driver can handle the special case since
it can see both the unmap and map steps at the same time.

Rob Clark (2):
  drm/gpuvm: Send in-place re-maps to the driver as remap
  drm/msm: Handle in-place remaps

 drivers/gpu/drm/drm_gpuvm.c            | 21 +++++++++++++++++++++
 drivers/gpu/drm/msm/msm_gem_vma.c      | 17 +++++++++++++++--
 drivers/gpu/drm/nouveau/nouveau_uvmm.c |  3 ++-
 3 files changed, 38 insertions(+), 3 deletions(-)

-- 
2.50.1


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

end of thread, other threads:[~2025-08-05 14:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-04 21:43 [PATCH RESEND 0/2] drm/gpuvm+msm: Handle in-place remaps Rob Clark
2025-08-04 21:43 ` [PATCH RESEND 1/2] drm/gpuvm: Send in-place re-maps to the driver as remap Rob Clark
2025-08-05  9:33   ` Danilo Krummrich
2025-08-05 14:32     ` Rob Clark
2025-08-05 14:48       ` Danilo Krummrich
2025-08-05 14:59         ` Rob Clark
2025-08-04 21:43 ` [PATCH RESEND 2/2] drm/msm: Handle in-place remaps Rob Clark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).