linux-imx (2.6.35.3): Disable NAPI
Fabio Estevam
reviewerPATCH 1/1 linux-imx (2.6.35.3): Disable NAPI
From: Fabio Estevam <[email protected]>
commit 0a9469a14c5 (linux-imx (2.6.35.3): Enable FEC_NAPI in the MX5 defconfig) enabled NAPI support on mx5 defconfig and causes the following kernel crash:
Starting advanced power management daemon: kernel BUG at include/linux/netdevice.h:462!
Unable to handle kernel NULL pointer dereference at virtual address 00000000
apmd.
apmd[1613]: apmd 3.2.1 interfacimxc_ipu mxc_ipu: Channel already disabled 9 mxc_ipu mxc_ipu: Channel already uninitialized 9
ng with apm driver 1.13 and APM BIOS 1.2
pgd = df79c000
[00000000] *pgd=cf598031, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1] PREEMPT last sysfs file: /sys/devices/platform/mxc_sdc_fb.1/graphics/fb0/mode Modules linked in: CPU: 0 Not tainted (2.6.35.3-maintain+yocto+g2796ca6 #1) PC is at __bug+0x1c/0x28 LR is at __bug+0x18/0x28 pc : [<80035c28>] lr : [<80035c24>] psr: 600f0013
sp : df635e38 ip : e08fe000 fp : 00008914
r10: 7ebf48e0 r9 : 00000000 r8 : 00000001
r7 : 00009002 r6 : 00000001 r5 : 8045406c r4 : df011000 r3 : 00000000 r2 : df635e2c r1 : 807a3d2b r0 : 00000033
Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 10c5387d Table: cf79c019 DAC: 00000015 Process connmand (pid: 1589, stack limit = 0xdf6342e8)
Stack: (0xdf635e38 to 0xdf636000)
5e20: 00000000 802a833c
5e40: df011000 000000e2 df011000 8045406c 00000001 00009002 00000001 00000000 5e60: 7ebf48e0 80376224 803761a8 df011000 ffff9003 80376464 00008914 df011000 5e80: 00009002 df422000 df011000 80376554 00000000 df42200c df422000 803b8438 5ea0: df634000 00000000 30687465 00000000 00000000 00000000 00009003 00000000 5ec0: 00000000 00000000 00000000 00008914 803639d4 7ebf48e0 808cdebc 80033004 5ee0: df634000 00093250 7ebf48e0 80363be0 0000c000 df561000 803639d4 7ebf48e0 5f00: 00008914 800d5c78 0000c000 7ebf48e0 df561000 00008914 0000000d 800d66d8 5f20: 00000003 80712c08 808cdce8 df634000 00093250 800c964c 00000000 0000000d 5f40: de289c00 df635f84 00080000 803641ec df634000 df052800 de28e800 00000000 5f60: 00000000 7ebf48e0 df561000 00008914 0000000d 80033004 df634000 00093250 5f80: 7ebf4cf4 800d6760 0000000d 00000000 7ebf48e0 0000000d 00000000 00000001 5fa0: 00000036 80032e80 0000000d 00000000 0000000d 00008914 7ebf48e0 00009002 5fc0: 0000000d 00000000 00000001 00000036 00000000 000001bc 00093250 7ebf4cf4 5fe0: 0008e5ac 7ebf48dc 00053ef4 4d196fec 600f0010 0000000d 00000000 00000000 [<80035c28>] (__bug+0x1c/0x28) from [<802a833c>] (fec_enet_open+0x2c/0x25c) [<802a833c>] (fec_enet_open+0x2c/0x25c) from [<80376224>] (__dev_open+0x7c/0xfc) [<80376224>] (__dev_open+0x7c/0xfc) from [<80376464>] (__dev_change_flags+0x8c/0x110) [<80376464>] (__dev_change_flags+0x8c/0x110) from [<80376554>] (dev_change_flags+0x10/0x44) [<80376554>] (dev_change_flags+0x10/0x44) from [<803b8438>] (devinet_ioctl+0x298/0x694) [<803b8438>] (devinet_ioctl+0x298/0x694) from [<80363be0>] (sock_ioctl+0x20c/0x25c) [<80363be0>] (sock_ioctl+0x20c/0x25c) from [<800d5c78>] (vfs_ioctl+0x2c/0xac) [<800d5c78>] (vfs_ioctl+0x2c/0xac) from [<800d66d8>] (do_vfs_ioctl+0x514/0x56c) [<800d66d8>] (do_vfs_ioctl+0x514/0x56c) from [<800d6760>] (sys_ioctl+0x30/0x58) [<800d6760>] (sys_ioctl+0x30/0x58) from [<80032e80>] (ret_fast_syscall+0x0/0x30)
Code: e59f0010 e1a01003 eb0fb87b e3a03000 (e5833000) ---[ end trace 1602d2bf9360375c ]---
Disable CONFIG_FEC_NAPI option so that we can have FEC functional again.
--- recipes-kernel/linux/linux-imx-2.6.35.3/mx5/defconfig | 1 - 1 file changed, 1 deletion(-)
recipes-kernel/linux/linux-imx-2.6.35.3/mx5/defconfig +0 -1
@@ -874,7 +874,6 @@ CONFIG_SMSC911X=y # CONFIG_KS8851 is not set # CONFIG_KS8851_MLL is not set CONFIG_FEC=y -CONFIG_FEC_NAPI=y # CONFIG_FEC_1588 is not set # CONFIG_FEC2 is not set # CONFIG_NETDEV_1000 is not set
Signature · 1 line
1.8.1.2
Please push this in.
-----Original Message-----
From: Fabio Estevam [mailto:[email protected]]
Sent: Thursday, June 06, 2013 3:42 PM
To: [email protected]
Cc: Mahadevan Mahesh-R9AADQ; Angolini Daiane-B19406; [email protected]; Estevam Fabio-R49496
Subject: [PATCH] [meta-fsl-arm-extra] linux-imx (2.6.35.3): Disable NAPI
From: Fabio Estevam <[email protected]>
commit 0a9469a14c5 (linux-imx (2.6.35.3): Enable FEC_NAPI in the MX5 defconfig) enabled NAPI support on mx5 defconfig and causes the following kernel crash:
Starting advanced power management daemon: kernel BUG at include/linux/netdevice.h:462!
Unable to handle kernel NULL pointer dereference at virtual address 00000000
apmd.
apmd[1613]: apmd 3.2.1 interfacimxc_ipu mxc_ipu: Channel already disabled 9 mxc_ipu mxc_ipu: Channel already uninitialized 9
ng with apm driver 1.13 and APM BIOS 1.2
pgd = df79c000
[00000000] *pgd=cf598031, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1] PREEMPT last sysfs file: /sys/devices/platform/mxc_sdc_fb.1/graphics/fb0/mode Modules linked in: CPU: 0 Not tainted (2.6.35.3-maintain+yocto+g2796ca6 #1) PC is at __bug+0x1c/0x28 LR is at __bug+0x18/0x28 pc : [<80035c28>] lr : [<80035c24>] psr: 600f0013
sp : df635e38 ip : e08fe000 fp : 00008914
r10: 7ebf48e0 r9 : 00000000 r8 : 00000001
r7 : 00009002 r6 : 00000001 r5 : 8045406c r4 : df011000 r3 : 00000000 r2 : df635e2c r1 : 807a3d2b r0 : 00000033
Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 10c5387d Table: cf79c019 DAC: 00000015 Process connmand (pid: 1589, stack limit = 0xdf6342e8)
Stack: (0xdf635e38 to 0xdf636000)
5e20: 00000000 802a833c
5e40: df011000 000000e2 df011000 8045406c 00000001 00009002 00000001 00000000 5e60: 7ebf48e0 80376224 803761a8 df011000 ffff9003 80376464 00008914 df011000 5e80: 00009002 df422000 df011000 80376554 00000000 df42200c df422000 803b8438 5ea0: df634000 00000000 30687465 00000000 00000000 00000000 00009003 00000000 5ec0: 00000000 00000000 00000000 00008914 803639d4 7ebf48e0 808cdebc 80033004 5ee0: df634000 00093250 7ebf48e0 80363be0 0000c000 df561000 803639d4 7ebf48e0 5f00: 00008914 800d5c78 0000c000 7ebf48e0 df561000 00008914 0000000d 800d66d8 5f20: 00000003 80712c08 808cdce8 df634000 00093250 800c964c 00000000 0000000d 5f40: de289c00 df635f84 00080000 803641ec df634000 df052800 de28e800 00000000 5f60: 00000000 7ebf48e0 df561000 00008914 0000000d 80033004 df634000 00093250 5f80: 7ebf4cf4 800d6760 0000000d 00000000 7ebf48e0 0000000d 00000000 00000001 5fa0: 00000036 80032e80 0000000d 00000000 0000000d 00008914 7ebf48e0 00009002 5fc0: 0000000d 00000000 00000001 00000036 00000000 000001bc 00093250 7ebf4cf4 5fe0: 0008e5ac 7ebf48dc 00053ef4 4d196fec 600f0010 0000000d 00000000 00000000 [<80035c28>] (__bug+0x1c/0x28) from [<802a833c>] (fec_enet_open+0x2c/0x25c) [<802a833c>] (fec_enet_open+0x2c/0x25c) from [<80376224>] (__dev_open+0x7c/0xfc) [<80376224>] (__dev_open+0x7c/0xfc) from [<80376464>] (__dev_change_flags+0x8c/0x110) [<80376464>] (__dev_change_flags+0x8c/0x110) from [<80376554>] (dev_change_flags+0x10/0x44) [<80376554>] (dev_change_flags+0x10/0x44) from [<803b8438>] (devinet_ioctl+0x298/0x694) [<803b8438>] (devinet_ioctl+0x298/0x694) from [<80363be0>] (sock_ioctl+0x20c/0x25c) [<80363be0>] (sock_ioctl+0x20c/0x25c) from [<800d5c78>] (vfs_ioctl+0x2c/0xac) [<800d5c78>] (vfs_ioctl+0x2c/0xac) from [<800d66d8>] (do_vfs_ioctl+0x514/0x56c) [<800d66d8>] (do_vfs_ioctl+0x514/0x56c) from [<800d6760>] (sys_ioctl+0x30/0x58) [<800d6760>] (sys_ioctl+0x30/0x58) from [<80032e80>] (ret_fast_syscall+0x0/0x30)
Code: e59f0010 e1a01003 eb0fb87b e3a03000 (e5833000) ---[ end trace 1602d2bf9360375c ]---
Disable CONFIG_FEC_NAPI option so that we can have FEC functional again.
--- recipes-kernel/linux/linux-imx-2.6.35.3/mx5/defconfig | 1 - 1 file changed, 1 deletion(-)
recipes-kernel/linux/linux-imx-2.6.35.3/mx5/defconfig +0 -1
@@ -874,7 +874,6 @@ CONFIG_SMSC911X=y # CONFIG_KS8851 is not set # CONFIG_KS8851_MLL is not set CONFIG_FEC=y -CONFIG_FEC_NAPI=y # CONFIG_FEC_1588 is not set # CONFIG_FEC2 is not set # CONFIG_NETDEV_1000 is not set
Signature · 1 line
1.8.1.2
Otavio Salvador
AppliedQuoted 81 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
commit
0a9469a14c5(linux-imx (2.6.35.3): EnableFEC_NAPIin the MX5 defconfig)
enabled NAPI support on mx5 defconfig and causes the following kernel crash:Starting advanced power management daemon: kernel BUG at
include/linux/netdevice.h:462!Unable to handle kernel NULL pointer dereference at virtual address00000000
apmd.
apmd[1613]: apmd 3.2.1interfacimxc_ipumxc_ipu: Channel already disabled 9mxc_ipumxc_ipu: Channel already uninitialized 9
ng with apm driver 1.13 and APM BIOS 1.2
pgd =df79c000
[00000000] *pgd=cf598031, *pte=00000000, *ppte=00000000Internal error: Oops: 817 [#1] PREEMPT last sysfs file: /sys/devices/platform/mxc_sdc_fb.1/graphics/fb0/mode Modules linked in: CPU: 0 Not tainted (2.6.35.3-maintain+yocto+g2796ca6 #1) PC is at __bug+0x1c/0x28 LR is at __bug+0x18/0x28 pc : [<80035c28>] lr : [<80035c24>] psr: 600f0013sp :
df635e38ip :e08fe000fp : 00008914
r10:7ebf48e0r9 : 00000000 r8 : 00000001
r7 : 00009002 r6 : 00000001 r5 :8045406cr4 :df011000r3 : 00000000 r2 :df635e2cr1 :807a3d2br0 : 00000033
Flags: nZCv IRQs on FIQs on ModeSVC_32ISA ARM Segment user
Control:10c5387dTable:cf79c019DAC: 00000015 Process connmand (pid: 1589, stack limit =0xdf6342e8)Stack: (0xdf635e38 to 0xdf636000)5e20: 00000000
802a833c
5e40:df011000000000e2df0110008045406c00000001 00009002 00000001 00000000
5e60:7ebf48e080376224803761a8df011000ffff900380376464 00008914df011000
5e80: 00009002df422000df01100080376554 00000000df42200cdf422000803b8438
5ea0:df63400000000000 30687465 00000000 00000000 00000000 00009003 00000000
5ec0: 00000000 00000000 00000000 00008914803639d47ebf48e0808cdebc80033004
5ee0:df634000000932507ebf48e080363be00000c000df561000803639d47ebf48e0
5f00: 00008914800d5c780000c0007ebf48e0df561000000089140000000d800d66d8
5f20: 0000000380712c08808cdce8df63400000093250800c964c000000000000000d
5f40:de289c00df635f8400080000803641ecdf634000df052800de28e80000000000
5f60: 000000007ebf48e0df561000000089140000000d80033004df63400000093250
5f80:7ebf4cf4800d67600000000d000000007ebf48e00000000d00000000 00000001
5fa0: 0000003680032e800000000d000000000000000d000089147ebf48e000009002
5fc0:0000000d00000000 00000001 00000036 00000000000001bc000932507ebf4cf4
5fe0:0008e5ac7ebf48dc00053ef44d196fec600f00100000000d00000000 00000000
[<80035c28>] (__bug+0x1c/0x28) from [<802a833c>] (fec_enet_open+0x2c/0x25c) [<802a833c>] (fec_enet_open+0x2c/0x25c) from [<80376224>] (__dev_open+0x7c/0xfc)
[<80376224>] (__dev_open+0x7c/0xfc) from [<80376464>] (__dev_change_flags+0x8c/0x110)
[<80376464>] (__dev_change_flags+0x8c/0x110) from [<80376554>] (dev_change_flags+0x10/0x44)
[<80376554>] (dev_change_flags+0x10/0x44) from [<803b8438>] (devinet_ioctl+0x298/0x694)
[<803b8438>] (devinet_ioctl+0x298/0x694) from [<80363be0>] (sock_ioctl+0x20c/0x25c)
[<80363be0>] (sock_ioctl+0x20c/0x25c) from [<800d5c78>] (vfs_ioctl+0x2c/0xac)
[<800d5c78>] (vfs_ioctl+0x2c/0xac) from [<800d66d8>] (do_vfs_ioctl+0x514/0x56c)
[<800d66d8>] (do_vfs_ioctl+0x514/0x56c) from [<800d6760>] (sys_ioctl+0x30/0x58)
[<800d6760>] (sys_ioctl+0x30/0x58) from [<80032e80>] (ret_fast_syscall+0x0/0x30)
Quoted 7 lines
Code: e59f0010 e1a01003 eb0fb87b e3a03000 (e5833000) ---[ end trace 1602d2bf9360375c ]---Disable
CONFIG_FEC_NAPIoption so that we can have FEC functional again.Signed-off-by Fabio Estevam <[email protected]>
I applied it in master; thanks for sending it.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://projetos.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750