diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2018-02-21 02:49:37 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-02-26 06:48:14 -0500 |
commit | 0c46f8a5e112c08c172ee2c692832e1753ffbcce (patch) | |
tree | fae2114e3596507554fda4e35a8942b509017d80 /drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h | |
parent | 8d5536271f989e01018a543016340a3d76a2fae2 (diff) |
gpu: nvgpu: support user fence updates
Add support for user fence updates i.e. increments added by user space
in pushbuffer directly
Add a submit IOCTL flag NVGPU_SUBMIT_GPFIFO_FLAGS_USER_FENCE_UPDATE to indicate
if User has added increments in pushbuffer
If yes, number_of_increment value is received in fence.value from User
If User is adding increments in the pushbuffer then we don't need to do any job
tracking in the kernel
So fail the submit if we evaluate need_job_tracking to true and
FLAGS_USER_FENCE_UPDATE is set
User is responsible for ensuring all pre-requisites for a fast submit and to
prevent kernel job tracking
Since user space adds increments in the pushbuffer, just handle the threshold
book keeping in kernel.
Bug 200326065
Jira NVGPU-179
Change-Id: Ic0f0b1aa69e3389a4c3305fb6a559c5113719e0f
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1661854
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: Konsta Holtta <kholtta@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_sync_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h index fe1d8526..c80ebd38 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.h | |||
@@ -105,6 +105,9 @@ struct gk20a_channel_sync { | |||
105 | /* Returns the sync point address of sync point or 0 if not supported */ | 105 | /* Returns the sync point address of sync point or 0 if not supported */ |
106 | u64 (*syncpt_address)(struct gk20a_channel_sync *s); | 106 | u64 (*syncpt_address)(struct gk20a_channel_sync *s); |
107 | 107 | ||
108 | /* Handle user added increments in the push buffer */ | ||
109 | u32 (*add_user_incrs)(struct gk20a_channel_sync *s, u32 val); | ||
110 | |||
108 | /* Free the resources allocated by gk20a_channel_sync_create. */ | 111 | /* Free the resources allocated by gk20a_channel_sync_create. */ |
109 | void (*destroy)(struct gk20a_channel_sync *s); | 112 | void (*destroy)(struct gk20a_channel_sync *s); |
110 | }; | 113 | }; |