Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Kernel 5.15.68] encx24j600 device driver issue over SAMA5D2 MPU #250

Open
afinfante opened this issue May 8, 2023 · 1 comment
Open

Comments

@afinfante
Copy link

Dear community,
In the integration on my custom board that is stated in the title of this issue I am having problems with the driver of the same. The PMOD NIC100 is fully functional, but I have to perform a power cycle whenever I copy files using scp. Do you know what could be happening?

I have done some research on the internet but nothing remarkable.

P.D.: the interrupt I have assigned to it in the board dts is 35 (active low).

root@board:~# [   67.129354] ------------[ cut here ]------------
[   67.133940] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:477 0xc04bca78
[   67.140988] NETDEV WATCHDOG: eth0 (encx24j600): transmit queue 0 timed out
[   67.147822] CPU: 0 PID: 0 Comm: swapper Not tainted 5.15.68-linux4microchip-2022.10 #1
[   67.156491] Hardware name: Atmel SAMA5
[   67.160239] Function entered at [<c010a9b0>] from [<c0108e1c>]
[   67.166037] Function entered at [<c0108e1c>] from [<c0558b68>]
[   67.171850] Function entered at [<c0558b68>] from [<c0558c08>]
[   67.177660] Function entered at [<c0558c08>] from [<c04bca78>]
[   67.183473] Function entered at [<c04bca78>] from [<c0151a7c>]
[   67.189285] Function entered at [<c0151a7c>] from [<c0151ccc>]
[   67.195096] Function entered at [<c0151ccc>] from [<c0151d00>]
[   67.200907] Function entered at [<c0151d00>] from [<c01013b0>]
[   67.206720] Function entered at [<c01013b0>] from [<c01179f8>]
[   67.212533] Function entered at [<c01179f8>] from [<c01459bc>]
[   67.218345] Function entered at [<c01459bc>] from [<c0100b7c>]
[   67.224154] Exception stack(0xc0801f20 to 0xc0801f68)
[   67.229203] 1f20: 00000000 c0859540 ffffa503 c010f5c0 00000000 00000000 c0800000 ffffffff
[   67.237354] 1f40: c0803200 00000000 c0728a54 00000000 00000000 c0801f70 c0106b50 c0106b40
[   67.245497] 1f60: 600f0013 ffffffff
[   67.248967] Function entered at [<c0100b7c>] from [<c0106b40>]
[   67.254778] Function entered at [<c0106b40>] from [<c0560178>]
[   67.260590] Function entered at [<c0560178>] from [<c0135aec>]
[   67.266403] Function entered at [<c0135aec>] from [<c0135f24>]
[   67.272213] Function entered at [<c0135f24>] from [<c0700f3c>]
[   67.278025] ---[ end trace a20dc2249e19f7a7 ]---

Thanks in advance,
Alejandro

@afinfante
Copy link
Author

The problem persists in the kernel version 6.1.22

vishwamartur added a commit to vishwamartur/meta-atmel that referenced this issue Nov 3, 2024
Related to linux4sam#250

Add patches to fix the encx24j600 transmit queue timeout issue.

* **Kernel 5.15.68**
  - Add `encx24j600.patch` to `recipes-kernel/linux/linux-mchp_5.15.68.bb`.
  - Add `0001-net-encx24j600-fix-transmit-queue-timeout-issue.patch` to `recipes-kernel/linux/linux-mchp_5.15.68.bb`.
  - Add `encx24j600.patch` file to `recipes-kernel/linux/linux-mchp-5.15.68/sama5d2/`.

* **Kernel 6.1.55**
  - Add `encx24j600.patch` to `recipes-kernel/linux/linux-mchp_6.1.55.bb`.
  - Add `0001-net-encx24j600-fix-transmit-queue-timeout-issue.patch` to `recipes-kernel/linux/linux-mchp_6.1.55.bb`.
  - Add `encx24j600.patch` file to `recipes-kernel/linux/linux-mchp-6.1.55/sama5d2/`.

* **Kernel 6.6.23**
  - Add `encx24j600.patch` to `recipes-kernel/linux/linux-mchp_6.6.23.bb`.
  - Add `0001-net-encx24j600-fix-transmit-queue-timeout-issue.patch` to `recipes-kernel/linux/linux-mchp_6.6.23.bb`.
  - Add `encx24j600.patch` file to `recipes-kernel/linux/linux-mchp-6.6.23/sama5d2/`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant