summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r--drivers/gpu/nvgpu/gm20b/debug_gm20b.c21
-rw-r--r--drivers/gpu/nvgpu/gm20b/debug_gm20b.h24
-rw-r--r--drivers/gpu/nvgpu/gm20b/hal_gm20b.c4
3 files changed, 48 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/debug_gm20b.c b/drivers/gpu/nvgpu/gm20b/debug_gm20b.c
new file mode 100644
index 00000000..b266200c
--- /dev/null
+++ b/drivers/gpu/nvgpu/gm20b/debug_gm20b.c
@@ -0,0 +1,21 @@
1/*
2 * Copyright (C) 2015 NVIDIA Corporation. All rights reserved.
3 *
4 * This software is licensed under the terms of the GNU General Public
5 * License version 2, as published by the Free Software Foundation, and
6 * may be copied, distributed, and modified under those terms.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 */
14
15#include "gk20a/gk20a.h"
16#include "debug_gm20b.h"
17
18void gm20b_init_debug_ops(struct gpu_ops *gops)
19{
20 gops->debug.show_dump = gk20a_debug_show_dump;
21}
diff --git a/drivers/gpu/nvgpu/gm20b/debug_gm20b.h b/drivers/gpu/nvgpu/gm20b/debug_gm20b.h
new file mode 100644
index 00000000..c3c5fed6
--- /dev/null
+++ b/drivers/gpu/nvgpu/gm20b/debug_gm20b.h
@@ -0,0 +1,24 @@
1/*
2 * GM20B Debug functionality
3 *
4 * Copyright (C) 2015 NVIDIA CORPORATION. All rights reserved.
5 *
6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and
8 * may be copied, distributed, and modified under those terms.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 */
16
17#ifndef _DEBUG_GM20B_H_
18#define _DEBUG_GM20B_H_
19
20struct gpu_ops;
21
22void gm20b_init_debug_ops(struct gpu_ops *gops);
23
24#endif
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
index e95f8878..5dc0c212 100644
--- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * GM20B Graphics 2 * GM20B Graphics
3 * 3 *
4 * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 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, 7 * under the terms and conditions of the GNU General Public License,
@@ -30,6 +30,7 @@
30#include "mc_gm20b.h" 30#include "mc_gm20b.h"
31#include <linux/tegra-fuse.h> 31#include <linux/tegra-fuse.h>
32#include "regops_gm20b.h" 32#include "regops_gm20b.h"
33#include "debug_gm20b.h"
33 34
34#define FUSE_OPT_PRIV_SEC_DIS_0 0x264 35#define FUSE_OPT_PRIV_SEC_DIS_0 0x264
35#define PRIV_SECURITY_DISABLE 0x01 36#define PRIV_SECURITY_DISABLE 0x01
@@ -128,6 +129,7 @@ int gm20b_init_hal(struct gk20a *g)
128 gm20b_init_pmu_ops(gops); 129 gm20b_init_pmu_ops(gops);
129 gm20b_init_clk_ops(gops); 130 gm20b_init_clk_ops(gops);
130 gm20b_init_regops(gops); 131 gm20b_init_regops(gops);
132 gm20b_init_debug_ops(gops);
131 gops->name = "gm20b"; 133 gops->name = "gm20b";
132 134
133 c->twod_class = FERMI_TWOD_A; 135 c->twod_class = FERMI_TWOD_A;