mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
a0dfb2b911
commit
cc9f3d80e3
@@ -31,6 +31,7 @@
|
||||
#include <nvgpu/log.h>
|
||||
#include <nvgpu/bug.h>
|
||||
#include <nvgpu/firmware.h>
|
||||
#include <nvgpu/os_sched.h>
|
||||
|
||||
#include <nvgpu/linux/vm.h>
|
||||
|
||||
@@ -1287,7 +1288,7 @@ static int gk20a_cde_load(struct gk20a_cde_ctx *cde_ctx)
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
tsg = gk20a_tsg_open(g);
|
||||
tsg = gk20a_tsg_open(g, nvgpu_current_pid(g));
|
||||
if (!tsg) {
|
||||
nvgpu_err(g, "cde: could not create TSG");
|
||||
err = -ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user