gpu: nvgpu: Create separate VM space for SEC2/GSP engine

Currently SEC2/GSP uses the PMU VM space for memory access which adds
dependency on PMU, So, created separate VM space for SEC2/GSP of
size 32MB as currently used for ucode handling by these units.

SEC2/GSP VM space allocation happens if NVGPU_SUPPORT_SEC2_VM/
NVGPU_SUPPORT_GSP_VM enable flags set.

JIRA NVGPU-2910

Change-Id: I4dfe50a1c0adb7e83379bf6c15343fe57ff44c38
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2077596
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Mahantesh Kumbar
2019-03-21 12:17:42 +05:30
committed by mobile promotions
parent e4a140b7c0
commit a67729dcfc
9 changed files with 119 additions and 13 deletions

View File

@@ -185,10 +185,16 @@ struct gk20a;
/* PLATFORM_ATOMIC support */
#define NVGPU_SUPPORT_PLATFORM_ATOMIC 72
/* SEC2 VM support */
#define NVGPU_SUPPORT_SEC2_VM 73
/* GSP VM support */
#define NVGPU_SUPPORT_GSP_VM 74
/*
* Must be greater than the largest bit offset in the above list.
*/
#define NVGPU_MAX_ENABLED_BITS 73U
#define NVGPU_MAX_ENABLED_BITS 75U
/**
* nvgpu_is_enabled - Check if the passed flag is enabled.