camera: Add snapshot section & HSP PANIC cmd

- Add the snapshot section into the trace buffer header struct
- Introduce a new HSP command which will be used to signal
  KMD about RCE halt.

Jira CAMERASW-32243

Change-Id: I3890b30200b3a0a386939d432842269f4c1e1225
Signed-off-by: yizhou <yizhou@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3314382
Reviewed-by: Vincent Chung <vincentc@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Semi Malinen <smalinen@nvidia.com>
Reviewed-by: Mohit Ingale <mohiti@nvidia.com>
Reviewed-by: Shiva Dubey <sdubey@nvidia.com>
This commit is contained in:
yizhou
2025-03-05 19:59:02 +00:00
committed by Jon Hunter
parent 7e77b140e3
commit d68f89d225
2 changed files with 42 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright (c) 2022-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*/
/**
@@ -576,6 +576,31 @@
*/
#define CAMRTC_HSP_BOOT_COMPLETE MK_U32(0x4B)
/**
* @brief PANIC message
*
* The CAMRTC_HSP_PANIC message message is a unidirectional message from RCE to client
* to log that RCE is about to go into a bad state. This typically occurs when RCE
* detects a critical hardware error or encounters an unrecoverable firmware state.
*
* Upon receiving this message, the client should dump out the trace buffer snapshot
* section for debugging purposes.
*
* @pre @ref CAMRTC_HSP_HELLO exchange has been completed.
*
* @par Response
* @rststar
* +-------+---------------------------------------------------+
* | Bits | Description |
* +=======+===================================================+
* | 30:24 | CAMRTC_HSP_PANIC |
* +-------+---------------------------------------------------+
* | 23:0 | 0x000000 |
* +-------+---------------------------------------------------+
* @endrst
*/
#define CAMRTC_HSP_PANIC MK_U32(0x4C)
/** Reserved, not to be used. */
#define CAMRTC_HSP_RESERVED_5E MK_U32(0x5E) /* bug 200395605 */