*** Dedicated vmid per process v5 ***
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest6 patches 1 replyIn review
- v46 patches 7 repliesSuperseded
- v36 patches 10 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 6 patches | 17 replies | Superseded |
Changes in v5 from the cover letter
patch#5: peek_fence instead of get_fence.
fix potential context starved.
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | drm/amdgpu: add vm ioctldrivers/ drivers/ drivers/ +1 more | +42 | 0 replies | |
| 2/6 | drm/amdgpu: add reserved vmid field in vm struct v2drivers/ drivers/ | +18 | 0 replies | |
| 3/6 | drm/amdgpu: reserve/unreserve vmid by vm ioctl v4drivers/ | +49 | 0 replies | |
| 4/6 | drm/amdgpu: add limitation for dedicated vm number v4drivers/ drivers/ | +12 | 0 replies | |
| 5/6 | drm/amdgpu: implement grab reserved vmid V4drivers/ | +75 | 0 replies | |
| 6/6 | drm/amdgpu: bump module verion for reserved vmiddrivers/ | +2 | 0 replies |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Junwei Zhang | Christian König |
|---|---|---|
| Series | R-b | |
| 1/6 | R-b | R-b |
| 2/6 | R-b | R-b |
| 3/6 | R-b | |
| 4/6 | R-b | R-b |
| 5/6 | R-b | |
| 6/6 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/6 v5] *** Dedicated vmid per process v5 ***
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.
V2:
1. address Christian's comments:
a. drop context flags for tag process, instead, add vm ioctl. b. change order of patches.
c. sync waiting only when vm flush needs.
2. address Alex's comments;
bump module version
V3:
address Jerry and Christian's comments.
and only reserve gfxhub vmid
v4:
address Jerry and Christian's comments.
fix some race condistions.
v5:
patch#5: peek_fence instead of get_fence.
fix potential context starved.
Chunming Zhou (6):
drm/amdgpu: add vm ioctl
drm/amdgpu: add reserved vmid field in vm struct v2 drm/amdgpu: reserve/unreserve vmid by vm ioctl v4 drm/amdgpu: add limitation for dedicated vm number v4 drm/amdgpu: implement grab reserved vmid V4 drm/amdgpu: bump module verion for reserved vmid
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 +- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 159 +++++++++++++++++++++++++++++++- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 6 ++ include/uapi/drm/amdgpu_drm.h | 22 +++++ 5 files changed, 185 insertions(+), 6 deletions(-)
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx