工具/软件:
尊敬的 专家:
我在 AM62A7上使用以下版本:
使用的 SDK 版本:09_02_00_05
Linux 版本6.1.80 (AArch64-OE-Linux-gcc (GCC) 11.4.0
执行加载和卸载 SPI 驱动程序时、工作正常。
root@am62axx-evm:/opt/edgeai-gst-apps# root@am62axx-evm:/opt/edgeai-gst-apps# insmod /lib/modules/6.1.80/kernel/drivers/spi/spi-cadence-quadspi.ko [ 128.020258] ===== spi_nor_parse_smpt enter ===== [ 128.024948] ===== spi_nor_parse_smpt 1 ===== [ 128.029449] ===== spi_nor_parse_smpt 2 ===== [ 128.033751] ===== spi_nor_parse_smpt 3 ===== [ 128.038039] ===== spi_nor_get_map_in_use 1 ===== [ 128.042664] ===== read_data_mask : 8===== [ 128.046687] addr_nbytes : 3, read_dummy: 0, read_opcode : 101 [ 128.052447] spi_nor_read_raw addr : 0x800004 [ 128.056770] addr : 0x800004, buf : 0, map_id : 4 [ 128.061398] ===== read_data_mask : 64===== [ 128.065562] addr_nbytes : 3, read_dummy: 0, read_opcode : 101 [ 128.071308] spi_nor_read_raw addr : 0x800002 [ 128.075604] addr : 0x800002, buf : 0, map_id : 4 [ 128.080232] ===== read_data_mask : 4===== [ 128.084244] addr_nbytes : 3, read_dummy: 0, read_opcode : 101 [ 128.089989] spi_nor_read_raw addr : 0x800002 [ 128.094286] addr : 0x800002, buf : 0, map_id : 4 [ 128.098913] ===== spi_nor_get_map_in_use 2 ===== [ 128.103530] smpt[6] : 0, map_id : 4 [ 128.107023] smpt[10] : 1, map_id : 4 [ 128.110599] smpt[14] : 2, map_id : 4 [ 128.114173] smpt[20] : 4, map_id : 4 [ 128.117748] ===== spi_nor_get_map_in_use 3 ===== [ 128.122363] ===== ret : 92490704 ===== [ 128.126203] ===== spi_nor_parse_smpt 4 ===== [ 128.130475] ===== spi_nor_parse_smpt 5 ===== [ 128.134839] spi-nor spi0.0: s28hs512t (65536 Kbytes) [ 128.139900] 2 fixed-partitions partitions found on MTD device fc40000.spi.0 [ 128.146878] Creating 2 MTD partitions on "fc40000.spi.0": [ 128.152286] 0x000000000000-0x0000037c0000 : "ospi.tiboot3" [ 128.159341] 0x000003fc0000-0x000004000000 : "ospi.phypattern" root@am62axx-evm:/opt/edgeai-gst-apps# root@am62axx-evm:/opt/edgeai-gst-apps# root@am62axx-evm:/opt/edgeai-gst-apps# root@am62axx-evm:/opt/edgeai-gst-apps# rmmod -f spi_cadence_quadspi [ 131.744860] Deleting MTD partitions on "fc40000.spi.0": [ 131.750148] Deleting ospi.tiboot3 MTD partition [ 131.789582] Deleting ospi.phypattern MTD partition [ 131.818921] cadence-qspi fc40000.spi: Runtime PM usage count underflow! root@am62axx-evm:/opt/edgeai-gst-apps#
但是、当再次执行加载 SPI 驱动程序时、概率 SPI 驱动程序(spi-cadence-quadspi.ko)加载段错误会发生、详细的错误报告可在附件 SPI 驱动程序 probability reload failure.zip 中找到。
帮助了解导致该问题的原因是什么?
e2e.ti.com/.../spi-driver-probability-reload-failure.zip
此致