diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2017-04-19 19:47:13 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-24 07:55:36 -0400 |
commit | b03afb6d5c4bbca5a26cc95027491c816e5e1f6d (patch) | |
tree | b59ae1b881877cf52ca921a5bf9d884f78fac648 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | a823c72219d3bb96bc9489e84b64e0038e7119d7 (diff) |
gpu: nvgpu: add ioctls to get current timeslice
Add the following ioctls
- NVGPU_CHANNEL_IOCTL_GET_TIMESLICE for channel timeslice in us
- NVGPU_TSG_IOCTL_GET_TIMESLICE for TSG timeslice in us
If timeslice has not been set explicitly, ioctl returns the
default timeslice that will be used when programming the runlist
entry.
Bug 1883271
Change-Id: Ib18fdd836323b1a2d4efceb1e27d07713bd6fca5
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: http://git-master/r/1469040
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 9ab0d202..b3292ac4 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -445,6 +445,7 @@ struct gpu_ops { | |||
445 | int (*channel_set_timeslice)(struct channel_gk20a *ch, | 445 | int (*channel_set_timeslice)(struct channel_gk20a *ch, |
446 | u32 timeslice); | 446 | u32 timeslice); |
447 | int (*tsg_set_timeslice)(struct tsg_gk20a *tsg, u32 timeslice); | 447 | int (*tsg_set_timeslice)(struct tsg_gk20a *tsg, u32 timeslice); |
448 | u32 (*default_timeslice_us)(struct gk20a *); | ||
448 | int (*force_reset_ch)(struct channel_gk20a *ch, | 449 | int (*force_reset_ch)(struct channel_gk20a *ch, |
449 | u32 err_code, bool verbose); | 450 | u32 err_code, bool verbose); |
450 | int (*engine_enum_from_type)(struct gk20a *g, u32 engine_type, | 451 | int (*engine_enum_from_type)(struct gk20a *g, u32 engine_type, |