Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Mar 2005 12:15:20 +0200
From:      Oleg Tarasov <subscriber@osk.com.ua>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: sio interrupt-level buffer overflows
Message-ID:  <83927877.20050329121520@osk.com.ua>
In-Reply-To: <20050323235823.E19701@epsplex.bde.org>
References:  <815955888.20050323113529@osk.com.ua> <20050323235823.E19701@epsplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

Bruce Evans <bde@zeta.org.au> wrote:

> I can't explain the panic.  The only relevant difference that I can think
> of is that the change gives larger interrupt-level buffers in sio.  ppp
> might be depending on them not being very large.  However, at the interrupt
> level, ppp just copies data 1 character at a time into mbufs, so there is
> not much to go wrong.  Does the panic occur in ppp (in the kernel) or in sio?

This problem had unusual solution. It seems the key to this problem is
that FreeBSD 5.3-STABLE-p5 (I have updated my system) has DEADLOCKS
when intensively using sio device on high speed (115200) with SMP support.
It seems that MPSAFE causes those deadlocks. Turning

debug.mpsafenet="0"

in /boot/loader.conf
makes the system to work fine & stable instead of panicing every hour
or more often

This change works both with original or modified sio.c.
I am grateful for solution with interrupt-level buffer overflows (the
change worked fine, no more overflows) but here we have another, more
serious BUG.

-- 
Best regards,
 Oleg Tarasov                          mailto:subscriber@osk.com.ua



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?83927877.20050329121520>