summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/hw_gmmu_gk20a.h
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2016-06-17 08:53:23 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-07-05 02:12:29 -0400
commit71478a031c3c42a737be5cfd7450414e58de849b (patch)
tree782d9cfdf4daf5889e713e7c846fba18e7896bab /drivers/gpu/nvgpu/gk20a/hw_gmmu_gk20a.h
parente12c5c8594c429357427130389da632284d79bcc (diff)
gpu: ngpu: add support for vidmem in page tables
Modify page table updates to take an aperture flag (up until gk20a_locked_gmmu_map()), don't hard-assume sysmem and propagate it to hardware. Jira DNVGPU-76 Change-Id: Ifcb22900c96db993068edd110e09368f72b06f69 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/1169307 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_gmmu_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/hw_gmmu_gk20a.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_gmmu_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_gmmu_gk20a.h
index 9b444036..0a21b6ca 100644
--- a/drivers/gpu/nvgpu/gk20a/hw_gmmu_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/hw_gmmu_gk20a.h
@@ -182,6 +182,14 @@ static inline u32 gmmu_pte_address_sys_w(void)
182{ 182{
183 return 0; 183 return 0;
184} 184}
185static inline u32 gmmu_pte_address_vid_f(u32 v)
186{
187 return (v & 0x1ffffff) << 4;
188}
189static inline u32 gmmu_pte_address_vid_w(void)
190{
191 return 0;
192}
185static inline u32 gmmu_pte_vol_w(void) 193static inline u32 gmmu_pte_vol_w(void)
186{ 194{
187 return 1; 195 return 1;