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>
This commit is contained in:
Deepak Goyal
2017-10-27 14:56:28 +05:30
committed by mobile promotions
parent 23c7903eff
commit 00b255cf43
2 changed files with 7 additions and 1 deletions

View File

@@ -31,7 +31,7 @@
#include "ioctl_channel.h" #include "ioctl_channel.h"
#include "os_linux.h" #include "os_linux.h"
#ifdef CONFIG_TEGRA_19x_GPU #ifdef CONFIG_TEGRA_19x_GPU
#include "tsg_t19x.h" #include "common/linux/ioctl_tsg_t19x.h"
#endif #endif
struct tsg_private { struct tsg_private {

View File

@@ -26,6 +26,9 @@
#include <nvgpu/kref.h> #include <nvgpu/kref.h>
#include <nvgpu/rwsem.h> #include <nvgpu/rwsem.h>
#ifdef CONFIG_TEGRA_19x_GPU
#include "tsg_t19x.h"
#endif
#define NVGPU_INVALID_TSG_ID (-1) #define NVGPU_INVALID_TSG_ID (-1)
struct channel_gk20a; struct channel_gk20a;
@@ -65,6 +68,9 @@ struct tsg_gk20a {
u32 runlist_id; u32 runlist_id;
pid_t tgid; pid_t tgid;
struct nvgpu_mem *eng_method_buffers; struct nvgpu_mem *eng_method_buffers;
#ifdef CONFIG_TEGRA_19x_GPU
struct tsg_t19x t19x;
#endif
}; };
int gk20a_enable_tsg(struct tsg_gk20a *tsg); int gk20a_enable_tsg(struct tsg_gk20a *tsg);