diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/common/pramin.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/pramin.c b/drivers/gpu/nvgpu/common/pramin.c index 688e5ce8..425bfdb4 100644 --- a/drivers/gpu/nvgpu/common/pramin.c +++ b/drivers/gpu/nvgpu/common/pramin.c | |||
@@ -96,10 +96,9 @@ void nvgpu_pramin_access_batched(struct gk20a *g, struct nvgpu_mem *mem, | |||
96 | break; | 96 | break; |
97 | } | 97 | } |
98 | 98 | ||
99 | offset /= sizeof(u32); | ||
100 | |||
101 | while (size) { | 99 | while (size) { |
102 | byteoff = g->ops.pramin.enter(g, mem, chunk, offset); | 100 | byteoff = g->ops.pramin.enter(g, mem, chunk, |
101 | offset / sizeof(u32)); | ||
103 | start_reg = g->ops.pramin.data032_r(byteoff / sizeof(u32)); | 102 | start_reg = g->ops.pramin.data032_r(byteoff / sizeof(u32)); |
104 | until_end = SZ_1M - (byteoff & (SZ_1M - 1)); | 103 | until_end = SZ_1M - (byteoff & (SZ_1M - 1)); |
105 | 104 | ||
@@ -118,7 +117,7 @@ void nvgpu_pramin_access_batched(struct gk20a *g, struct nvgpu_mem *mem, | |||
118 | list_entry); | 117 | list_entry); |
119 | offset = 0; | 118 | offset = 0; |
120 | } else { | 119 | } else { |
121 | offset += n / sizeof(u32); | 120 | offset += n; |
122 | } | 121 | } |
123 | } | 122 | } |
124 | } | 123 | } |