diff options
author | Sourab Gupta <sourabg@nvidia.com> | 2018-04-10 03:14:25 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-04-11 13:16:13 -0400 |
commit | f8578c92741425ec4630bc9fe52d8537fa8a5c16 (patch) | |
tree | e723da2b770f34ae4526d7e64e9ba8b3c3a05c56 /drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |
parent | 585e33e4082baaf58d3714c42200f3c72bffa218 (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.h | 13 |
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 | */ | ||
70 | struct nvgpu_gpfifo_entry { | ||
71 | u32 entry0; | ||
72 | u32 entry1; | ||
73 | }; | ||
74 | |||
62 | struct nvgpu_gpfifo_args { | 75 | struct nvgpu_gpfifo_args { |
63 | u32 num_entries; | 76 | u32 num_entries; |
64 | u32 num_inflight_jobs; | 77 | u32 num_inflight_jobs; |