diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-03-31 14:13:42 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-04-15 11:50:34 -0400 |
commit | 7d8e2193893454bc8e05543c956fab32b8eed54b (patch) | |
tree | afb73b81611136fd0411e17995532d6d22b0499f /drivers/gpu/nvgpu/gk20a/hw_bus_gk20a.h | |
parent | 6839341bf8ffafa115cfc0427bba694ee1d131f3 (diff) |
gpu: nvgpu: Use sysmem aperture for SoC memory
In Tegra GPU, SoC memory has to be accessed as vidmem. In discrete GPU, it
has to be accessed as sysmem.
Change-Id: I4efe71b54a9a32f0bf1f02ec4016ed74405a14c5
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1120468
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_bus_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hw_bus_gk20a.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_bus_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_bus_gk20a.h index 44ef9424..8a69c573 100644 --- a/drivers/gpu/nvgpu/gk20a/hw_bus_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/hw_bus_gk20a.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2012-2015, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2012-2016, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -62,6 +62,14 @@ static inline u32 bus_bar1_block_target_vid_mem_f(void) | |||
62 | { | 62 | { |
63 | return 0x0; | 63 | return 0x0; |
64 | } | 64 | } |
65 | static inline u32 bus_bar1_block_target_sys_mem_coh_f(void) | ||
66 | { | ||
67 | return 0x20000000; | ||
68 | } | ||
69 | static inline u32 bus_bar1_block_target_sys_mem_ncoh_f(void) | ||
70 | { | ||
71 | return 0x30000000; | ||
72 | } | ||
65 | static inline u32 bus_bar1_block_mode_virtual_f(void) | 73 | static inline u32 bus_bar1_block_mode_virtual_f(void) |
66 | { | 74 | { |
67 | return 0x80000000; | 75 | return 0x80000000; |
@@ -78,6 +86,14 @@ static inline u32 bus_bar2_block_target_vid_mem_f(void) | |||
78 | { | 86 | { |
79 | return 0x0; | 87 | return 0x0; |
80 | } | 88 | } |
89 | static inline u32 bus_bar2_block_target_sys_mem_coh_f(void) | ||
90 | { | ||
91 | return 0x20000000; | ||
92 | } | ||
93 | static inline u32 bus_bar2_block_target_sys_mem_ncoh_f(void) | ||
94 | { | ||
95 | return 0x30000000; | ||
96 | } | ||
81 | static inline u32 bus_bar2_block_mode_virtual_f(void) | 97 | static inline u32 bus_bar2_block_mode_virtual_f(void) |
82 | { | 98 | { |
83 | return 0x80000000; | 99 | return 0x80000000; |