diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2017-12-26 18:05:38 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-12-27 00:31:49 -0500 |
commit | 5b59e52d6592b14f4ce2608ce294bd52343759db (patch) | |
tree | 5d6985a45816dfe09184c77f73ac0115143d864e /drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h | |
parent | cb55553544dab4291d9b4c4f800580485a670c88 (diff) |
gpu: nvgpu: gv11b: scrub more fileds for sm l1 tag
SM L1 tag needs to scrub for following additional fields:
sm_l1_tag_ecc_control_scrub_pixprf
sm_l1_tag_ecc_control_scrub_miss_fifo
With this SM L1 TAG DBE errors after railgate/ungate
are fixed.
Bug 2039629
Change-Id: I10ce1d1dd28102f4c2f3fe2fe81801db67b76a21
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1626748
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h index 29999163..1e82456f 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h | |||
@@ -1112,6 +1112,22 @@ static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_el1_1_task_f(void | |||
1112 | { | 1112 | { |
1113 | return 0x2U; | 1113 | return 0x2U; |
1114 | } | 1114 | } |
1115 | static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_pixprf_f(u32 v) | ||
1116 | { | ||
1117 | return (v & 0x1U) << 4U; | ||
1118 | } | ||
1119 | static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_pixprf_task_f(void) | ||
1120 | { | ||
1121 | return 0x10U; | ||
1122 | } | ||
1123 | static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_miss_fifo_f(u32 v) | ||
1124 | { | ||
1125 | return (v & 0x1U) << 5U; | ||
1126 | } | ||
1127 | static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_miss_fifo_task_f(void) | ||
1128 | { | ||
1129 | return 0x20U; | ||
1130 | } | ||
1115 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_r(void) | 1131 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_r(void) |
1116 | { | 1132 | { |
1117 | return 0x00504620U; | 1133 | return 0x00504620U; |
@@ -1132,6 +1148,22 @@ static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_el1_1_init_f(void | |||
1132 | { | 1148 | { |
1133 | return 0x0U; | 1149 | return 0x0U; |
1134 | } | 1150 | } |
1151 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_pixprf_f(u32 v) | ||
1152 | { | ||
1153 | return (v & 0x1U) << 4U; | ||
1154 | } | ||
1155 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_pixprf_init_f(void) | ||
1156 | { | ||
1157 | return 0x0U; | ||
1158 | } | ||
1159 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_miss_fifo_f(u32 v) | ||
1160 | { | ||
1161 | return (v & 0x1U) << 5U; | ||
1162 | } | ||
1163 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_miss_fifo_init_f(void) | ||
1164 | { | ||
1165 | return 0x0U; | ||
1166 | } | ||
1135 | static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_r(void) | 1167 | static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_r(void) |
1136 | { | 1168 | { |
1137 | return 0x00419e34U; | 1169 | return 0x00419e34U; |