From owner-cvs-all@FreeBSD.ORG Mon Dec 1 23:57:21 2003 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 733BA16A4CE; Mon, 1 Dec 2003 23:57:21 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA8EF43FA3; Mon, 1 Dec 2003 23:57:20 -0800 (PST) (envelope-from ps@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hB27vKXJ011546; Mon, 1 Dec 2003 23:57:20 -0800 (PST) (envelope-from ps@repoman.freebsd.org) Received: (from ps@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hB27vKIW011545; Mon, 1 Dec 2003 23:57:20 -0800 (PST) (envelope-from ps) Message-Id: <200312020757.hB27vKIW011545@repoman.freebsd.org> From: Paul Saab Date: Mon, 1 Dec 2003 23:57:20 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/twe twe.c twe_compat.h twe_freebsd.c twe_tables.h tweio.h twereg.h twevar.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: Tue, 02 Dec 2003 07:57:21 -0000 ps 2003/12/01 23:57:20 PST FreeBSD src repository Modified files: sys/dev/twe twe.c twe_compat.h twe_freebsd.c twe_tables.h tweio.h twereg.h twevar.h Log: After extensive QA cycles at 3ware, bring the driver in-line with all the issues which they found and asked to be changed so 3ware can offcially support the driver. Summary of the most significant changes: - TWE_OVERRIDE is no longer supported - If twe_getparam failed, bogus data would be returned to the caller - Cache the device unit in the twe_drive structure to aid debugging - Add the 3ware driver version. - Proper return error codes for many functions. - Track the minimum queue length statistics - 4.x compat: use the cached unit number from the twe_drive structure instead of the the cached si_drv2. 3ware found that after many loads and unloads that si_drv2 became corrupted. This did not happen in -current. Submitted by: Vinod Kashyap (with modifications by me) Approved by: re (rwatson) Revision Changes Path 1.18 +100 -48 src/sys/dev/twe/twe.c 1.11 +4 -34 src/sys/dev/twe/twe_compat.h 1.31 +42 -49 src/sys/dev/twe/twe_freebsd.c 1.4 +4 -17 src/sys/dev/twe/twe_tables.h 1.3 +6 -3 src/sys/dev/twe/tweio.h 1.10 +4 -1 src/sys/dev/twe/twereg.h 1.9 +26 -8 src/sys/dev/twe/twevar.h