diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2018-06-25 05:35:42 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-06-27 21:40:16 -0400 |
commit | 7998233b77a343d002b699d5f348bbeb243e16f5 (patch) | |
tree | aa24afcc414be8fbccf6991804f69946e2b72525 /drivers/gpu/nvgpu/gk20a | |
parent | 2ac6fb4253fa815ed17f09a01141b938c826dac9 (diff) |
gpu: nvgpu: move submit code to common
To finish OS unification of the submit path, move the
gk20a_submit_channel_gpfifo* functions to a file that's accessible also
outside Linux code.
Also change the prefix of the submit functions from gk20a_ to nvgpu_.
Jira NVGPU-705
Change-Id: I8ca355d1eb69771fb016c7a21fc7f102ca7967d7
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1760421
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h index aa37db62..78325019 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |||
@@ -47,7 +47,7 @@ struct fifo_profile_gk20a; | |||
47 | #define NVGPU_GPFIFO_FLAGS_REPLAYABLE_FAULTS_ENABLE (1 << 2) | 47 | #define NVGPU_GPFIFO_FLAGS_REPLAYABLE_FAULTS_ENABLE (1 << 2) |
48 | #define NVGPU_GPFIFO_FLAGS_USERMODE_SUPPORT (1 << 3) | 48 | #define NVGPU_GPFIFO_FLAGS_USERMODE_SUPPORT (1 << 3) |
49 | 49 | ||
50 | /* Flags to be passed to gk20a_submit_channel_gpfifo() */ | 50 | /* Flags to be passed to nvgpu_submit_channel_gpfifo() */ |
51 | #define NVGPU_SUBMIT_FLAGS_FENCE_WAIT (1 << 0) | 51 | #define NVGPU_SUBMIT_FLAGS_FENCE_WAIT (1 << 0) |
52 | #define NVGPU_SUBMIT_FLAGS_FENCE_GET (1 << 1) | 52 | #define NVGPU_SUBMIT_FLAGS_FENCE_GET (1 << 1) |
53 | #define NVGPU_SUBMIT_FLAGS_HW_FORMAT (1 << 2) | 53 | #define NVGPU_SUBMIT_FLAGS_HW_FORMAT (1 << 2) |
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 9061236e..3c25f8fb 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -150,6 +150,7 @@ enum nvgpu_unit; | |||
150 | enum nvgpu_flush_op; | 150 | enum nvgpu_flush_op; |
151 | 151 | ||
152 | struct _resmgr_context; | 152 | struct _resmgr_context; |
153 | struct nvgpu_gpfifo_entry; | ||
153 | 154 | ||
154 | struct nvgpu_gpfifo_userdata { | 155 | struct nvgpu_gpfifo_userdata { |
155 | struct nvgpu_gpfifo_entry __user *entries; | 156 | struct nvgpu_gpfifo_entry __user *entries; |