diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index da5cc917..9769ac99 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -483,7 +483,8 @@ static inline void gk20a_mem_wr32(void *ptr, int w, u32 data) | |||
483 | static inline void gk20a_writel(struct gk20a *g, u32 r, u32 v) | 483 | static inline void gk20a_writel(struct gk20a *g, u32 r, u32 v) |
484 | { | 484 | { |
485 | gk20a_dbg(gpu_dbg_reg, " r=0x%x v=0x%x", r, v); | 485 | gk20a_dbg(gpu_dbg_reg, " r=0x%x v=0x%x", r, v); |
486 | writel(v, g->regs + r); | 486 | wmb(); |
487 | writel_relaxed(v, g->regs + r); | ||
487 | } | 488 | } |
488 | static inline u32 gk20a_readl(struct gk20a *g, u32 r) | 489 | static inline u32 gk20a_readl(struct gk20a *g, u32 r) |
489 | { | 490 | { |
@@ -495,7 +496,8 @@ static inline u32 gk20a_readl(struct gk20a *g, u32 r) | |||
495 | static inline void gk20a_bar1_writel(struct gk20a *g, u32 b, u32 v) | 496 | static inline void gk20a_bar1_writel(struct gk20a *g, u32 b, u32 v) |
496 | { | 497 | { |
497 | gk20a_dbg(gpu_dbg_reg, " b=0x%x v=0x%x", b, v); | 498 | gk20a_dbg(gpu_dbg_reg, " b=0x%x v=0x%x", b, v); |
498 | writel(v, g->bar1 + b); | 499 | wmb(); |
500 | writel_relaxed(v, g->bar1 + b); | ||
499 | } | 501 | } |
500 | 502 | ||
501 | static inline u32 gk20a_bar1_readl(struct gk20a *g, u32 b) | 503 | static inline u32 gk20a_bar1_readl(struct gk20a *g, u32 b) |