From owner-cvs-src-old@FreeBSD.ORG Fri Sep 17 21:54:13 2010 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 4AF521065740 for ; Fri, 17 Sep 2010 21:54:13 +0000 (UTC) (envelope-from ken@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1EE6B8FC18 for ; Fri, 17 Sep 2010 21:54:13 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o8HLsDh7072618 for ; Fri, 17 Sep 2010 21:54:13 GMT (envelope-from ken@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o8HLsDfU072617 for cvs-src-old@freebsd.org; Fri, 17 Sep 2010 21:54:13 GMT (envelope-from ken@repoman.freebsd.org) Message-Id: <201009172154.o8HLsDfU072617@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ken@repoman.freebsd.org using -f From: "Kenneth D. Merry" Date: Fri, 17 Sep 2010 21:53:56 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/mps mps.c mps_sas.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: Fri, 17 Sep 2010 21:54:13 -0000 ken 2010-09-17 21:53:56 UTC FreeBSD src repository Modified files: sys/dev/mps mps.c mps_sas.c Log: SVN rev 212802 on 2010-09-17 21:53:56Z by ken Fix a couple of mps problems. When the driver is completely saturated with commands (1024 in the case of the SAS2008 in my test system), I/O stops. If we tell CAM that we have one less command slot than we have actually allocated, everything works fine. We also need a few extra command slots to allow for aborts and other task management commands to be sent down. This needs more investigation to determine the root cause, but for now this fixes things in my testing. mps.c: Change a printf() to mps_printf(). mps_sas.c: Subtract 5 command slots when we tell CAM how many commands we can handle. Add some commented-out logic to print the contents the CDBs for timed-out commands. This can help in debugging devices that are timing out. This will be uncommented once I bring some CAM changes in. Reported by: Andrew Boyer Revision Changes Path 1.2 +1 -1 src/sys/dev/mps/mps.c 1.4 +38 -3 src/sys/dev/mps/mps_sas.c