From owner-freebsd-current@FreeBSD.ORG Wed Feb 3 22:24:09 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 492D1106566B for ; Wed, 3 Feb 2010 22:24:09 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id C60EF8FC0A for ; Wed, 3 Feb 2010 22:24:08 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id e21so50035fga.13 for ; Wed, 03 Feb 2010 14:24:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=wksatHkNu5bczv2yr+cPs3nod9ec0AE5FrOE4vy8QGw=; b=TPtAPPU0C3rhUdmLL6TqheGVvuWvpCcLAKHiQSkmcejvZUSkisdzbZQ9QUDM4rVboF PT7RW6MvEVaSCSKPgSOOfiv6RQn9JGbzTr0HwRoQHE2Wv/oMnLjGuWJQBlksGG1FWppt lxjtJSJmPh/fbyL2rtmGHyBGD+PpQ5/TQ6eGY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=T25SffKEVrRtpdMBkLG5hB3bgc6p3eXyDB39tj78msuJf211BUxYlRixtj/AK2oA5W PSvaQ07tB+KkRZdRbnHPjGVRso1rmbVWkln+6xIjvbs6tR8Txu7w9zyaL0xpWbkSokJj fqePetcJrsUcToGxnYcqNHetgFzDwKNBx1uWM= Received: by 10.87.47.3 with SMTP id z3mr717190fgj.70.1265235846768; Wed, 03 Feb 2010 14:24:06 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 15sm3456474fxm.6.2010.02.03.14.24.05 (version=SSLv3 cipher=RC4-MD5); Wed, 03 Feb 2010 14:24:05 -0800 (PST) Sender: Alexander Motin Message-ID: <4B69F782.5050108@FreeBSD.org> Date: Thu, 04 Feb 2010 00:24:02 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Marcel Moolenaar References: <4B68A18E.1030500@FreeBSD.org> <305C4541-4245-45C9-9FCC-9C6AF4E47DD6@mac.com> <4B68A812.40103@FreeBSD.org> <971A22CA-B14A-4CBC-8D6D-FEB3A4EA2425@mac.com> <4B68B7AC.8050908@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "current@freebsd.org mailing list" Subject: Re: CAM verbosity (xpt_release_devq(0): requested 1 > present 0) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2010 22:24:09 -0000 Marcel Moolenaar wrote: > On Feb 2, 2010, at 3:39 PM, Alexander Motin wrote: >> Marcel Moolenaar wrote: >>> On Feb 2, 2010, at 2:32 PM, Alexander Motin wrote: >>>> Whether it is related or not, both issues definitely should be fixed. >>>> Could you give me an access to debug that system, or it is in use? >>> Unfortunately, I can't give you access to this machine. >> What's about full verbose dmesg up to the first few errors? > > *snip* > Tue Feb 2 16:16:57 PST 2010 > > FreeBSD/ia64 (hob.lan.xcllnt.net) (ttyu0) > > login: mpt0: QUEUE FULL EVENT: Bus 0x00 Target 0x07 Depth 120 > xpt_release_devq(0): requested 1 > present 0 > xpt_release_devq(0): requested 1 > present 0 > xpt_release_devq(0): requested 1 > present 0 > *ad nauseam* > > Actually, it's not ad nauseam. Every queue full event is > followed by 256 xpt_release_devq(0) lines. Looks related > to me... Indeed related. This driver seems handles queue full status by itself, instead of returning respective request status to CAM. I have too small information now to understand why number of openings is not changing, as you said. But errors you've got look reasonable. I have doubts that driver frozen all 256 luns before adjusting openings, so releasing them by this call causes such errors. I expect such patch should fix the problem: --- mpt_cam.c.prev 2009-11-01 13:16:39.000000000 +0200 +++ mpt_cam.c 2010-02-04 00:16:31.000000000 +0200 @@ -2558,6 +2558,7 @@ mpt_cam_event(struct mpt_softc *mpt, req } xpt_setup_ccb(&crs.ccb_h, tmppath, 5); crs.ccb_h.func_code = XPT_REL_SIMQ; + crs.ccb_h.flags = CAM_DEV_QFREEZE; crs.release_flags = RELSIM_ADJUST_OPENINGS; crs.openings = pqf->CurrentDepth - 1; xpt_action((union ccb *)&crs); Do you receive message like "tagged openings now %d" in verbose log? It should be there if queue size was adjusted. -- Alexander Motin