DSP侧访问无效内存地址(读写访问),会引起L3_MAIN错误,在错误记录的信息中,能否从某个寄存器中获取到具体的访问地址
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.
不好意思,添加一些额外信息:
linux kernel:
4.1.18-rt17-gc9307487-dirty
L3总线的内核错误处理打印部分语句:
snprintf(info_string, sizeof(info_string), ": %s in %s mode during %s access", (m_req_info & BIT(0)) ? "Opcode Fetch" : "Data Access", (m_req_info & BIT(1)) ? "Supervisor" : "User", (m_req_info & BIT(3)) ? "Debug" : "Functional");
当dsp模拟一个无效内存读写访问(比如0xffff ffff)的时候,串口会打印:
44000000.ocp:L3 Custom Error: MASTER DSP1_MDMA TARGET DMM_P1 (Idle): Data Access in User mode during Functional access
上面的相关信息,可以从相关寄存器中读出,但是没有找到那个寄存器可以保存访问出错的内存地址(如0xffff ffff)