diff options
author | Deepak Goyal <dgoyal@nvidia.com> | 2017-10-27 05:26:28 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-02 08:10:12 -0400 |
commit | 00b255cf43a2f85d4d9a0378c4a85e7a20e6adc8 (patch) | |
tree | c0d36ab636cb2cdaef2614b9d617c011ab217a16 /drivers/gpu/nvgpu | |
parent | 23c7903eff6ee1ab184dfcc62c054de1557e5b1d (diff) |
gpu: nvgpu: Add t19x specific TSG fields.
TSG struct is extended to accomodate t19x specific args.
JIRA GPUT19x-16
Change-Id: I52b6613d84878f68861fe2515bafba92f83d9572
Signed-off-by: Deepak Goyal <dgoyal@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1586855
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_tsg.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/tsg_gk20a.h | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c index ce7fa6af..f4972f11 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include "ioctl_channel.h" | 31 | #include "ioctl_channel.h" |
32 | #include "os_linux.h" | 32 | #include "os_linux.h" |
33 | #ifdef CONFIG_TEGRA_19x_GPU | 33 | #ifdef CONFIG_TEGRA_19x_GPU |
34 | #include "tsg_t19x.h" | 34 | #include "common/linux/ioctl_tsg_t19x.h" |
35 | #endif | 35 | #endif |
36 | 36 | ||
37 | struct tsg_private { | 37 | struct tsg_private { |
diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h index 51bc1086..5e2b9b82 100644 --- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h | |||
@@ -26,6 +26,9 @@ | |||
26 | #include <nvgpu/kref.h> | 26 | #include <nvgpu/kref.h> |
27 | #include <nvgpu/rwsem.h> | 27 | #include <nvgpu/rwsem.h> |
28 | 28 | ||
29 | #ifdef CONFIG_TEGRA_19x_GPU | ||
30 | #include "tsg_t19x.h" | ||
31 | #endif | ||
29 | #define NVGPU_INVALID_TSG_ID (-1) | 32 | #define NVGPU_INVALID_TSG_ID (-1) |
30 | 33 | ||
31 | struct channel_gk20a; | 34 | struct channel_gk20a; |
@@ -65,6 +68,9 @@ struct tsg_gk20a { | |||
65 | u32 runlist_id; | 68 | u32 runlist_id; |
66 | pid_t tgid; | 69 | pid_t tgid; |
67 | struct nvgpu_mem *eng_method_buffers; | 70 | struct nvgpu_mem *eng_method_buffers; |
71 | #ifdef CONFIG_TEGRA_19x_GPU | ||
72 | struct tsg_t19x t19x; | ||
73 | #endif | ||
68 | }; | 74 | }; |
69 | 75 | ||
70 | int gk20a_enable_tsg(struct tsg_gk20a *tsg); | 76 | int gk20a_enable_tsg(struct tsg_gk20a *tsg); |