From: Andres Rodriguez <andresx7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: "Christian König"
<deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>,
amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH 8/8] drm/amdgpu: trace vm hub druing flush as well
Date: Tue, 11 Apr 2017 10:24:23 -0400 [thread overview]
Message-ID: <abb1d02a-a2cc-37c8-65c8-7972c7beb088@gmail.com> (raw)
In-Reply-To: <4ed1bd8a-2dcd-488f-9594-51171735db5e-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
On 2017-04-11 04:45 AM, Christian König wrote:
> Am 07.04.2017 um 18:52 schrieb Andres Rodriguez:
>>
>> s/druing/during in subject
>>
>> On 2017-04-07 12:11 PM, Christian König wrote:
>>> From: Christian König <christian.koenig@amd.com>
>>>
>>> Trace on which hub we are doing the flush.
>>>
>>> Signed-off-by: Christian König <christian.koenig@amd.com>
>>> ---
>>> drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 20 ++++++++++++--------
>>> drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +-
>>> 2 files changed, 13 insertions(+), 9 deletions(-)
>>>
>>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
>>> b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
>>> index 6032161..f95a386 100644
>>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
>>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
>>> @@ -334,21 +334,25 @@ TRACE_EVENT(amdgpu_vm_copy_ptes,
>>> );
>>> TRACE_EVENT(amdgpu_vm_flush,
>>> - TP_PROTO(uint64_t pd_addr, unsigned ring, unsigned id),
>>> - TP_ARGS(pd_addr, ring, id),
>>> + TP_PROTO(struct amdgpu_ring *ring, unsigned vm_id,
>>> + uint64_t pd_addr),
>>> + TP_ARGS(ring, vm_id, pd_addr),
>>> TP_STRUCT__entry(
>>> - __field(u64, pd_addr)
>>> __field(u32, ring)
>>> - __field(u32, id)
>>> + __field(u32, vm_id)
>>> + __field(u32, vm_hub)
>>> + __field(u64, pd_addr)
>>> ),
>>> TP_fast_assign(
>>> + __entry->ring = ring->idx;
>>> + __entry->vm_id = vm_id;
>>> + __entry->vm_hub = ring->funcs->vmhub;
>>> __entry->pd_addr = pd_addr;
>>> - __entry->ring = ring;
>>> - __entry->id = id;
>>> ),
>>> - TP_printk("ring=%u, id=%u, pd_addr=%010Lx",
>>> - __entry->ring, __entry->id, __entry->pd_addr)
>>> + TP_printk("ring=%u, id=%u, hub=%u, pd_addr=%010Lx",
>>> + __entry->ring, __entry->vm_id,
>>> + __entry->vm_hub,__entry->pd_addr)
>>
>> Can you also include job->base->id in this trace?
>
> No, at least not of hand. VM flushes are meant to be independent of job
> submission.
>
Sorry about the confusion. This comment should've been on patch 7/8
instead of this one.
> Christian.
>
>>
>> Andres
>>> );
>>> TRACE_EVENT(amdgpu_bo_list_set,
>>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
>>> b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
>>> index 494645e..9017b51 100644
>>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
>>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
>>> @@ -621,7 +621,7 @@ int amdgpu_vm_flush(struct amdgpu_ring *ring,
>>> struct amdgpu_job *job)
>>> u64 pd_addr = amdgpu_vm_adjust_mc_addr(adev, job->vm_pd_addr);
>>> struct fence *fence;
>>> - trace_amdgpu_vm_flush(pd_addr, ring->idx, job->vm_id);
>>> + trace_amdgpu_vm_flush(ring, job->vm_id, pd_addr);
>>> amdgpu_ring_emit_vm_flush(ring, job->vm_id, pd_addr);
>>> r = amdgpu_fence_emit(ring, &fence);
>>
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
next prev parent reply other threads:[~2017-04-11 14:24 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-07 16:11 [PATCH 1/8] drm/amdgpu: add VMHUB to ring association Christian König
[not found] ` <1491581476-26758-1-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-04-07 16:11 ` [PATCH 2/8] drm/amdgpu: drop VMID per ring tracking Christian König
2017-04-07 16:11 ` [PATCH 3/8] drm/amdgpu: split VMID management by VMHUB Christian König
2017-04-07 16:11 ` [PATCH 4/8] drm/amdgpu: invalidate only the currently needed VMHUB v2 Christian König
2017-04-07 16:11 ` [PATCH 5/8] drm/amdgpu: assign VM invalidation engine manually Christian König
[not found] ` <1491581476-26758-5-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-04-07 16:52 ` Andres Rodriguez
2017-04-07 16:11 ` [PATCH 6/8] drm/amdgpu: allow concurrent VM flushes Christian König
2017-04-07 16:11 ` [PATCH 7/8] drm/amdgpu: trace the vmhub in grab_id as well Christian König
[not found] ` <1491581476-26758-7-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-04-11 14:26 ` Andres Rodriguez
2017-04-07 16:11 ` [PATCH 8/8] drm/amdgpu: trace vm hub druing flush " Christian König
[not found] ` <1491581476-26758-8-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-04-07 16:52 ` Andres Rodriguez
[not found] ` <7c8d0caf-8775-fcc9-5cc6-7290d79a91ac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-04-11 8:45 ` Christian König
[not found] ` <4ed1bd8a-2dcd-488f-9594-51171735db5e-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-04-11 14:24 ` Andres Rodriguez [this message]
2017-04-07 16:59 ` [PATCH 1/8] drm/amdgpu: add VMHUB to ring association Andres Rodriguez
[not found] ` <fdc1ff71-1b86-14e9-95c5-86d5d949216d-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-04-10 3:41 ` zhoucm1
[not found] ` <58EAFEF9.2050101-5C7GfCeVMHo@public.gmane.org>
2017-04-11 8:45 ` Christian König
[not found] ` <82c7bd46-44ff-ee99-5431-307cbc8f00be-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-04-11 8:53 ` zhoucm1
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=abb1d02a-a2cc-37c8-65c8-7972c7beb088@gmail.com \
--to=andresx7-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=deathsimple-ANTagKRnAhcb1SvskN2V4Q@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox