diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2016-08-31 05:40:11 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-09-08 12:43:46 -0400 |
commit | 0ca01a3355c5a17847f964f6f604b3084b4ea613 (patch) | |
tree | 144260dcf48f28217ca5944e893fdeb82e0faa47 /drivers/gpu/nvgpu/Kconfig.nvgpu | |
parent | 4e0e13d92bf19674725e1185b3aadc66e2a25fac (diff) |
gpu: nvgpu: fix non-contiguous pramin access
In pramin_access_batched(), in each iteration of the
loop we first decide size of data that we should write
in that iteration.
In case this size is equal to length of the chunk, we
need to move to use next chunk for subsequent iteration
But since we change offset variable before we check
above, we end up using same chunk in next iteration
Fix this by correcting the sequnce to first check if
we should move to next chunk and then only adjust
the offset variable
Jira DNVGPU-24
Change-Id: I58c2e24678f4c6dfbe33bf111edd06788629eca8
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1210892
(cherry picked from commit 83cc179199692d28a93b3b884c9bc094ff513298)
Reviewed-on: http://git-master/r/1213450
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/Kconfig.nvgpu')
0 files changed, 0 insertions, 0 deletions