From owner-freebsd-stable@FreeBSD.ORG Wed Mar 1 23:46:32 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE10416A420 for ; Wed, 1 Mar 2006 23:46:32 +0000 (GMT) (envelope-from volker@vwsoft.com) Received: from gwfra.elbekies.net (tce71.tce85.de [195.145.102.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74FAC43D7C for ; Wed, 1 Mar 2006 23:46:23 +0000 (GMT) (envelope-from volker@vwsoft.com) Received-SPF: pass (gwfra.elbekies.net: domain of vwsoft.com designates 212.23.126.20 as permitted sender) client-ip=212.23.126.20; envelope-from=volker@vwsoft.com; helo=mail.vtec.ipme.de; Received: from mail.vtec.ipme.de (gprs-pool-1-020.eplus-online.de [212.23.126.20]) by gwfra.elbekies.net (Postfix) with ESMTP id 1830417038 for ; Thu, 2 Mar 2006 00:46:20 +0100 (CET) Received: from [127.0.0.1] (unknown [192.168.201.3]) by mail.vtec.ipme.de (Postfix) with ESMTP id 914625C0E; Thu, 2 Mar 2006 00:46:00 +0100 (CET) Message-ID: <44063246.1020000@vwsoft.com> Date: Thu, 02 Mar 2006 00:46:14 +0100 From: Volker User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Thunderbird/1.0.6 Mnenhy/0.6.0.101 MIME-Version: 1.0 To: Holger Kipp References: <4405BB89.204@vwsoft.com> <20060301163513.GB70143@intserv.int1.b.intern> In-Reply-To: <20060301163513.GB70143@intserv.int1.b.intern> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-VWSoft-MailScanner: Found to be clean X-TarmacIntl-MailScanner: Found to be clean X-MailScanner-From: volker@vwsoft.com Cc: freebsd-stable@freebsd.org Subject: Re: ppp HDLC errors X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Mar 2006 23:46:33 -0000 On 2006-03-01 17:35, Holger Kipp wrote: > On Wed, Mar 01, 2006 at 04:19:37PM +0100, Volker wrote: >> Dear list members, >> >> I'm trying to get a 3g / UMTS connection to work on my RELENG_6 >> (i386, AMD Sempron) machine. I've installed a Novatel Merlin U630 >> card (pcmcia) which is providing a hayes serial modem to the system >> (on sio4 in my case). >> >> Dialing works fine but most DNS queries are timing out, but also >> most tcp sessions won't work. While in ppp (userland) I'm seeing >> messages like: > > I had a similar problem with PCI-800H card. > >> Later I'm seeing message like that on the console screen: >> >> sio4: 152599 more interrupt-level buffer overflows (total 152599) > > Have a look at http://www.freebsd.org/cgi/query-pr.cgi?pr=51982 > maybe it is related. You could change sio.c and increase cp4ticks > by factor of 10, then recompile your kernel and see if it helps. Thanks for that pointer - it DID help! :) But multiplying cp4ticks by factor 10 didn't do it. I've set HZ=1000 in my kernel config and first tried the PR suggested value. Then I tried the second PR suggested solution which was a bit better but still produced error messages. I've now set: cp4ticks = speed / 10 / 100 * 160 so I multiplied the default value by 40 (not just by 10) and the ppp HDLC error messages and the interrupt kernel messages went away. I've seen the error messages and bad behaviour even at 'low' baud rates of 57600 kbit/s. With my mods I'm now running at 230400 kbit/s and don't see the error messages anymore. > > have you activated rtscts-flowcontrol (see /etc/rc.d/serial) for sio4? > Now I did it but just after making sure it doesn't mask my true problem. But on the other hand I've already told ppp to use ctsrts before. >> It's a RELENG_6 machine with a recent kernel (compiled yesterday >> with kernel sources from Feb-26). >> >> sio4: unable to activate interrupt in fast mode - using normal mode > > this might be if sio4 shares its irq with other resources... Yes it does. I would have to move PCI cards to change irq assignment. But as long as it works, I don't care about irq sharing and now it seems to work. Again, thank you for your hint! It saved me some more hours. Greetings, Volker