diff options
author | Peter Daifuku <pdaifuku@nvidia.com> | 2016-03-09 22:10:20 -0500 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-04-07 14:05:49 -0400 |
commit | 37155b65f1dd6039bdef92f513d86640956bc12c (patch) | |
tree | 1deb57523c3acc445996c642da6ac96e1cf7c355 /drivers/gpu/nvgpu/gk20a/hw_proj_gk20a.h | |
parent | 6675c03603669c667c6ffec34567eaf101a2d09d (diff) |
gpu: nvgpu: support for hwpm context switching
Add support for hwpm context switching
Bug 1648200
Change-Id: I482899bf165cd2ef24bb8617be16df01218e462f
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: http://git-master/r/1120450
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_proj_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hw_proj_gk20a.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_proj_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_proj_gk20a.h index 93c55c30..ce10db35 100644 --- a/drivers/gpu/nvgpu/gk20a/hw_proj_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/hw_proj_gk20a.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2012-2013, 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, |
@@ -70,6 +70,10 @@ static inline u32 proj_lts_stride_v(void) | |||
70 | { | 70 | { |
71 | return 0x00000400; | 71 | return 0x00000400; |
72 | } | 72 | } |
73 | static inline u32 proj_fbpa_stride_v(void) | ||
74 | { | ||
75 | return 0x00001000; | ||
76 | } | ||
73 | static inline u32 proj_ppc_in_gpc_base_v(void) | 77 | static inline u32 proj_ppc_in_gpc_base_v(void) |
74 | { | 78 | { |
75 | return 0x00003000; | 79 | return 0x00003000; |
@@ -114,6 +118,10 @@ static inline u32 proj_scal_litter_num_fbps_v(void) | |||
114 | { | 118 | { |
115 | return 0x00000001; | 119 | return 0x00000001; |
116 | } | 120 | } |
121 | static inline u32 proj_scal_litter_num_fbpas_v(void) | ||
122 | { | ||
123 | return 0x00000001; | ||
124 | } | ||
117 | static inline u32 proj_scal_litter_num_gpcs_v(void) | 125 | static inline u32 proj_scal_litter_num_gpcs_v(void) |
118 | { | 126 | { |
119 | return 0x00000001; | 127 | return 0x00000001; |