* linux-2.6.11-rc3 and isdn mppp
@ 2005-02-12 16:50 Christian Heim
2005-02-13 21:56 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Christian Heim @ 2005-02-12 16:50 UTC (permalink / raw)
To: linux-kernel
Well, i have to setup ISDN here at home, and wanted to use both channels.
I am able to add the second channel, but then the kernel (at least i think)
starts to complain.
>17:36:22 kraftwerk Badness in local_bh_enable at kernel/softirq.c:140
>17:36:22 kraftwerk [<c011b201>] local_bh_enable+0x71/0x80
>17:36:22 kraftwerk [<c030c1a7>] isdn_ppp_xmit+0xe7/0x7d0
>17:36:22 kraftwerk [<c02fe664>] isdn_net_xmit+0x184/0x1d0
>17:36:22 kraftwerk [<e0f07928>] ip_nat_cheat_check+0x28/0x40 [iptable_nat]
>17:36:22 kraftwerk [<c02fea24>] isdn_net_start_xmit+0x284/0x2a0
>17:36:22 kraftwerk [<c031b69b>] dev_queue_xmit_nit+0xeb/0xf0
>17:36:22 kraftwerk [<e0f08004>] nat_packet+0x84/0xb0 [iptable_nat]
>17:36:22 kraftwerk [<c0325b50>] qdisc_restart+0x60/0x150
>17:36:22 kraftwerk [<c031b9f5>] dev_queue_xmit+0x165/0x1f0
>17:36:22 kraftwerk [<c0320ba7>] neigh_connected_output+0x87/0xd0
>17:36:22 kraftwerk [<c0331999>] ip_finish_output2+0xc9/0x1b0
>17:36:22 kraftwerk [<c03318d0>] ip_finish_output2+0x0/0x1b0
>17:36:22 kraftwerk [<c0324d22>] nf_hook_slow+0xb2/0xf0
>17:36:22 kraftwerk [<c03318d0>] ip_finish_output2+0x0/0x1b0
>17:36:22 kraftwerk [<c032dfc0>] ip_forward_finish+0x0/0x40
>17:36:22 kraftwerk [<c032f5fa>] ip_finish_output+0x1da/0x1e0
>17:36:22 kraftwerk [<c03318d0>] ip_finish_output2+0x0/0x1b0
>17:36:22 kraftwerk [<c032dfc0>] ip_forward_finish+0x0/0x40
>17:36:22 kraftwerk [<c032dfd9>] ip_forward_finish+0x19/0x40
>17:36:22 kraftwerk [<c0324d22>] nf_hook_slow+0xb2/0xf0
>17:36:22 kraftwerk [<c032dfc0>] ip_forward_finish+0x0/0x40
>17:36:22 kraftwerk [<c032df3a>] ip_forward+0x17a/0x200
>17:36:22 kraftwerk [<c032dfc0>] ip_forward_finish+0x0/0x40
>17:36:22 kraftwerk [<c032ce60>] ip_rcv_finish+0x0/0x220
>17:36:22 kraftwerk [<c032cff9>] ip_rcv_finish+0x199/0x220
>17:36:22 kraftwerk [<c0324a22>] nf_iterate+0x72/0xb0
>17:36:22 kraftwerk [<c032ce60>] ip_rcv_finish+0x0/0x220
>17:36:22 kraftwerk [<c0324d22>] nf_hook_slow+0xb2/0xf0
>17:36:22 kraftwerk [<c032dfc0>] ip_forward_finish+0x0/0x40
>17:36:22 kraftwerk [<c032df3a>] ip_forward+0x17a/0x200
>17:36:22 kraftwerk [<c032dfc0>] ip_forward_finish+0x0/0x40
>17:36:22 kraftwerk [<c032ce60>] ip_rcv_finish+0x0/0x220
>17:36:22 kraftwerk [<c032cff9>] ip_rcv_finish+0x199/0x220
>17:36:22 kraftwerk [<c0324a22>] nf_iterate+0x72/0xb0
>17:36:22 kraftwerk [<c032ce60>] ip_rcv_finish+0x0/0x220
>17:36:22 kraftwerk [<c0324d22>] nf_hook_slow+0xb2/0xf0
>17:36:22 kraftwerk [<c032ce60>] ip_rcv_finish+0x0/0x220
>17:36:22 kraftwerk [<c032cca2>] ip_rcv+0x362/0x400
>17:36:22 kraftwerk [<c032ce60>] ip_rcv_finish+0x0/0x220
>17:36:22 kraftwerk [<c031be59>] netif_receive_skb+0x119/0x170
>17:36:22 kraftwerk [<c0316552>] alloc_skb+0x32/0xd0
>17:36:22 kraftwerk [<c02d71fd>] rtl8139_rx+0x18d/0x310
>17:36:22 kraftwerk [<c02d7521>] rtl8139_poll+0x41/0xc0
>17:36:22 kraftwerk [<c031c001>] net_rx_action+0x61/0xe0
>17:36:22 kraftwerk [<c011b179>] __do_softirq+0x79/0x90
>17:36:22 kraftwerk [<c01045c1>] do_softirq+0x41/0x50
>17:36:22 kraftwerk =======================
>17:36:22 kraftwerk [<c010449f>] do_IRQ+0x5f/0xa0
>17:36:22 kraftwerk [<c0102cfe>] common_interrupt+0x1a/0x20
>17:36:22 kraftwerk [<c0100593>] default_idle+0x23/0x30
>17:36:22 kraftwerk [<c0100618>] cpu_idle+0x48/0x60
>17:36:22 kraftwerk [<c046a78d>] start_kernel+0x14d/0x190
>17:36:22 kraftwerk [<c046a380>] unknown_bootoption+0x0/0x1b0
I'm using the vanilla-2.6.11-rc3 sources with the following config:
>CONFIG_PPP=y
>CONFIG_PPP_MULTILINK=y
>CONFIG_PPP_FILTER=y
># CONFIG_PPP_ASYNC is not set
>CONFIG_PPP_SYNC_TTY=y
>CONFIG_PPP_DEFLATE=y
>CONFIG_PPP_BSDCOMP=y
>CONFIG_PPPOE=y
># ISDN subsystem
>CONFIG_ISDN=y
># Old ISDN4Linux
>CONFIG_ISDN_I4L=y
>CONFIG_ISDN_PPP=y
>CONFIG_ISDN_PPP_VJ=y
>CONFIG_ISDN_MPP=y
>CONFIG_IPPP_FILTER=y
>CONFIG_ISDN_PPP_BSDCOMP=y
># CONFIG_ISDN_AUDIO is not set
># ISDN feature submodules
># CONFIG_ISDN_DRV_LOOP is not set
># CONFIG_ISDN_DIVERSION is not set
># ISDN4Linux hardware drivers
>CONFIG_ISDN_DRV_HISAX=m
># CONFIG_ISDN_DRV_TPAM is not set
># CONFIG_ISDN_CAPI is not set
The connection is been established with isdn4k-utils-3.2_p1.
And again this only happens if I add a second link to the master device!
Hope anybody could help me
With kind regards
Christian Heim
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: linux-2.6.11-rc3 and isdn mppp
2005-02-12 16:50 linux-2.6.11-rc3 and isdn mppp Christian Heim
@ 2005-02-13 21:56 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2005-02-13 21:56 UTC (permalink / raw)
To: Christian Heim; +Cc: linux-kernel, Andrew Morton, kai.germaschewski
[-- Attachment #1: Type: text/plain, Size: 929 bytes --]
On Sat, Feb 12, 2005 at 04:50:23PM +0000, Christian Heim wrote:
> Well, i have to setup ISDN here at home, and wanted to use both channels.
> I am able to add the second channel, but then the kernel (at least i think)
> starts to complain.
>
> >17:36:22 kraftwerk Badness in local_bh_enable at kernel/softirq.c:140
> >17:36:22 kraftwerk [<c011b201>] local_bh_enable+0x71/0x80
> >17:36:22 kraftwerk [<c030c1a7>] isdn_ppp_xmit+0xe7/0x7d0
isdn_net_get_locked_lp is doing a local_bh_enable with hard IRQs
disabled. This is not allowed.
The following patch fixes the problem by removing the unnecessary
local_bh_enable while the hard IRQs are disabled.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
[-- Attachment #2: p --]
[-- Type: text/plain, Size: 861 bytes --]
===== drivers/isdn/i4l/isdn_net.h 1.48 vs edited =====
--- 1.48/drivers/isdn/i4l/isdn_net.h 2004-06-23 00:44:03 +10:00
+++ edited/drivers/isdn/i4l/isdn_net.h 2005-02-14 08:52:19 +11:00
@@ -78,18 +78,19 @@
spin_lock_irqsave(&nd->queue_lock, flags);
lp = nd->queue; /* get lp on top of queue */
- spin_lock_bh(&nd->queue->xmit_lock);
+ spin_lock(&nd->queue->xmit_lock);
while (isdn_net_lp_busy(nd->queue)) {
- spin_unlock_bh(&nd->queue->xmit_lock);
+ spin_unlock(&nd->queue->xmit_lock);
nd->queue = nd->queue->next;
if (nd->queue == lp) { /* not found -- should never happen */
lp = NULL;
goto errout;
}
- spin_lock_bh(&nd->queue->xmit_lock);
+ spin_lock(&nd->queue->xmit_lock);
}
lp = nd->queue;
nd->queue = nd->queue->next;
+ local_bh_disable();
errout:
spin_unlock_irqrestore(&nd->queue_lock, flags);
return lp;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-13 21:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-12 16:50 linux-2.6.11-rc3 and isdn mppp Christian Heim
2005-02-13 21:56 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®