summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/nvgpu-t18x.h
diff options
context:
space:
mode:
authorSami Kiminki <skiminki@nvidia.com>2015-08-10 05:06:18 -0400
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:52:11 -0500
commit58adb7385de5dd3dee6d1493edbf5ee33d142dbc (patch)
tree79440034da83e642b7fe472a83aa5104af9de1ea /include/uapi/linux/nvgpu-t18x.h
parent960704ca2579ba78cd7996f3b5d29c0f8461596b (diff)
gpu: nvgpu: Determine ECC-enabled units for GP10B
Determine ECC-enabled units for GP10B by reading fuses/registers. Bug 1637486 Change-Id: I6431709e3c405d6156dd96438df14d4054b48644 Signed-off-by: Sami Kiminki <skiminki@nvidia.com> Signed-off-by: Adeel Raza <araza@nvidia.com> Reviewed-on: http://git-master/r/780992 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1120463 Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include/uapi/linux/nvgpu-t18x.h')
-rw-r--r--include/uapi/linux/nvgpu-t18x.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/include/uapi/linux/nvgpu-t18x.h b/include/uapi/linux/nvgpu-t18x.h
index b2a75143..6116ec61 100644
--- a/include/uapi/linux/nvgpu-t18x.h
+++ b/include/uapi/linux/nvgpu-t18x.h
@@ -1,7 +1,7 @@
1/* 1/*
2 * NVGPU Public Interface Header 2 * NVGPU Public Interface Header
3 * 3 *
4 * Copyright (c) 2011-2014, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2011-2016, 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,
@@ -43,6 +43,21 @@
43#define NVGPU_ALLOC_OBJ_FLAGS_GFXP (1 << 1) 43#define NVGPU_ALLOC_OBJ_FLAGS_GFXP (1 << 1)
44#define NVGPU_ALLOC_OBJ_FLAGS_CILP (1 << 2) 44#define NVGPU_ALLOC_OBJ_FLAGS_CILP (1 << 2)
45 45
46/* SM LRF ECC is enabled */
47#define NVGPU_GPU_FLAGS_ECC_ENABLED_SM_LRF (1ULL << 60)
48/* SM SHM ECC is enabled */
49#define NVGPU_GPU_FLAGS_ECC_ENABLED_SM_SHM (1ULL << 61)
50/* TEX ECC is enabled */
51#define NVGPU_GPU_FLAGS_ECC_ENABLED_TEX (1ULL << 62)
52/* L2 ECC is enabled */
53#define NVGPU_GPU_FLAGS_ECC_ENABLED_LTC (1ULL << 63)
54/* All types of ECC are enabled */
55#define NVGPU_GPU_FLAGS_ALL_ECC_ENABLED \
56 (NVGPU_GPU_FLAGS_ECC_ENABLED_SM_LRF | \
57 NVGPU_GPU_FLAGS_ECC_ENABLED_SM_SHM | \
58 NVGPU_GPU_FLAGS_ECC_ENABLED_TEX | \
59 NVGPU_GPU_FLAGS_ECC_ENABLED_LTC)
60
46#endif /* _UAPI__LINUX_NVGPU_T18X_IOCTL_H_ */ 61#endif /* _UAPI__LINUX_NVGPU_T18X_IOCTL_H_ */
47 62
48 63