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/gm20b/hw_gr_gm20b.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/gm20b/hw_gr_gm20b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h index 4930d4c7..dbe54860 100644 --- a/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h | |||
@@ -838,6 +838,14 @@ static inline u32 gr_fecs_current_ctx_target_vid_mem_f(void) | |||
838 | { | 838 | { |
839 | return 0x0; | 839 | return 0x0; |
840 | } | 840 | } |
841 | static inline u32 gr_fecs_current_ctx_target_sys_mem_coh_f(void) | ||
842 | { | ||
843 | return 0x20000000; | ||
844 | } | ||
845 | static inline u32 gr_fecs_current_ctx_target_sys_mem_ncoh_f(void) | ||
846 | { | ||
847 | return 0x30000000; | ||
848 | } | ||
841 | static inline u32 gr_fecs_current_ctx_valid_s(void) | 849 | static inline u32 gr_fecs_current_ctx_valid_s(void) |
842 | { | 850 | { |
843 | return 1; | 851 | return 1; |