summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-06-26 06:26:19 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:10:19 -0400
commit7833606cc22354c3145094d200099c475b8591e5 (patch)
tree52d48ec662fb42265a0f25738394e62a68e21124 /drivers/gpu
parent779bfb2e3f986c412659a618e228eb6fcfbc0221 (diff)
gpu: nvgpu: Clear channel class on open
Channel class needs to be cleared when a channel is opened. Otherwise previously used channel remains, and we can accidentally use KEPLER_C methods even if KEPLER_C is not allocated. Bug 1487928 Bug 200000669 Change-Id: I3e1ae8d5edbdd82fa569b38a89a89dedb69ee773 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/428866 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index ef7195a7..33681c2a 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -757,6 +757,7 @@ static struct channel_gk20a *gk20a_open_new_channel(struct gk20a *g)
757 ch->timeout_ms_max = gk20a_get_gr_idle_timeout(g); 757 ch->timeout_ms_max = gk20a_get_gr_idle_timeout(g);
758 ch->timeout_debug_dump = true; 758 ch->timeout_debug_dump = true;
759 ch->has_timedout = false; 759 ch->has_timedout = false;
760 ch->obj_class = 0;
760 761
761 /* The channel is *not* runnable at this point. It still needs to have 762 /* The channel is *not* runnable at this point. It still needs to have
762 * an address space bound and allocate a gpfifo and grctx. */ 763 * an address space bound and allocate a gpfifo and grctx. */