This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AM62A7:[C7x]如何获取 c75 IPC 的中断号和事件 ID

Guru**** 2482075 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1457638/am62a7-c7x-how-get-interrupt-number-and-event-id-for-c75-ipc

器件型号:AM62A7

工具与软件:

亲爱的支持者、

我启用了 C7x 的 IPC、并看到它 在 ipc_notify_v0_cfg.c 中使用了 gIpcNotifyInterruptConfig_c75ss0_0、其值为:

IpcNotify_InterruptConfig gIpcNotifyInterruptConfig_c75ss0_0[IPC_NOFTIY_INTERRUPT_CONFIG_C75SS0_0_NUM] = {
    {
        .intNum = 59U, /* interrupt line on C75SS0_0 CPU */
        .eventId = 192, /* CSL int num + CLEC SOC offset */
        .numCores = 1U, /* number of cores that send messages which tied to this interrupt line */
        .coreIdList = { /* core ID's tied to this interrupt line */
        CSL_CORE_ID_MCU_R5FSS0_0
        },
    },
    {
        .intNum = 60U, /* interrupt line on C75SS0_0 CPU */
        .eventId = 193, /* CSL int num + CLEC SOC offset */
        .numCores = 1U, /* number of cores that send messages which tied to this interrupt line */
        .coreIdList = { /* core ID's tied to this interrupt line */
        CSL_CORE_ID_A53SS0_0
        },
    },
    {
        .intNum = 62U, /* interrupt line on C75SS0_0 CPU */
        .eventId = 195, /* CSL int num + CLEC SOC offset */
        .numCores = 1U, /* number of cores that send messages which tied to this interrupt line */
        .coreIdList = { /* core ID's tied to this interrupt line */
        CSL_CORE_ID_R5FSS0_0
        },
    },
};

我在 TRM 中检查了中断表、发现中断行似乎不同:

C7X256V0_CLEC_GIC_SPI_IN_76 群集0
C7X256V0_CLEC_GIC_SPI_IN_77  群集1
C7X256V0_CLEC_GIC_SPI_IN_108  群集2
C7X256V0_CLEC_GIC_SPI_IN_109  群集3

1.您能否帮助我验证上面结构中的.intNum 和 EventID 是如何计算的?  

2. CLEC_SOC_INT_START 为192。 在文档中的哪里可以找到此类信息?

谢谢、此致、

插孔

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Jack:

    请预计一两天内回复、感谢您的耐心等待!

    此致、
    Krithika

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Jack:
    .intNum 是 C7x 上的中断行、而 CLEC 本质上会将中断路由到 C7x CPU。 分配中断号的决定由 SDK 负责做出。 事件 ID 为 CLEC_SOC_INT_START (192)+中断 ID (在 TRM 中找到)(C7X256V0_CLEC_SOC_EVENT_IN_IN_0)。  C7x 的文档尚未公开、因此您无法在任何文档中找到 CLEC_SOC_INT 起始值。  

    此致、

    Shreyansh