summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2016-08-25 18:38:57 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-01-31 13:33:47 -0500
commit4bd9682c924d4e10e715f9f271a1e7461f9c1f59 (patch)
treeb033f434d7d86211cb586e8a59c4bc95cb4e4ab0 /drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.h
parent5fb7f2a262d2e9e187d8bcc4fb2ceb945fec9f8d (diff)
gpu: nvgpu: Reset priv ring properly on error
We did not follow the proper sequence to reset priv ring on error. Instead we just re-enabled priv ring, which does not reset anything. Rename the gk20a_reset_priv_ring() to gk20a_enable_priv_ring() to indicate its proper use. Add another gk20a_reset_priv_ring() which actually resets priv ring properly. Change-Id: Ied74465b1215daa447a565b7e9cafef7fbe67d1b Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1294681 Reviewed-by: Seema Khowala <seemaj@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.h b/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.h
index cb9d49c7..8a6320d7 100644
--- a/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.h
@@ -1,9 +1,7 @@
1/* 1/*
2 * drivers/video/tegra/host/gk20a/priv_ring_gk20a.h
3 *
4 * GK20A PRIV ringmaster 2 * GK20A PRIV ringmaster
5 * 3 *
6 * Copyright (c) 2011-2012, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
7 * 5 *
8 * 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
9 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -21,7 +19,7 @@
21#ifndef __PRIV_RING_GK20A_H__ 19#ifndef __PRIV_RING_GK20A_H__
22#define __PRIV_RING_GK20A_H__ 20#define __PRIV_RING_GK20A_H__
23 21
24void gk20a_reset_priv_ring(struct gk20a *g); 22void gk20a_enable_priv_ring(struct gk20a *g);
25void gk20a_priv_ring_isr(struct gk20a *g); 23void gk20a_priv_ring_isr(struct gk20a *g);
26 24
27#endif /*__PRIV_RING_GK20A_H__*/ 25#endif /*__PRIV_RING_GK20A_H__*/