diff options
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c | 2 | ||||
-rw-r--r-- | include/uapi/linux/nvgpu.h | 2 |
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 | ||
131 | static struct nvgpu_flags_mapping flags_mapping[] = { | 131 | static 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 */ |