summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/nvgpu_common.c
diff options
context:
space:
mode:
authorPeter Boonstoppel <pboonstoppel@nvidia.com>2016-11-28 20:33:30 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-01-12 11:23:56 -0500
commitf15a86f26527505cbe0de96ecb56736eb1686b87 (patch)
treed37b7334a3fa8170dacb13f6586697a9d896b119 /drivers/gpu/nvgpu/nvgpu_common.c
parent09dba979a85855d4bdfafbb4bf18eefab3d71099 (diff)
gpu: nvgpu: Add sysfs nodes for timeslice min/max
The timeslice values that can be selected for a particular channel/tsg are bounded by a static min/max. This change introduces two sysfs nodes that allow these bounds to be configured from userspace. min_timeslice_us max_timeslice_us Bug 200251974 Bug 1854791 Change-Id: I5d5a14225eee4090e418c7e43629324114f60768 Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com> Reviewed-on: http://git-master/r/1280372 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/nvgpu_common.c')
-rw-r--r--drivers/gpu/nvgpu/nvgpu_common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/nvgpu_common.c b/drivers/gpu/nvgpu/nvgpu_common.c
index a2673b26..7c12616f 100644
--- a/drivers/gpu/nvgpu/nvgpu_common.c
+++ b/drivers/gpu/nvgpu/nvgpu_common.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License, 5 * under the terms and conditions of the GNU General Public License,
@@ -69,6 +69,9 @@ static void nvgpu_init_timeslice(struct gk20a *g)
69 g->timeslice_low_priority_us = 1300; 69 g->timeslice_low_priority_us = 1300;
70 g->timeslice_medium_priority_us = 2600; 70 g->timeslice_medium_priority_us = 2600;
71 g->timeslice_high_priority_us = 5200; 71 g->timeslice_high_priority_us = 5200;
72
73 g->min_timeslice_us = 1000;
74 g->max_timeslice_us = 50000;
72} 75}
73 76
74static void nvgpu_init_pm_vars(struct gk20a *g) 77static void nvgpu_init_pm_vars(struct gk20a *g)