From 8432f6d80a0590e8ac10849443ac27351471505e Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Mon, 6 Jun 2016 16:22:48 +0300 Subject: 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 Reviewed-on: http://git-master/r/1159523 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h') 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 { struct mem_desc sysmem_flush; - u32 pramin_base; - spinlock_t pramin_base_lock; + u32 pramin_window; + spinlock_t pramin_window_lock; #if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0) u32 force_pramin; /* via debugfs */ #else -- cgit v1.2.2