summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-05-01 18:31:00 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-12 13:19:52 -0400
commita8cf64019f74dd05626a911af3df079efd9c7c89 (patch)
treeb88b450a989a13cb4cbd0f831cd7add30c4ef0c4 /drivers/gpu/nvgpu/gm20b/hal_gm20b.c
parent5a4926f2918b84fccefb8ddf6dbaa7b6449735bf (diff)
gpu: nvgpu: Introduce priv ring HAL and define ISR
Introduce a priv ring HAL and define ISR as the only function in it. Introduce a gp10b version of the ISR that writes error message to UART for every priv ring error, and leave the old chips with silent error handling. Bug 1846641 Change-Id: I73e38396205ac7bb7b8488b7fbca3ff67a3db3bb Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1473696 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hal_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/hal_gm20b.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
index 62cd6119..fbeed3c2 100644
--- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * GM20B Graphics 2 * GM20B Graphics
3 * 3 *
4 * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2014-2017, 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,
@@ -18,6 +18,7 @@
18#include "gk20a/css_gr_gk20a.h" 18#include "gk20a/css_gr_gk20a.h"
19#include "gk20a/bus_gk20a.h" 19#include "gk20a/bus_gk20a.h"
20#include "gk20a/flcn_gk20a.h" 20#include "gk20a/flcn_gk20a.h"
21#include "gk20a/priv_ring_gk20a.h"
21 22
22#include "ltc_gm20b.h" 23#include "ltc_gm20b.h"
23#include "ce2_gm20b.h" 24#include "ce2_gm20b.h"
@@ -218,6 +219,7 @@ int gm20b_init_hal(struct gk20a *g)
218#endif 219#endif
219 gk20a_init_bus(gops); 220 gk20a_init_bus(gops);
220 gm20b_init_mc(gops); 221 gm20b_init_mc(gops);
222 gk20a_init_priv_ring(gops);
221 gm20b_init_ltc(gops); 223 gm20b_init_ltc(gops);
222 gm20b_init_gr(gops); 224 gm20b_init_gr(gops);
223 gm20b_init_ltc(gops); 225 gm20b_init_ltc(gops);