[PATCH 0/5] *** Dedicated vmid per process ***
Deucher, Alexander
Alexander.Deucher at amd.com
Fri Apr 21 16:27:31 UTC 2017
> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Chunming Zhou
> Sent: Friday, April 21, 2017 6:06 AM
> To: amd-gfx at lists.freedesktop.org
> Cc: Zhou, David(ChunMing)
> Subject: [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.
Please add a patch at the end to bump the module version so we can track when the flag is available.
Alex
>
>
> 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(-)
>
> --
> 1.9.1
More information about the amd-gfx
mailing list