diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2016-06-06 09:22:48 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-06-07 12:24:14 -0400 |
commit | 8432f6d80a0590e8ac10849443ac27351471505e (patch) | |
tree | 34e61ffc7ffe6db33a102d0d0188deb0b0e582a3 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |
parent | 697c8c1a98f09906c6513a0ed62052a375e83dc9 (diff) |
gpu: nvgpu: cache whole bar0_window for mem accesses
Save the whole bar0 window register that encodes also the target
aperture (vid/sys mem) instead of only the base address that could
overlap between the two.
JIRA DNVGPU-23
Change-Id: I2ccbea0e1f7c7310c1ca6b158afafe8fd974a615
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1159523
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index c58a4fec..e83e1111 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |||
@@ -365,8 +365,8 @@ struct mm_gk20a { | |||
365 | 365 | ||
366 | struct mem_desc sysmem_flush; | 366 | struct mem_desc sysmem_flush; |
367 | 367 | ||
368 | u32 pramin_base; | 368 | u32 pramin_window; |
369 | spinlock_t pramin_base_lock; | 369 | spinlock_t pramin_window_lock; |
370 | #if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0) | 370 | #if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0) |
371 | u32 force_pramin; /* via debugfs */ | 371 | u32 force_pramin; /* via debugfs */ |
372 | #else | 372 | #else |