summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2018-06-26 10:21:54 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-07-04 07:42:10 -0400
commit26fe0fbc92bca183f4e543d45f5fc074d136eba1 (patch)
tree515328d5cedc6bfcaf2c4ed686ddd4493a291a17
parentf403800dce923c8bac982291aee213e1e3afdab0 (diff)
gpu: nvgpu: expose CAN_RAILGATE in characteristics
Bug 200327089 Change-Id: Id7bd2795647f1e29dabe41acb20d0994cdd07958 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1764267 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r--drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c2
-rw-r--r--include/uapi/linux/nvgpu.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c
index 73a8131d..f9ad8082 100644
--- a/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c
+++ b/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c
@@ -129,6 +129,8 @@ struct nvgpu_flags_mapping {
129}; 129};
130 130
131static struct nvgpu_flags_mapping flags_mapping[] = { 131static struct nvgpu_flags_mapping flags_mapping[] = {
132 {NVGPU_GPU_FLAGS_CAN_RAILGATE,
133 NVGPU_CAN_RAILGATE},
132 {NVGPU_GPU_FLAGS_HAS_SYNCPOINTS, 134 {NVGPU_GPU_FLAGS_HAS_SYNCPOINTS,
133 NVGPU_HAS_SYNCPOINTS}, 135 NVGPU_HAS_SYNCPOINTS},
134 {NVGPU_GPU_FLAGS_SUPPORT_PARTIAL_MAPPINGS, 136 {NVGPU_GPU_FLAGS_SUPPORT_PARTIAL_MAPPINGS,
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index 65e8427e..b85ca7b6 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -162,6 +162,8 @@ struct nvgpu_gpu_zbc_query_table_args {
162#define NVGPU_GPU_FLAGS_SUPPORT_VPR (1ULL << 27) 162#define NVGPU_GPU_FLAGS_SUPPORT_VPR (1ULL << 27)
163/* Allocating per-channel syncpoint in user space is supported */ 163/* Allocating per-channel syncpoint in user space is supported */
164#define NVGPU_GPU_FLAGS_SUPPORT_USER_SYNCPOINT (1ULL << 28) 164#define NVGPU_GPU_FLAGS_SUPPORT_USER_SYNCPOINT (1ULL << 28)
165/* Railgating (powering the GPU off completely) is supported and enabled */
166#define NVGPU_GPU_FLAGS_CAN_RAILGATE (1ULL << 29)
165/* SM LRF ECC is enabled */ 167/* SM LRF ECC is enabled */
166#define NVGPU_GPU_FLAGS_ECC_ENABLED_SM_LRF (1ULL << 60) 168#define NVGPU_GPU_FLAGS_ECC_ENABLED_SM_LRF (1ULL << 60)
167/* SM SHM ECC is enabled */ 169/* SM SHM ECC is enabled */