gpu: nvgpu: GPU NEXT FALCON2 update

- Flag to know FALCON2 support is enabled or not
- Add FALCON2 bootrom config HAL which is required to
  bootstrap GPU NEXT NS PMU RTOS ucode

JIRA NVGPU-5215

Change-Id: Id9e77a15315d670c39a61d763005338f9c696e51
Signed-off-by: mkumbar <mkumbar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2413959
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Goyal <dgoyal@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@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-09-15 20:01:27 +05:30
committed by Alex Waterman
parent 221475f753
commit f27c974dc5
2 changed files with 4 additions and 0 deletions

View File

@@ -219,6 +219,8 @@ struct nvgpu_falcon {
u32 flcn2_base;
/** Indicates if the falcon is supported and initialized for use. */
bool is_falcon_supported;
/** Indicates if the falcon2 is enabled or not. */
bool is_falcon2_enabled;
/** Indicates if the falcon interrupts are enabled. */
bool is_interrupt_enabled;
/** Lock to access the falcon's IMEM. */

View File

@@ -55,6 +55,8 @@ struct gops_falcon {
u32 (*get_brom_retcode)(struct nvgpu_falcon *flcn);
u32 (*dmemc_blk_mask)(void);
bool (*check_brom_passed)(u32 retcode);
void (*brom_config)(struct nvgpu_falcon *flcn, u64 fmc_code_addr,
u64 fmc_data_addr, u64 manifest_addr);
u32 (*imemc_blk_field)(u32 blk);
void (*bootstrap)(struct nvgpu_falcon *flcn,
u32 boot_vector);