mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: move set_timeslice to tsg
Moved the following HALs from fifo to tsg - set_timeslice - default_timeslice_us Renamed - gk20a_tsg_set_timeslice -> nvgpu_tsg_set_timeslice - min_timeslice_us -> tsg_timeslice_min_us - max_timeslice_us -> tsg_timeslice_max_us Scale timeslice to take into account PTIMER clock in nvgpu_runlist_append_tsg. Removed gk20a_channel_get_timescale_from_timeslice, and instead moved timeout and scale computation into runlist HAL, when building TSG entry: - runlist.get_tsg_entry Use ram_rl_entry_* accessors instead of hard coded values for default and max timeslices. Added #defines for min, max and default timeslices. Jira NVGPU-3156 Change-Id: I447266c087c47c89cb6a4a7e4f30acf834b758f0 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2100052 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
7a91e5c79b
commit
3fde3ae650
@@ -388,21 +388,21 @@ void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink)
|
||||
g,
|
||||
&disable_bigpage_fops);
|
||||
|
||||
l->debugfs_timeslice_low_priority_us =
|
||||
debugfs_create_u32("timeslice_low_priority_us",
|
||||
l->debugfs_tsg_timeslice_low_priority_us =
|
||||
debugfs_create_u32("tsg_timeslice_low_priority_us",
|
||||
S_IRUGO|S_IWUSR,
|
||||
l->debugfs,
|
||||
&g->timeslice_low_priority_us);
|
||||
l->debugfs_timeslice_medium_priority_us =
|
||||
debugfs_create_u32("timeslice_medium_priority_us",
|
||||
&g->tsg_timeslice_low_priority_us);
|
||||
l->debugfs_tsg_timeslice_medium_priority_us =
|
||||
debugfs_create_u32("tsg_timeslice_medium_priority_us",
|
||||
S_IRUGO|S_IWUSR,
|
||||
l->debugfs,
|
||||
&g->timeslice_medium_priority_us);
|
||||
l->debugfs_timeslice_high_priority_us =
|
||||
debugfs_create_u32("timeslice_high_priority_us",
|
||||
&g->tsg_timeslice_medium_priority_us);
|
||||
l->debugfs_tsg_timeslice_high_priority_us =
|
||||
debugfs_create_u32("tsg_timeslice_high_priority_us",
|
||||
S_IRUGO|S_IWUSR,
|
||||
l->debugfs,
|
||||
&g->timeslice_high_priority_us);
|
||||
&g->tsg_timeslice_high_priority_us);
|
||||
l->debugfs_runlist_interleave =
|
||||
debugfs_create_bool("runlist_interleave",
|
||||
S_IRUGO|S_IWUSR,
|
||||
|
||||
Reference in New Issue
Block a user