summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/gr_vgpu.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2015-12-24 04:29:04 -0500
committerSachin Nikam <snikam@nvidia.com>2016-01-13 02:00:46 -0500
commit43de9024fe1ceb204ec0802ffd442b2d30c90324 (patch)
tree7a6aa134fb174e2afb13aa4582e2ff0b0a979ca1 /drivers/gpu/nvgpu/vgpu/gr_vgpu.c
parent544873525d58a4dc4375e56798ae598c832302a7 (diff)
gpu: nvgpu: API to post channel events
Add new API gk20a_channel_post_event() which adds channel event and also calls wake_up() for channel's semaphore wq Bug 200156699 Change-Id: If56f1bf8edcce79c9248809f8476ed853b7d2d9d Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/927132 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gr_vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/gr_vgpu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gr_vgpu.c b/drivers/gpu/nvgpu/vgpu/gr_vgpu.c
index 373dfd56..4a22441c 100644
--- a/drivers/gpu/nvgpu/vgpu/gr_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/gr_vgpu.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * Virtualized GPU Graphics 2 * Virtualized GPU Graphics
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,
@@ -871,8 +871,7 @@ int vgpu_gr_isr(struct gk20a *g, struct tegra_vgpu_gr_intr_info *info)
871 wake_up(&ch->notifier_wq); 871 wake_up(&ch->notifier_wq);
872 break; 872 break;
873 case TEGRA_VGPU_GR_INTR_SEMAPHORE: 873 case TEGRA_VGPU_GR_INTR_SEMAPHORE:
874 gk20a_channel_event(ch); 874 gk20a_channel_post_event(ch);
875 wake_up(&ch->semaphore_wq);
876 break; 875 break;
877 case TEGRA_VGPU_GR_INTR_SEMAPHORE_TIMEOUT: 876 case TEGRA_VGPU_GR_INTR_SEMAPHORE_TIMEOUT:
878 gk20a_set_error_notifier(ch, 877 gk20a_set_error_notifier(ch,