kernel panic in fec network driver on iMX6ULL

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

kernel panic in fec network driver on iMX6ULL

1,477件の閲覧回数
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

ラベル(1)
タグ(2)
0 件の賞賛
4 返答(返信)

929件の閲覧回数
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 件の賞賛

929件の閲覧回数
dallasfoley
Contributor I

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

0 件の賞賛

929件の閲覧回数
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 件の賞賛

929件の閲覧回数
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 件の賞賛