mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
Changes
1. Created gsp hal function to read the hardware config register
to tell whether the board is debug fused.
2. Created function to get the binary file names as per debug fuse.
NVGPU-9295
Bug 3897331
Signed-off-by: rmylavarapu <rmylavarapu@nvidia.com>
Change-Id: Ia8462aa6f3d8d0d538c06f35245c965e106b3d37
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2822443
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Mahantesh Kumbar <mkumbar@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
58 lines
2.4 KiB
C
58 lines
2.4 KiB
C
/*
|
|
* Copyright (c) 2021-2022, 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 GSP_GA10B_H
|
|
#define GSP_GA10B_H
|
|
|
|
u32 ga10b_gsp_falcon_base_addr(void);
|
|
u32 ga10b_gsp_falcon2_base_addr(void);
|
|
int ga10b_gsp_engine_reset(struct gk20a *g);
|
|
bool ga10b_gsp_validate_mem_integrity(struct gk20a *g);
|
|
bool ga10b_gsp_is_debug_mode_en(struct gk20a *g);
|
|
#ifdef CONFIG_NVGPU_GSP_SCHEDULER
|
|
void ga10b_gsp_flcn_setup_boot_config(struct gk20a *g);
|
|
|
|
/* queue */
|
|
u32 ga10b_gsp_queue_head_r(u32 i);
|
|
u32 ga10b_gsp_queue_head__size_1_v(void);
|
|
u32 ga10b_gsp_queue_tail_r(u32 i);
|
|
u32 ga10b_gsp_queue_tail__size_1_v(void);
|
|
int ga10b_gsp_queue_head(struct gk20a *g, u32 queue_id, u32 queue_index,
|
|
u32 *head, bool set);
|
|
int ga10b_gsp_queue_tail(struct gk20a *g, u32 queue_id, u32 queue_index,
|
|
u32 *tail, bool set);
|
|
void ga10b_gsp_msgq_tail(struct gk20a *g, struct nvgpu_gsp *gsp,
|
|
u32 *tail, bool set);
|
|
int ga10b_gsp_flcn_copy_to_emem(struct gk20a *g,
|
|
u32 dst, u8 *src, u32 size, u8 port);
|
|
int ga10b_gsp_flcn_copy_from_emem(struct gk20a *g,
|
|
u32 src, u8 *dst, u32 size, u8 port);
|
|
|
|
/* interrupt */
|
|
void ga10b_gsp_enable_irq(struct gk20a *g, bool enable);
|
|
s32 ga10b_gsp_get_emem_boundaries(struct gk20a *g,
|
|
u32 *start_emem, u32 *end_emem);
|
|
void ga10b_gsp_isr(struct gk20a *g, struct nvgpu_gsp *gsp);
|
|
void ga10b_gsp_set_msg_intr(struct gk20a *g);
|
|
#endif /* CONFIG_NVGPU_GSP_SCHEDULER */
|
|
#endif /* GSP_GA10B_H */
|