summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/fifo_gk20a.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
index 8085318d..f536b374 100644
--- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
@@ -2920,14 +2920,24 @@ void gk20a_get_tsg_runlist_entry(struct tsg_gk20a *tsg, u32 *runlist)
2920 ram_rl_entry_timeslice_timeout_f(tsg->timeslice_timeout); 2920 ram_rl_entry_timeslice_timeout_f(tsg->timeslice_timeout);
2921 else 2921 else
2922 runlist_entry_0 |= 2922 runlist_entry_0 |=
2923 ram_rl_entry_timeslice_scale_3_f() | 2923 ram_rl_entry_timeslice_scale_f(
2924 ram_rl_entry_timeslice_timeout_128_f(); 2924 NVGPU_FIFO_DEFAULT_TIMESLICE_SCALE) |
2925 ram_rl_entry_timeslice_timeout_f(
2926 NVGPU_FIFO_DEFAULT_TIMESLICE_TIMEOUT);
2925 2927
2926 runlist[0] = runlist_entry_0; 2928 runlist[0] = runlist_entry_0;
2927 runlist[1] = 0; 2929 runlist[1] = 0;
2928 2930
2929} 2931}
2930 2932
2933u32 gk20a_fifo_default_timeslice_us(struct gk20a *g)
2934{
2935 return (((u64)(NVGPU_FIFO_DEFAULT_TIMESLICE_TIMEOUT <<
2936 NVGPU_FIFO_DEFAULT_TIMESLICE_SCALE) *
2937 (u64)g->ptimer_src_freq) /
2938 (u64)PTIMER_REF_FREQ_HZ);
2939}
2940
2931void gk20a_get_ch_runlist_entry(struct channel_gk20a *ch, u32 *runlist) 2941void gk20a_get_ch_runlist_entry(struct channel_gk20a *ch, u32 *runlist)
2932{ 2942{
2933 runlist[0] = ram_rl_entry_chid_f(ch->hw_chid); 2943 runlist[0] = ram_rl_entry_chid_f(ch->hw_chid);