diff options
author | Aingara Paramakuru <aparamakuru@nvidia.com> | 2014-12-24 12:24:33 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 21:03:43 -0400 |
commit | 624d7a2830370ec13402b964a1c8ff564249ddb6 (patch) | |
tree | 5ac2f3f5eef19db41ebecf4567bdc459aad02218 /drivers/gpu/nvgpu/vgpu/vgpu.c | |
parent | f6587d13e4b33cd45841c42bd493faae8a7a7658 (diff) |
gpu: nvgpu: vgpu: handle fifo and gr exceptions
Handle the gr and fifo exceptions delivered from the server
and update the channel state as needed.
Bug 1551865
Change-Id: Ie19626c6e8a72f92ffd134983fe6d84e5c6c8736
Signed-off-by: Aingara Paramakuru <aparamakuru@nvidia.com>
Reviewed-on: http://git-master/r/670329
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c index 36d65ee8..d3d793d1 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/vgpu.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Virtualized GPU | 2 | * Virtualized GPU |
3 | * | 3 | * |
4 | * Copyright (c) 2014-2015 NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2014-2015, 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, |
@@ -114,6 +114,8 @@ static int vgpu_intr_thread(void *dev_id) | |||
114 | 114 | ||
115 | if (msg->unit == TEGRA_VGPU_INTR_GR) | 115 | if (msg->unit == TEGRA_VGPU_INTR_GR) |
116 | vgpu_gr_isr(g, &msg->info.gr_intr); | 116 | vgpu_gr_isr(g, &msg->info.gr_intr); |
117 | else if (msg->unit == TEGRA_VGPU_INTR_FIFO) | ||
118 | vgpu_fifo_isr(g, &msg->info.fifo_intr); | ||
117 | 119 | ||
118 | tegra_gr_comm_release(handle); | 120 | tegra_gr_comm_release(handle); |
119 | } | 121 | } |