From b6466fbe07d28fcc1a2ea93715a1f88b48dd8550 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Mon, 16 Jun 2014 12:08:18 +0530 Subject: gpu: nvgpu: add TSG support to runlists - when a TSG channel is made runnable, add it to TSG's runnable list - when a TSG channel is removed from runlist, remove it from TSG's runnable list When we rewrite the entire runlist : - first add all the channels which are not part of any TSG - then find all active TSGs, add an entry in runlist for the TSG (with TSG id and length of TSG) - then write entries for each channel in that TSG Bug 1470692 Change-Id: Ic55a4d5959abc72cd20b8224eb4c31d3ff411861 Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/416612 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/fifo_gk20a.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h index f94fce02..6e6907c1 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h @@ -30,6 +30,7 @@ struct fifo_runlist_info_gk20a { unsigned long *active_channels; + unsigned long *active_tsgs; /* Each engine has its own SW and HW runlist buffer.*/ struct runlist_mem_desc mem[MAX_RUNLIST_BUFFERS]; u32 cur_buffer; -- cgit v1.2.2