* [net-next PATCH 1/1] drivers: net: cpsw: fix kernel warn on cpsw irq enable
@ 2013-04-26 11:30 Mugunthan V N
2013-04-26 12:03 ` Sebastian Andrzej Siewior
2013-04-26 13:48 ` Sergei Shtylyov
0 siblings, 2 replies; 4+ messages in thread
From: Mugunthan V N @ 2013-04-26 11:30 UTC (permalink / raw)
To: netdev; +Cc: davem, linux-omap, Mugunthan V N, Sebastian Siewior
With the commit id a11fbba from Sebastian Siewior, a kernel warning is
generated as below. This warning is generated as the irq_enabled is not
initialized for the primary interface and in probe it is initialized for
the secondary interface. This patch moves irq_enabled initialization from
second interface to primary interface.
[ 3.049173] net eth0: phy found : id is : 0x4dd074
[ 3.054552] net eth0: phy found : id is : 0x4dd074
[ 3.070421] ------------[ cut here ]------------
[ 3.075308] WARNING: at kernel/irq/manage.c:437 enable_irq+0x3c/0x74()
[ 3.082173] Unbalanced enable for IRQ 56
[ 3.086299] Modules linked in:
[ 3.089557] [<c001abcc>] (unwind_backtrace+0x0/0xf0) from [<c004294c>] (warn_slowpath_common+0x4c/0x68)
[ 3.099450] [<c004294c>] (warn_slowpath_common+0x4c/0x68) from [<c00429fc>] (warn_slowpath_fmt+0x30/0x40)
[ 3.109521] [<c00429fc>] (warn_slowpath_fmt+0x30/0x40) from [<c00a29fc>] (enable_irq+0x3c/0x74)
[ 3.118681] [<c00a29fc>] (enable_irq+0x3c/0x74) from [<c03a7818>] (cpsw_ndo_open+0x61c/0x684)
[ 3.127669] [<c03a7818>] (cpsw_ndo_open+0x61c/0x684) from [<c0445c08>] (__dev_open+0x9c/0xf8)
[ 3.136646] [<c0445c08>] (__dev_open+0x9c/0xf8) from [<c0445e34>] (__dev_change_flags+0x78/0x13c)
[ 3.145988] [<c0445e34>] (__dev_change_flags+0x78/0x13c) from [<c0445f64>] (dev_change_flags+0x10/0x48)
[ 3.155884] [<c0445f64>] (dev_change_flags+0x10/0x48) from [<c0736d88>] (ip_auto_config+0x198/0x111c)
[ 3.165592] [<c0736d88>] (ip_auto_config+0x198/0x111c) from [<c00086a4>] (do_one_initcall+0x34/0x180)
[ 3.175309] [<c00086a4>] (do_one_initcall+0x34/0x180) from [<c07078f8>] (kernel_init_freeable+0xfc/0x1c8)
[ 3.185393] [<c07078f8>] (kernel_init_freeable+0xfc/0x1c8) from [<c04f36ec>] (kernel_init+0x8/0xe4)
[ 3.194929] [<c04f36ec>] (kernel_init+0x8/0xe4) from [<c00133d0>] (ret_from_fork+0x14/0x24)
[ 3.203712] ---[ end trace d6f979da080bc391 ]---
Cc: Sebastian Siewior <bigeasy@linutronix.de>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
---
drivers/net/ethernet/ti/cpsw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c
index 4e2d224..59c4391 100644
--- a/drivers/net/ethernet/ti/cpsw.c
+++ b/drivers/net/ethernet/ti/cpsw.c
@@ -1633,7 +1633,6 @@ static int cpsw_probe_dual_emac(struct platform_device *pdev,
priv_sl2->irqs_table[i] = priv->irqs_table[i];
priv_sl2->num_irqs = priv->num_irqs;
}
- priv->irq_enabled = true;
ndev->features |= NETIF_F_HW_VLAN_CTAG_FILTER;
ndev->netdev_ops = &cpsw_netdev_ops;
@@ -1679,6 +1678,7 @@ static int cpsw_probe(struct platform_device *pdev)
priv->msg_enable = netif_msg_init(debug_level, CPSW_DEBUG);
priv->rx_packet_max = max(rx_packet_max, 128);
priv->cpts = devm_kzalloc(&pdev->dev, sizeof(struct cpts), GFP_KERNEL);
+ priv->irq_enabled = true;
if (!ndev) {
pr_err("error allocating cpts\n");
goto clean_ndev_ret;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [net-next PATCH 1/1] drivers: net: cpsw: fix kernel warn on cpsw irq enable
2013-04-26 11:30 [net-next PATCH 1/1] drivers: net: cpsw: fix kernel warn on cpsw irq enable Mugunthan V N
@ 2013-04-26 12:03 ` Sebastian Andrzej Siewior
2013-04-29 18:08 ` David Miller
2013-04-26 13:48 ` Sergei Shtylyov
1 sibling, 1 reply; 4+ messages in thread
From: Sebastian Andrzej Siewior @ 2013-04-26 12:03 UTC (permalink / raw)
To: davem; +Cc: Mugunthan V N, netdev, linux-omap
On 04/26/2013 01:30 PM, Mugunthan V N wrote:
> diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c
> index 4e2d224..59c4391 100644
> --- a/drivers/net/ethernet/ti/cpsw.c
> +++ b/drivers/net/ethernet/ti/cpsw.c
> @@ -1633,7 +1633,6 @@ static int cpsw_probe_dual_emac(struct platform_device *pdev,
> priv_sl2->irqs_table[i] = priv->irqs_table[i];
> priv_sl2->num_irqs = priv->num_irqs;
> }
> - priv->irq_enabled = true;
> ndev->features |= NETIF_F_HW_VLAN_CTAG_FILTER;
>
> ndev->netdev_ops = &cpsw_netdev_ops;
> @@ -1679,6 +1678,7 @@ static int cpsw_probe(struct platform_device *pdev)
> priv->msg_enable = netif_msg_init(debug_level, CPSW_DEBUG);
> priv->rx_packet_max = max(rx_packet_max, 128);
> priv->cpts = devm_kzalloc(&pdev->dev, sizeof(struct cpts), GFP_KERNEL);
> + priv->irq_enabled = true;
> if (!ndev) {
> pr_err("error allocating cpts\n");
> goto clean_ndev_ret;
David, how did this happen? The patch I've sent
http://www.spinics.net/lists/netdev/msg234240.html
adds this to the probe function, according to the net-next tree it was
added to cpsw_probe_dual_emac(). The context is similar but not exact
the same.
Sebastian
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [net-next PATCH 1/1] drivers: net: cpsw: fix kernel warn on cpsw irq enable
2013-04-26 12:03 ` Sebastian Andrzej Siewior
@ 2013-04-29 18:08 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2013-04-29 18:08 UTC (permalink / raw)
To: bigeasy; +Cc: mugunthanvnm, netdev, linux-omap
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: Fri, 26 Apr 2013 14:03:24 +0200
> David, how did this happen? The patch I've sent
>
> http://www.spinics.net/lists/netdev/msg234240.html
>
> adds this to the probe function, according to the net-next tree it was
> added to cpsw_probe_dual_emac(). The context is similar but not exact
> the same.
This is usually I ask people to respin patches even if there are minor
fuzz differences when I try to apply this patch.
I tried to be nice and save you some work this time, 'patch' accepted
it with minor offsets, and with a cursory glance I didn't see any
problems.
Next time I'll be a hardliner and request a respin :-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [net-next PATCH 1/1] drivers: net: cpsw: fix kernel warn on cpsw irq enable
2013-04-26 11:30 [net-next PATCH 1/1] drivers: net: cpsw: fix kernel warn on cpsw irq enable Mugunthan V N
2013-04-26 12:03 ` Sebastian Andrzej Siewior
@ 2013-04-26 13:48 ` Sergei Shtylyov
1 sibling, 0 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2013-04-26 13:48 UTC (permalink / raw)
To: Mugunthan V N; +Cc: netdev, davem, linux-omap, Sebastian Siewior
Hello.
On 26-04-2013 15:30, Mugunthan V N wrote:
> With the commit id a11fbba
Please also specify that commit's summary line in parens.
> from Sebastian Siewior, a kernel warning is
> generated as below. This warning is generated as the irq_enabled is not
> initialized for the primary interface and in probe it is initialized for
> the secondary interface. This patch moves irq_enabled initialization from
> second interface to primary interface.
s/second/secondary/?
> [ 3.049173] net eth0: phy found : id is : 0x4dd074
> [ 3.054552] net eth0: phy found : id is : 0x4dd074
> [ 3.070421] ------------[ cut here ]------------
> [ 3.075308] WARNING: at kernel/irq/manage.c:437 enable_irq+0x3c/0x74()
> [ 3.082173] Unbalanced enable for IRQ 56
> [ 3.086299] Modules linked in:
> [ 3.089557] [<c001abcc>] (unwind_backtrace+0x0/0xf0) from [<c004294c>] (warn_slowpath_common+0x4c/0x68)
> [ 3.099450] [<c004294c>] (warn_slowpath_common+0x4c/0x68) from [<c00429fc>] (warn_slowpath_fmt+0x30/0x40)
> [ 3.109521] [<c00429fc>] (warn_slowpath_fmt+0x30/0x40) from [<c00a29fc>] (enable_irq+0x3c/0x74)
> [ 3.118681] [<c00a29fc>] (enable_irq+0x3c/0x74) from [<c03a7818>] (cpsw_ndo_open+0x61c/0x684)
> [ 3.127669] [<c03a7818>] (cpsw_ndo_open+0x61c/0x684) from [<c0445c08>] (__dev_open+0x9c/0xf8)
> [ 3.136646] [<c0445c08>] (__dev_open+0x9c/0xf8) from [<c0445e34>] (__dev_change_flags+0x78/0x13c)
> [ 3.145988] [<c0445e34>] (__dev_change_flags+0x78/0x13c) from [<c0445f64>] (dev_change_flags+0x10/0x48)
> [ 3.155884] [<c0445f64>] (dev_change_flags+0x10/0x48) from [<c0736d88>] (ip_auto_config+0x198/0x111c)
> [ 3.165592] [<c0736d88>] (ip_auto_config+0x198/0x111c) from [<c00086a4>] (do_one_initcall+0x34/0x180)
> [ 3.175309] [<c00086a4>] (do_one_initcall+0x34/0x180) from [<c07078f8>] (kernel_init_freeable+0xfc/0x1c8)
> [ 3.185393] [<c07078f8>] (kernel_init_freeable+0xfc/0x1c8) from [<c04f36ec>] (kernel_init+0x8/0xe4)
> [ 3.194929] [<c04f36ec>] (kernel_init+0x8/0xe4) from [<c00133d0>] (ret_from_fork+0x14/0x24)
> [ 3.203712] ---[ end trace d6f979da080bc391 ]---
> Cc: Sebastian Siewior <bigeasy@linutronix.de>
> Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
WBR, Sergei
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-29 18:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-26 11:30 [net-next PATCH 1/1] drivers: net: cpsw: fix kernel warn on cpsw irq enable Mugunthan V N
2013-04-26 12:03 ` Sebastian Andrzej Siewior
2013-04-29 18:08 ` David Miller
2013-04-26 13:48 ` Sergei Shtylyov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).