GithubHelp home page GithubHelp logo

microchip-ethernet / evb-ksz9477 Goto Github PK

View Code? Open in Web Editor NEW
75.0 25.0 80.0 243.58 MB

Repository for using Microchip EVB-KSZ9477 board. Product Supported: KSZ9477, KSZ9567, KSZ9897, KSZ9896, KSZ8567, KSZ8565, KSZ9893, KSZ9563, KSZ8563, LAN9646, Phys(KSZ9031/9131, LAN8770

C 96.12% Makefile 0.73% C++ 0.08% Shell 0.13% Arc 0.01% Tcl 1.31% Batchfile 0.01% M4 0.01% HTML 0.03% CSS 0.01% JavaScript 0.01% Objective-C 0.01% Assembly 1.34% Perl 0.12% Lex 0.01% Yacc 0.02% CMake 0.01% Python 0.08% Awk 0.01% GDB 0.01%

evb-ksz9477's Introduction

EVB-KSZ9477

EVB-KSZ9477 Repository

evb-ksz9477's People

Contributors

microchip1 avatar ravi-hegde avatar triha2work avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

evb-ksz9477's Issues

RSTP port enable/disable

Hi!
In sysfs it has ability to turn on/off port in RSTP via /sys/class/net/eth0/sw0/0_stp_on. But it works strange. For example, if there's link on a port, to turn off the port from RSTP via sending 0 to 0_stp_on works, but until reconnecting the port, the next time it's working again. Is it possible to turn on/off port in RSTP permanently, not until link changing?

KSZ9897 I2C Driver Bug

EVB-KSZ9477/KSZ/linux-drivers/ksz9897/linux-4.19/drivers/net/ethernet/micrel/i2c-ksz9897.c

static void i2c_wrreg_size(struct sw_priv *priv, u8 reg, unsigned val, size_t size)

The i2c_wrreg_size function on Linux-4.19 driver uses an u8 for the I2C 16bit register addresses.

sw_get_br_id() returns ptr to stack (invalid after return)

sw_get_br_id() should not return a pointer to "id" located on the stack (invalid after return).
This will also fix a compile warning (want all source to compile without warnings).
My local fix is to change "id" to a static but it assumes that only one thread executes this at a time (likely to be ok).

+--- a/drivers/net/ethernet/micrel/ksz_sw_9897.c
++++ b/drivers/net/ethernet/micrel/ksz_sw_9897.c
+@@ -13119,7 +13119,7 @@ static void sw_free_fid(struct ksz_sw *sw, u16 fid)
+ 
+ static const u8 *sw_get_br_id(struct ksz_sw *sw)
+ {
+-      u8 id[8];
++      static u8 id[8];
+       const u8* ret = id;
+ 
+       memcpy(&id[2], sw->info->mac_addr, ETH_ALEN);

KSZ8463 Kernel 4.14 PTP_CLK_ENABLE never set

I'm trying to adapt KSZ8463 drivers for Linux 4.14 kernel with PTP support from EVB-KSZ9477/KSZ/linux-drivers/ksz8463/linux-4.14.
The communication between SOC and the switch chip goes via SPI and seems to work fine. I can set, start and read the PTP timer via direct access to PTP_CLK_CTL and PTP_RTC_xxx registers and this works fine as well.
The issue is that even though I can set and read the timer via /dev/ptp0 device, the timer always stop after doing so. It appears, that the access to the timer via ptp0 device always resets the PTP_CLK_ENABLE bit in PTP_CLK_CTL.
In case of KSZ9897 driver the PTP_CLK_ENABLE bit is set in initialization, in ptp_hw_enable function, but in case of KSZ8463 there is nothing that would set this bit.

MMC Boot fails with SD version 3 cards

We are seeing problems booting from SD version 3 cards. The failure is somewhat random but failure is much more likely. This occurs when u-boot attempts to load the uboot.env file.

RomBOOT

AT91Bootstrap 3.8.5 (Sat Oct 24 12:39:36 EDT 2020)

SD/MMC: Image: Read file u-boot.bin to 0x26f00000
SD: Card Capacity: High or Extended
SD: Specification Version 3.0X
SD/MMC: Done to load image

U-Boot 2016.03-linux4sam_5.3 (Oct 24 2020 - 12:39:49 -0400)

CPU: SAMA5D36
Crystal frequency: 12 MHz
CPU clock : 528 MHz
Master clock : 132 MHz
I2C: ready
DRAM: 256 MiB
NAND: 256 MiB
MMC: mci: 0
Card did not respond to voltage select!
** Bad device mmc 0 **
Using default environment

In: serial
Out: serial
Err: serial
Net: gmac0
Hit any key to stop autoboot: 0
=> mmcinfo
Device: mci
Manufacturer ID: 3
OEM: 5344
Name: SC32G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 29.7 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes

It seems that after RomBOOT loads u-boot the SD card is left in a state where partition 1 is not accessible. But after u-boot attempts to load uboot.env, the fatls and fatload commands work fine using "mmc 0:1".

After some trial and error, I found this patch fixes the loading of uboot.env:
sama5d3_xplained.c.txt
and the board then boots linux successfully.

The patch cycles the power on the SD card once just before uboot.env is loaded.

However, all is not well. If you interrupt the boot in u-boot, the "mmc part" command fails. There are also errors if one attempts to change the default device and partition with "mmc dev".

Don't know enough about SD cards or u-boot to fix this.

How to properly setup port 7, eth0.207 when using the SGMII/SERDES port

Hi

I'm struggling configuring the EVB-KSZ9477S properly for SFP port use. I'm able to send traffic to and from the Linux through the SFP port after setting up the registers manually through regs_bin to enable SERDES/negotiation. However, I can not manage to forward data between any other switch ports and the SFP port. I've tried to set the port control registers as well, but no luck. Is there a way to make linux see port7 (eth0.207) as it does with port 1-6?

If someone made Switch-2-Switch SGMII/SERDES working with forwarding to other ports could you give a short guide on configuration change needed?

BR
Kim T Humborstad
(PS: I know this is more likely a config issue than a code issue, but as documentation is also supplied in git and I've been through it all I hope this is still relevant as an issue)

ksz9893 with FEC driver on 4.19.35 kernel

Hello,

We have a board with an iMX7 connected to a ksz9893. i2c is used for register access.
I've integrated the files under KSZ/linux-drivers/ksz9897/linux-4.19 in our 4.19.35 kernel (taken from the linux-imx).
When compiling the i2c_ksz9897 driver as a module it worked.
Now i'm compiling it statically in the kernel and there are issues:

  • we don't receive packets anymore. (i see the FEC doesn't receive interrupts anymore)
  • when bringing eth0 down with eg, ifconfig, this hangs.

There are differences between loading the module statically or dynamically.

  • when loading it dynamically, the fec driver will have attached itself to the fixed generic phy driver before the ksz9897 driver is modprobed. In case of the static loading, it attaches itself to the ksz phy driver. See the dmesg output:
    [ 19.795300] Microchip KSZ9893 Switch sw.0:01: attached PHY driver [Microchip KSZ9893 Switch] (mii_bus:phy_addr=sw.0:01, irq=81)
  • when dynamically loading the module fep->port.sw will be NULL, with static compilation this is filled in. The code takes different paths based on this.

Is it normal for the ksz phy driver to be used for the cpu port? I'd expect this to be a fixed-link (as we have configure in our dts file). And have the ksz phy driver used for the switch ports. But we're not using multi_dev, so that's not applicable.

thanks,
Cedric

Inconsistent port status - Link issue - Transmit failure

Hello,

We are evaluating the KSZ9477 and ATAMA5D36 (with EVB-KSZ9477 UNG_8071 rev B).
Having a clean, stock build from this repository (kernel 4.9), we are having link issues when interconnecting development boards.

It is not consistently reproducible, nevertheless there is an easy way to trigger the issue:

PC - DEV1 - DEV2 - DEV3
Connect your interface to DEV1, random port. Link trough DEV2, random port. Link trough DEV3, random port.

Let PC generate some traffic (we broadcast some UDP packets).
Ping all development boards.
Repeatably disconnect and reconnect random links.

After a while (let's say 20 link toggles), suddenly one (or multiple, depends on which port is "broken") pings are not replied anymore.

When connecting to the "faulty board" we see at this broken port, by getting it's mib counters (e.g. cat /sys/class/net/eth0/sw3/3_mib) that tx_discards are increasing.
We haven't found a way recovering from this issue other than rebooting the board.

Things tried:

• Force power off/on toggle on PHY:

echo 0 > /sys/class/net/eth0/sw3/3_power
echo 1 > /sys/class/net/eth0/sw3/3_power

• Force new gigabit negotiation of PHY:

echo 1000 > /sys/class/net/eth0/sw3/3_speed
echo 0 > /sys/class/net/eth0/sw3/3_speed

• Toggle duplex (although this should have the same effect as speed):

echo 1 > /sys/class/net/eth0/sw3/3_duplex
echo 0 > /sys/class/net/eth0/sw3/3_duplex

• Toggle transmit:

echo 0 > /sys/class/net/eth0/sw3/3_tx
echo 1 > /sys/class/net/eth0/sw3/3_tx

(Unloading/loading the driver has not been tested yet)

We tried as well using the DSA driver and seemed not able to reproduce the issue.
So we might expect (and hope), it's somewhere a driver (software) issue?

Is it advisable to use the DSA driver? Is it complete? Is it possible to run PTP on the DSA lan interfaces?

Many thanks in advance!
Kind regards.

ksz_probe_next() fails when strap=RMII (100 mbps host)

When default REG_PORT_XMII_CTRL_0=RMII the driver still decide to use RGMII.
There is a lot of "#if 1" code in this file, which often is a sign of unstable code sections.
Also the typecast of data to data_hi / data_lo looks suspicious and makes code harder to read.

#if 1
if (PORT_RMII_SEL == (*data_hi & PORT_MII_SEL_M)) {
dbg_msg("?%02x\n", *data_hi);
sw_set_gbit(sw, true, data_hi);
sw_set_xmii(sw, 3, data_hi);

KSZ8567 and KSZ8873MLL

Hello,

I would like to add drivers and device tree entries for KSZ8567 and KSZ8873MLL.
I'm running Linux kernel 4.14.98 on an NXP IMX8 SOM.

Can you please recommend which driver is compatible with these ethernet switches and hopefully a device tree entrée example?

Thanks,
Amit

Crash in srp_remove_stream

Occasionally when port cables, we have seen NULL pointer exceptions in srp_remove_stream:

Unable to handle kernel NULL pointer dereference at virtual address 00000026

pgd = c0004000
[00000026] *pgd=00000000
Internal error: Oops: 817 [#1] ARM
Modules linked in:
CPU: 0 PID: 280 Comm: kworker/0:1 Not tainted 4.9.143 #1
Hardware name: Atmel SAMA5
Workqueue: events mrp_leave_timer_work
task: cf715bc0 task.stack: cf620000
PC is at srp_remove_stream+0x20/0x4c
LR is at proc_mrp_lv_talker+0x3a8/0x4fc
pc : [] lr : [] psr: 60000013
sp : cf621d48 ip : cee69000 fp : cee69440
r10: cf75a440 r9 : cf758440 r8 : 00000002
r7 : cf75b858 r6 : 00000000 r5 : ceddd780 r4 : cf75a858
r3 : 00000000 r2 : 00000000 r1 : 00000000 r0 : ce85f000
Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
Control: 10c53c7d Table: 2ee64059 DAC: 00000051
Process kworker/0:1 (pid: 280, stack limit = 0xcf620208)
Stack: (0xcf621d48 to 0xcf622000)
1d40: 00000007 00000001 cf758440 00000006 cefe1600 ceddd780
1d60: cf75bec0 00000000 00000200 00000000 00008000 00008000 00000000 00f0e091
1d80: 80972200 80000000 00000000 cefe111c 5de800f0 cefe1000 00000001 cf621df8
1da0: 00000003 cf621e98 cf621e98 cf75a858 00000002 00000011 cf758440 00000008
1dc0: c0b09578 c04be618 cf75a858 00000000 00000001 cedf2690 0001276a cf61b490
1de0: cedfed80 c05c4698 cedf2690 00000001 cf400100 c0b311ec 00000001 c05bc428
1e00: c0b44f24 c0b37b40 40000002 c019d4a8 c0b03054 c0b311c8 00000000 c0b36f40
1e20: c0b37b40 c0b37b48 00000100 c05bc428 00000000 c05c68b0 00000000 cf621e98
1e40: 00000003 cf75a858 cefedd48 00000011 cf758440 c04be9f8 0000000a ffff5caa
1e60: c0b0d2c0 cf75a85c cf562840 c0b13708 00000000 00000003 00000003 00000000
1e80: cefedd48 00000011 cefe091c 00000008 c0b09578 c04bef18 00030303 00f20100
1ea0: 00007332 00f0e091 0002d993 000100e0 0279a170 00008000 9798a110 cefe0701
1ec0: c0b09e18 cefedd00 00000000 cefe0800 00000000 c04828f0 00000000 cefedd00
1ee0: cefe0800 cef2bb80 00000000 c04bac70 00000008 cefe0834 cefe0800 cfdd3800
1f00: 00000000 c0b09578 00000000 c04bc5e8 cf786280 cefe0834 cfdd3800 c0128f2c
1f20: cf620000 c0b09578 cf786280 c0b09578 cf786298 c0b0d2c0 c0b0958c cf620000
1f40: 00000008 c0129198 00000000 00000000 cf54af40 cf786280 c0129150 00000000
1f60: 00000000 00000000 00000000 c012e234 00000000 00000000 00000000 cf786280
1f80: 00000000 cf621f84 cf621f84 00000000 cf621f90 cf621f90 cf621fac cf54af40
1fa0: c012e140 00000000 00000000 c01075b0 00000000 00000000 00000000 00000000
1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[] (srp_remove_stream) from [] (proc_mrp_lv_talker+0x3a8/0x4fc)
[] (proc_mrp_lv_talker) from [] (proc_mrp_set_attribute+0x4cc/0x87c)
[] (proc_mrp_set_attribute) from [] (proc_mrp_attribute+0x30/0x2c8)
[] (proc_mrp_attribute) from [] (msrp_acton+0x110/0x1a8)
[] (msrp_acton) from [] (mrp_attr_event+0x18c/0x44c)
[] (mrp_attr_event) from [] (mrp_mad_event+0x90/0x244)
[] (mrp_mad_event) from [] (mrp_leave_timer_work+0x24/0x34)
[] (mrp_leave_timer_work) from [] (process_one_work+0xfc/0x320)
[] (process_one_work) from [] (worker_thread+0x48/0x4f4)
[] (worker_thread) from [] (kthread+0xf4/0x10c)
[] (kthread) from [] (ret_from_fork+0x14/0x24)
Code: 15902022 15832022 15903026 e5902022 (e5823026)
---[ end trace 2f858e5d048bc278 ]---
Unable to handle kernel paging request at virtual address fffffff0
pgd = c0004000
[fffffff0] *pgd=2fffd861, *pte=00000000, *ppte=00000000
Internal error: Oops: 37 [#2] ARM
Modules linked in:
CPU: 0 PID: 280 Comm: kworker/0:1 Tainted: G D 4.9.143 #1
Hardware name: Atmel SAMA5
task: cf715bc0 task.stack: cf620000
PC is at kthread_data+0x4/0xc
LR is at wq_worker_sleeping+0x8/0xb0
pc : [] lr : [] psr: 20000193
sp : cf621b88 ip : 00000400 fp : cf621bb4
r10: cf715bc0 r9 : 00000817 r8 : cf715d78
r7 : cf715dfc r6 : c0b09e18 r5 : cf715bc0 r4 : 00000000
r3 : 00000000 r2 : ffffffff r1 : 00000001 r0 : cf715bc0
Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none
Control: 10c53c7d Table: 2ee64059 DAC: 00000051
Process kworker/0:1 (pid: 280, stack limit = 0xcf620208)
Stack: (0xcf621b88 to 0xcf622000)
1b80: 00000020 c0725360 ffffffff 00000000 00000000 cf715bc0
1ba0: cf6219ec 00000001 cf621bc0 cf715d78 cf621bbc c0133ea8 cf41fb80 c0117328
1bc0: cf621bc0 cf621bc0 00000000 c0b37504 c0b06ae8 cf621cf8 60000113 0000000b
1be0: 00000817 cf715bc0 cee69440 c010a8d4 cf620208 0000000b 00000026 00000817
1c00: cf621cf8 00000000 00000026 cf620000 cf75a440 c0112abc 00000817 c010e7ec
1c20: 00000006 0003e532 cef2bb10 00000004 cef2bb00 c0b06c3c 00000817 c010e53c
1c40: 00000026 cf621cf8 cf620000 cf75a440 cee69440 c01012cc 000019f0 00000000
1c60: 00000000 cef2b600 cf75b858 00000000 cf75b578 cee69e80 00000006 cf75a858
1c80: 00000002 cf758440 cf75a440 cf621dfc cef2bb00 c04ac704 00000001 c0482c3c
1ca0: 00000006 00000c00 00000001 00000001 cee69e80 00000000 cf621e04 cef2b600
1cc0: cf75b408 cee69e88 cf75b578 00000004 cef2b600 cf75a858 00000001 00000001
1ce0: c0477b6c 60000013 ffffffff cf621d2c 00000002 c010b078 ce85f000 00000000
1d00: 00000000 00000000 cf75a858 ceddd780 00000000 cf75b858 00000002 cf758440
1d20: cf75a440 cee69440 cee69000 cf621d48 c04a3900 c0477b6c 60000013 ffffffff
1d40: 00000051 00000000 00000007 00000001 cf758440 00000006 cefe1600 ceddd780
1d60: cf75bec0 00000000 00000200 00000000 00008000 00008000 00000000 00f0e091
1d80: 80972200 80000000 00000000 cefe111c 5de800f0 cefe1000 00000001 cf621df8
1da0: 00000003 cf621e98 cf621e98 cf75a858 00000002 00000011 cf758440 00000008
1dc0: c0b09578 c04be618 cf75a858 00000000 00000001 cedf2690 0001276a cf61b490
1de0: cedfed80 c05c4698 cedf2690 00000001 cf400100 c0b311ec 00000001 c05bc428
1e00: c0b44f24 c0b37b40 40000002 c019d4a8 c0b03054 c0b311c8 00000000 c0b36f40
1e20: c0b37b40 c0b37b48 00000100 c05bc428 00000000 c05c68b0 00000000 cf621e98
1e40: 00000003 cf75a858 cefedd48 00000011 cf758440 c04be9f8 0000000a ffff5caa
1e60: c0b0d2c0 cf75a85c cf562840 c0b13708 00000000 00000003 00000003 00000000
1e80: cefedd48 00000011 cefe091c 00000008 c0b09578 c04bef18 00030303 00f20100
1ea0: 00007332 00f0e091 0002d993 000100e0 0279a170 00008000 9798a110 cefe0701
1ec0: c0b09e18 cefedd00 00000000 cefe0800 00000000 c04828f0 00000000 cefedd00
1ee0: cefe0800 cef2bb80 00000000 c04bac70 00000008 cefe0834 cefe0800 cfdd3800
1f00: 00000000 c0b09578 00000000 c04bc5e8 cf786280 cefe0834 cfdd3800 c0128f2c
1f20: cf620000 c0b09578 cf786280 c0b09578 cf786298 c0b0d2c0 c0b0958c cf620000
1f40: 00000008 c0129198 00000000 00000000 cf54af40 cf786280 c0129150 00000000
1f60: 00000000 00000000 00000000 c012e234 00000000 00000000 00000000 cf786280
1f80: 00000000 cf621f84 cf621f84 00000001 cf621f90 cf621f90 cf621fac cf54af40
1fa0: c012e140 00000000 00000000 c01075b0 00000000 00000000 00000000 00000000
1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[] (kthread_data) from [] (wq_worker_sleeping+0x8/0xb0)
[] (wq_worker_sleeping) from [] (__schedule+0x250/0x38c)
[] (__schedule) from [] (do_task_dead+0x3c/0x40)
[] (do_task_dead) from [] (do_exit+0x5a0/0x914)
[] (do_exit) from [] (die+0x260/0x26c)
[] (die) from [] (__do_kernel_fault.part.0+0x64/0x1e8)
[] (__do_kernel_fault.part.0) from [] (do_bad_area+0x0/0x88)
[] (do_bad_area) from [] (do_page_fault+0x0/0x2b0)
[] (do_page_fault) from [] (0xcee69e80)
Code: eaffffb8 e3a01001 eaffffb6 e5903210 (e5130010)
---[ end trace 2f858e5d048bc279 ]---
Fixing recursive fault but reboot is needed!
Unable to handle kernel paging request at virtual address fffffff0
pgd = c0004000
[fffffff0] *pgd=2fffd861, *pte=00000000, *ppte=00000000
Internal error: Oops: 37 [#3] ARM
Modules linked in:
CPU: 0 PID: 280 Comm: kworker/0:1 Tainted: G D 4.9.143 #1
Hardware name: Atmel SAMA5
task: cf715bc0 task.stack: cf620000
PC is at kthread_data+0x4/0xc
LR is at wq_worker_sleeping+0x8/0xb0
pc : [] lr : [] psr: 20000193
sp : cf6219c0 ip : 00000400 fp : cf6219ec
r10: cf715bc0 r9 : 00000037 r8 : 0000000b
r7 : cf715dfc r6 : c0b09e18 r5 : cf715bc0 r4 : 00000000
r3 : 00000000 r2 : ffffffff r1 : 00000001 r0 : cf715bc0
Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none
Control: 10c53c7d Table: 2ee64059 DAC: 00000051
Process kworker/0:1 (pid: 280, stack limit = 0xcf620208)
Stack: (0xcf6219c0 to 0xcf622000)
19c0: 00000020 c0725360 cf621bb4 c013f3dc c08e1f14 cf620000 c0b06ae8 cf621b38
19e0: 0000000b 0000000b cf6219fc c07254e0 cf715bc0 cf715bc0 cf621bb4 c0117528
1a00: 60000193 c01680d8 00000000 c0b37504 c0b06ae8 cf621b38 60000193 0000000b
1a20: 00000037 cf715bc0 cf621bb4 c010a8d4 cf620208 0000000b fffffff0 00000037
1a40: cf621b38 00000000 fffffff0 cf620000 cf715bc0 c0112abc 00000037 c010e7ec
1a60: cf402200 cf621b4b cf621b58 cf621aa0 00000001 c0b06c3c 00000037 c010e53c
1a80: fffffff0 cf621b38 cf620000 cf715bc0 cf621bb4 c01012cc 00000000 c01400d0
1aa0: 30323830 c01404c8 c013eaf0 60000113 ffffffff cf621af4 00000000 cf621b4b
1ac0: c08f06f6 cf621b40 cf621b58 c08f06f6 c08177dc 00000020 cf621af8 c02edcf0
1ae0: ffffff10 ffff0a01 0000258c 0000000d cf621b4b a0000193 ffffff10 ffff0a01
1b00: 20000193 cf621b4b cf621b4b c0b4604c 00000028 cf621b58 cf002660 00000001
1b20: c012ea50 20000193 ffffffff cf621b6c cf715d78 c010b078 cf715bc0 00000001
1b40: ffffffff 00000000 00000000 cf715bc0 c0b09e18 cf715dfc cf715d78 00000817
1b60: cf715bc0 cf621bb4 00000400 cf621b88 c0129f5c c012ea50 20000193 ffffffff
1b80: 00000051 bf000000 00000020 c0725360 ffffffff 00000000 00000000 cf715bc0
1ba0: cf6219ec 00000001 cf621bc0 cf715d78 cf621bbc c0133ea8 cf41fb80 c0117328
1bc0: cf621bc0 cf621bc0 00000000 c0b37504 c0b06ae8 cf621cf8 60000113 0000000b
1be0: 00000817 cf715bc0 cee69440 c010a8d4 cf620208 0000000b 00000026 00000817
1c00: cf621cf8 00000000 00000026 cf620000 cf75a440 c0112abc 00000817 c010e7ec
1c20: 00000006 0003e532 cef2bb10 00000004 cef2bb00 c0b06c3c 00000817 c010e53c
1c40: 00000026 cf621cf8 cf620000 cf75a440 cee69440 c01012cc 000019f0 00000000
1c60: 00000000 cef2b600 cf75b858 00000000 cf75b578 cee69e80 00000006 cf75a858
1c80: 00000002 cf758440 cf75a440 cf621dfc cef2bb00 c04ac704 00000001 c0482c3c
1ca0: 00000006 00000c00 00000001 00000001 cee69e80 00000000 cf621e04 cef2b600
1cc0: cf75b408 cee69e88 cf75b578 00000004 cef2b600 cf75a858 00000001 00000001
1ce0: c0477b6c 60000013 ffffffff cf621d2c 00000002 c010b078 ce85f000 00000000
1d00: 00000000 00000000 cf75a858 ceddd780 00000000 cf75b858 00000002 cf758440
1d20: cf75a440 cee69440 cee69000 cf621d48 c04a3900 c0477b6c 60000013 ffffffff
1d40: 00000051 00000000 00000007 00000001 cf758440 00000006 cefe1600 ceddd780
1d60: cf75bec0 00000000 00000200 00000000 00008000 00008000 00000000 00f0e091
1d80: 80972200 80000000 00000000 cefe111c 5de800f0 cefe1000 00000001 cf621df8
1da0: 00000003 cf621e98 cf621e98 cf75a858 00000002 00000011 cf758440 00000008
1dc0: c0b09578 c04be618 cf75a858 00000000 00000001 cedf2690 0001276a cf61b490
1de0: cedfed80 c05c4698 cedf2690 00000001 cf400100 c0b311ec 00000001 c05bc428
1e00: c0b44f24 c0b37b40 40000002 c019d4a8 c0b03054 c0b311c8 00000000 c0b36f40
1e20: c0b37b40 c0b37b48 00000100 c05bc428 00000000 c05c68b0 00000000 cf621e98
1e40: 00000003 cf75a858 cefedd48 00000011 cf758440 c04be9f8 0000000a ffff5caa
1e60: c0b0d2c0 cf75a85c cf562840 c0b13708 00000000 00000003 00000003 00000000
1e80: cefedd48 00000011 cefe091c 00000008 c0b09578 c04bef18 00030303 00f20100
1ea0: 00007332 00f0e091 0002d993 000100e0 0279a170 00008000 9798a110 cefe0701
1ec0: c0b09e18 cefedd00 00000000 cefe0800 00000000 c04828f0 00000000 cefedd00
1ee0: cefe0800 cef2bb80 00000000 c04bac70 00000008 cefe0834 cefe0800 cfdd3800
1f00: 00000000 c0b09578 00000000 c04bc5e8 cf786280 cefe0834 cfdd3800 c0128f2c
1f20: cf620000 c0b09578 cf786280 c0b09578 cf786298 c0b0d2c0 c0b0958c cf620000
1f40: 00000008 c0129198 00000000 00000000 cf54af40 cf786280 c0129150 00000000
1f60: 00000000 00000000 00000000 c012e234 00000000 00000000 00000000 cf786280
1f80: 00000000 cf621f84 cf621f84 00000001 cf621f90 cf621f90 cf621fac cf54af40
1fa0: c012e140 00000000 00000000 c01075b0 00000000 00000000 00000000 00000000
1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[] (kthread_data) from [] (wq_worker_sleeping+0x8/0xb0)
[] (wq_worker_sleeping) from [] (__schedule+0x250/0x38c)
[] (__schedule) from [] (schedule+0x44/0x9c)
[] (schedule) from [] (do_exit+0x7a0/0x914)
[] (do_exit) from [] (die+0x260/0x26c)
[] (die) from [] (__do_kernel_fault.part.0+0x64/0x1e8)
[] (__do_kernel_fault.part.0) from [] (do_bad_area+0x0/0x88)
[] (do_bad_area) from [] (do_page_fault+0x0/0x2b0)
[] (do_page_fault) from [] (0xcf621af4)
Code: eaffffb8 e3a01001 eaffffb6 e5903210 (e5130010)
---[ end trace 2f858e5d048bc27a ]---
Fixing recursive fault but reboot is needed!
Unable to handle kernel paging request at virtual address fffffff0
pgd = c0004000
[fffffff0] *pgd=2fffd861, *pte=00000000, *ppte=00000000
Internal error: Oops: 37 [#4] ARM
Modules linked in:
CPU: 0 PID: 280 Comm: kworker/0:1 Tainted: G D 4.9.143 #1
Hardware name: Atmel SAMA5
task: cf715bc0 task.stack: cf620000
PC is at kthread_data+0x4/0xc
LR is at wq_worker_sleeping+0x8/0xb0
pc : [] lr : [] psr: 20000193
sp : cf6217f8 ip : 00000400 fp : cf621824
r10: cf715bc0 r9 : 00000037 r8 : 0000000b
r7 : cf715dfc r6 : c0b09e18 r5 : cf715bc0 r4 : 00000000
r3 : 00000000 r2 : ffffffff r1 : 00000001 r0 : cf715bc0
Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none
Control: 10c53c7d Table: 2ee64059 DAC: 00000051
Process kworker/0:1 (pid: 280, stack limit = 0xcf620208)
Stack: (0xcf6217f8 to 0xcf622000)
17e0: 00000020 c0725360
1800: cf6219ec c013f3dc c08e1f14 cf620000 c0b06ae8 cf621970 0000000b 0000000b
1820: cf621834 c07254e0 cf715bc0 cf715bc0 cf6219ec c0117528 60000193 c01680d8
1840: 00000000 c0b37504 c0b06ae8 cf621970 60000193 0000000b 00000037 cf715bc0
1860: cf6219ec c010a8d4 cf620208 0000000b fffffff0 00000037 cf621970 00000000
1880: fffffff0 cf620000 cf715bc0 c0112abc 00000037 c010e7ec 00000000 c036260c
18a0: c0b18478 00000000 00000035 c0b06c3c 00000037 c010e53c fffffff0 cf621970
18c0: cf620000 cf715bc0 cf6219ec c01012cc 00000036 c013dd48 c0b3d520 00000000
18e0: 0000002c c0b39648 c0362588 c0b4f55c 00000000 00000001 00000000 c036260c
1900: c0b18478 c0b39138 0000002d c013dd48 c0b3d59c 00000000 0000002d 00000000
1920: c0b3da68 c013eb4c 00000400 c0b3d59c 00000179 00000000 0000000f 00000000
1940: 00000000 60000193 c0b0a57c c0b3d128 00000001 00000000 c012ea50 20000193
1960: ffffffff cf6219a4 0000000b c010b078 cf715bc0 00000001 ffffffff 00000000
1980: 00000000 cf715bc0 c0b09e18 cf715dfc 0000000b 00000037 cf715bc0 cf6219ec
19a0: 00000400 cf6219c0 c0129f5c c012ea50 20000193 ffffffff 00000051 bf000000
19c0: 00000020 c0725360 cf621bb4 c013f3dc c08e1f14 cf620000 c0b06ae8 cf621b38
19e0: 0000000b 0000000b cf6219fc c07254e0 cf715bc0 cf715bc0 cf621bb4 c0117528
1a00: 60000193 c01680d8 00000000 c0b37504 c0b06ae8 cf621b38 60000193 0000000b
1a20: 00000037 cf715bc0 cf621bb4 c010a8d4 cf620208 0000000b fffffff0 00000037
1a40: cf621b38 00000000 fffffff0 cf620000 cf715bc0 c0112abc 00000037 c010e7ec
1a60: cf402200 cf621b4b cf621b58 cf621aa0 00000001 c0b06c3c 00000037 c010e53c
1a80: fffffff0 cf621b38 cf620000 cf715bc0 cf621bb4 c01012cc 00000000 c01400d0
1aa0: 30323830 c01404c8 c013eaf0 60000113 ffffffff cf621af4 00000000 cf621b4b
1ac0: c08f06f6 cf621b40 cf621b58 c08f06f6 c08177dc 00000020 cf621af8 c02edcf0
1ae0: ffffff10 ffff0a01 0000258c 0000000d cf621b4b a0000193 ffffff10 ffff0a01
1b00: 20000193 cf621b4b cf621b4b c0b4604c 00000028 cf621b58 cf002660 00000001
1b20: c012ea50 20000193 ffffffff cf621b6c cf715d78 c010b078 cf715bc0 00000001
1b40: ffffffff 00000000 00000000 cf715bc0 c0b09e18 cf715dfc cf715d78 00000817
1b60: cf715bc0 cf621bb4 00000400 cf621b88 c0129f5c c012ea50 20000193 ffffffff
1b80: 00000051 bf000000 00000020 c0725360 ffffffff 00000000 00000000 cf715bc0
1ba0: cf6219ec 00000001 cf621bc0 cf715d78 cf621bbc c0133ea8 cf41fb80 c0117328
1bc0: cf621bc0 cf621bc0 00000000 c0b37504 c0b06ae8 cf621cf8 60000113 0000000b
1be0: 00000817 cf715bc0 cee69440 c010a8d4 cf620208 0000000b 00000026 00000817
1c00: cf621cf8 00000000 00000026 cf620000 cf75a440 c0112abc 00000817 c010e7ec
1c20: 00000006 0003e532 cef2bb10 00000004 cef2bb00 c0b06c3c 00000817 c010e53c
1c40: 00000026 cf621cf8 cf620000 cf75a440 cee69440 c01012cc 000019f0 00000000
1c60: 00000000 cef2b600 cf75b858 00000000 cf75b578 cee69e80 00000006 cf75a858
1c80: 00000002 cf758440 cf75a440 cf621dfc cef2bb00 c04ac704 00000001 c0482c3c
1ca0: 00000006 00000c00 00000001 00000001 cee69e80 00000000 cf621e04 cef2b600
1cc0: cf75b408 cee69e88 cf75b578 00000004 cef2b600 cf75a858 00000001 00000001
1ce0: c0477b6c 60000013 ffffffff cf621d2c 00000002 c010b078 ce85f000 00000000
1d00: 00000000 00000000 cf75a858 ceddd780 00000000 cf75b858 00000002 cf758440
1d20: cf75a440 cee69440 cee69000 cf621d48 c04a3900 c0477b6c 60000013 ffffffff
1d40: 00000051 00000000 00000007 00000001 cf758440 00000006 cefe1600 ceddd780
1d60: cf75bec0 00000000 00000200 00000000 00008000 00008000 00000000 00f0e091
1d80: 80972200 80000000 00000000 cefe111c 5de800f0 cefe1000 00000001 cf621df8
1da0: 00000003 cf621e98 cf621e98 cf75a858 00000002 00000011 cf758440 00000008
1dc0: c0b09578 c04be618 cf75a858 00000000 00000001 cedf2690 0001276a cf61b490
1de0: cedfed80 c05c4698 cedf2690 00000001 cf400100 c0b311ec 00000001 c05bc428
1e00: c0b44f24 c0b37b40 40000002 c019d4a8 c0b03054 c0b311c8 00000000 c0b36f40
1e20: c0b37b40 c0b37b48 00000100 c05bc428 00000000 c05c68b0 00000000 cf621e98
1e40: 00000003 cf75a858 cefedd48 00000011 cf758440 c04be9f8 0000000a ffff5caa
1e60: c0b0d2c0 cf75a85c cf562840 c0b13708 00000000 00000003 00000003 00000000
1e80: cefedd48 00000011 cefe091c 00000008 c0b09578 c04bef18 00030303 00f20100
1ea0: 00007332 00f0e091 0002d993 000100e0 0279a170 00008000 9798a110 cefe0701
1ec0: c0b09e18 cefedd00 00000000 cefe0800 00000000 c04828f0 00000000 cefedd00
1ee0: cefe0800 cef2bb80 00000000 c04bac70 00000008 cefe0834 cefe0800 cfdd3800
1f00: 00000000 c0b09578 00000000 c04bc5e8 cf786280 cefe0834 cfdd3800 c0128f2c
1f20: cf620000 c0b09578 cf786280 c0b09578 cf786298 c0b0d2c0 c0b0958c cf620000
1f40: 00000008 c0129198 00000000 00000000 cf54af40 cf786280 c0129150 00000000
1f60: 00000000 00000000 00000000 c012e234 00000000 00000000 00000000 cf786280
1f80: 00000000 cf621f84 cf621f84 00000001 cf621f90 cf621f90 cf621fac cf54af40
1fa0: c012e140 00000000 00000000 c01075b0 00000000 00000000 00000000 00000000
1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[] (kthread_data) from [] (wq_worker_sleeping+0x8/0xb0)
[] (wq_worker_sleeping) from [] (__schedule+0x250/0x38c)
[] (__schedule) from [] (schedule+0x44/0x9c)
[] (schedule) from [] (do_exit+0x7a0/0x914)
[] (do_exit) from [] (die+0x260/0x26c)
[] (die) from [] (__do_kernel_fault.part.0+0x64/0x1e8)
[] (__do_kernel_fault.part.0) from [] (do_bad_area+0x0/0x88)
[] (do_bad_area) from [] (do_page_fault+0x0/0x2b0)
[] (do_page_fault) from [] (0xc0b4f55c)
Code: eaffffb8 e3a01001 eaffffb6 e5903210 (e5130010)
---[ end trace 2f858e5d048bc27b ]---
Fixing recursive fault but reboot is needed!
Unable to handle kernel paging request at virtual address fffffff0
pgd = c0004000
[fffffff0] *pgd=2fffd861, *pte=00000000, *ppte=00000000
Internal error: Oops: 37 [#5] ARM
Modules linked in:
CPU: 0 PID: 280 Comm: kworker/0:1 Tainted: G D 4.9.143 #1
Hardware name: Atmel SAMA5
task: cf715bc0 task.stack: cf620000
PC is at kthread_data+0x4/0xc
LR is at wq_worker_sleeping+0x8/0xb0
pc : [] lr : [] psr: 20000193
sp : cf621630 ip : 00000400 fp : cf62165c
r10: cf715bc0 r9 : 00000037 r8 : 0000000b
r7 : cf715dfc r6 : c0b09e18 r5 : cf715bc0 r4 : 00000000
r3 : 00000000 r2 : ffffffff r1 : 00000001 r0 : cf715bc0
Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none
Control: 10c53c7d Table: 2ee64059 DAC: 00000051
Process kworker/0:1 (pid: 280, stack limit = 0xcf620208)
Stack: (0xcf621630 to 0xcf622000)
1620: 00000020 c0725360 cf621824 c013f3dc
1640: c08e1f14 cf620000 c0b06ae8 cf6217a8 0000000b 0000000b cf62166c c07254e0
1660: cf715bc0 cf715bc0 cf621824 c0117528 60000193 c01680d8 00000000 c0b37504
1680: c0b06ae8 cf6217a8 60000193 0000000b 00000037 cf715bc0 cf621824 c010a8d4
16a0: cf620208 0000000b fffffff0 00000037 cf6217a8 00000000 fffffff0 cf620000
16c0: cf715bc0 c0112abc 00000037 c010e7ec 00000000 c036260c c0b18478 00000000
16e0: 00000035 c0b06c3c 00000037 c010e53c fffffff0 cf6217a8 cf620000 cf715bc0
1700: cf621824 c01012cc 00000036 c013dd48 c0b3b040 00000000 0000002c c0b39648
1720: c0362588 c0b4f55c 00000000 00000001 00000000 c036260c c0b18478 c0b39138
1740: 0000002d c013dd48 c0b3b0bc 00000000 0000002d 00000000 c0b3da68 c013eb4c
1760: 00000400 c0b3b0bc 000001c9 00000000 0000000f 00000000 00000000 60000193
1780: c0b0a57c c0b3d128 00000001 00000000 c012ea50 20000193 ffffffff cf6217dc
17a0: 0000000b c010b078 cf715bc0 00000001 ffffffff 00000000 00000000 cf715bc0
17c0: c0b09e18 cf715dfc 0000000b 00000037 cf715bc0 cf621824 00000400 cf6217f8
17e0: c0129f5c c012ea50 20000193 ffffffff 00000051 bf000000 00000020 c0725360
1800: cf6219ec c013f3dc c08e1f14 cf620000 c0b06ae8 cf621970 0000000b 0000000b
1820: cf621834 c07254e0 cf715bc0 cf715bc0 cf6219ec c0117528 60000193 c01680d8
1840: 00000000 c0b37504 c0b06ae8 cf621970 60000193 0000000b 00000037 cf715bc0
1860: cf6219ec c010a8d4 cf620208 0000000b fffffff0 00000037 cf621970 00000000
1880: fffffff0 cf620000 cf715bc0 c0112abc 00000037 c010e7ec 00000000 c036260c
18a0: c0b18478 00000000 00000035 c0b06c3c 00000037 c010e53c fffffff0 cf621970
18c0: cf620000 cf715bc0 cf6219ec c01012cc 00000036 c013dd48 c0b3d520 00000000
18e0: 0000002c c0b39648 c0362588 c0b4f55c 00000000 00000001 00000000 c036260c
1900: c0b18478 c0b39138 0000002d c013dd48 c0b3d59c 00000000 0000002d 00000000
1920: c0b3da68 c013eb4c 00000400 c0b3d59c 00000179 00000000 0000000f 00000000
1940: 00000000 60000193 c0b0a57c c0b3d128 00000001 00000000 c012ea50 20000193
1960: ffffffff cf6219a4 0000000b c010b078 cf715bc0 00000001 ffffffff 00000000
1980: 00000000 cf715bc0 c0b09e18 cf715dfc 0000000b 00000037 cf715bc0 cf6219ec
19a0: 00000400 cf6219c0 c0129f5c c012ea50 20000193 ffffffff 00000051 bf000000
19c0: 00000020 c0725360 cf621bb4 c013f3dc c08e1f14 cf620000 c0b06ae8 cf621b38
19e0: 0000000b 0000000b cf6219fc c07254e0 cf715bc0 cf715bc0 cf621bb4 c0117528
1a00: 60000193 c01680d8 00000000 c0b37504 c0b06ae8 cf621b38 60000193 0000000b
1a20: 00000037 cf715bc0 cf621bb4 c010a8d4 cf620208 0000000b fffffff0 00000037
1a40: cf621b38 00000000 fffffff0 cf620000 cf715bc0 c0112abc 00000037 c010e7ec
1a60: cf402200 cf621b4b cf621b58 cf621aa0 00000001 c0b06c3c 00000037 c010e53c
1a80: fffffff0 cf621b38 cf620000 cf715bc0 cf621bb4 c01012cc 00000000 c01400d0
1aa0: 30323830 c01404c8 c013eaf0 60000113 ffffffff cf621af4 00000000 cf621b4b
1ac0: c08f06f6 cf621b40 cf621b58 c08f06f6 c08177dc 00000020 cf621af8 c02edcf0
1ae0: ffffff10 ffff0a01 0000258c 0000000d cf621b4b a0000193 ffffff10 ffff0a01
1b00: 20000193 cf621b4b cf621b4b c0b4604c 00000028 cf621b58 cf002660 00000001
1b20: c012ea50 20000193 ffffffff cf621b6c cf715d78 c010b078 cf715bc0 00000001
1b40: ffffffff 00000000 00000000 cf715bc0 c0b09e18 cf715dfc cf715d78 00000817
1b60: cf715bc0 cf621bb4 00000400 cf621b88 c0129f5c c012ea50 20000193 ffffffff
1b80: 00000051 bf000000 00000020 c0725360 ffffffff 00000000 00000000 cf715bc0
1ba0: cf6219ec 00000001 cf621bc0 cf715d78 cf621bbc c0133ea8 cf41fb80 c0117328
1bc0: cf621bc0 cf621bc0 00000000 c0b37504 c0b06ae8 cf621cf8 60000113 0000000b
1be0: 00000817 cf715bc0 cee69440 c010a8d4 cf620208 0000000b 00000026 00000817
1c00: cf621cf8 00000000 00000026 cf620000 cf75a440 c0112abc 00000817 c010e7ec
1c20: 00000006 0003e532 cef2bb10 00000004 cef2bb00 c0b06c3c 00000817 c010e53c
1c40: 00000026 cf621cf8 cf620000 cf75a440 cee69440 c01012cc 000019f0 00000000
1c60: 00000000 cef2b600 cf75b858 00000000 cf75b578 cee69e80 00000006 cf75a858
1c80: 00000002 cf758440 cf75a440 cf621dfc cef2bb00 c04ac704 00000001 c0482c3c
1ca0: 00000006 00000c00 00000001 00000001 cee69e80 00000000 cf621e04 cef2b600
1cc0: cf75b408 cee69e88 cf75b578 00000004 cef2b600 cf75a858 00000001 00000001
1ce0: c0477b6c 60000013 ffffffff cf621d2c 00000002 c010b078 ce85f000 00000000
1d00: 00000000 00000000 cf75a858 ceddd780 00000000 cf75b858 00000002 cf758440
1d20: cf75a440 cee69440 cee69000 cf621d48 c04a3900 c0477b6c 60000013 ffffffff
1d40: 00000051 00000000 00000007 00000001 cf758440 00000006 cefe1600 ceddd780
1d60: cf75bec0 00000000 00000200 00000000 00008000 00008000 00000000 00f0e091
1d80: 80972200 80000000 00000000 cefe111c 5de800f0 cefe1000 00000001 cf621df8
1da0: 00000003 cf621e98 cf621e98 cf75a858 00000002 00000011 cf758440 00000008
1dc0: c0b09578 c04be618 cf75a858 00000000 00000001 cedf2690 0001276a cf61b490
1de0: cedfed80 c05c4698 cedf2690 00000001 cf400100 c0b311ec 00000001 c05bc428
1e00: c0b44f24 c0b37b40 40000002 c019d4a8 c0b03054 c0b311c8 00000000 c0b36f40
1e20: c0b37b40 c0b37b48 00000100 c05bc428 00000000 c05c68b0 00000000 cf621e98
1e40: 00000003 cf75a858 cefedd48 00000011 cf758440 c04be9f8 0000000a ffff5caa
1e60: c0b0d2c0 cf75a85c cf562840 c0b13708 00000000 00000003 00000003 00000000
1e80: cefedd48 00000011 cefe091c 00000008 c0b09578 c04bef18 00030303 00f20100
1ea0: 00007332 00f0e091 0002d993 000100e0 0279a170 00008000 9798a110 cefe0701
1ec0: c0b09e18 cefedd00 00000000 cefe0800 00000000 c04828f0 00000000 cefedd00
1ee0: cefe0800 cef2bb80 00000000 c04bac70 00000008 cefe0834 cefe0800 cfdd3800
1f00: 00000000 c0b09578 00000000 c04bc5e8 cf786280 cefe0834 cfdd3800 c0128f2c
1f20: cf620000 c0b09578 cf786280 c0b09578 cf786298 c0b0d2c0 c0b0958c cf620000
1f40: 00000008 c0129198 00000000 00000000 cf54af40 cf786280 c0129150 00000000
1f60: 00000000 00000000 00000000 c012e234 00000000 00000000 00000000 cf786280
1f80: 00000000 cf621f84 cf621f84 00000001 cf621f90 cf621f90 cf621fac cf54af40
1fa0: c012e140 00000000 00000000 c01075b0 00000000 00000000 00000000 00000000
1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[] (kthread_data) from [] (wq_worker_sleeping+0x8/0xb0)
[] (wq_worker_sleeping) from [] (__schedule+0x250/0x38c)
[] (__schedule) from [] (schedule+0x44/0x9c)
[] (schedule) from [] (do_exit+0x7a0/0x914)
[] (do_exit) from [] (die+0x260/0x26c)
[] (die) from [] (__do_kernel_fault.part.0+0x64/0x1e8)
[] (__do_kernel_fault.part.0) from [] (do_bad_area+0x0/0x88)
[] (do_bad_area) from [] (do_page_fault+0x0/0x2b0)
[] (do_page_fault) from [] (0xc0b4f55c)
Code: eaffffb8 e3a01001 eaffffb6 e5903210 (e5130010)
---[ end trace 2f858e5d048bc27c ]---
Fixing recursive fault but reboot is needed!
Unable to handle kernel paging request at virtual address fffffff0
pgd = c0004000
[fffffff0] *pgd=2fffd861, *pte=00000000, *ppte=00000000
Internal error: Oops: 37 [#6] ARM
Modules linked in:
CPU: 0 PID: 280 Comm: kworker/0:1 Tainted: G D 4.9.143 #1
Hardware name: Atmel SAMA5
task: cf715bc0 task.stack: cf620000
PC is at kthread_data+0x4/0xc
LR is at wq_worker_sleeping+0x8/0xb0
pc : [] lr : [] psr: 20000193
sp : cf621468 ip : 00000400 fp : cf621494
r10: cf715bc0 r9 : 00000037 r8 : 0000000b
r7 : cf715dfc r6 : c0b09e18 r5 : cf715bc0 r4 : 00000000
r3 : 00000000 r2 : ffffffff r1 : 00000001 r0 : cf715bc0
Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none
Control: 10c53c7d Table: 2ee64059 DAC: 00000051
Process kworker/0:1 (pid: 280, stack limit = 0xcf620208)
Stack: (0xcf621468 to 0xcf622000)
1460: 00000020 c0725360 cf62165c c013f3dc c08e1f14 cf620000
1480: c0b06ae8 cf6215e0 0000000b 0000000b cf6214a4 c07254e0 cf715bc0 cf715bc0
14a0: cf62165c c0117528 60000193 c01680d8 00000000 c0b37504 c0b06ae8 cf6215e0
14c0: 60000193 0000000b 00000037 cf715bc0 cf62165c c010a8d4 cf620208 0000000b
14e0: fffffff0 00000037 cf6215e0 00000000 fffffff0 cf620000 cf715bc0 c0112abc
1500: 00000037 c010e7ec 00000000 c036260c c0b18478 00000000 00000035 c0b06c3c
1520: 00000037 c010e53c fffffff0 cf6215e0 cf620000 cf715bc0 cf62165c c01012cc
1540: 00000036 c013dd48 c0b3d0e8 00000000 0000002c c0b39648 c0362588 c0b4f55c
1560: 00000000 00000001 00000000 c036260c c0b18478 c0b39138 0000002d c013dd48
1580: c0b3d164 00000000 0000002d 00000000 c0b3da68 c013eb4c 00000400 c0b3d164
15a0: 00000228 00000000 0000000f 00000000 00000000 60000193 c0b0a57c c0b3d128
15c0: 00000001 00000000 c012ea50 20000193 ffffffff cf621614 0000000b c010b078
15e0: cf715bc0 00000001 ffffffff 00000000 00000000 cf715bc0 c0b09e18 cf715dfc
1600: 0000000b 00000037 cf715bc0 cf62165c 00000400 cf621630 c0129f5c c012ea50
1620: 20000193 ffffffff 00000051 bf000000 00000020 c0725360 cf621824 c013f3dc
1640: c08e1f14 cf620000 c0b06ae8 cf6217a8 0000000b 0000000b cf62166c c07254e0
1660: cf715bc0 cf715bc0 cf621824 c0117528 60000193 c01680d8 00000000 c0b37504
1680: c0b06ae8 cf6217a8 60000193 0000000b 00000037 cf715bc0 cf621824 c010a8d4
16a0: cf620208 0000000b fffffff0 00000037 cf6217a8 00000000 fffffff0 cf620000
16c0: cf715bc0 c0112abc 00000037 c010e7ec 00000000 c036260c c0b18478 00000000
16e0: 00000035 c0b06c3c 00000037 c010e53c fffffff0 cf6217a8 cf620000 cf715bc0
1700: cf621824 c01012cc 00000036 c013dd48 c0b3b040 00000000 0000002c c0b39648
1720: c0362588 c0b4f55c 00000000 00000001 00000000 c036260c c0b18478 c0b39138
1740: 0000002d c013dd48 c0b3b0bc 00000000 0000002d 00000000 c0b3da68 c013eb4c
1760: 00000400 c0b3b0bc 000001c9 00000000 0000000f 00000000 00000000 60000193
1780: c0b0a57c c0b3d128 00000001 00000000 c012ea50 20000193 ffffffff cf6217dc
17a0: 0000000b c010b078 cf715bc0 00000001 ffffffff 00000000 00000000 cf715bc0
17c0: c0b09e18 cf715dfc 0000000b 00000037 cf715bc0 cf621824 00000400 cf6217f8
17e0: c0129f5c c012ea50 20000193 ffffffff 00000051 bf000000 00000020 c0725360
1800: cf6219ec c013f3dc c08e1f14 cf620000 c0b06ae8 cf621970 0000000b 0000000b
1820: cf621834 c07254e0 cf715bc0 cf715bc0 cf6219ec c0117528 60000193 c01680d8
1840: 00000000 c0b37504 c0b06ae8 cf621970 60000193 0000000b 00000037 cf715bc0
1860: cf6219ec c010a8d4 cf620208 0000000b fffffff0 00000037 cf621970 00000000
1880: fffffff0 cf620000 cf715bc0 c0112abc 00000037 c010e7ec 00000000 c036260c
18a0: c0b18478 00000000 00000035 c0b06c3c 00000037 c010e53c fffffff0 cf621970
18c0: cf620000 cf715bc0 cf6219ec c01012cc 00000036 c013dd48 c0b3d520 00000000
18e0: 0000002c c0b39648 c0362588 c0b4f55c 00000000 00000001 00000000 c036260c
1900: c0b18478 c0b39138 0000002d c013dd48 c0b3d59c 00000000 0000002d 00000000
1920: c0b3da68 c013eb4c 00000400 c0b3d59c 00000179 00000000 0000000f 00000000
1940: 00000000 60000193 c0b0a57c c0b3d128 00000001 00000000 c012ea50 20000193
1960: ffffffff cf6219a4 0000000b c010b078 cf715bc0 00000001 ffffffff 00000000
1980: 00000000 cf715bc0 c0b09e18 cf715dfc 0000000b 00000037 cf715bc0 cf6219ec
19a0: 00000400 cf6219c0 c0129f5c c012ea50 20000193 ffffffff 00000051 bf000000
19c0: 00000020 c0725360 cf621bb4 c013f3dc c08e1f14 cf620000 c0b06ae8 cf621b38
19e0: 0000000b 0000000b cf6219fc c07254e0 cf715bc0 cf715bc0 cf621bb4 c0117528
1a00: 60000193 c01680d8 00000000 c0b37504 c0b06ae8 cf621b38 60000193 0000000b
1a20: 00000037 cf715bc0 cf621bb4 c010a8d4 cf620208 0000000b fffffff0 00000037
1a40: cf621b38 00000000 fffffff0 cf620000 cf715bc0 c0112abc 00000037 c010e7ec
1a60: cf402200 cf621b4b cf621b58 cf621aa0 00000001 c0b06c3c 00000037 c010e53c
1a80: fffffff0 cf621b38 cf620000 cf715bc0 cf621bb4 c01012cc 00000000 c01400d0
1aa0: 30323830 c01404c8 c013eaf0 60000113 ffffffff cf621af4 00000000 cf621b4b
1ac0: c08f06f6 cf621b40 cf621b58 c08f06f6 c08177dc 00000020 cf621af8 c02edcf0
1ae0: ffffff10 ffff0a01 0000258c 0000000d cf621b4b a0000193 ffffff10 ffff0a01
1b00: 20000193 cf621b4b cf621b4b c0b4604c 00000028 cf621b58 cf002660 00000001
1b20: c012ea50 20000193 ffffffff cf621b6c cf715d78 c010b078 cf715bc0 00000001
1b40: ffffffff 00000000 00000000 cf715bc0 c0b09e18 cf715dfc cf715d78 00000817
1b60: cf715bc0 cf621bb4 00000400 cf621b88 c0129f5c c012ea50 20000193 ffffffff
1b80: 00000051 bf000000 00000020 c0725360 ffffffff 00000000 00000000 cf715bc0
1ba0: cf6219ec 00000001 cf621bc0 cf715d78 cf621bbc c0133ea8 cf41fb80 c0117328
1bc0: cf621bc0 cf621bc0 00000000 c0b37504 c0b06ae8 cf621cf8 60000113 0000000b
1be0: 00000817 cf715bc0 cee69440 c010a8d4 cf620208 0000000b 00000026 00000817
1c00: cf621cf8 00000000 00000026 cf620000 cf75a440 c0112abc 00000817 c010e7ec
1c20: 00000006 0003e532 cef2bb10 00000004 cef2bb00 c0b06c3c 00000817 c010e53c
1c40: 00000026 cf621cf8 cf620000 cf75a440 cee69440 c01012cc 000019f0 00000000
1c60: 00000000 cef2b600 cf75b858 00000000 cf75b578 cee69e80 00000006 cf75a858
1c80: 00000002 cf758440 cf75a440 cf621dfc cef2bb00 c04ac704 00000001 c0482c3c
1ca0: 00000006 00000c00 00000001 00000001 cee69e80 00000000 cf621e04 cef2b600
1cc0: cf75b408 cee69e88 cf75b578 00000004 cef2b600 cf75a858 00000001 00000001
1ce0: c0477b6c 60000013 ffffffff cf621d2c 00000002 c010b078 ce85f000 00000000
1d00: 00000000 00000000 cf75a858 ceddd780 00000000 cf75b858 00000002 cf758440
1d20: cf75a440 cee69440 cee69000 cf621d48 c04a3900 c0477b6c 60000013 ffffffff
1d40: 00000051 00000000 00000007 00000001 cf758440 00000006 cefe1600 ceddd780
1d60: cf75bec0 00000000 00000200 00000000 00008000 00008000 00000000 00f0e091
1d80: 80972200 80000000 00000000 cefe111c 5de800f0 cefe1000 00000001 cf621df8
1da0: 00000003 cf621e98 cf621e98 cf75a858 00000002 00000011 cf758440 00000008
1dc0: c0b09578 c04be618 cf75a858 00000000 00000001 cedf2690 0001276a cf61b490
1de0: cedfed80 c05c4698 cedf2690 00000001 cf400100 c0b311ec 00000001 c05bc428
1e00: c0b44f24 c0b37b40 40000002 c019d4a8 c0b03054 c0b311c8 00000000 c0b36f40
1e20: c0b37b40 c0b37b48 00000100 c05bc428 00000000 c05c68b0 00000000 cf621e98
1e40: 00000003 cf75a858 cefedd48 00000011 cf758440 c04be9f8 0000000a ffff5caa
1e60: c0b0d2c0 cf75a85c cf562840 c0b13708 00000000 00000003 00000003 00000000
1e80: cefedd48 00000011 cefe091c 00000008 c0b09578 c04bef18 00030303 00f20100
1ea0: 00007332 00f0e091 0002d993 000100e0 0279a170 00008000 9798a110 cefe0701
1ec0: c0b09e18 cefedd00 00000000 cefe0800 00000000 c04828f0 00000000 cefedd00
1ee0: cefe0800 cef2bb80 00000000 c04bac70 00000008 cefe0834 cefe0800 cfdd3800
1f00: 00000000 c0b09578 00000000 c04bc5e8 cf786280 cefe0834 cfdd3800 c0128f2c
1f20: cf620000 c0b09578 cf786280 c0b09578 cf786298 c0b0d2c0 c0b0958c cf620000
1f40: 00000008 c0129198 00000000 00000000 cf54af40 cf786280 c0129150 00000000
1f60: 00000000 00000000 00000000 c012e234 00000000 00000000 00000000 cf786280
1f80: 00000000 cf621f84 cf621f84 00000001 cf621f90 cf621f90 cf621fac cf54af40
1fa0: c012e140 00000000 00000000 c01075b0 00000000 00000000 00000000 00000000
1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[] (kthread_data) from [] (wq_worker_sleeping+0x8/0xb0)
[] (wq_worker_sleeping) from [] (__schedule+0x250/0x38c)
[] (__schedule) from [] (schedule+0x44/0x9c)
[] (schedule) from [] (do_exit+0x7a0/0x914)
[] (do_exit) from [] (die+0x260/0x26c)
[] (die) from [] (__do_kernel_fault.part.0+0x64/0x1e8)
[] (__do_kernel_fault.part.0) from [] (do_bad_area+0x0/0x88)
[] (do_bad_area) from [] (do_page_fault+0x0/0x2b0)
[] (do_page_fault) from [] (0xc0b4f55c)
Code: eaffffb8 e3a01001 eaffffb6 e5903210 (e5130010)
---[ end trace 2f858e5d048bc27d ]---
Fixing recursive fault but reboot is needed!
Unable to handle kernel paging request at virtual address fffffff0
pgd = c0004000
[fffffff0] *pgd=2fffd861, *pte=00000000, *ppte=00000000
Internal error: Oops: 37 [#7] ARM
Modules linked in:
CPU: 0 PID: 280 Comm: kworker/0:1 Tainted: G D 4.9.143 #1
Hardware name: Atmel SAMA5
task: cf715bc0 task.stack: cf620000
PC is at kthread_data+0x4/0xc
LR is at wq_worker_sleeping+0x8/0xb0
pc : [] lr : [] psr: 20000193
sp : cf6212a0 ip : 00000400 fp : cf6212cc
r10: cf715bc0 r9 : 00000037 r8 : 0000000b
r7 : cf715dfc r6 : c0b09e18 r5 : cf715bc0 r4 : 00000000
r3 : 00000000 r2 : ffffffff r1 : 00000001 r0 : cf715bc0
Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none
Control: 10c53c7d Table: 2ee64059 DAC: 00000051
Process kworker/0:1 (pid: 280, stack limit = 0xcf620208)
Stack: (0xcf6212a0 to 0xcf622000)
12a0: 00000020 c0725360 cf621494 c013f3dc c08e1f14 cf620000 c0b06ae8 cf621418
12c0: 0000000b 0000000b cf6212dc c07254e0 cf715bc0 cf715bc0 cf621494 c0117528
12e0: 60000193 c01680d8 00000000 c0b37504 c0b06ae8 cf621418 60000193 0000000b
1300: 00000037 cf715bc0 cf621494 c010a8d4 cf620208 0000000b fffffff0 00000037
1320: cf621418 00000000 fffffff0 cf620000 cf715bc0 c0112abc 00000037 c010e7ec
1340: 00000000 c036260c c0b18478 00000000 00000035 c0b06c3c 00000037 c010e53c
1360: fffffff0 cf621418 cf620000 cf715bc0 cf621494 c01012cc 00000036 c013dd48
1380: c0b3b72c 00000000 0000002c c0b39648 c0362588 c0b4f55c 00000000 00000001
13a0: 00000000 c036260c c0b18478 c0b39138 0000002d c013dd48 c0b3b7a8 00000000
13c0: 0000002d 00000000 c0b3da68 c013eb4c 00000400 c0b3b7a8 00000295 00000000
13e0: 0000000f 00000000 00000000 60000193 c0b0a57c c0b3d128 00000001 00000000
1400: c012ea50 20000193 ffffffff cf62144c 0000000b c010b078 cf715bc0 00000001
1420: ffffffff 00000000 00000000 cf715bc0 c0b09e18 cf715dfc 0000000b 00000037
1440: cf715bc0 cf621494 00000400 cf621468 c0129f5c c012ea50 20000193 ffffffff
1460: 00000051 bf000000 00000020 c0725360 cf62165c c013f3dc c08e1f14 cf620000
1480: c0b06ae8 cf6215e0 0000000b 0000000b cf6214a4 c07254e0 cf715bc0 cf715bc0
14a0: cf62165c c0117528 60000193 c01680d8 00000000 c0b37504 c0b06ae8 cf6215e0
14c0: 60000193 0000000b 00000037 cf715bc0 cf62165c c010a8d4 cf620208 0000000b
14e0: fffffff0 00000037 cf6215e0 00000000 fffffff0 cf620000 cf715bc0 c0112abc
1500: 00000037 c010e7ec 00000000 c036260c c0b18478 00000000 00000035 c0b06c3c
1520: 00000037 c010e53c fffffff0 cf6215e0 cf620000 cf715bc0 cf62165c c01012cc
1540: 00000036 c013dd48 c0b3d0e8 00000000 0000002c c0b39648 c0362588 c0b4f55c
1560: 00000000 00000001 00000000 c036260c c0b18478 c0b39138 0000002d c013dd48
1580: c0b3d164 00000000 0000002d 00000000 c0b3da68 c013eb4c 00000400 c0b3d164
15a0: 00000228 00000000 0000000f 00000000 00000000 60000193 c0b0a57c c0b3d128
15c0: 00000001 00000000 c012ea50 20000193 ffffffff cf621614 0000000b c010b078
15e0: cf715bc0 00000001 ffffffff 00000000 00000000 cf715bc0 c0b09e18 cf715dfc
1600: 0000000b 00000037 cf715bc0 cf62165c 00000400 cf621630 c0129f5c c012ea50
1620: 20000193 ffffffff 00000051 bf000000 00000020 c0725360 cf621824 c013f3dc
1640: c08e1f14 cf620000 c0b06ae8 cf6217a8 0000000b 0000000b cf62166c c07254e0
1660: cf715bc0 cf715bc0 cf621824 c0117528 60000193 c01680d8 00000000 c0b37504
1680: c0b06ae8 cf6217a8 60000193 0000000b 00000037 cf715bc0 cf621824 c010a8d4
16a0: cf620208 0000000b fffffff0 00000037 cf6217a8 00000000 fffffff0 cf620000
16c0: cf715bc0 c0112abc 00000037 c010e7ec 00000000 c036260c c0b18478 00000000
16e0: 00000035 c0b06c3c 00000037 c010e53c fffffff0 cf6217a8 cf620000 cf715bc0
1700: cf621824 c01012cc 00000036 c013dd48 c0b3b040 00000000 0000002c c0b39648
1720: c0362588 c0b4f55c 00000000 00000001 00000000 c036260c c0b18478 c0b39138
1740: 0000002d c013dd48 c0b3b0bc 00000000 0000002d 00000000 c0b3da68 c013eb4c
1760: 00000400 c0b3b0bc 000001c9 00000000 0000000f 00000000 00000000 60000193
1780: c0b0a57c c0b3d128 00000001 00000000 c012ea50 20000193 ffffffff cf6217dc
17a0: 0000000b c010b078 cf715bc0 00000001 ffffffff 00000000 00000000 cf715bc0
17c0: c0b09e18 cf715dfc 0000000b 00000037 cf715bc0 cf621824 00000400 cf6217f8
17e0: c0129f5c c012ea50 20000193 ffffffff 00000051 bf000000 00000020 c0725360
1800: cf6219ec c013f3dc c08e1f14 cf620000 c0b06ae8 cf621970 0000000b 0000000b
1820: cf621834 c07254e0 cf715bc0 cf715bc0 cf6219ec c0117528 60000193 c01680d8
1840: 00000000 c0b37504 c0b06ae8 cf621970 60000193 0000000b 00000037 cf715bc0
1860: cf6219ec c010a8d4 cf620208 0000000b fffffff0 00000037 cf621970 00000000
1880: fffffff0 cf620000 cf715bc0 c0112abc 00000037 c010e7ec 00000000 c036260c
18a0: c0b18478 00000000 00000035 c0b06c3c 00000037 c010e53c fffffff0 cf621970
18c0: cf620000 cf715bc0 cf6219ec c01012cc 00000036 c013dd48 c0b3d520 00000000
18e0: 0000002c c0b39648 c0362588 c0b4f55c 00000000 00000001 00000000 c036260c
1900: c0b18478 c0b39138 0000002d c013dd48 c0b3d59c 00000000 0000002d 00000000
1920: c0b3da68 c013eb4c 00000400 c0b3d59c 00000179 00000000 0000000f 00000000
1940: 00000000 60000193 c0b0a57c c0b3d128 00000001 00000000 c012ea50 20000193
1960: ffffffff cf6219a4 0000000b c010b078 cf715bc0 00000001 ffffffff 00000000
1980: 00000000 cf715bc0 c0b09e18 cf715dfc 0000000b 00000037 cf715bc0 cf6219ec
19a0: 00000400 cf6219c0 c0129f5c c012ea50 20000193 ffffffff 00000051 bf000000
19c0: 00000020 c0725360 cf621bb4 c013f3dc c08e1f14 cf620000 c0b06ae8 cf621b38
19e0: 0000000b 0000000b cf6219fc c07254e0 cf715bc0 cf715bc0 cf621bb4 c0117528
1a00: 60000193 c01680d8 00000000 c0b37504 c0b06ae8 cf621b38 60000193 0000000
......

KSZ8863 Support

Hi,

I am working on Yocto Linux for iMX6 processor. I am looking for Linux drivers for KSZ8863 switch to work with Linux kernel version 4.9. I tried the files available in https://github.com/Microchip-Ethernet/EVB-KSZ9477/tree/master/KSZ/linux-drivers/ksz8863/linux-4.9/drivers/net/ethernet/micrel path. I am facing build errors for this repo. Attached the error log files.

smiError.txt
spiError.txt

And I tried to build the kernel available for Atmel board at https://github.com/Microchip-Ethernet/EVB-KSZ9477/tree/master/KSZ/kernels/linux-4.9.143 for KSZ8863, I am getting errors listed in atmelErrorLog.txt

atmelErrorLog.txt

Kindly help in this.

Regards,
Naveen.

KSZ9477 with NXP fec

Hello,

I'm trying to integrate a KSZ9477 on a NXP imx7 using your fec_main patch.
We're facing a kernel panic because of NULL pointer when we use an other iface than the first one.
Attached is the full kernel trace.

It seems to be an issue in "fec_enet_start_xmit" function.
At line : txq = fep->tx-queue[queue]; txq is NULL. I think it's because we are trying to get a queue from fep, and fep is a pointer on a"fec_enet_private" struct from a net_device that is not the first one, no tx_queue as been set for the fec on port other than the first one.

We were able to correct it adding the lines at the beggining of "fec_enet_start_xmit" function if HAVE_KSZ_SWITCH is defined :

if(fep != fep->hw_priv) {
	fep = fep->hw_priv;
}

The beggining of the xmit function is now as follow :

static netdev_tx_t
fec_enet_start_xmit(struct sk_buff *skb, struct net_device *ndev)
{
        struct fec_enet_private *fep = netdev_priv(ndev);
	int entries_free;
	unsigned short queue;
	struct fec_enet_priv_tx_q *txq;
	struct netdev_queue *nq;
	int ret;

#ifdef HAVE_KSZ_SWITCH
	unsigned long flags;
	if(fep != fep->hw_priv) {
		fep = fep->hw_priv;
	}
	spin_lock_irqsave(&fep->tx_lock, flags);
#endif

If I understand well, we need to use the "main port" (that's the name you gave in macb files) for sending values. Adding this lines force the use of the main port. Am i correct?

Kernel Panic KSZ.txt

Memory leak in ptp4l

When a ksz9477 port operates in slave mode, the memory used by ptp4l grows without limit and eventually ptp4l crashes. Performance degrades when memory usage gets large.

This can be demonstrated with the EVB by editing /ptp/avb/gPTP.cfg. Change priority1 to 248 and clockAccuracy to 0xFE. Restart ptp4l with a couple of AVB devices connected. One should become master. Watch ptp4l memory usage grow in top.

I know the memory is being allocated by msg_allocate (malloc). However, it is difficult to tell why some messages aren't being recycled. Possibly, this is related to PTP errata for device and/or the loss of TX timestamps.

KSZ9897 driver

My requirement is to interface an i2c with ksz9897 for linux kernel 4.14 version. I came across many ksz9897 drivers for different versions, I am only looking for 4.14

New kernel crashes when using SPI

I've noticed that new crashes when using SPI operations, even openning web interface (we use KSZ9567R)

There is kernel message:

Unable to handle kernel NULL pointer dereference at virtual address 00000008
pgd = ce858000
[00000008] *pgd=2e849831, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1] ARM
Modules linked in:
CPU: 0 PID: 1010 Comm: regs_bin Not tainted 4.9.143 #1
Hardware name: Atmel SAMA5
task: cf6ed080 task.stack: ceeb4000
PC is at kernfs_put_active+0x0/0x50
LR is at kernfs_fop_read+0xa8/0x190
pc : [] lr : [] psr: 20000013
sp : ceeb5ed0 ip : 00000004 fp : cf71f70c
r10: bebffa5c r9 : 00000000 r8 : 00000000
r7 : ceeb5f88 r6 : cf71f6c0 r5 : 00000001 r4 : cf71f700
r3 : cf71f6c0 r2 : 00000001 r1 : 00000000 r0 : 00000000
Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
Control: 10c53c7d Table: 2e858059 DAC: 00000051
Process regs_bin (pid: 1010, stack limit = 0xceeb4208)
Stack: (0xceeb5ed0 to 0xceeb6000)
5ec0: 00000000 00000000 8a26077a ceead900
5ee0: bebffa5c ceead900 ceeb5f88 c01076c4 ceeb4000 00000003 00000000 c01a235c
5f00: 00000000 00000000 00000001 ceeb5f10 cee49a10 cf08de58 c01c6608 ce80f000
5f20: cf63002c 00000001 cf630000 ffffff9c 00000003 ceeadc00 00000000 a0000013
5f40: 00008000 00000000 00000001 bebffa5c ceead900 ceeb5f88 c01076c4 c01a3050
5f60: 00000008 00000000 00000051 ceead900 ceead900 00000001 bebffa5c c01076c4
5f80: ceeb4000 c01a3eac 00000000 00000000 0000008c 00021174 00000001 bebffa48
5fa0: 00000003 c01074e0 00021174 00000001 00000003 bebffa5c 00000001 00000003
5fc0: 00021174 00000001 bebffa48 00000003 00000002 00000000 00000000 00000000
5fe0: b6ec6519 bebffa48 00010b47 b6ec64f6 00000030 00000003 00000000 00000000
[] (kernfs_put_active) from [] (kernfs_fop_read+0xa8/0x190)
[] (kernfs_fop_read) from [] (__vfs_read+0x20/0x110)
[] (__vfs_read) from [] (vfs_read+0x8c/0x114)
[] (vfs_read) from [] (SyS_read+0x44/0x9c)
[] (SyS_read) from [] (ret_fast_syscall+0x0/0x48)
Code: e3a00000 e12fff1e e3a00000 e49df004 (e5903008)
---[ end trace 839a80eb84127327 ]---
Unable to handle kernel NULL pointer dereference at virtual address 00000004
pgd = c0004000
[00000004] *pgd=00000000
Internal error: Oops: 817 [#2] ARM
Modules linked in:
CPU: 0 PID: 1010 Comm: regs_bin Tainted: G D 4.9.143 #1
Hardware name: Atmel SAMA5
task: cf6ed080 task.stack: ceeb4000
PC is at kernfs_put_open_node+0x3c/0x8c
LR is at kernfs_put_open_node+0x1c/0x8c
pc : [] lr : [] psr: a0000093
sp : ceeb5ce0 ip : 00000100 fp : ceead908
r10: 00000008 r9 : cee49a10 r8 : cf08dbb0
r7 : cf08eb40 r6 : cec4e5a0 r5 : cf71f700 r4 : cf71fc80
r3 : 00000000 r2 : 00000000 r1 : 60000013 r0 : 00000200
Flags: NzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none
Control: 10c53c7d Table: 2ee74059 DAC: 00000051
Process regs_bin (pid: 1010, stack limit = 0xceeb4208)
Stack: (0xceeb5ce0 to 0xceeb6000)
5ce0: cf71f700 ceead900 cf08eb40 c01fd5c8 ceead900 00000000 cf08eb40 c01a48f0
5d00: 00000000 00000000 ced7b840 cf6ed374 cf6ed080 c0b373a0 cee7f3c0 00000000
5d20: 00000017 cf6ed080 00000000 c012ca48 c0b0967c cf6ed080 cefcf700 00000001
5d40: ceeb5d48 c0117000 0000000b c01680d8 00000000 c0b368c4 c0b067a8 ceeb5e80
5d60: 60000113 0000000b 00000017 cf6ed080 00000000 c010a8d4 ceeb4208 0000000b
5d80: 00000008 00000017 ceeb5e80 cefcf700 00000008 cefcf738 00000014 c0112abc
5da0: 00000017 c010e7ec ceeb5de8 ceeb4000 ceeb4000 00010000 ceeb5de4 c0b068fc
5dc0: 00000017 c010e53c 00000008 ceeb5e80 ceeb4000 bebffa5c cf71f70c c01012cc
5de0: c0b44280 00000000 ceeb5de8 ceeb5de8 cf71f700 cec08c00 cec08804 0000007c
5e00: 00000000 00000000 cec08804 c0401f34 00000000 cec08800 cf71f6c0 c0475c90
5e20: 00000000 00007fff 00000001 00000001 00000001 cf798448 c0b22100 cf71f6c0
5e40: 00007fff c048ce70 0000007c c01af334 00000015 cf798448 00000001 00000000
5e60: cf71f6c0 cf79a000 c01fc854 20000013 ffffffff ceeb5eb4 00000000 c010b078
5e80: 00000000 00000000 00000001 cf71f6c0 cf71f700 00000001 cf71f6c0 ceeb5f88
5ea0: 00000000 00000000 bebffa5c cf71f70c 00000004 ceeb5ed0 c01fdef4 c01fc854
5ec0: 20000013 ffffffff 00000051 bf000000 00000000 00000000 8a26077a ceead900
5ee0: bebffa5c ceead900 ceeb5f88 c01076c4 ceeb4000 00000003 00000000 c01a235c
5f00: 00000000 00000000 00000001 ceeb5f10 cee49a10 cf08de58 c01c6608 ce80f000
5f20: cf63002c 00000001 cf630000 ffffff9c 00000003 ceeadc00 00000000 a0000013
5f40: 00008000 00000000 00000001 bebffa5c ceead900 ceeb5f88 c01076c4 c01a3050
5f60: 00000008 00000000 00000051 ceead900 ceead900 00000001 bebffa5c c01076c4
5f80: ceeb4000 c01a3eac 00000000 00000000 0000008c 00021174 00000001 bebffa48
5fa0: 00000003 c01074e0 00021174 00000001 00000003 bebffa5c 00000001 00000003
5fc0: 00021174 00000001 bebffa48 00000003 00000002 00000000 00000000 00000000
5fe0: b6ec6519 bebffa48 00010b47 b6ec64f6 00000030 00000003 00000000 00000000
[] (kernfs_put_open_node) from [] (kernfs_fop_release+0x24/0x48)
[] (kernfs_fop_release) from [] (__fput+0x84/0x1c0)
[] (__fput) from [] (task_work_run+0x70/0xa0)
[] (task_work_run) from [] (do_exit+0x278/0x914)
[] (do_exit) from [] (die+0x260/0x26c)
[] (die) from [] (__do_kernel_fault.part.0+0x64/0x1e8)
[] (__do_kernel_fault.part.0) from [] (do_bad_area+0x0/0x88)
[] (do_bad_area) from [] (do_page_fault+0x0/0x2b0)
[] (do_page_fault) from [<0000007c>] (0x7c)
Code: e595302c e3a0cc01 e5952028 e3a00c02 (e5823004)
---[ end trace 839a80eb84127328 ]---
Fixing recursive fault but reboot is needed!

EVB-KSZ9897 linux git

Hi,

We want to access the KSZ9897 using spi interface on X15, We are using the 4.4 kernel. Is there a Linux git repo for KSZ9897, with latest Linux kernel version ?

Is there any documentation on accessing via spi, and merging with latest kernel ?

Cheers,
--Prabhakar Lad

Reset 1PPS state

Hi,

I'm using the ptp4l tool for time syncing between devices. I need to implement a feature where the GPIO_1 output is disabled (i.e. output is 0) and when the ptp4l becomes locked I need the GPIO_1 to output 1PPS in sync with the internal clock.

By default I get the switch outputting 1PPS on this pin. I tried writing "0" to flag 3 of register 0x052F which disabled the 1PPS output but I could not get it back running by writing "1" to the same flag. Tried toggling flag "2" but with the same result.

I did notice that restarting my mac driver revives the 1PPS ouptut.
Any suggestions on how to proceed?

Thanks
Emil

KSZ8563 PTP and tail tag problem

Hello ,

I am working on integrating KSZ8563 switch to Olimex A20-SOM which uses Allwinner chip and Linux-sunxi system which supports STMMAC (not macb or freescale) as MAC driver. So far, i have intorduced KSZ9897 driver into linux kernel and integrated into stmmac (dwmac-sunxi driver) with CONFIG_KSZ_EMBEDDED according to setup_sw.c and i have taken macb as a reference. I can see that driver is integrated successfully and ksz9897 driver functions can be called from stmmac driver successfully. If i set STP state FORWARDING and disable TAIL TAG, i can ping and communicate with host CPU without problems. I can also send all PTP messages with "ptp" application of the library or with "linuxptp" without problems.

When i activate IEEE1588 PTP and tail tagging (only for host port). I cannot ping or communicate with the device anymore. As errata indicates, LENGTH CHECK is disabled by driver and i checked it. When i try to send PTP messages from "ptp" application, i can see SYNC messages on remote but as malformed. When i compare received package with the transmitted, i see that last 10 bytes is removed by switch but i expect that switch should erase 5 bytes (4 bytes for PTP and 1 byte port tag). I cannot see any PTP messages like announce when i try to send it with "ptp" application. I can see the DHPC Requests on remote side but it is also malformed like SYNC. So, it seems some packets are dropped by switch (like ping or ANNOUNCE) and others sends in malformed way (like DHCP or SYNC) with 10 bytes removed from back (i expect 5 bytes only for tail tag). When i check mib stats of the ports, when i ping, host port TX count increases but TX count of switch or ports don't increase.

When i establish another setup i disabled PTP support and enable tail-tag, 1 byte is inserted at the end of every packet but 2 bytes are removed at the remote side. I again can get DHCP req but as malformed.

I try to explain the problem as far as i can but i stucked at this point. So could you tell me what could be the problem ?

Best Regards
Fatih

iperf3 benchmark

Hello,

I compiled the kernel in vanilla configuration (make atmel_sama5d3_xplained_ksz9897_mmc_defconfig) for my EVB-KSZ9477 board.

Made sure I was connected on 1GbE (on a single port 2, other ports no connected) and run an iperf3 test.
I got 167Mbits/s. Seems that the bandwidth is 1/6'th of the maximum.

This doesn't make sense to me... Does the BW/traffic is somehow being split between ports?
How can I get full bandwidth?

Thanks
Emil

New board, no serial communication

I am new to the KSZ9477 and SAMA5D36. While reviewing some of the literature it said it would be possible to connect the MPU with a serial cable. When I connected the cable and booted the KSZ9477 I was only able to see garbage text.
Do I have to load the Linux software first?
From the literature I was under the impression the Linux software was pre-loaded.
Thanks for your help.
Regards,
Dennis

Problems flashing EVB-KSZ9477

What I want to do is edit the uboot environment parameters.

First, I can't flash the nand with Ubuntu 18.04.3 LTS:

root@lux0:/home/dave/Documents/Microchip/build/EVB-KSZ9477/KSZ/Atmel_SOC_SAMA5D3/buildroot# ./flash_board
Executing: sama5d3_xplained O=/home/dave/Documents/Microchip/build/EVB-KSZ9477/KSZ/Atmel_SOC_SAMA5D3/buildroot/output/images /home/dave/Documents/Microchip/build/EVB-KSZ9477/KSZ/Atmel_SOC_SAMA5D3/buildroot/output/host/opt/sam-ba/sam-ba /dev/ttyACM0 at91sama5d3x-xplained ./board/atmel/nandflash.tcl -- sama5d3_xplained at91-sama5d3_xplained.dtb video=LVDS-1:800x480-16
-I- Waiting ...
-I- TCL platform : Linux
-I- SAM-BA CDC 2.16 on : linux
no display name and no $DISPLAY environment variable
while executing
"load /home/dave/Documents/Microchip/build/EVB-KSZ9477/KSZ/Atmel_SOC_SAMA5D3/buildroot/output/host/opt/sam-ba/sam-ba/lib/tk8.5/../libtk8.5.so Tk"
("package ifneeded Tk 8.5.9" script)
invoked from within
"package require Tk 8.1.1"
("package ifneeded BWidget 1.9" script)
invoked from within
"package require BWidget"
(file "/home/dave/Documents/Microchip/build/EVB-KSZ9477/KSZ/Atmel_SOC_SAMA5D3/buildroot/output/host/opt/sam-ba/sam-ba/lib/tkcon.tcl" line 131)
invoked from within
"source [file join $starkit::topdir lib/tkcon.tcl]"
(file "/home/dave/Documents/Microchip/build/EVB-KSZ9477/KSZ/Atmel_SOC_SAMA5D3/buildroot/output/host/opt/sam-ba/sam-ba/main.tcl" line 7)
/buildroot# apt-get install tk8.1.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package tk8.1.1
E: Couldn't find any package by glob 'tk8.1.1'
E: Couldn't find any package by regex 'tk8.1.1'

I can flash the image files from windows but so far I haven't discovered the magic to create the file ubootEnvtFileNandFlash.bin. The file uboot.env is created in a mmc build but not in a nand flash build. I looked at the two ubootEnvtFileNandFlash.bin files that I have. However, they don't seem to be standard uboot environment files.

How are they generated?

It may be flash_board generates the default uboot environments...

How to use setup_sw.c under the EVB-KSZ9477\KSZ\linux-drivers\ksz9897\linux-4.9\doc

I am using KSZ9477 port6 as phy in my network, port1 and port2 as ports for connetction.
|——————-————| |——————-————|
| e000b000—|— rgmii—|—port6 port1
| ZTNQ | | KSZ9477 port2
|——————-—--|--—| |—-|————--————|
|SPI__|
I use linux kernel 4.9 in my device, i add source codes under KSZ\linux-drivers\ksz9897\linux-4.9\drivers\net\ethernet\micrel into my kernel tree, and device tree:
&gem0 {
phy-mode = "rgmii-id";
status = "okay";
xlnx,ptp-enet-clock = <0x7f28150>;
fixed-link = <0 1 1000 0 0>;
};
&spi0 {
is-decoded-cs = <0>;
num-cs = <2>;
status = "okay";
ksz9477: ksz9477@0 {
compatible = "microchip,ksz9477";
reg = <0>;
phy-mode = "rgmii-id";
spi-max-frequency = <44000000>;
spi-cpha;
spi-cpol;
interrupt-parent = <&intc>;
interrupts = <0 19 8>;
status = "okay";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
label = "lan1";
};
port@1 {
reg = <1>;
label = "lan2";
};
port@2 {
reg = <2>;
label = "lan3";
};
port@6 {
reg = <6>;
label = "cpu";
ethernet = <&gem0>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
};
};
when booting there is some log for network:
ksz9897 spi1.0: chip id 0x00947700
libphy: Switch MII bus: probed
libphy: Fixed MDIO Bus: probed
libphy: MACB_mii_bus: probed
macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 30 (00:0a:35:00:1e:53)
Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=-1)
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
Configuring network interfaces... IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
udhcpc (v1.24.1) started
Sending discover...
macb e000b000.ethernet eth0: link up (1000/Full)
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
but it seem not work, there is no sysfs in /sys/class/net/eth0 for ksz9477 like "sw1"、"sw2" etc.
I don't wether other components like dsa and bridge should be added into my kernel tree?
And I found functions in setup_sw.c are useful to setup ksz9477, but is seem dose not in the driver of ksz9477, how to use this?

EVB_KSZ9477_Software_Setup_Guide.pdf is inconsistent

EVB KSZ9477 Software Setup Guide
Rev 0.4
July 28, 2017

While trying to setup HSR configuration I've met this document EVB_KSZ9477_Software_Setup_Guide.pdf to be confusing.

eg.
7.4 High-Availability Seamless Ring (HSR)
is metioned to setup different MAC addresses for both HSR ports refering to 4.2 how to do this.

However instead of 4.2 should be 5.2 and there is only specified how to setup only one/first MAC address - not mentioned how to do this to the second, or other ports.

KSZ9897 Kernel 4.14 compilation errors

I'm compiling the KSZ9897 (a ksz9567 switch) driver for kernel 4.14, but am getting several compilation errors, some of which seem to be reverts from the most recent commit. Was there a reason for these reverts?

Changing from refcount_set() back to atomic_set():

if (!sk) {
sk = &dummy;
sk->sk_allocation = GFP_KERNEL;
atomic_set(&sk->sk_wmem_alloc, 1);
}

Changing back to *.tv64:

cur_ktime.tv64 -= ptp->first_ktime.tv64;
drift_ktime = cur_ktime.tv64 - passed_nsec;
drift_ktime = div_s64_rem(drift_ktime, passed_sec, &rem);

Reference to non-existent member mtu of the ksz_sw struct:

static void sw_init(struct ksz_sw *sw)
{
memset(sw->tx_pad, 0, 60);
sw->tx_start = 0;
sw_init_cached_regs(sw);
sw->open_ports = sw->PORT_MASK & ~sw->HOST_MASK;
sw->mtu = sw->reg->r16(sw, REG_SW_MTU__2);

ksz8462: integration

Hello,

I am in a process of integrating ksz8462 on a raspberry interface.
After some tests, it seems I am stuck ...

I have modified the sample program to load the device driver with something like that:

#define IRQ_KSZ8462HLI		44	/* INTRN */

static struct resource ksz8462hli_resource[] = {
	[0] = {
		.start = KSZ8462HLI_PA_DATA,
		.end   = KSZ8462HLI_PA_DATA + KSZ8462HLI_SZ - 1,
		.flags = IORESOURCE_MEM,
	},
	[1] = {
		.start = KSZ8462HLI_PA_CMD,
		.end   = KSZ8462HLI_PA_CMD + KSZ8462HLI_SZ - 1,
		.flags = IORESOURCE_MEM,
	},
	[2] = {
		.start = IRQ_KSZ8462HLI,
		.end   = IRQ_KSZ8462HLI,
		.flags = IORESOURCE_IRQ,
	},
};

static struct platform_device *pdev;

static int __init ksz8462_add(void)
{	
	int inst_id = -1;
	int err;
	pdev = platform_device_alloc("ksz8462_hli", inst_id);
	if (!pdev) {
		err = -ENOMEM;
		pr_err("Device allocation failed\n");
		goto exit;
	}
	err = platform_device_add_resources(pdev, ksz8462hli_resource,
		ARRAY_SIZE(ksz8462hli_resource));
	if (err) {
		pr_err("Device resources addition failed (%d)\n", err);
		goto exit_device_put;
	}
	err = platform_device_add(pdev);
	if (err) {
		pr_err("Device addition failed (%d)\n", err);
		goto exit_device_put;
	}
	return 0;

The driver is loaded, but I have a problem when the driver get the device ID:

[   19.758130] ksz8462_hli ksz8462_hli: failed to read device ID(0x0f)

Iin fact, I am not sure on how to drive the logic (CSN, RDN, WRN) from the device driver itself and for sure, also about both define KSZ8462HLI_PA_DATA & KSZ8462HLI_PA_CMD regarding the raspberry registers.

Any help will be appreciated :)

Thanks!

/Pierre-Jean

ksz_mii_exit() crash when driver unloaded

Please remove the below call to kfree - or driver crash when unloaded.

@@ -17363,7 +17369,8 @@ static void ksz_mii_exit(struct sw_priv *ks)
                        port = &ks->ports[i];
                        flush_work(&port->link_update);
-                       kfree(phydev->priv);
+                       // priv part of larger allocation and kfree will crash
+                       // kfree(phydev->priv);
                }
        }

unload/load can be tested with these commands (here using i2c bus#1@0x5f):

echo 1-005f > /sys/bus/i2c/drivers/ksz9897/unbind
echo 1-005f > /sys/bus/i2c/drivers/ksz9897/bind

sw_get_br_id() returns ptr to stack (invalid after return)

sw_get_br_id() should not return a pointer to "id" located on the stack (invalid after return).
This will also fix a compile warning (want all source to compile without warnings).
My local fix is to change "id" to a static but it assumes that only one thread executes this at a time (likely to be ok).

+--- a/drivers/net/ethernet/micrel/ksz_sw_9897.c
++++ b/drivers/net/ethernet/micrel/ksz_sw_9897.c
+@@ -13119,7 +13119,7 @@ static void sw_free_fid(struct ksz_sw *sw, u16 fid)
+ 
+ static const u8 *sw_get_br_id(struct ksz_sw *sw)
+ {
+-      u8 id[8];
++      static u8 id[8];
+       const u8* ret = id;
+ 
+       memcpy(&id[2], sw->info->mac_addr, ETH_ALEN);

Web interface optimization

Hello, I've tried to use Web interface, but it works not so fast as I expected. How can I improve the webpage loading speed? Especially loading information about port configuration and VLAN (PVID).

Port remap

Hi!
I'm using KSZ9567R, in at91-sama5d3_xplained_ung8071.dts it's ports description like
ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; label = "lan1"; }; ... };
How can I remap port order for example if I want to make 3rd physical switch port like 1st port of device?

KSZ9897S with SGMII

Hello,

I plan to use the KSZ9897S switch to connect to the CPU through the SGMII port. The host processor is qualcomm arm with modificated linux kernel 3.18. SGMII provided by qcom_emac.
I don't need advanced switch functions right now, only vlan and tagging.

Is it possible? What drivers should I use?

Commit Correct HSR RedBox crashes booting process

Commits before Correct HSR RedBox implementation by using driver to forward frames a… (474171e) compiles and works well. But when applying upper commit Linux Kernel compiles successfully, but when booting it sends the following message:
`
Starting kernel ...

data abort
pc : [<22000a48>] lr : [<00000020>]
sp : 2242a8e8 ip : 00003954 fp : 224298e4
r10: 2242a908 r9 : 2243a908 r8 : 00000000
r7 : 20008000 r6 : 00000024 r5 : 00000014 r4 : 224298bc
r3 : 3b641d02 r2 : 00000000 r1 : 000a0dff r0 : 0000001c
Flags: nZCv IRQs off FIQs off Mode SVC_32
Resetting CPU ...
`

Unable to setup Switch as 2 step TC

Hi all,

I want to run KSZ9477 as 2 step transparent clock. I expect to get correction factor of Followup message to be updated .

However, when i am enabling 2 step mode by setting 515 as 78h then Sync & Follow Up messages are getting dropped and only receiving Announce messages on other ports.

Can anyone explain this type of behavior in KSZ9477 switch ?

KSZ8895 Compilation and use

Hi,

I'm running Linux Yocto 4.1.15 using an NXP i.mx6s ARM processor with the KSZ8895.
I've managed to get spi-ksz8895 to compile to a .ko, and i can manually modprobe to mount it.

I've read the README but i'm not clear what i need to do to use the switch driver. Do i have to compile and run the sw_setup to setup the switch, and then ksz_sw_sysfs_8895 to create a /spi0.0/sw interface?

Booting the EVB-KSZ9477 from SD card

Hello,

I am a beginner and new to this community.

I want to boot the EVB-KSZ9477 board and I followed the instructions given in EVB-KSZ9477 Image Programming Guide for SD card but I am not able to boot the board with it.
After doing SD card Image programming as per the instructions given in the Image Programming guide, when I put SD card in EVB-KSZ9477 SD card slot, powering up the board and connecting it with computer with USB cable and doing the MCU reset button the board is not able to boot with SD card and build root login terminal doesnot appear.

Am I doing it the right way or am I missing some thing?

Please guide me with a solution.

Thank you,
Samir

KSZ9477S with SGMII

Hello,

I plan to use the KSZ9477S switch to connect to the dp83867 phy through the SGMII port. when seteenv sgmii is 2, after boot,it cannot ping serverip(192.168.0.210),sometimes ping ok just once.

Is it possible? What drivers should I use?

KSZ9477 DLR

I am attempting to get device level ring running between two KSZ9477 eval boards. Currently, by following the steps in the software guide, I am unable to run the echo command as there is no dlrfs directory. When I attempt to run in bridge mode I am finally able to get functionality, but I am unable to pas traffic through the other ports of the board.

I have had the same outcome with the software on the board from the factory and software built form here.

Thanks,

Rylee

BUG: Bad page state in process irq/109-spi1.0 when using IBA register access

The following kernel backtrace is sometimes triggered on telnet/ssh login:

BUG: Bad page state in process irq/109-spi1.0 pfn:2e8e8
page:cffccd00 count:-1 mapcount:0 mapping: (null) index:0x0
flags: 0x0()
page dumped because: nonzero _count
Modules linked in:
CPU: 0 PID: 600 Comm: irq/109-spi1.0 Not tainted 4.9.234 #1
Hardware name: Atmel SAMA5
[] (unwind_backtrace) from [] (show_stack+0x10/0x14)
[] (show_stack) from [] (bad_page+0xe8/0x14c)
[] (bad_page) from [] (get_page_from_freelist+0x758/0x894)
[] (get_page_from_freelist) from [] (__alloc_pages_nodemask+0xb0/0xa44)
[] (__alloc_pages_nodemask) from [] (__alloc_page_frag+0x94/0x174)
[] (__alloc_page_frag) from [] (__netdev_alloc_skb+0x64/0x108)
[] (__netdev_alloc_skb) from [] (gem_rx_refill+0x94/0x1b8)
[] (gem_rx_refill) from [] (gem_rx+0x25c/0x2bc)
[] (gem_rx) from [] (macb_poll+0x44/0xf4)
[] (macb_poll) from [] (net_rx_action+0x1c8/0x2b0)
[] (net_rx_action) from [] (__do_softirq+0xd8/0x1f4)
[] (__do_softirq) from [] (__handle_domain_irq+0x58/0xa8)
[] (__handle_domain_irq) from [] (__irq_svc+0x6c/0x90)
[] (__irq_svc) from [] (schedule_timeout+0xd8/0x148)
[] (schedule_timeout) from [] (wait_for_common+0x80/0x118)
[] (wait_for_common) from [] (iba_reqs+0x150/0x1c8)
[] (iba_reqs) from [] (iba_r+0x9c/0xdc)
[] (iba_r) from [] (iba_r8+0x18/0x20)
[] (iba_r8) from [] (sw_change+0x518/0x668)
[] (sw_change) from [] (sw_interrupt+0x1c/0x24)
[] (sw_interrupt) from [] (irq_thread_fn+0x1c/0x5c)
[] (irq_thread_fn) from [] (irq_thread+0x114/0x170)
[] (irq_thread) from [] (kthread+0xf4/0x10c)
[] (kthread) from [] (ret_from_fork+0x14/0x24)
Disabling lock debugging due to kernel taint

Haven't seen it with iba=0.

The error suggests a double free or something similar.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.