diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2017-02-28 19:17:04 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-02 11:53:33 -0500 |
commit | 434b1c588b9c8d61ac413b0c9ae402b483deb68b (patch) | |
tree | 15545a2a436724bbe90e71c028869707a1587522 /drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ltc_gv11b.h | |
parent | 58c72012f4a8b554083cdf7ea8061b98e8de02dc (diff) |
gpu: nvgpu: gv11b: handle l2 related changes
Implemented gv11b specific l2 state init and Configured
ltc_ltcs_ltss_cbc_num_active_ltcs_r with following info:
- cbc_num_active_ltcs is read only for gv11b, so did not
write any data to that field.
- enforced serilized access to l2 from sysmem and peermem.
- nvlink connected peer trafic sent through l2
JIRA GV11B-71
Change-Id: I63d9ee3f0a6da62e672a34e207f1f5214b6ed1b4
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/1312831
GVS: Gerrit_Virtual_Submit
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ltc_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ltc_gv11b.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ltc_gv11b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ltc_gv11b.h index 6968c699..45d3df07 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ltc_gv11b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ltc_gv11b.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2016-2017, 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, |
@@ -174,6 +174,26 @@ static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_r(void) | |||
174 | { | 174 | { |
175 | return 0x0017e27c; | 175 | return 0x0017e27c; |
176 | } | 176 | } |
177 | static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs__v(u32 r) | ||
178 | { | ||
179 | return (r >> 0) & 0x1f; | ||
180 | } | ||
181 | static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_nvlink_peer_through_l2_f(u32 v) | ||
182 | { | ||
183 | return (v & 0x1) << 24; | ||
184 | } | ||
185 | static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_nvlink_peer_through_l2_v(u32 r) | ||
186 | { | ||
187 | return (r >> 24) & 0x1; | ||
188 | } | ||
189 | static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_serialize_f(u32 v) | ||
190 | { | ||
191 | return (v & 0x1) << 25; | ||
192 | } | ||
193 | static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_serialize_v(u32 r) | ||
194 | { | ||
195 | return (r >> 25) & 0x1; | ||
196 | } | ||
177 | static inline u32 ltc_ltcs_misc_ltc_num_active_ltcs_r(void) | 197 | static inline u32 ltc_ltcs_misc_ltc_num_active_ltcs_r(void) |
178 | { | 198 | { |
179 | return 0x0017e000; | 199 | return 0x0017e000; |