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.h | |
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.h')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.h b/drivers/gpu/nvgpu/vgpu/vgpu.h index 4677b36c..1a7ef7ba 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.h +++ b/drivers/gpu/nvgpu/vgpu/vgpu.h | |||
@@ -27,6 +27,7 @@ int vgpu_probe(struct platform_device *dev); | |||
27 | int vgpu_remove(struct platform_device *dev); | 27 | int vgpu_remove(struct platform_device *dev); |
28 | u64 vgpu_bar1_map(struct gk20a *g, struct sg_table **sgt, u64 size); | 28 | u64 vgpu_bar1_map(struct gk20a *g, struct sg_table **sgt, u64 size); |
29 | int vgpu_gr_isr(struct gk20a *g, struct tegra_vgpu_gr_intr_info *info); | 29 | int vgpu_gr_isr(struct gk20a *g, struct tegra_vgpu_gr_intr_info *info); |
30 | int vgpu_fifo_isr(struct gk20a *g, struct tegra_vgpu_fifo_intr_info *info); | ||
30 | void vgpu_init_fifo_ops(struct gpu_ops *gops); | 31 | void vgpu_init_fifo_ops(struct gpu_ops *gops); |
31 | void vgpu_init_gr_ops(struct gpu_ops *gops); | 32 | void vgpu_init_gr_ops(struct gpu_ops *gops); |
32 | void vgpu_init_ltc_ops(struct gpu_ops *gops); | 33 | void vgpu_init_ltc_ops(struct gpu_ops *gops); |
@@ -56,11 +57,18 @@ static inline int vgpu_remove(struct platform_device *dev) | |||
56 | { | 57 | { |
57 | return -ENOSYS; | 58 | return -ENOSYS; |
58 | } | 59 | } |
59 | static inline u64 vgpu_bar1_map(struct gk20a *g, struct sg_table **sgt, u64 size) | 60 | static inline u64 vgpu_bar1_map(struct gk20a *g, struct sg_table **sgt, |
61 | u64 size) | ||
60 | { | 62 | { |
61 | return 0; | 63 | return 0; |
62 | } | 64 | } |
63 | static inline int vgpu_gr_isr(struct gk20a *g, struct tegra_vgpu_gr_intr_info *info) | 65 | static inline int vgpu_gr_isr(struct gk20a *g, |
66 | struct tegra_vgpu_gr_intr_info *info) | ||
67 | { | ||
68 | return 0; | ||
69 | } | ||
70 | static inline int vgpu_fifo_isr(struct gk20a *g, | ||
71 | struct tegra_vgpu_fifo_intr_info *info) | ||
64 | { | 72 | { |
65 | return 0; | 73 | return 0; |
66 | } | 74 | } |