gpu: nvgpu: add hal to get the bar2 vm size

On ga10b+ platforms, more VM space is needed to map various buffers
to bar2 vm. Engine method buffer is mapped for each pbdma and for
maximum supported TSGs this requires more than 32MB of space.
Also we need to consider fault buffer space and vab buffer
space requirement.

Bug 3958581

Change-Id: I9ee87119f762352ee12859b71c08a5f75b3554e0
Signed-off-by: Sagar Kamble <skamble@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2872811
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Sagar Kamble
2023-03-17 09:22:16 +00:00
committed by mobile promotions
parent 2a865e3aad
commit 53dc53a8b4
10 changed files with 133 additions and 5 deletions

View File

@@ -485,7 +485,9 @@ mm:
sources: [ hal/mm/mm_gp10b_fusa.c,
hal/mm/mm_gp10b.h,
hal/mm/mm_gv11b_fusa.c,
hal/mm/mm_gv11b.h]
hal/mm/mm_gv11b.h,
hal/mm/mm_ga10b_fusa.c,
hal/mm/mm_ga10b.h]
mm:
safe: no
sources: [ hal/mm/mm_gk20a.c,