gpu: nvgpu: ga10b: update l2 size using active sets

In some configurations, number of active l2 sets may be
reduced. Use active sets for reporting actual l2 size.
ga10b ltc.determine_L2_size_bytes hal is
updated to use active sets during l2 size calculation.

Bug 3279344

Change-Id: Icf1cf7ecd751e331a8ec3bd606f7eacb370e9027
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2595566
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Seshendra Gadagottu
2021-09-20 05:05:01 -07:00
committed by mobile promotions
parent 9266da636b
commit 6bc5e4bf3f
4 changed files with 50 additions and 1 deletions

View File

@@ -336,7 +336,7 @@ static const struct gops_ltc ga10b_ops_ltc = {
.ecc_init = gv11b_lts_ecc_init,
.init_ltc_support = nvgpu_init_ltc_support,
.ltc_remove_support = nvgpu_ltc_remove_support,
.determine_L2_size_bytes = gp10b_determine_L2_size_bytes,
.determine_L2_size_bytes = ga10b_determine_L2_size_bytes,
.init_fs_state = ga10b_ltc_init_fs_state,
.ltc_lts_set_mgmt_setup = ga10b_ltc_lts_set_mgmt_setup,
.flush = gm20b_flush_ltc,