summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
diff options
context:
space:
mode:
authorSourab Gupta <sourabg@nvidia.com>2017-12-27 03:54:11 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-03-29 21:53:53 -0400
commit5c27ac91fdde693c6f57100dc7fc6be75cc6982a (patch)
tree58a3383ed8fbbcbee3e85f37a460625e6ea97d66 /drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
parentaa7ee8dac0cb29ee3244c7eef77eac8e7fc34dba (diff)
gpu: nvgpu: make fifo/ch functions called by RM Server global
The patch declares globally few channel/fifo HAL functions required for QNX code compilation (as they are being referred elsewhere in QNX code). This is required as a part of bringing in the nvgpu Channel/FIFO HAL into QNX. Jira VQRM-3058 Change-Id: Ia176535b64de981d2f7ddb20f62015a0da74fd2a Signed-off-by: Sourab Gupta <sourabg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1662411 GVS: Gerrit_Virtual_Submit Tested-by: Richard Zhao <rizhao@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/fifo_gk20a.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
index 5bd4dc57..6a7afad7 100644
--- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
@@ -862,7 +862,7 @@ int gk20a_init_fifo_reset_enable_hw(struct gk20a *g)
862 return 0; 862 return 0;
863} 863}
864 864
865static int gk20a_init_fifo_setup_sw(struct gk20a *g) 865int gk20a_init_fifo_setup_sw(struct gk20a *g)
866{ 866{
867 struct fifo_gk20a *f = &g->fifo; 867 struct fifo_gk20a *f = &g->fifo;
868 unsigned int chid, i; 868 unsigned int chid, i;
@@ -2093,7 +2093,7 @@ u32 gk20a_fifo_get_failing_engine_data(struct gk20a *g,
2093 return active_engine_id; 2093 return active_engine_id;
2094} 2094}
2095 2095
2096static bool gk20a_fifo_check_ch_ctxsw_timeout(struct channel_gk20a *ch, 2096bool gk20a_fifo_check_ch_ctxsw_timeout(struct channel_gk20a *ch,
2097 bool *verbose, u32 *ms) 2097 bool *verbose, u32 *ms)
2098{ 2098{
2099 bool recover = false; 2099 bool recover = false;
@@ -2971,7 +2971,7 @@ static void gk20a_fifo_runlist_reset_engines(struct gk20a *g, u32 runlist_id)
2971 gk20a_fifo_recover(g, engines, ~(u32)0, false, false, true); 2971 gk20a_fifo_recover(g, engines, ~(u32)0, false, false, true);
2972} 2972}
2973 2973
2974static int gk20a_fifo_runlist_wait_pending(struct gk20a *g, u32 runlist_id) 2974int gk20a_fifo_runlist_wait_pending(struct gk20a *g, u32 runlist_id)
2975{ 2975{
2976 struct nvgpu_timeout timeout; 2976 struct nvgpu_timeout timeout;
2977 unsigned long delay = GR_IDLE_CHECK_DEFAULT; 2977 unsigned long delay = GR_IDLE_CHECK_DEFAULT;
@@ -3032,7 +3032,7 @@ void gk20a_get_ch_runlist_entry(struct channel_gk20a *ch, u32 *runlist)
3032} 3032}
3033 3033
3034/* recursively construct a runlist with interleaved bare channels and TSGs */ 3034/* recursively construct a runlist with interleaved bare channels and TSGs */
3035static u32 *gk20a_runlist_construct_locked(struct fifo_gk20a *f, 3035u32 *gk20a_runlist_construct_locked(struct fifo_gk20a *f,
3036 struct fifo_runlist_info_gk20a *runlist, 3036 struct fifo_runlist_info_gk20a *runlist,
3037 u32 cur_level, 3037 u32 cur_level,
3038 u32 *runlist_entry, 3038 u32 *runlist_entry,