diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c index 731074de..034d060a 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | |||
@@ -590,14 +590,16 @@ static int gk20a_init_fifo_setup_hw(struct gk20a *g) | |||
590 | smp_mb(); | 590 | smp_mb(); |
591 | 591 | ||
592 | if (v1 != gk20a_bar1_readl(g, bar1_vaddr)) { | 592 | if (v1 != gk20a_bar1_readl(g, bar1_vaddr)) { |
593 | gk20a_err(dev_from_gk20a(g), "bar1 broken @ gk20a!"); | 593 | gk20a_err(dev_from_gk20a(g), "bar1 broken @ gk20a: CPU wrote 0x%x, \ |
594 | GPU read 0x%x", *cpu_vaddr, gk20a_bar1_readl(g, bar1_vaddr)); | ||
594 | return -EINVAL; | 595 | return -EINVAL; |
595 | } | 596 | } |
596 | 597 | ||
597 | gk20a_bar1_writel(g, bar1_vaddr, v2); | 598 | gk20a_bar1_writel(g, bar1_vaddr, v2); |
598 | 599 | ||
599 | if (v2 != gk20a_bar1_readl(g, bar1_vaddr)) { | 600 | if (v2 != gk20a_bar1_readl(g, bar1_vaddr)) { |
600 | gk20a_err(dev_from_gk20a(g), "bar1 broken @ gk20a!"); | 601 | gk20a_err(dev_from_gk20a(g), "bar1 broken @ gk20a: GPU wrote 0x%x, \ |
602 | CPU read 0x%x", gk20a_bar1_readl(g, bar1_vaddr), *cpu_vaddr); | ||
601 | return -EINVAL; | 603 | return -EINVAL; |
602 | } | 604 | } |
603 | 605 | ||