summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h
diff options
context:
space:
mode:
authorDavid Nieto <dmartineznie@nvidia.com>2017-05-18 19:50:57 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-24 07:55:59 -0400
commit05388ad24a61c43a110e3d235622c23a356b5df7 (patch)
tree98e4eacd09571d8575a49977e268c3410a0e6834 /drivers/gpu/nvgpu/gk20a/ecc_gk20a.h
parent94226c9c1ed67be2dd146648b0460ef7346a2900 (diff)
gpu: nvgpu: re-arrange parity counters
(1) Re-arrange the structure for parity counters reporting so multiple units can be managed JIRA: GPUT19X-84 Change-Id: If59a883dfe22d5a1d91a6d0ed2f5a6254434ffcb Signed-off-by: David Nieto <dmartineznie@nvidia.com> Reviewed-on: http://git-master/r/1485276 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ecc_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/ecc_gk20a.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h b/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h
new file mode 100644
index 00000000..8ba01226
--- /dev/null
+++ b/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h
@@ -0,0 +1,48 @@
1/*
2 * GK20A ECC
3 *
4 * Copyright (c) 2017, 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 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18#ifndef ECC_GK20A_H
19#define ECC_GK20A_H
20
21#include <uapi/linux/nvgpu.h>
22
23struct gk20a_ecc_stat {
24 char **names;
25 u32 *counters;
26 struct hlist_node hash_node;
27};
28
29#ifdef CONFIG_ARCH_TEGRA_18x_SOC
30#include "ecc_t18x.h"
31#endif
32#ifdef CONFIG_TEGRA_19x_GPU
33#include "ecc_t19x.h"
34#endif
35
36struct ecc_gk20a {
37 /* Stats per engine */
38 struct {
39#ifdef CONFIG_ARCH_TEGRA_18x_SOC
40 struct ecc_gr_t18x t18x;
41#endif
42#ifdef CONFIG_TEGRA_19x_GPU
43 struct ecc_gr_t19x t19x;
44#endif
45 } gr;
46};
47
48#endif /*__ECC_GK20A_H__*/