summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/fifo_gp106.c
diff options
context:
space:
mode:
authorLakshmanan M <lm@nvidia.com>2016-06-15 00:53:43 -0400
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:56:17 -0500
commit39f3a8b89fbd7589bb911d64f894c0c7d56fb694 (patch)
tree7594ade644c6f0d25540f80562c4eb4ceadcae58 /drivers/gpu/nvgpu/gp106/fifo_gp106.c
parenta445c27d5bb2989f6865b5c267b22c9edbe6cc31 (diff)
gpu: nvgpu: Add fifo conf support for gp10x
Added fifo configuration support for gp104 and gp106. These GPU chips have more number of channel fifo and runlist than gp10b. Added get_num_fifos and eng_runlist_base_size function pointer to find out the actual value from HW headers. JIRA DNVGPU-25 Change-Id: I2322a6354eaa2af2b2605f3e9eedebf9827c7dda Signed-off-by: Lakshmanan M <lm@nvidia.com> Reviewed-on: http://git-master/r/1164653 Reviewed-by: Konsta Holtta <kholtta@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/fifo_gp106.c')
-rw-r--r--drivers/gpu/nvgpu/gp106/fifo_gp106.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/fifo_gp106.c b/drivers/gpu/nvgpu/gp106/fifo_gp106.c
new file mode 100644
index 00000000..3c70d517
--- /dev/null
+++ b/drivers/gpu/nvgpu/gp106/fifo_gp106.c
@@ -0,0 +1,30 @@
1/*
2 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 */
13
14#include "gk20a/gk20a.h"
15#include "gp10b/fifo_gp10b.h"
16#include "fifo_gp106.h"
17#include "hw_ccsr_gp106.h"
18#include "hw_fifo_gp106.h"
19
20static u32 gp106_fifo_get_num_fifos(struct gk20a *g)
21{
22 return ccsr_channel__size_1_v();
23}
24
25void gp106_init_fifo(struct gpu_ops *gops)
26{
27 gp10b_init_fifo(gops);
28 gops->fifo.get_num_fifos = gp106_fifo_get_num_fifos;
29 gops->fifo.eng_runlist_base_size = fifo_eng_runlist_base__size_1_v;
30}