From owner-cvs-all@FreeBSD.ORG Wed Jan 7 22:25:42 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFCD816A4CE; Wed, 7 Jan 2004 22:25:42 -0800 (PST) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E9A343D39; Wed, 7 Jan 2004 22:25:41 -0800 (PST) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.12.9p2/8.12.9) with ESMTP id i086PV7E018724; Wed, 7 Jan 2004 22:25:35 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <200401080625.i086PV7E018724@gw.catspoiler.org> Date: Wed, 7 Jan 2004 22:25:31 -0800 (PST) From: Don Lewis To: src-committers@FreeBSD.org, re@FreeBSD.org In-Reply-To: <200401080622.i086MFAX095815@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii cc: cvs-src@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/pci if_dc.c if_dcreg.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2004 06:25:42 -0000 On 7 Jan, To: src-committers@FreeBSD.org wrote: > truckman 2004/01/07 22:22:15 PST > > FreeBSD src repository > > Modified files: > sys/pci if_dc.c if_dcreg.h > Log: > The transmit frame status is stored in the last transmit descriptor for the > frame, not the first. It is probably also not safe to free the mbuf chain > as soon as the OWN bit is cleared on the first descriptor since the chip > may not be done copying the frame into the transmit FIFO. Revert the part of > of busdma conversion (if_dc.c rev 1.115) which changed dc_txeof() to look for > the status in the first descriptor and free the mbuf chain when processing > the first descriptor for the frame, and revert the matching changes elsewhere > in the driver. This part of the busdma change caused the driver to report > spurious collisions and output errors, even when running in full-duplex mode. > Reverting the mbuf chain handling slightly complicates dc_dma_map_txbuf(), > since it is responsible for setting the OWN bits on the descriptors, but does > not normally have direct access to the mbuf chain. > > Tested by: > Dejan Lesjak alpha/ > "Xin LI" i386/ > Wiktor Niesiobedzki i386/<3Com OfficeConnect 10/100B> > > Reviewed by: mux > > Revision Changes Path > 1.138 +4 -3 src/sys/pci/if_dc.c > 1.41 +1 -0 src/sys/pci/if_dcreg.h This may be a good candidate for 5.2. I've gotten expressions of interest in having this fixed for the release.