diff options
author | Sourab Gupta <sourabg@nvidia.com> | 2018-03-28 02:44:12 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-04-05 08:22:58 -0400 |
commit | abd5f68eef7a1b26f95cc9dd07515b49e29219de (patch) | |
tree | 94bc998200b1a53ee6e1608d2e8fb4a2bce263f7 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 03b87689025b86b145236a9c707e31a3d3214eb0 (diff) |
gpu: nvgpu: add usermode submission interface HAL
The patch adds the HAL interfaces for handling the usermode
submission, particularly allocating channel specific usermode
userd. These interfaces are currently implemented only on QNX,
and are created accordingly. As and when linux adds the
usermode submission support, we can revisit them
if any further changes are needed.
Change-Id: I790e0ebdfaedcdc5f6bb624652b1af4549b7b062
Signed-off-by: Sourab Gupta <sourabg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1683392
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@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/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index d61423d1..4a1c2f75 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -637,6 +637,8 @@ struct gpu_ops { | |||
637 | int (*channel_suspend)(struct gk20a *g); | 637 | int (*channel_suspend)(struct gk20a *g); |
638 | int (*channel_resume)(struct gk20a *g); | 638 | int (*channel_resume)(struct gk20a *g); |
639 | void (*set_error_notifier)(struct channel_gk20a *ch, u32 error); | 639 | void (*set_error_notifier)(struct channel_gk20a *ch, u32 error); |
640 | int (*alloc_usermode_buffers)(struct channel_gk20a *c, | ||
641 | struct nvgpu_gpfifo_args *gpfifo_args); | ||
640 | #ifdef CONFIG_TEGRA_GK20A_NVHOST | 642 | #ifdef CONFIG_TEGRA_GK20A_NVHOST |
641 | int (*alloc_syncpt_buf)(struct channel_gk20a *c, | 643 | int (*alloc_syncpt_buf)(struct channel_gk20a *c, |
642 | u32 syncpt_id, struct nvgpu_mem *syncpt_buf); | 644 | u32 syncpt_id, struct nvgpu_mem *syncpt_buf); |