summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/ltc_vgpu.c
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/gpu/nvgpu/vgpu/ltc_vgpu.c
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/gpu/nvgpu/vgpu/ltc_vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/ltc_vgpu.c3
1 files changed, 2 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}