From 624d7a2830370ec13402b964a1c8ff564249ddb6 Mon Sep 17 00:00:00 2001 From: Aingara Paramakuru Date: Wed, 24 Dec 2014 12:24:33 -0500 Subject: 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 Reviewed-on: http://git-master/r/670329 Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/vgpu/vgpu.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/vgpu/vgpu.h') 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); int vgpu_remove(struct platform_device *dev); u64 vgpu_bar1_map(struct gk20a *g, struct sg_table **sgt, u64 size); int vgpu_gr_isr(struct gk20a *g, struct tegra_vgpu_gr_intr_info *info); +int vgpu_fifo_isr(struct gk20a *g, struct tegra_vgpu_fifo_intr_info *info); void vgpu_init_fifo_ops(struct gpu_ops *gops); void vgpu_init_gr_ops(struct gpu_ops *gops); void vgpu_init_ltc_ops(struct gpu_ops *gops); @@ -56,11 +57,18 @@ static inline int vgpu_remove(struct platform_device *dev) { return -ENOSYS; } -static inline u64 vgpu_bar1_map(struct gk20a *g, struct sg_table **sgt, u64 size) +static inline u64 vgpu_bar1_map(struct gk20a *g, struct sg_table **sgt, + u64 size) { return 0; } -static inline int vgpu_gr_isr(struct gk20a *g, struct tegra_vgpu_gr_intr_info *info) +static inline int vgpu_gr_isr(struct gk20a *g, + struct tegra_vgpu_gr_intr_info *info) +{ + return 0; +} +static inline int vgpu_fifo_isr(struct gk20a *g, + struct tegra_vgpu_fifo_intr_info *info) { return 0; } -- cgit v1.2.2