kernel panic in fec network driver on iMX6ULL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

kernel panic in fec network driver on iMX6ULL

1,646 Views
dallasfoley
Contributor I

I'm currently seeing kernel panics in the fec driver when configuring and re-configuring my network with netplan.io in ubuntu.

I'm seeing this on our own hardware as well as the iMX6ULL EVK. The kernel version is 4.14.98. I've also tried using 5.4 from git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git.

I noticed the panic happens when unbinding and then binding the device to the driver, which netplan.io seems to by running strace.

eg. running the following commands can cause the kernel panic.

~# echo -n "20b4000.ethernet" > /sys/bus/platform/drivers/fec/ubind
~# echo -n "20b4000.ethernet" > /sys/bus/platform/drivers/fec/bind

Labels (1)
Tags (2)
0 Kudos
4 Replies

1,098 Views
igorpadykov
NXP Employee
NXP Employee

Hi Dallas

nxp does not support netplan on its linux releases, issue may be posted

on netplan wiki: https://launchpad.net/netplan/+filebug 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,098 Views
dallasfoley
Contributor I

It's the unbinding/binding from sysfs that exposes the bug in the driver.

0 Kudos

1,098 Views
fabio_estevam
NXP Employee
NXP Employee

Hi Dallas,

Performing unbind/bind operation on the FEC driver is not safe. Please check the details in this commit where I disable the unbind operation in the driver:

kernel/git/netdev/net-next.git - David Miller's -next networking tree 

You can still build the FEC driver as module and load/unload it.

Regards,

Fabio Estevam

0 Kudos

1,098 Views
dallasfoley
Contributor I

Thanks Fabio, I've applied the patch and now blocks unbinding the driver. It looks like netplan.io is aware of SOC's that don't support network driver unbinding.

Bug #1706680 “add config file to list drivers that do not suppor...” : Bugs : nplan package : Ubuntu 

Bug #1756322 “'netplan apply' fails when trying to activate anot...” : Bugs : netplan 

0 Kudos