mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
- implemented a panic callback function which dumps out the snapshot section of the RCE trace buffer. - registered the panic callback function with hsp handle during handle init time. - when receiving the CAMRTC_HSP_PANIC from RCE, trigger the panic callback function to dump out the RCE snapshot. Jira CAMERASW-32243 Change-Id: I523a0b51637a6cf1091d578195c75090b52ffcd7 Signed-off-by: yizhou <yizhou@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3341536 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Shiva Dubey <sdubey@nvidia.com> Reviewed-by: Vincent Chung <vincentc@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
40 lines
1.2 KiB
C
40 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2022-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
*/
|
|
|
|
#ifndef INCLUDE_RTCPU_HSP_COMBO_H
|
|
#define INCLUDE_RTCPU_HSP_COMBO_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct camrtc_hsp;
|
|
struct device;
|
|
|
|
struct camrtc_hsp *camrtc_hsp_create(
|
|
struct device *dev,
|
|
void (*group_notify)(struct device *dev, u16 group),
|
|
long cmd_timeout);
|
|
|
|
void camrtc_hsp_free(struct camrtc_hsp *camhsp);
|
|
|
|
void camrtc_hsp_group_ring(struct camrtc_hsp *camhsp,
|
|
u16 group);
|
|
|
|
int camrtc_hsp_sync(struct camrtc_hsp *camhsp);
|
|
int camrtc_hsp_resume(struct camrtc_hsp *camhsp);
|
|
int camrtc_hsp_suspend(struct camrtc_hsp *camhsp);
|
|
int camrtc_hsp_bye(struct camrtc_hsp *camhsp);
|
|
int camrtc_hsp_ch_setup(struct camrtc_hsp *camhsp, dma_addr_t iova);
|
|
int camrtc_hsp_ping(struct camrtc_hsp *camhsp, u32 data, long timeout);
|
|
int camrtc_hsp_get_fw_hash(struct camrtc_hsp *camhsp,
|
|
u8 hash[], size_t hash_size);
|
|
int camrtc_hsp_set_operating_point(struct camrtc_hsp *camhsp,
|
|
uint32_t operating_point);
|
|
|
|
int camrtc_hsp_set_panic_callback(struct camrtc_hsp *camhsp,
|
|
void (*panic_callback)(struct device *dev));
|
|
|
|
|
|
#endif /* INCLUDE_RTCPU_HSP_COMBO_H */
|