From owner-cvs-all@FreeBSD.ORG Tue Oct 25 03:56:22 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org 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 15E1016A41F; Tue, 25 Oct 2005 03:56:22 +0000 (GMT) (envelope-from yongari@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC8EA43D45; Tue, 25 Oct 2005 03:56:21 +0000 (GMT) (envelope-from yongari@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j9P3uLq6076335; Tue, 25 Oct 2005 03:56:21 GMT (envelope-from yongari@repoman.freebsd.org) Received: (from yongari@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9P3uLn0076334; Tue, 25 Oct 2005 03:56:21 GMT (envelope-from yongari) Message-Id: <200510250356.j9P3uLn0076334@repoman.freebsd.org> From: Pyun YongHyeon Date: Tue, 25 Oct 2005 03:56:21 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/hme if_hme.c if_hmereg.h if_hmevar.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 25 Oct 2005 03:56:22 -0000 yongari 2005-10-25 03:56:21 UTC FreeBSD src repository Modified files: sys/dev/hme if_hme.c if_hmereg.h if_hmevar.h Log: - Convert hme(4) to use TX side bus_dmamap_load_mbuf_sg(9). - Move hardware counter reading/zeroing to hme_tick(). This saves 8 register access per interrupt. [1] - Use imax macro for getting max. argument between two integers. - Invoke bus_dmamap_sync(9) first before freeing mbuf. - Check driver queue first to reduce locking operation in hme_start_locked() and interrupt handler. - Simplyfy watchdog timer setup in interrupt handler. - Don't log normal errors such as RX overrun. If we have DMA stuck condition, reinitialize the driver and log it. Reviewed by: marius Obtained from: OpenBSD [1] Revision Changes Path 1.44 +128 -142 src/sys/dev/hme/if_hme.c 1.7 +6 -0 src/sys/dev/hme/if_hmereg.h 1.9 +1 -0 src/sys/dev/hme/if_hmevar.h