diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2016-06-16 20:31:45 -0400 |
---|---|---|
committer | Vijayakumar Subbu <vsubbu@nvidia.com> | 2016-07-19 02:19:09 -0400 |
commit | f4b77e465648e87b19a7df4bb2a121ac8ac1b851 (patch) | |
tree | 25e5db7e8f16e76985d2a56ad7b8e8573ad1fccd /drivers/gpu/nvgpu/vgpu | |
parent | d6efa8fc625fc297b9baa0755407cee1180fbbe6 (diff) |
gpu: nvgpu: process granularity for FECS traces
When processing FECS traces, a hash table is used
to retrieve the 'pid' of the process that created
the channel/TSG. Report process identifer (aka
tgid in kernel) instead of thread identifier (aka
pid) for FECS traces.
Bug 1736423
Change-Id: I54cb9d298b9fe3e1cccdd7145604cd01c5758c9d
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: http://git-master/r/1166501
(cherry picked from commit f7fd1f6d7ad0753b787ec20604a08a1f4882fe6f)
Reviewed-on: http://git-master/r/1168728
(cherry picked from commit 97a62e5b89352fce576f1bca71b38bf2242ff047)
Reviewed-on: http://git-master/r/1177823
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Richard Zhao <rizhao@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c index 29692573..8d3a5e9f 100644 --- a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | |||
@@ -74,7 +74,7 @@ static int vgpu_channel_alloc_inst(struct gk20a *g, struct channel_gk20a *ch) | |||
74 | msg.cmd = TEGRA_VGPU_CMD_CHANNEL_ALLOC_HWCTX; | 74 | msg.cmd = TEGRA_VGPU_CMD_CHANNEL_ALLOC_HWCTX; |
75 | msg.handle = platform->virt_handle; | 75 | msg.handle = platform->virt_handle; |
76 | p->id = ch->hw_chid; | 76 | p->id = ch->hw_chid; |
77 | p->pid = (u64)current->pid; | 77 | p->pid = (u64)current->tgid; |
78 | err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg)); | 78 | err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg)); |
79 | if (err || msg.ret) { | 79 | if (err || msg.ret) { |
80 | gk20a_err(dev_from_gk20a(g), "fail"); | 80 | gk20a_err(dev_from_gk20a(g), "fail"); |