Skip to contentSkip to conversation

All Applied micro boards are failing with current mainline kernel

DISCUSSION Rupjyoti Sarmah 4 participants 8 messages Oct 30, 2010 – Nov 1, 2010 Network drivers

lore
Share & tools
lore
#0 lore raw

Hi ,

APM boards Canyonlands/Kilauea/Glacier/Katmai/Sequoia are all failing during booting.

Call trace is same for all

Call Trace:

[df835d70] [c02d27cc] emac_probe+0xf28/0x12a8 (unreliable)

[df835e50] [c023c7cc] platform_driver_probe_shim+0x40/0x54

[df835e60] [c01bf354] platform_drv_probe+0x20/0x30

[df835e70] [c01bde68] driver_probe_device+0x148/0x1ac

[df835e90] [c01be17c] __driver_attach+0xa4/0xa8

[df835eb0] [c01bcfa4] bus_for_each_dev+0x60/0x9c

[df835ee0] [c01bdbbc] driver_attach+0x24/0x34

[df835ef0] [c01bd94c] bus_add_driver+0x1b8/0x274

[df835f20] [c01be3d8] driver_register+0x6c/0x160

[df835f40] [c01bf6c4] platform_driver_register+0x68/0x78

[df835f50] [c023c998] of_register_platform_driver+0xa8/0xc4

[df835f60] [c0393e88] emac_init+0x1ac/0x1dc

[df835fa0] [c0001574] do_one_initcall+0x160/0x1a8

[df835fd0] [c037a1e8] kernel_init+0xcc/0x174

[df835ff0] [c000c5b0] kernel_thread+0x4c/0x68

Instruction dump:

419e016c 2f800007 419e0164 38130774 901a00d0 381306b0 901a00d4 7f43d378

4bf91d89 817a01a0 39200001 380b0008 <7d400028> 7d4a4b78 7d40012d 40a2fff4

---[ end trace dac0cf4779f83901 ]---

Regards,
Rup

#1 lore raw
Quoted 4 lines · Rupjyoti Sarmah

Hi ,

APM boards Canyonlands/Kilauea/Glacier/Katmai/Sequoia are all failing during booting.

What kernel version? What config? Have you tried a git bisect to see when it broke? Etc, etc.

Also, CC'ing linuxppc-dev would have been a good idea. Not many on lkml are even going to know what you're talking about with such sparse details.

josh

Quoted 42 lines

Call trace is same for all

Call Trace:

[df835d70] [c02d27cc] emac_probe+0xf28/0x12a8 (unreliable)

[df835e50] [c023c7cc] platform_driver_probe_shim+0x40/0x54

[df835e60] [c01bf354] platform_drv_probe+0x20/0x30

[df835e70] [c01bde68] driver_probe_device+0x148/0x1ac

[df835e90] [c01be17c] __driver_attach+0xa4/0xa8

[df835eb0] [c01bcfa4] bus_for_each_dev+0x60/0x9c

[df835ee0] [c01bdbbc] driver_attach+0x24/0x34

[df835ef0] [c01bd94c] bus_add_driver+0x1b8/0x274

[df835f20] [c01be3d8] driver_register+0x6c/0x160

[df835f40] [c01bf6c4] platform_driver_register+0x68/0x78

[df835f50] [c023c998] of_register_platform_driver+0xa8/0xc4

[df835f60] [c0393e88] emac_init+0x1ac/0x1dc

[df835fa0] [c0001574] do_one_initcall+0x160/0x1a8

[df835fd0] [c037a1e8] kernel_init+0xcc/0x174

[df835ff0] [c000c5b0] kernel_thread+0x4c/0x68

Instruction dump:

419e016c 2f800007 419e0164 38130774 901a00d0 381306b0 901a00d4 7f43d378

4bf91d89 817a01a0 39200001 380b0008 <7d400028> 7d4a4b78 7d40012d 40a2fff4

Quoted 7 lines
---[ end trace dac0cf4779f83901 ]---

Regards,
Rup
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" i=

n

Quoted 4 lines

the body of a message to [email protected]
More majordomo info at =A0http://vger.kernel.org/majordomo-info.html Please read the FAQ at =A0http://www.tux.org/lkml/

#2 lore raw
Quoted 1 line · Josh Boyer

On Fri, Oct 29, 2010 at 11:06 PM, Rupjyoti Sarmah <[email protected]> wrote=

:

Quoted 6 lines
Quoted 4 lines

Hi ,

APM boards Canyonlands/Kilauea/Glacier/Katmai/Sequoia are all failing during booting.

What kernel version? =A0What config? =A0Have you tried a git bisect to se=

e

Quoted 42 lines

when it broke? =A0Etc, etc.

Quoted 41 lines

Call trace is same for all

Call Trace:

[df835d70] [c02d27cc] emac_probe+0xf28/0x12a8 (unreliable)

[df835e50] [c023c7cc] platform_driver_probe_shim+0x40/0x54

[df835e60] [c01bf354] platform_drv_probe+0x20/0x30

[df835e70] [c01bde68] driver_probe_device+0x148/0x1ac

[df835e90] [c01be17c] __driver_attach+0xa4/0xa8

[df835eb0] [c01bcfa4] bus_for_each_dev+0x60/0x9c

[df835ee0] [c01bdbbc] driver_attach+0x24/0x34

[df835ef0] [c01bd94c] bus_add_driver+0x1b8/0x274

[df835f20] [c01be3d8] driver_register+0x6c/0x160

[df835f40] [c01bf6c4] platform_driver_register+0x68/0x78

[df835f50] [c023c998] of_register_platform_driver+0xa8/0xc4

[df835f60] [c0393e88] emac_init+0x1ac/0x1dc

[df835fa0] [c0001574] do_one_initcall+0x160/0x1a8

[df835fd0] [c037a1e8] kernel_init+0xcc/0x174

[df835ff0] [c000c5b0] kernel_thread+0x4c/0x68

Instruction dump:

419e016c 2f800007 419e0164 38130774 901a00d0 381306b0 901a00d4 7f43d378

4bf91d89 817a01a0 39200001 380b0008 <7d400028> 7d4a4b78 7d40012d 40a2fff=

4

Quoted 2 lines
Quoted 2 lines
---[ end trace dac0cf4779f83901 ]---

A git bisect between 2.6.36 (working) and Linus tip (traceback) points to:

e6484930d7c73d324bccda7d43d131088da697b9 net: allocate tx queues in register_netdevice

as causing this. I'm not entirely sure why yet, but the commit message seems slightly off to me. It claims to make TX queue allocation identical to RX, but from what I can tell, most of the RX queue logic is hidden behind CONFIG_RPS, which is not set in my config at all (and can't be due to a dep on CONFIG_SMP). This change doesn't guard anything behind that.

A few hints would be appreciated.

josh

#3 lore raw

Hi Josh,

Quoted 2 lines · On Mon, 1 Nov 2010 11:05:53 -0400 Josh Boyer <[email protected]> wrote:

A few hints would be appreciated.

Remove the call to netif_stop_queue() from emac_probe(). Apparently, calling this before register_netdev() is now wrong (maybe always was).

Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/
#4 lore raw

On Mon, Nov 1, 2010 at 11:36 AM, Stephen Rothwell <[email protected]> wr= ote:

Quoted 8 lines

Hi Josh,

Quoted 2 lines · On Mon, 1 Nov 2010 11:05:53 -0400 Josh Boyer <[email protected]> wrote:

A few hints would be appreciated.

Remove the call to netif_stop_queue() from emac_probe(). =A0Apparently, calling this before register_netdev() is now wrong (maybe always was).

Yeah, I just discovered that myself. I'm wondering

1) why we do that in that function?
2) If it needs to be removed entirely, or moved to after the register_netdev call
3) If the call to netif_carrier_off also needs similar attention.

I can whip up a patch to remove those calls or move them after the register, but I don't want to do that without knowing which one is "right".

josh

maintainer
#5 lore raw

From: Josh Boyer <[email protected]>
Date: Mon, 1 Nov 2010 11:39:47 -0400

Quoted 1 line

On Mon, Nov 1, 2010 at 11:36 AM, Stephen Rothwell <[email protected].=

Quoted 3 lines · au> wrote:
Quoted 3 lines

Hi Josh,

On Mon, 1 Nov 2010 11:05:53 -0400 Josh Boyer <[email protected]> wro=

te:

Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

A few hints would be appreciated.

Remove the call to netif_stop_queue() from emac_probe(). =A0Apparent=

ly,

Quoted 1 line
Quoted 1 line

calling this before register_netdev() is now wrong (maybe always was=

).

Quoted 6 lines

=

Yeah, I just discovered that myself. I'm wondering =

1) why we do that in that function?

Because likely it was blindly copied from some other driver.

Quoted 2 lines

2) If it needs to be removed entirely, or moved to after the register_netdev call

Removed entirely.

Quoted 1 line

3) If the call to netif_carrier_off also needs similar attention.

Not really.

Quoted 3 lines

I can whip up a patch to remove those calls or move them after the register, but I don't want to do that without knowing which one is "right".

I've already taken care of this.

#6 lore raw
Quoted 5 lines · David Miller
Quoted 3 lines

I can whip up a patch to remove those calls or move them after the register, but I don't want to do that without knowing which one is "right".

I've already taken care of this.

Thanks!

josh

maintainer
#7 lore raw
In reply to Stephen Rothwell

From: Stephen Rothwell <[email protected]>
Date: Tue, 2 Nov 2010 02:36:50 +1100

Quoted 8 lines

Hi Josh,

Quoted 2 lines · On Mon, 1 Nov 2010 11:05:53 -0400 Josh Boyer <[email protected]> wrote:

A few hints would be appreciated.

Remove the call to netif_stop_queue() from emac_probe(). Apparently, calling this before register_netdev() is now wrong (maybe always was).

Right.

I'll add this to net-2.6

--------------------
ibm_newemac: Remove netif_stop_queue() in emac_probe().

Touching the queue state before register_netdev is not allowed, and besides the queue state before ->open() is "don't care"

---
 drivers/net/ibm_newemac/core.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/net/ibm_newemac/core.c +0 -1
index 385dc32..06bb9b7 100644
@@ -2871,7 +2871,6 @@ static int __devinit emac_probe(struct platform_device *ofdev,
 	SET_ETHTOOL_OPS(ndev, &emac_ethtool_ops);
 
 	netif_carrier_off(ndev);
-	netif_stop_queue(ndev);
 
 	err = register_netdev(ndev);
 	if (err) {
Signature · 1 line
1.7.3.2