diff options
author | Sourab Gupta <sourabg@nvidia.com> | 2018-04-10 02:35:09 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-04-11 13:16:09 -0400 |
commit | 585e33e4082baaf58d3714c42200f3c72bffa218 (patch) | |
tree | 0258a738f37e96aab4d11ae8ac3a4d78e3680c4b /drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |
parent | f3d22faef874901808746d957d2f97e6ca07a977 (diff) |
gpu: nvgpu: remove usage of nvgpu_fence
Remove the usage of nvgpu_fence 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: Ic3737450123dfc5e1c40ca5b6b8d8f6b3070aa0d
Signed-off-by: Sourab Gupta <sourabg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1691977
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 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h index cd5bf7d7..ab1c4a6f 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h | |||
@@ -47,6 +47,18 @@ 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 | /* | ||
51 | * The binary format of 'struct nvgpu_channel_fence' introduced here | ||
52 | * should match that of 'struct nvgpu_fence' defined in uapi header, since | ||
53 | * this struct is intended to be a mirror copy of the uapi struct. This is | ||
54 | * not a hard requirement though because of nvgpu_get_fence_args conversion | ||
55 | * function. | ||
56 | */ | ||
57 | struct nvgpu_channel_fence { | ||
58 | u32 id; | ||
59 | u32 value; | ||
60 | }; | ||
61 | |||
50 | struct nvgpu_gpfifo_args { | 62 | struct nvgpu_gpfifo_args { |
51 | u32 num_entries; | 63 | u32 num_entries; |
52 | u32 num_inflight_jobs; | 64 | u32 num_inflight_jobs; |