diff options
author | Aingara Paramakuru <aparamakuru@nvidia.com> | 2015-04-15 16:10:30 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-06-22 11:56:36 -0400 |
commit | 788776c9aa2028a0672c07271e9c06ed684f74a8 (patch) | |
tree | 7afe8a93d8076ffc3cf77279f4954f096c795492 /drivers/gpu/nvgpu/vgpu/ce2_vgpu.c | |
parent | f877d0649c40c183f02953b192b0a352e5153851 (diff) |
gpu: nvgpu: vgpu: support additional notifications
Client notification support is now added for the following:
- stalling and non-stalling GR sema release
- non-stalling FIFO channel intr
- non-stalling CE2 nonblockpipe intr
Bug 200097077
Change-Id: Icd3c076d7880e1c9ef1fcc0fc58eed9f23f39277
Signed-off-by: Aingara Paramakuru <aparamakuru@nvidia.com>
Reviewed-on: http://git-master/r/736064
(cherry picked from commit 0585d1f14d5a5ae1ccde8ccb7b7daa5593b3d1bc)
Reviewed-on: http://git-master/r/759824
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/ce2_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/ce2_vgpu.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/ce2_vgpu.c b/drivers/gpu/nvgpu/vgpu/ce2_vgpu.c new file mode 100644 index 00000000..631461f9 --- /dev/null +++ b/drivers/gpu/nvgpu/vgpu/ce2_vgpu.c | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | * Virtualized GPU CE2 | ||
3 | * | ||
4 | * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. | ||
5 | * | ||
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, | ||
8 | * version 2, as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
13 | * more details. | ||
14 | */ | ||
15 | |||
16 | #include "vgpu/vgpu.h" | ||
17 | |||
18 | int vgpu_ce2_nonstall_isr(struct gk20a *g, | ||
19 | struct tegra_vgpu_ce2_nonstall_intr_info *info) | ||
20 | { | ||
21 | gk20a_dbg_fn(""); | ||
22 | |||
23 | switch (info->type) { | ||
24 | case TEGRA_VGPU_CE2_NONSTALL_INTR_NONBLOCKPIPE: | ||
25 | gk20a_channel_semaphore_wakeup(g); | ||
26 | break; | ||
27 | default: | ||
28 | WARN_ON(1); | ||
29 | break; | ||
30 | } | ||
31 | |||
32 | return 0; | ||
33 | } | ||