diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-11-06 12:45:56 -0500 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-11-17 18:12:00 -0500 |
commit | e469b21a1d8b0de70a14caaeb701395ba6f4ebc7 (patch) | |
tree | 0d12bac312f8be4cbcb20d812f58b60e542e453c /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 30632cec54048944ee364781b4b8c2676ae5dfed (diff) |
gpu: nvgpu: ZBC update without idle
Do ZBC updates without forcing engine idle first.
Bug 1698013
Change-Id: I99218c8cfd02be05dace2003b8d91921765f7ca9
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/829145
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index e43e58a0..3542a597 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -782,6 +782,14 @@ static inline u32 gk20a_readl(struct gk20a *g, u32 r) | |||
782 | gk20a_dbg(gpu_dbg_reg, " r=0x%x v=0x%x", r, v); | 782 | gk20a_dbg(gpu_dbg_reg, " r=0x%x v=0x%x", r, v); |
783 | return v; | 783 | return v; |
784 | } | 784 | } |
785 | static inline void gk20a_writel_check(struct gk20a *g, u32 r, u32 v) | ||
786 | { | ||
787 | gk20a_dbg(gpu_dbg_reg, " r=0x%x v=0x%x", r, v); | ||
788 | wmb(); | ||
789 | do { | ||
790 | writel_relaxed(v, g->regs + r); | ||
791 | } while (readl(g->regs + r) != v); | ||
792 | } | ||
785 | 793 | ||
786 | static inline void gk20a_bar1_writel(struct gk20a *g, u32 b, u32 v) | 794 | static inline void gk20a_bar1_writel(struct gk20a *g, u32 b, u32 v) |
787 | { | 795 | { |