Hi,

I wonder if anyone has a solution to "kernel: Debug: sleeping function
called from invalid context at include/asm/semaphore.h:131" entries in
/var/log/messages when users have dialed in with mgetty and AutoPPP.
The groups of entries can repeat several times per second on a single
connection. In addition, the throughput on the PPP connection is
poor, about half that which occured with the prior setup using RHL7.3.
I'm using FC3 now.

I am using private, natted, IP numbers for the PPP connections:

$ cat /etc/ppp/options.ttyR0
henryppR0

$ grep pppR0 /etc/hosts
192.168.2.10 pppR0

$ grep henry /etc/hosts
10.95.96.159 henry

$ cat /etc/ppp/options
logfile /var/log/ppplog
debug
lock
asyncmap 0
netmask 255.255.255.0
crtscts
modem
nodetach
noproxyarp

The serial hardware for ttyR0 is RocketPort (see rp_write below).

The following log excerpt is using fedora with unmodified kernel
2.6.10-1.770_FC3 and ppp-2.4.2-6.4.FC3.

Regards, John

Mar 26 12:51:35 henry kernel: Debug: sleeping function called from invalid context at include/asm/semaphore.h:131
Mar 26 12:51:35 henry kernel: in_atomic():1, irqs_disabled():0
Mar 26 12:51:35 henry kernel: [] __might_sleep+0x7b/0x85
Mar 26 12:51:35 henry kernel: [] rp_write+0x55/0x3df [rocket]
Mar 26 12:51:35 henry kernel: [] ppp_async_push+0xed/0x270 [ppp_async]
Mar 26 12:51:35 henry kernel: [] ppp_async_send+0x2b/0x35 [ppp_async]
Mar 26 12:51:35 henry kernel: [] ppp_push+0xe7/0x1d7 [ppp_generic]
Mar 26 12:51:35 henry kernel: [] ppp_send_frame+0x430/0x45c [ppp_generic]
Mar 26 12:51:35 henry kernel: [] ppp_xmit_process+0xc0/0x1ac [ppp_generic]
Mar 26 12:51:35 henry kernel: [] ppp_start_xmit+0x1b4/0x1e5 [ppp_generic]
Mar 26 12:51:35 henry kernel: [] qdisc_restart+0x1ca/0x4c5
Mar 26 12:51:35 henry kernel: [] dev_queue_xmit+0x165/0x449
Mar 26 12:51:35 henry kernel: [] ip_finish_output2+0x11d/0x15a
Mar 26 12:51:35 henry kernel: [] nf_hook_slow+0x83/0xb3
Mar 26 12:51:35 henry kernel: [] ip_finish_output+0x191/0x199
Mar 26 12:51:35 henry kernel: [] ip_finish_output2+0x0/0x15a
Mar 26 12:51:35 henry kernel: [] dst_output+0xb/0x16
Mar 26 12:51:35 henry kernel: [] nf_hook_slow+0x83/0xb3
Mar 26 12:51:35 henry kernel: [] ip_queue_xmit+0x389/0x3dc
Mar 26 12:51:35 henry kernel: [] dst_output+0x0/0x16
Mar 26 12:51:35 henry kernel: [] ip_queue_xmit+0x389/0x3dc
Mar 26 12:51:35 henry kernel: [] dst_output+0x0/0x16
Mar 26 12:51:35 henry kernel: [] do_anonymous_page+0x233/0x2a7
Mar 26 12:51:35 henry kernel: [] do_no_page+0x55/0x3f4
Mar 26 12:51:35 henry kernel: [] tcp_v4_send_check+0x7c/0xb9
Mar 26 12:51:35 henry kernel: [] tcp_cwnd_restart+0x14/0xba
Mar 26 12:51:35 henry kernel: [] tcp_transmit_skb+0x556/0x666
Mar 26 12:51:35 henry kernel: [] tcp_write_xmit+0x73/0x255
Mar 26 12:51:35 henry kernel: [] tcp_sendmsg+0xcb1/0xe19
Mar 26 12:51:35 henry kernel: [] __wake_up+0x78/0xde
Mar 26 12:51:35 henry kernel: [] inet_sendmsg+0x38/0x42
Mar 26 12:51:35 henry kernel: [] sock_aio_write+0x107/0x114
Mar 26 12:51:35 henry kernel: [] tty_ldisc_deref+0xd2/0x14d
Mar 26 12:51:35 henry kernel: [] do_sync_write+0x97/0xc9
Mar 26 12:51:35 henry kernel: [] autoremove_wake_function+0x0/0x2d
Mar 26 12:51:35 henry kernel: [] vfs_write+0xc6/0xe2
Mar 26 12:51:35 henry kernel: [] sys_write+0x3c/0x62
Mar 26 12:51:35 henry kernel: [] syscall_call+0x7/0xb



John H. Dunlap University of Washington
Senior Electrical Engineer Applied Physics Laboratory
dunlap@apl.washington.edu 1013 NE 40th Street
206-543-7207, 543-1300, FAX 543-6785 Seattle, WA 98105-6698