diff options
author | Richard Zhao <rizhao@nvidia.com> | 2018-04-12 19:06:02 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-04-16 13:49:43 -0400 |
commit | cc9f3d80e32c63ae003a8dc66016a035100a6359 (patch) | |
tree | 50fc79abb1c314a76f576ba3571e877d9c84e2d7 /drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |
parent | a0dfb2b91112a766fb4b3e2aaafa99167151c3da (diff) |
gpu: nvgpu: pass pid/tid from os specific code to common code
linux driver runs in user's process but qnx driver has dedicate driver
process, so they have different way to get user pid. nvgpu common code
expect calls from os specific code pass pid/tid.
ce/cde open channel for internal use, we use driver pid.
Jira VQRM-3534
Change-Id: I892372ac5f1dc4d25f9928d16992bcc659d12a56
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1694145
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h index 7fcc54cc..2b8be069 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |||
@@ -367,7 +367,8 @@ int gk20a_wait_channel_idle(struct channel_gk20a *ch); | |||
367 | /* runlist_id -1 is synonym for ENGINE_GR_GK20A runlist id */ | 367 | /* runlist_id -1 is synonym for ENGINE_GR_GK20A runlist id */ |
368 | struct channel_gk20a *gk20a_open_new_channel(struct gk20a *g, | 368 | struct channel_gk20a *gk20a_open_new_channel(struct gk20a *g, |
369 | s32 runlist_id, | 369 | s32 runlist_id, |
370 | bool is_privileged_channel); | 370 | bool is_privileged_channel, |
371 | pid_t pid, pid_t tid); | ||
371 | 372 | ||
372 | int gk20a_channel_alloc_gpfifo(struct channel_gk20a *c, | 373 | int gk20a_channel_alloc_gpfifo(struct channel_gk20a *c, |
373 | struct nvgpu_gpfifo_args *gpfifo_args); | 374 | struct nvgpu_gpfifo_args *gpfifo_args); |