summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-09-19 02:34:01 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:11:23 -0400
commitd65f23cb9ad9d270560ec00c775e60ab559e8e93 (patch)
tree8a10da4e6a60665a38fef302565b80c5b6af93de /drivers/gpu/nvgpu/gm20b/fifo_gm20b.c
parentb05d85a29da43c62a0ca1113ba6a9ab14ceb1a1c (diff)
gpu: nvgpu: Support 512 channels in gm20b
Retrieve channel count from gm20b specific header instead of the gk20a header. This increases channel count from 128 to 512. Change-Id: I96d4887432852795f7f526e33f0d3d2458f3af0e Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/500623
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/fifo_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/fifo_gm20b.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c b/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c
index 86d049cf..cdc8c810 100644
--- a/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c
@@ -99,6 +99,11 @@ static void gm20b_fifo_trigger_mmu_fault(struct gk20a *g,
99 gk20a_writel(g, fifo_trigger_mmu_fault_r(engine_id), 0); 99 gk20a_writel(g, fifo_trigger_mmu_fault_r(engine_id), 0);
100} 100}
101 101
102static u32 gm20b_fifo_get_num_fifos(struct gk20a *g)
103{
104 return ccsr_channel__size_1_v();
105}
106
102void gm20b_init_fifo(struct gpu_ops *gops) 107void gm20b_init_fifo(struct gpu_ops *gops)
103{ 108{
104 gops->fifo.bind_channel = channel_gm20b_bind; 109 gops->fifo.bind_channel = channel_gm20b_bind;
@@ -112,4 +117,5 @@ void gm20b_init_fifo(struct gpu_ops *gops)
112 gops->fifo.update_runlist = gk20a_fifo_update_runlist; 117 gops->fifo.update_runlist = gk20a_fifo_update_runlist;
113 gops->fifo.trigger_mmu_fault = gm20b_fifo_trigger_mmu_fault; 118 gops->fifo.trigger_mmu_fault = gm20b_fifo_trigger_mmu_fault;
114 gops->fifo.wait_engine_idle = gk20a_fifo_wait_engine_idle; 119 gops->fifo.wait_engine_idle = gk20a_fifo_wait_engine_idle;
120 gops->fifo.get_num_fifos = gm20b_fifo_get_num_fifos;
115} 121}