summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2016-11-07 13:17:56 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2016-12-15 13:15:00 -0500
commitec011cd1ee2fb3389d96ba717ad549cd12c69db1 (patch)
tree5d55b26e9b2e7bb2949b20feb50f3828e7dfcc99 /drivers/gpu/nvgpu/gk20a/gk20a.c
parent0250221955bca63ad1ff7e3474e4886132cf8445 (diff)
gpu: nvgpu: add device alarms
Add event definitions for: - Clock alarm (target frequency not met) - Thermal alarm (temperature above threshold) - Power alarm (power above threshold) - GPU shut down Jira DNVGPU-186 Change-Id: I52edd44352ed0cba83033949272f41cc9e1c630f Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: http://git-master/r/1249342 (cherry picked from commit 67a6681aade241ff24982771778f7e2193d1cd7f) Reviewed-on: http://git-master/r/1267157 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 68a358d8..5ed854d3 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -2071,6 +2071,7 @@ int gk20a_init_gpu_characteristics(struct gk20a *g)
2071 gpu->dbg_gpu_ioctl_nr_last = NVGPU_DBG_GPU_IOCTL_LAST; 2071 gpu->dbg_gpu_ioctl_nr_last = NVGPU_DBG_GPU_IOCTL_LAST;
2072 gpu->ioctl_channel_nr_last = NVGPU_IOCTL_CHANNEL_LAST; 2072 gpu->ioctl_channel_nr_last = NVGPU_IOCTL_CHANNEL_LAST;
2073 gpu->as_ioctl_nr_last = NVGPU_AS_IOCTL_LAST; 2073 gpu->as_ioctl_nr_last = NVGPU_AS_IOCTL_LAST;
2074 gpu->event_ioctl_nr_last = NVGPU_EVENT_IOCTL_LAST;
2074 gpu->gpu_va_bit_count = 40; 2075 gpu->gpu_va_bit_count = 40;
2075 2076
2076 strlcpy(gpu->chipname, g->ops.name, sizeof(gpu->chipname)); 2077 strlcpy(gpu->chipname, g->ops.name, sizeof(gpu->chipname));