gpu: nvgpu: Set max_ways_evict_cache to maximum

This is setting evict_max_ways for L2 cache to the maximum
supported value for safety.

In normal build L2 cache MAX_EVICT_LAST is configure via
KMD and RegOps. RegOps is enabled only on standard build
with CONFIG_DEBUGGER flag. This method we cant use it for
safety build. Safety we can make use of the patch buffer
to patch the register while creating the context.

JIRA NVGPU-8227

Change-Id: Iec5d73197239b9cad31c6b593ca2b87c224aad5e
Signed-off-by: Dinesh T <dt@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2708702
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Dinesh T
2022-05-06 09:27:42 +00:00
committed by mobile promotions
parent 802aadf263
commit 6e4c3275bf
5 changed files with 37 additions and 2 deletions

View File

@@ -901,6 +901,10 @@ int nvgpu_gr_obj_ctx_alloc(struct gk20a *g,
g->ops.gr.init.set_default_compute_regs != NULL) {
g->ops.gr.init.set_default_compute_regs(g, gr_ctx);
}
if (g->ops.ltc.set_default_l2_max_ways_evict_last != NULL) {
g->ops.ltc.set_default_l2_max_ways_evict_last(g, gr_ctx);
}
#endif
/*