summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
diff options
context:
space:
mode:
authorSourab Gupta <sourabg@nvidia.com>2018-04-10 03:14:25 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-04-11 13:16:13 -0400
commitf8578c92741425ec4630bc9fe52d8537fa8a5c16 (patch)
treee723da2b770f34ae4526d7e64e9ba8b3c3a05c56 /drivers/gpu/nvgpu/gk20a/channel_gk20a.h
parent585e33e4082baaf58d3714c42200f3c72bffa218 (diff)
gpu: nvgpu: remove usage of nvgpu_gpfifo
Remove the usage of nvgpu_gpfifo splattered across nvgpu, and replace with a struct defined in common code. The usage is still inside Linux, but this helps the subsequent unification efforts, e.g. to unify the submit path. VQRM-3465 Change-Id: I9e5ac697a0c7f85239ddba319085c09481d20d6b Signed-off-by: Sourab Gupta <sourabg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1691978 Reviewed-by: Konsta Holtta <kholtta@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> 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.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
index ab1c4a6f..2008c471 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
@@ -59,6 +59,19 @@ struct nvgpu_channel_fence {
59 u32 value; 59 u32 value;
60}; 60};
61 61
62/*
63 * The binary format of 'struct nvgpu_gpfifo_entry' introduced here
64 * should match that of 'struct nvgpu_gpfifo' defined in uapi header, since
65 * this struct is intended to be a mirror copy of the uapi struct. This is
66 * a rigid requirement because there's no conversion function and there are
67 * memcpy's present between the user gpfifo (of type nvgpu_gpfifo) and the
68 * kern gpfifo (of type nvgpu_gpfifo_entry).
69 */
70struct nvgpu_gpfifo_entry {
71 u32 entry0;
72 u32 entry1;
73};
74
62struct nvgpu_gpfifo_args { 75struct nvgpu_gpfifo_args {
63 u32 num_entries; 76 u32 num_entries;
64 u32 num_inflight_jobs; 77 u32 num_inflight_jobs;