summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/fifo_gp10b.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2015-01-16 12:15:20 -0500
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:52:03 -0500
commiteff1aa4d9212f76f24d362bc1f871bf82baa5d98 (patch)
tree44a218d9e293beee1077a8a0071fda27e724d1da /drivers/gpu/nvgpu/gp10b/fifo_gp10b.c
parent7b70eb224a008b5debd1a6220d7835d6ebef70a0 (diff)
gpu: nvgpu: gp10b: Set correct PBDMA signature
GPFIFO class was set to Maxwell class number. Also implement the PBDMA signature HAL. Change-Id: Ieaebcda8af96d5779289b311c0c433e8b4349234 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/672921
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/fifo_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/fifo_gp10b.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/fifo_gp10b.c b/drivers/gpu/nvgpu/gp10b/fifo_gp10b.c
new file mode 100644
index 00000000..d67c7ee2
--- /dev/null
+++ b/drivers/gpu/nvgpu/gp10b/fifo_gp10b.c
@@ -0,0 +1,32 @@
1/*
2 * GP10B fifo
3 *
4 * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 */
15
16#include <linux/types.h>
17
18#include "gk20a/gk20a.h"
19#include "gm20b/fifo_gm20b.h"
20#include "hw_pbdma_gp10b.h"
21
22static u32 gp10b_fifo_get_pbdma_signature(struct gk20a *g)
23{
24 return g->gpu_characteristics.gpfifo_class
25 | pbdma_signature_sw_zero_f();
26}
27
28void gp10b_init_fifo(struct gpu_ops *gops)
29{
30 gm20b_init_fifo(gops);
31 gops->fifo.get_pbdma_signature = gp10b_fifo_get_pbdma_signature;
32}