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.

[参考译文] AM62L-PROCESSOR-SDK:以太网仅适用于单核。

Guru**** 2390755 points
Other Parts Discussed in Thread: AM62L

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1496592/am62l-processor-sdk-ethernet-doesn-t-work-with-single-core-only

器件型号:AM62L-PROCESSOR-SDK
主题中讨论的其他器件:AM62L

工具/软件:

将 k3-am62l3.dtsi 更改为单核、导致以太网无法正常工作。

#include "k3-am62l.dtsi"

/ {
	cpus {
		#address-cells = <1>;
		#size-cells = <0>;

		cpu-map {
			cluster0: cluster0 {
				core0 {
					cpu = <&cpu0>;
				};

	/*			core1 {
					cpu = <&cpu1>;
				}; */
			};
		};

		cpu0: cpu@0 {
			compatible = "arm,cortex-a53";
			reg = <0x000>;
			device_type = "cpu";
			enable-method = "psci";
			i-cache-size = <0x8000>;
			i-cache-line-size = <64>;
			i-cache-sets = <256>;
			d-cache-size = <0x8000>;
			d-cache-line-size = <64>;
			d-cache-sets = <128>;
			next-level-cache = <&l2_0>;
		};
/*
		cpu1: cpu@1 {
			compatible = "arm,cortex-a53";
			reg = <0x001>;
			device_type = "cpu";
			enable-method = "psci";
			i-cache-size = <0x8000>;
			i-cache-line-size = <64>;
			i-cache-sets = <256>;
			d-cache-size = <0x8000>;
			d-cache-line-size = <64>;
			d-cache-sets = <128>;
			next-level-cache = <&l2_0>;
		}; */
	};

root@am62lxx-evm:~# cat /proc/cpuinfo
processor       : 0
BogoMIPS        : 400.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

连接以太网电缆时、使输出日志保持如下所示、任一端口相同。

[   77.795889] am65-cpsw-nuss 8000000.ethernet eth0: txq:1 DRV_XOFF:0 tmo:49722 dql_avail:-217 free_desc:515
[   82.915882] am65-cpsw-nuss 8000000.ethernet eth0: NETDEV WATCHDOG: CPU: 0: transmit queue 1 timed out 54842 ms
[   82.915915] am65-cpsw-nuss 8000000.ethernet eth0: txq:1 DRV_XOFF:0 tmo:54842 dql_avail:-217 free_desc:515
[   88.035911] am65-cpsw-nuss 8000000.ethernet eth0: NETDEV WATCHDOG: CPU: 0: transmit queue 1 timed out 59962 ms

[  268.859856] am65-cpsw-nuss 8000000.ethernet eth1: NETDEV WATCHDOG: CPU: 0: transmit queue 2 timed out 5006 ms
[  268.859887] am65-cpsw-nuss 8000000.ethernet eth1: txq:2 DRV_XOFF:0 tmo:5006 dql_avail:-90 free_desc:514
[  268.963857] am65-cpsw-nuss 8000000.ethernet eth1: NETDEV WATCHDOG: CPU: 0: transmit queue 0 timed out 5008 ms
[  268.963886] am65-cpsw-nuss 8000000.ethernet eth1: txq:0 DRV_XOFF:0 tmo:5008 dql_avail:-86 free_desc:515
[  274.915861] am65-cpsw-nuss 8000000.ethernet eth1: NETDEV WATCHDOG: CPU: 0: transmit queue 0 timed out 10960 ms
[  274.915892] am65-cpsw-nuss 8000000.ethernet eth1: txq:0 DRV_XOFF:0 tmo:10960 dql_avail:-86 free_desc:515
[  280.035864] am65-cpsw-nuss 8000000.ethernet eth1: NETDEV WATCHDOG: CPU: 0: transmit queue 0 timed out 16080 ms
[  280.035894] am65-cpsw-nuss 8000000.ethernet eth1: txq:0 DRV_XOFF:0 tmo:16080 dql_avail:-86 free_desc:515

[   77.795889] am65-cpsw-nuss 8000000.ethernet eth0: txq:1 DRV_XOFF:0 tmo:49722 dql_avail:-217 free_desc:515
[   82.915882] am65-cpsw-nuss 8000000.ethernet eth0: NETDEV WATCHDOG: CPU: 0: transmit queue 1 timed out 54842 ms
[   82.915915] am65-cpsw-nuss 8000000.ethernet eth0: txq:1 DRV_XOFF:0 tmo:54842 dql_avail:-217 free_desc:515
[   88.035911] am65-cpsw-nuss 8000000.ethernet eth0: NETDEV WATCHDOG: CPU: 0: transmit queue 1 timed out 59962 ms
[   88.035942] am65-cpsw-nuss 8000000.ethernet eth0: txq:1 DRV_XOFF:0 tmo:59962 dql_avail:-217 free_desc:515
[   94.179861] am65-cpsw-nuss 8000000.ethernet eth0: NETDEV WATCHDOG: CPU: 0: transmit queue 1 timed out 66106 ms
[   94.179894] am65-cpsw-nuss 8000000.ethernet eth0: txq:1 DRV_XOFF:0 tmo:66106 dql_avail:-217 free_desc:515
[   99.811859] am65-cpsw-nuss 8000000.ethernet eth0: NETDEV WATCHDOG: CPU: 0: transmit queue 1 timed out 71738 ms

[  268.859856] am65-cpsw-nuss 8000000.ethernet eth1: NETDEV WATCHDOG: CPU: 0: transmit queue 2 timed out 5006 ms
[  268.859887] am65-cpsw-nuss 8000000.ethernet eth1: txq:2 DRV_XOFF:0 tmo:5006 dql_avail:-90 free_desc:514
[  268.963857] am65-cpsw-nuss 8000000.ethernet eth1: NETDEV WATCHDOG: CPU: 0: transmit queue 0 timed out 5008 ms
[  268.963886] am65-cpsw-nuss 8000000.ethernet eth1: txq:0 DRV_XOFF:0 tmo:5008 dql_avail:-86 free_desc:515