diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index b921be7c..e314d6cd 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -39,7 +39,7 @@ | |||
39 | #include <linux/kthread.h> | 39 | #include <linux/kthread.h> |
40 | #include <linux/platform/tegra/common.h> | 40 | #include <linux/platform/tegra/common.h> |
41 | #include <linux/reset.h> | 41 | #include <linux/reset.h> |
42 | 42 | #include <linux/reboot.h> | |
43 | #include <linux/sched.h> | 43 | #include <linux/sched.h> |
44 | #include <linux/version.h> | 44 | #include <linux/version.h> |
45 | 45 | ||
@@ -266,8 +266,11 @@ void __nvgpu_check_gpu_state(struct gk20a *g) | |||
266 | { | 266 | { |
267 | u32 boot_0 = readl(g->regs + mc_boot_0_r()); | 267 | u32 boot_0 = readl(g->regs + mc_boot_0_r()); |
268 | 268 | ||
269 | if (boot_0 == 0xffffffff) | 269 | if (boot_0 == 0xffffffff) { |
270 | pr_err("nvgpu: GPU has disappeared from bus!!\n"); | 270 | pr_err("nvgpu: GPU has disappeared from bus!!\n"); |
271 | pr_err("nvgpu: Rebooting system!!\n"); | ||
272 | kernel_restart(NULL); | ||
273 | } | ||
271 | } | 274 | } |
272 | 275 | ||
273 | static inline void sim_writel(struct gk20a *g, u32 r, u32 v) | 276 | static inline void sim_writel(struct gk20a *g, u32 r, u32 v) |