summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2018-08-27 07:17:05 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-08-31 00:42:57 -0400
commit16ef96d4de646a97cee250b1e178f15d5e0909c3 (patch)
tree6ed5a672e22eeaea2ca2f234df751a1406c66e86 /drivers/gpu/nvgpu/gk20a/channel_gk20a.h
parent5a140928c2397be4780367d2a3b11de2c5d17446 (diff)
gpu: nvgpu: move priv cmd definitions to channel
struct priv_cmd_queue and struct priv_cmd_entry are related to the list of jobs in a channel, so move their definitions from the mm header to the channel header. Jira NVGPU-967 Change-Id: Ib0cf3fd52be463e720165a47e56b14724273473e Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1807371 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.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
index 0ef63d18..51207552 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
@@ -30,7 +30,7 @@
30#include <nvgpu/cond.h> 30#include <nvgpu/cond.h>
31#include <nvgpu/atomic.h> 31#include <nvgpu/atomic.h>
32#include <nvgpu/nvgpu_mem.h> 32#include <nvgpu/nvgpu_mem.h>
33 33#include <nvgpu/allocator.h>
34 34
35struct gk20a; 35struct gk20a;
36struct dbg_session_gk20a; 36struct dbg_session_gk20a;
@@ -109,6 +109,22 @@ struct notification {
109 u16 status; 109 u16 status;
110}; 110};
111 111
112struct priv_cmd_queue {
113 struct nvgpu_mem mem;
114 u32 size; /* num of entries in words */
115 u32 put; /* put for priv cmd queue */
116 u32 get; /* get for priv cmd queue */
117};
118
119struct priv_cmd_entry {
120 bool valid;
121 struct nvgpu_mem *mem;
122 u32 off; /* offset in mem, in u32 entries */
123 u64 gva;
124 u32 get; /* start of entry in queue */
125 u32 size; /* in words */
126};
127
112struct channel_gk20a_job { 128struct channel_gk20a_job {
113 struct nvgpu_mapped_buf **mapped_buffers; 129 struct nvgpu_mapped_buf **mapped_buffers;
114 int num_mapped_buffers; 130 int num_mapped_buffers;