TDA4VEN-Q1: SPI performance issues

Part Number: TDA4VEN-Q1

Tool/software:

Hi TI's experts,

HW Env:our own TDA4Ven board

SW Env:SDK10.0.5

We found that the current CPU usage of SPI is very high. By using the perf command to generate a flame graph, we found that the mcspi_wait_for-REG-bit function is a key influencing function.

I made some modifications based on AM4377: Linux SPI performance - Processors forum - Processors - TI E2E support forums, which reduced CPU usage by 30%. However, SPI data is inaccurate, resulting in frame loss and data verification failure.

       

What modifications can I make to ensure low SPI CPU usage and accurate communication data?

Regards.