From owner-cvs-all Tue Aug 22 16:26:56 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 390F137B42C; Tue, 22 Aug 2000 16:26:52 -0700 (PDT) Received: (from wpaul@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id QAA83831; Tue, 22 Aug 2000 16:26:52 -0700 (PDT) (envelope-from wpaul@FreeBSD.org) Message-Id: <200008222326.QAA83831@freefall.freebsd.org> From: Bill Paul Date: Tue, 22 Aug 2000 16:26:51 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/pci if_sis.c if_sisreg.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG wpaul 2000/08/22 16:26:51 PDT Modified files: sys/pci if_sis.c if_sisreg.h Log: Fix up the sis driver, largely to improve the NatSemi DP83815 support: - Modify the driver to poll the link state and positively set the MAC to full or half duplex as needed. Previously, it was possible for the MAC to remain in half duplex even though the PHY had negotiated full duplex with its link partner, which would result in bursty performance. - Program some of the NatSemi's registers as specified by the datasheet. The manual says these are necessary for "optimum perofrmance," though a couple of them are marked as reserved in the register map. *shrug* - Select the TX DMA burst size correctly for 10 and 100mbps modes. Previously I was using 64 bytes in both modes, which worked in 100mbps mode, but resulting in spotty performance in 10mbps. 32 bytes works much better; without this change, the natsemi chip yields piss poor performance at 10mbps. With these fixes, the NatSemi chip finally performs to my satisfaction. I should be merging the support for this controller into -stable shortly. Phew. Revision Changes Path 1.21 +72 -19 src/sys/pci/if_sis.c 1.3 +16 -3 src/sys/pci/if_sisreg.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message