All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zhang, Jerry (Junwei)" <Jerry.Zhang-5C7GfCeVMHo@public.gmane.org>
To: Chunming Zhou <David1.Zhou-5C7GfCeVMHo@public.gmane.org>,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH 0/6 v4] *** Dedicated vmid per process v4 ***
Date: Thu, 27 Apr 2017 15:58:32 +0800	[thread overview]
Message-ID: <5901A4A8.6020003@amd.com> (raw)
In-Reply-To: <1493269238-26742-1-git-send-email-David1.Zhou-5C7GfCeVMHo@public.gmane.org>

It looks fine for me now.

Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>

Jerry

On 04/27/2017 01:00 PM, Chunming Zhou wrote:
> 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.
>
> 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 V3
>    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  | 152 ++++++++++++++++++++++++++++++--
>   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h  |   6 ++
>   include/uapi/drm/amdgpu_drm.h           |  22 +++++
>   5 files changed, 178 insertions(+), 6 deletions(-)
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2017-04-27  7:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-27  5:00 [PATCH 0/6 v4] *** Dedicated vmid per process v4 *** Chunming Zhou
     [not found] ` <1493269238-26742-1-git-send-email-David1.Zhou-5C7GfCeVMHo@public.gmane.org>
2017-04-27  5:00   ` [PATCH 1/6] drm/amdgpu: add vm ioctl Chunming Zhou
2017-04-27  5:00   ` [PATCH 2/6] drm/amdgpu: add reserved vmid field in vm struct v2 Chunming Zhou
2017-04-27  5:00   ` [PATCH 3/6] drm/amdgpu: reserve/unreserve vmid by vm ioctl v4 Chunming Zhou
     [not found]     ` <1493269238-26742-4-git-send-email-David1.Zhou-5C7GfCeVMHo@public.gmane.org>
2017-04-27  5:41       ` Zhang, Jerry (Junwei)
2017-04-27  5:00   ` [PATCH 4/6] drm/amdgpu: add limitation for dedicated vm number v4 Chunming Zhou
2017-04-27  5:00   ` [PATCH 5/6] drm/amdgpu: implement grab reserved vmid V3 Chunming Zhou
     [not found]     ` <1493269238-26742-6-git-send-email-David1.Zhou-5C7GfCeVMHo@public.gmane.org>
2017-04-27  5:54       ` Zhang, Jerry (Junwei)
     [not found]         ` <5901879F.2030407-5C7GfCeVMHo@public.gmane.org>
2017-04-27  7:57           ` Zhang, Jerry (Junwei)
2017-04-27  5:00   ` [PATCH 6/6] drm/amdgpu: bump module verion for reserved vmid Chunming Zhou
2017-04-27  7:58   ` Zhang, Jerry (Junwei) [this message]
2017-04-27  9:51   ` [PATCH 0/6 v4] *** Dedicated vmid per process v4 *** Christian König
     [not found]     ` <78a42a6d-6e32-3f93-9fab-cecc9dab9fab-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-04-27 10:26       ` zhoucm1
     [not found]         ` <5901C757.9070103-5C7GfCeVMHo@public.gmane.org>
2017-04-27 12:10           ` Christian König

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5901A4A8.6020003@amd.com \
    --to=jerry.zhang-5c7gfcevmho@public.gmane.org \
    --cc=David1.Zhou-5C7GfCeVMHo@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.