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/fifo_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/fifo_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c index 23ff8677..84bb3646 100644 --- a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | |||
@@ -566,6 +566,23 @@ int vgpu_fifo_isr(struct gk20a *g, struct tegra_vgpu_fifo_intr_info *info) | |||
566 | return 0; | 566 | return 0; |
567 | } | 567 | } |
568 | 568 | ||
569 | int vgpu_fifo_nonstall_isr(struct gk20a *g, | ||
570 | struct tegra_vgpu_fifo_nonstall_intr_info *info) | ||
571 | { | ||
572 | gk20a_dbg_fn(""); | ||
573 | |||
574 | switch (info->type) { | ||
575 | case TEGRA_VGPU_FIFO_NONSTALL_INTR_CHANNEL: | ||
576 | gk20a_channel_semaphore_wakeup(g); | ||
577 | break; | ||
578 | default: | ||
579 | WARN_ON(1); | ||
580 | break; | ||
581 | } | ||
582 | |||
583 | return 0; | ||
584 | } | ||
585 | |||
569 | void vgpu_init_fifo_ops(struct gpu_ops *gops) | 586 | void vgpu_init_fifo_ops(struct gpu_ops *gops) |
570 | { | 587 | { |
571 | gops->fifo.bind_channel = vgpu_channel_bind; | 588 | gops->fifo.bind_channel = vgpu_channel_bind; |