diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index ff9bb5e2..0c1c6d8f 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -229,17 +229,17 @@ static inline void pramin_access_batch_wr_n(struct gk20a *g, u32 start, | |||
229 | { | 229 | { |
230 | u32 r = start, *src_u32 = *arg; | 230 | u32 r = start, *src_u32 = *arg; |
231 | 231 | ||
232 | while (words--) { | ||
233 | writel_relaxed(*src_u32++, g->regs + r); | ||
234 | r += sizeof(u32); | ||
235 | } | ||
236 | |||
232 | /* | 237 | /* |
233 | * Barrier moved here from gk20a_writel in the loop. The writes don't | 238 | * Barrier moved here from gk20a_writel in the loop. The writes don't |
234 | * have to be ordered. | 239 | * have to be ordered. |
235 | */ | 240 | */ |
236 | wmb(); | 241 | wmb(); |
237 | 242 | ||
238 | while (words--) { | ||
239 | writel_relaxed(*src_u32++, g->regs + r); | ||
240 | r += sizeof(u32); | ||
241 | } | ||
242 | |||
243 | *arg = src_u32; | 243 | *arg = src_u32; |
244 | } | 244 | } |
245 | 245 | ||
@@ -248,16 +248,16 @@ static inline void pramin_access_batch_set(struct gk20a *g, u32 start, | |||
248 | { | 248 | { |
249 | u32 r = start, repeat = **arg; | 249 | u32 r = start, repeat = **arg; |
250 | 250 | ||
251 | while (words--) { | ||
252 | writel_relaxed(repeat, g->regs + r); | ||
253 | r += sizeof(u32); | ||
254 | } | ||
255 | |||
251 | /* | 256 | /* |
252 | * Barrier moved here from gk20a_writel in the loop. The writes don't | 257 | * Barrier moved here from gk20a_writel in the loop. The writes don't |
253 | * have to be ordered. | 258 | * have to be ordered. |
254 | */ | 259 | */ |
255 | wmb(); | 260 | wmb(); |
256 | |||
257 | while (words--) { | ||
258 | writel_relaxed(repeat, g->regs + r); | ||
259 | r += sizeof(u32); | ||
260 | } | ||
261 | } | 261 | } |
262 | 262 | ||
263 | u32 gk20a_mem_rd32(struct gk20a *g, struct mem_desc *mem, u32 w) | 263 | u32 gk20a_mem_rd32(struct gk20a *g, struct mem_desc *mem, u32 w) |