gpu: nvgpu: ACR interface update

FALCON_ID_END is used in ACR lsf_ucode_desc interface to allocate
space for dependency map but now more number of  FALCON’s supported
which will cause wrong allocation for dependency map, so required to
have its definition.

JIRA NVGPU-5462

Change-Id: Idaaa24ea1d2767a0b4ef44b1376239f945e39912
Signed-off-by: mkumbar <mkumbar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2357747
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
mkumbar
2020-06-09 11:06:12 +05:30
committed by Alex Waterman
parent 98335c29b2
commit 2dfa74c831
2 changed files with 7 additions and 2 deletions

View File

@@ -199,6 +199,11 @@ struct lsf_wpr_header {
* @ingroup NVGPURM_BLOB_CONSTRUCT
*/
/** @{*/
/**
* Size in entries of the ucode descriptor's dependency map.
*/
#define LSF_FALCON_DEPMAP_SIZE (11U)
/**
* Code/data signature details of LS falcon
*/
@@ -239,7 +244,7 @@ struct lsf_ucode_desc {
* packed dependency map used to compute the DM hashes on the code and
* data.
*/
u8 dep_map[FALCON_ID_END * 2 * 4];
u8 dep_map[LSF_FALCON_DEPMAP_SIZE * 2 * 4];
/** Message used to derive key */
u8 kdf[16];
};

View File

@@ -130,7 +130,7 @@
#define FALCON_ID_SEC2 (7U)
/** Falcon ID for MINION engine */
#define FALCON_ID_MINION (10U)
#define FALCON_ID_END (11U)
#define FALCON_ID_END (15U)
#define FALCON_ID_INVALID 0xFFFFFFFFU
#define FALCON_MAILBOX_0 0x0U