Date: Wed, 8 Sep 2010 16:34:08 +0000 (UTC) From: "Jayachandran C." <jchandra@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/mips/rmi fmn.c msgring.h src/sys/mips/rmi/dev/xlr rge.c Message-ID: <201009081634.o88GYQKo098185@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jchandra 2010-09-08 16:34:08 UTC
FreeBSD src repository
Modified files:
sys/mips/rmi fmn.c msgring.h
sys/mips/rmi/dev/xlr rge.c
Log:
SVN rev 212321 on 2010-09-08 16:34:08Z by jchandra
Clean up fast message ring code for XLR.
Fix message ring send path:
- define msgrng_access_enable() which disables local interrupts
and enables message ring access. Also define msgrng_restore() which
restores interrupts
- remove all other msgrng enable/disable macros, no need of critical_enter
and other locking here.
- message_send() fixup: re-read status until pending bit clears
- message_send_retry() fixup: retry only few times with interrupts disabled
- Fix up message_send/message_send_retry callers - call
msgrng_access_enable() and msgrng_restore() correctly so that interrupts
are not disabled for long.
- removed unused and obsolete code from sys/mips/rmi/msgring.h
- some style fixes - more later
rge.c (XLR GMAC driver):
- updated for the message ring changes
- remove unused message_send_block()
- retry on credit failure, this is not a permanent failure when credits
are configured correctly. Add panic if credits are not available to
send for a long time.
Revision Changes Path
1.14 +19 -41 src/sys/mips/rmi/dev/xlr/rge.c
1.3 +18 -20 src/sys/mips/rmi/fmn.c
1.5 +76 -163 src/sys/mips/rmi/msgring.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009081634.o88GYQKo098185>
