mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
LSF loader cleanup, on gm20b/gp10b PMU falcon & other GR falcons uses different struct to store loader config which needs different functions to fill LSF loader config data, but on gv11b/gv10x/tu10a uses common falcon struct to store loader config, so made single function to fill LSF loader config data using ACR LSF struct & removed duplicate code. Removed ACR LSF loader ops which were part of PMU ops to cleanup dependency JIRA NVGPU-1148 Change-Id: I681829e05463d2517a4049433d8b0de3adeb06d9 Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2012853 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
59 lines
2.4 KiB
C
59 lines
2.4 KiB
C
/*
|
|
* GM20B ACR
|
|
*
|
|
* Copyright (c) 2015-2018, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
* to deal in the Software without restriction, including without limitation
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
* DEALINGS IN THE SOFTWARE.
|
|
*/
|
|
|
|
#ifndef NVGPU_GM20B_ACR_GM20B_H
|
|
#define NVGPU_GM20B_ACR_GM20B_H
|
|
|
|
#define GM20B_PMU_UCODE_IMAGE "gpmu_ucode_image.bin"
|
|
#define GM20B_PMU_UCODE_DESC "gpmu_ucode_desc.bin"
|
|
#define GM20B_HSBIN_PMU_UCODE_IMAGE "acr_ucode.bin"
|
|
#define GM20B_HSBIN_PMU_BL_UCODE_IMAGE "pmu_bl.bin"
|
|
#define GM20B_PMU_UCODE_SIG "pmu_sig.bin"
|
|
#define GM20B_FECS_UCODE_SIG "fecs_sig.bin"
|
|
#define T18x_GPCCS_UCODE_SIG "gpccs_sig.bin"
|
|
|
|
bool gm20b_is_pmu_supported(struct gk20a *g);
|
|
int prepare_ucode_blob(struct gk20a *g);
|
|
|
|
int acr_ucode_patch_sig(struct gk20a *g,
|
|
unsigned int *p_img,
|
|
unsigned int *p_prod_sig,
|
|
unsigned int *p_dbg_sig,
|
|
unsigned int *p_patch_loc,
|
|
unsigned int *p_patch_ind);
|
|
int gm20b_alloc_blob_space(struct gk20a *g,
|
|
size_t size, struct nvgpu_mem *mem);
|
|
void gm20b_wpr_info(struct gk20a *g, struct wpr_carveout_info *inf);
|
|
int gm20b_acr_patch_wpr_info_to_ucode(struct gk20a *g,
|
|
struct nvgpu_acr *acr, struct hs_acr *acr_desc, bool is_recovery);
|
|
int gm20b_acr_fill_bl_dmem_desc(struct gk20a *g,
|
|
struct nvgpu_acr *acr, struct hs_acr *acr_desc,
|
|
u32 *acr_ucode_header);
|
|
int gm20b_bootstrap_hs_acr(struct gk20a *g, struct nvgpu_acr *acr,
|
|
struct hs_acr *acr_desc);
|
|
void gm20b_remove_acr_support(struct nvgpu_acr *acr);
|
|
void nvgpu_gm20b_acr_sw_init(struct gk20a *g, struct nvgpu_acr *acr);
|
|
|
|
#endif /*NVGPU_GM20B_ACR_GM20B_H*/
|