summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/sched_gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-10-17 13:44:51 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-10-20 13:05:29 -0400
commitd7fe2fbacb06e95f921f27f99f457904a0c3a57a (patch)
tree4125b78771bfdb56b55b2681f10bfc4aff85dc47 /drivers/gpu/nvgpu/gk20a/sched_gk20a.h
parenta2c9c6ba0573bde2d4eada8a39d4e97f9749eef1 (diff)
gpu: nvgpu: Move sched to be Linux specific
Move sched parameter APIs to be Linux specific implementation. At the same time the sched_ctrl fields were moved to nvgpu_os_linux. JIRA NVGPU-259 Change-Id: I2397e2602e1c4783f2bebf3aec462634b7f86d4a Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1580649 GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/sched_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/sched_gk20a.h62
1 files changed, 0 insertions, 62 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/sched_gk20a.h b/drivers/gpu/nvgpu/gk20a/sched_gk20a.h
deleted file mode 100644
index 0cdb9914..00000000
--- a/drivers/gpu/nvgpu/gk20a/sched_gk20a.h
+++ /dev/null
@@ -1,62 +0,0 @@
1/*
2 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE.
21 */
22
23#ifndef __SCHED_GK20A_H
24#define __SCHED_GK20A_H
25
26struct gk20a;
27struct gpu_ops;
28struct tsg_gk20a;
29struct poll_table_struct;
30
31struct gk20a_sched_ctrl {
32 struct gk20a *g;
33
34 struct nvgpu_mutex control_lock;
35 bool control_locked;
36 bool sw_ready;
37 struct nvgpu_mutex status_lock;
38 struct nvgpu_mutex busy_lock;
39
40 u64 status;
41
42 size_t bitmap_size;
43 u64 *active_tsg_bitmap;
44 u64 *recent_tsg_bitmap;
45 u64 *ref_tsg_bitmap;
46
47 struct nvgpu_cond readout_wq;
48};
49
50int gk20a_sched_dev_release(struct inode *inode, struct file *filp);
51int gk20a_sched_dev_open(struct inode *inode, struct file *filp);
52long gk20a_sched_dev_ioctl(struct file *, unsigned int, unsigned long);
53ssize_t gk20a_sched_dev_read(struct file *, char __user *, size_t, loff_t *);
54unsigned int gk20a_sched_dev_poll(struct file *, struct poll_table_struct *);
55
56void gk20a_sched_ctrl_tsg_added(struct gk20a *, struct tsg_gk20a *);
57void gk20a_sched_ctrl_tsg_removed(struct gk20a *, struct tsg_gk20a *);
58int gk20a_sched_ctrl_init(struct gk20a *);
59
60void gk20a_sched_ctrl_cleanup(struct gk20a *g);
61
62#endif /* __SCHED_GK20A_H */