From f15a86f26527505cbe0de96ecb56736eb1686b87 Mon Sep 17 00:00:00 2001 From: Peter Boonstoppel Date: Mon, 28 Nov 2016 17:33:30 -0800 Subject: 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 Reviewed-on: http://git-master/r/1280372 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/nvgpu_common.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/nvgpu_common.c') 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 @@ /* - * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -69,6 +69,9 @@ static void nvgpu_init_timeslice(struct gk20a *g) g->timeslice_low_priority_us = 1300; g->timeslice_medium_priority_us = 2600; g->timeslice_high_priority_us = 5200; + + g->min_timeslice_us = 1000; + g->max_timeslice_us = 50000; } static void nvgpu_init_pm_vars(struct gk20a *g) -- cgit v1.2.2