From owner-cvs-src-old@FreeBSD.ORG Wed Oct 21 11:50:34 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9B2E10656A9 for ; Wed, 21 Oct 2009 11:50:34 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A80E98FC29 for ; Wed, 21 Oct 2009 11:50:34 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n9LBoY7j014277 for ; Wed, 21 Oct 2009 11:50:34 GMT (envelope-from stas@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n9LBoY7j014276 for cvs-src-old@freebsd.org; Wed, 21 Oct 2009 11:50:34 GMT (envelope-from stas@repoman.freebsd.org) Message-Id: <200910211150.n9LBoY7j014276@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to stas@repoman.freebsd.org using -f From: Stanislav Sedov Date: Wed, 21 Oct 2009 11:50:18 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/bge if_bge.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Oct 2009 11:50:34 -0000 stas 2009-10-21 11:50:18 UTC FreeBSD src repository Modified files: sys/dev/bge if_bge.c Log: SVN rev 198318 on 2009-10-21 11:50:18Z by stas - On entrance to the rx_eof sync RX rings maps with POSTWRITE flag instead of POSTREAD: the hardware do not touch this memory (CPU updates it). It is already synchronized as PREWRITE after the processing is done. - Synchronize RX return ring memory in rx_eof. This is needed as the deviced updates this memory when receives packets. - Decouple the synchronization of BGE status block in the interrupt service routine: perfrom PREREAD synchronization only all accesses to this block are finished. This seems to be more natural. Reviewed by: yongari, marius MFC after: 2 weeks Revision Changes Path 1.231 +7 -4 src/sys/dev/bge/if_bge.c