summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPeter Daifuku <pdaifuku@nvidia.com>2016-04-01 12:51:42 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-04-07 14:31:42 -0400
commitcefc747ba2cdf6ccb98ecf18e63b6911db3be019 (patch)
tree08f24dfc631555782d772b306583bd05a93eb6e7 /drivers
parent37155b65f1dd6039bdef92f513d86640956bc12c (diff)
gpu: nvgpu: vgpu: fix regressions causing crashes
Client OS was accessing gpu registers directly, resulting in a crash: - Use gk20a version of init_gpu_characteristics - Set cbc_ctrl callback to NULL Bug 1749990 Bug 1749896 Change-Id: I7e5eea52c5d1d0c2ca7ca5e4d34dc4fc21f4e093 Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com> Reviewed-on: http://git-master/r/1120473 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/vgpu/ltc_vgpu.c3
-rw-r--r--drivers/gpu/nvgpu/vgpu/vgpu.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/ltc_vgpu.c b/drivers/gpu/nvgpu/vgpu/ltc_vgpu.c
index 76ee5ec9..1adb8b22 100644
--- a/drivers/gpu/nvgpu/vgpu/ltc_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/ltc_vgpu.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * Virtualized GPU L2 2 * Virtualized GPU L2
3 * 3 *
4 * Copyright (c) 2014-2015 NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2014-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,
@@ -82,4 +82,5 @@ void vgpu_init_ltc_ops(struct gpu_ops *gops)
82 gops->ltc.determine_L2_size_bytes = vgpu_determine_L2_size_bytes; 82 gops->ltc.determine_L2_size_bytes = vgpu_determine_L2_size_bytes;
83 gops->ltc.init_comptags = vgpu_ltc_init_comptags; 83 gops->ltc.init_comptags = vgpu_ltc_init_comptags;
84 gops->ltc.init_fs_state = vgpu_ltc_init_fs_state; 84 gops->ltc.init_fs_state = vgpu_ltc_init_fs_state;
85 gops->ltc.cbc_ctrl = NULL;
85} 86}
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c
index 4750d7ee..ab063c9b 100644
--- a/drivers/gpu/nvgpu/vgpu/vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/vgpu.c
@@ -261,6 +261,7 @@ void vgpu_init_hal_common(struct gk20a *g)
261 vgpu_init_mm_ops(gops); 261 vgpu_init_mm_ops(gops);
262 vgpu_init_debug_ops(gops); 262 vgpu_init_debug_ops(gops);
263 vgpu_init_fecs_trace_ops(gops); 263 vgpu_init_fecs_trace_ops(gops);
264 gops->chip_init_gpu_characteristics = gk20a_init_gpu_characteristics;
264} 265}
265 266
266static int vgpu_init_hal(struct gk20a *g) 267static int vgpu_init_hal(struct gk20a *g)