Skip to content

*** Dedicated vmid per process ***

Chunming Zhou amd-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drm/amdgpu: handle flags when context allocdrivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c+6 -31 reply
2/5drm/amdgpu: add dedicated vmid field in vm structdrivers/gpu/drm/amd/amdgpu/amdgpu_vm.c drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h+18 -10 replies
3/5drm/amdgpu: add context flags for dedicated vmid reqestdrivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +1 more+64 -21 reply
4/5drm/amdgpu: implement grab dedicated vmiddrivers/gpu/drm/amd/amdgpu/amdgpu_vm.c+60 -01 reply
5/5drm/amdgpu: add limitation for dedicated vm numberdrivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_device.c drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c+12 -01 reply

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchChristian König
1/5R-b
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] *** Dedicated vmid per process ***

The current kernel implementation, which grabs the idle VMID from pool when emitting the job may:

The back-to-back submission from one process could use different VMID. The submission to different queues from single process could use different VMID

It works well in most case but cannot work for the SQ thread trace capture.

The VMID for the submission that set the {SQTT}_BASE, which refers to the address of the trace buffer, is stored in shader engine.

If the profiling application have to use different VMIDs to submit IBs in its life cycle:

Some trace is not captured since it actually uses different VMID to submit jobs.
Some part of captured trace may come from different application since they are accidentally uses the owner’s VMID to submit jobs.

ChunmingrZhour(5):
drm/amdgpu: handle flags when context alloc drm/amdgpu: add dedicated vmid field in vm struct drm/amdgpu: add context flagn for dedicated vmid reqest drm/amdgpu: implement grab dedicated vmid drm/amdgpu: add limitation for dedicated vm number

 drivers/gpu/drm/amd/amdgpu/amdgpu.h        |   1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c    |  14 ++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |   1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c     | 137 ++++++++++++++++++++++++++++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h     |   6 ++
 include/uapi/drm/amdgpu_drm.h              |   3 +
 6 files changed, 158 insertions(+), 4 deletions(-)
Signature · 1 line
1.9.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx