From owner-freebsd-scsi@FreeBSD.ORG Mon Aug 19 11:06:50 2013 Return-Path: Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5EEE4DA6 for ; Mon, 19 Aug 2013 11:06:50 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4B5782523 for ; Mon, 19 Aug 2013 11:06:50 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7JB6oZj006146 for ; Mon, 19 Aug 2013 11:06:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7JB6nY9006144 for freebsd-scsi@FreeBSD.org; Mon, 19 Aug 2013 11:06:49 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 19 Aug 2013 11:06:49 GMT Message-Id: <201308191106.r7JB6nY9006144@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-scsi@FreeBSD.org Subject: Current problem reports assigned to freebsd-scsi@FreeBSD.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Aug 2013 11:06:50 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/179932 scsi [ciss] ciss i/o stall problem with HP Bl Gen8 (and HP o kern/178795 scsi [mps] MSI for mps driver doesn't work under vmware o kern/165982 scsi [mpt] mpt instability, drive resets, and losses on Fre o kern/165740 scsi [cam] SCSI code must drain callbacks before free f kern/162256 scsi [mpt] QUEUE FULL EVENT and 'mpt_cam_event: 0x0' o docs/151336 scsi Missing documentation of scsi_ and ata_ functions in c o kern/148083 scsi [aac] Strange device reporting o kern/144648 scsi [aac] Strange values of speed and bus width in dmesg o kern/142351 scsi [mpt] LSILogic driver performance problems o kern/134488 scsi [mpt] MPT SCSI driver probes max. 8 LUNs per device o kern/130621 scsi [mpt] tranfer rate is inscrutable slow when use lsi213 f kern/129602 scsi [ahd] ahd(4) gets confused and wedges SCSI bus f kern/123674 scsi [ahc] ahc driver dumping o sparc/121676 scsi [iscsi] iscontrol do not connect iscsi-target on sparc 14 problems total. From owner-freebsd-scsi@FreeBSD.ORG Mon Aug 19 17:45:02 2013 Return-Path: Delivered-To: FreeBSD-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B3798F48 for ; Mon, 19 Aug 2013 17:45:02 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm34-vm10.bullet.mail.gq1.yahoo.com (nm34-vm10.bullet.mail.gq1.yahoo.com [98.136.216.139]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 74E572DCC for ; Mon, 19 Aug 2013 17:45:02 +0000 (UTC) Received: from [216.39.60.180] by nm34.bullet.mail.gq1.yahoo.com with NNFMP; 19 Aug 2013 17:44:56 -0000 Received: from [98.136.164.73] by tm16.bullet.mail.gq1.yahoo.com with NNFMP; 19 Aug 2013 17:44:56 -0000 Received: from [127.0.0.1] by smtp235.mail.gq1.yahoo.com with NNFMP; 19 Aug 2013 17:44:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1376934296; bh=nM0E5Lf/l9wRGUqZIyQ/C2GrFAPKcTPaSRC701lotrs=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Subject:From:Reply-To:To:Content-Type:Date:Message-ID:Mime-Version:X-Mailer; b=yLVT085RQIjFR6IgMZdGplG/azkq6PCTDvCqWvLRVEboivPc3Sqn2v0f9cTVavO9ve1OBVszvQjIDbOMxX159hdIoSKsjRnTHQnTi08tfq8v1HFeKLrf/yxeTar1iieQDI7qi5lk00Q0aNoIIVcylVYn3MEfJaMhRpTvg4/dM78= X-Yahoo-Newman-Id: 760694.72764.bm@smtp235.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 7f0UwpYVM1kntEuwaJDMDPoLQGwsIE2j4lH4bY4.HnDWSqE we2Ga4pB7Z4OEbglyD0uBlxd5QHZMc6v7SDXg6geODGeSi7c_NJN1KswZE4H LKtad4FD6ZY7iiThn7yi0Juwu3wf2ocsD1DzomKvIWHiaTSW7c0zogcoFZ2H xr2RFxDzaI6deGb9wR1tNThCFfAKyN6zkGPI5DwvphZtVoZitHp4atPZTSRA ixYW3Jk54vzpy.yMU6QQ1hlKApp9Kth_pzscC7j9udXwu4EoVbRUaORkAPhp 6ju9vLBELgB5DtdTGmSYuY9Mwlgtz8ufMhXd1Y4P3niH6Ag7oxe7v3Qx3t.S ESbGsyrswJs63V7CPe5Y_5IDRkIL8dkTfrorkCe9YDAuZxzXbpYSmXUxhJcB .CAuVD1_rDWhmAEMsLmdct3dwVkSGiHWp9pX3m31RVCs1wm9zmM.Qj.HXjac CdS8GeU4To0LmEawO1WkSU.qNzb71QtyT5R9prcEk9h1p9l5Dd1i_..d3MAz 3SlkTnhvgW41GbcDLs4SNpQwkUy5gM4AeEzjE5DaUNBcv_ICijrg- X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [192.168.43.121] (sean_bruno@70.197.6.156 with ) by smtp235.mail.gq1.yahoo.com with SMTP; 19 Aug 2013 17:44:56 +0000 UTC Subject: Interesting, yet stupid test case From: Sean Bruno To: "FreeBSD-scsi@freebsd.org" Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-Zi1srSMF7m9tLS2cttTc" Date: Mon, 19 Aug 2013 10:44:54 -0700 Message-ID: <1376934295.1455.4.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: sbruno@freebsd.org List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Aug 2013 17:45:02 -0000 --=-Zi1srSMF7m9tLS2cttTc Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Was able to get mfi to detonate (via CAM) today on stable/9=20 At the loader prompt, physically remove some amount of drives (in my case drives 0-5, as 6-11 are my zroot). Boot up into single user via boot -s System will attempt to process all the events in the controller on boot up and die violently. :-) (noperiph:mfi0:0:1:-1): rescan already queued panic: mutex MFI I/O lock not owned at ../../../cam/cam_xpt.c:4684 cpuid =3D 0 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a/frame 0xffffff9fee9c7690 kdb_backtrace() at kdb_backtrace+0x37/frame 0xffffff9fee9c7750 panic() at panic+0x1d8/frame 0xffffff9fee9c7850 _mtx_assert() at _mtx_assert+0xdc/frame 0xffffff9fee9c7860 xpt_release_device() at xpt_release_device+0x28/frame 0xffffff9fee9c7880 xpt_release_path() at xpt_release_path+0x1a/frame 0xffffff9fee9c78a0 xpt_free_path() at xpt_free_path+0x11/frame 0xffffff9fee9c78c0 xpt_rescan() at xpt_rescan+0xf9/frame 0xffffff9fee9c78f0 mfip_cam_rescan() at mfip_cam_rescan+0x17e/frame 0xffffff9fee9c7930 mfi_handle_evt() at mfi_handle_evt+0x2bc/frame 0xffffff9fee9c79a0 taskqueue_run_locked() at taskqueue_run_locked+0x93/frame 0xffffff9fee9c7a00 taskqueue_run() at taskqueue_run+0x3d/frame 0xffffff9fee9c7a20 intr_event_execute_handlers() at intr_event_execute_handlers+0x6a/frame 0xffffff9fee9c7a50 ithread_loop() at ithread_loop+0xac/frame 0xffffff9fee9c7aa0 fork_exit() at fork_exit+0x135/frame 0xffffff9fee9c7af0 fork_trampoline() at fork_trampoline+0xe/frame 0xffffff9fee9c7af0 --- trap 0, rip =3D 0, rsp =3D 0xffffff9fee9c7bb0, rbp =3D 0 --- Uptime: 5s Automatic reboot in 15 seconds - press a key on the console to abort Rebooting... --=-Zi1srSMF7m9tLS2cttTc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (FreeBSD) iQEcBAABAgAGBQJSElmNAAoJEBkJRdwI6BaH/JMH/3+JeC9uY75SHyTVqUUTZvYg zmHxdJEFfubK9tVitIQPHT5iYadsAYK8H6hRlX23JNzkkVNGmL1hb1xIu46PjPRs sQUNHIyIS782JtyVilOCYWtPCj6IbA57SaDAgW8fczeLRZ1NqFOkpV8zNYbjEmMz jk8KXVn16B+OMKf3NmzKiUsl0fSWkgEoK3oOwjOOisLZm3ZCLQVisn06rc4QKdN9 a35NbwUeoHlPwqFibezRUC90UVWfBiZlYyysbHzK5d6Eo6xEdLDntrNb4rymsdEF iVre3cpTJbz5weFetkNTCfXWI2tf0l/+lMTuwBiCoD3dApqbTY5qGGUnVTq189I= =jG/K -----END PGP SIGNATURE----- --=-Zi1srSMF7m9tLS2cttTc-- From owner-freebsd-scsi@FreeBSD.ORG Mon Aug 19 18:53:49 2013 Return-Path: Delivered-To: FreeBSD-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 238FD9A; Mon, 19 Aug 2013 18:53:49 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qa0-x234.google.com (mail-qa0-x234.google.com [IPv6:2607:f8b0:400d:c00::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C8CE521D0; Mon, 19 Aug 2013 18:53:48 +0000 (UTC) Received: by mail-qa0-f52.google.com with SMTP id bq6so2036748qab.18 for ; Mon, 19 Aug 2013 11:53:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=NVzxJQ+4JMgIYbiSOQki+Ov2tnMHntE2HviPi9+nvLg=; b=grY6cgzQMaiK91shnn7njwSiuSN8WNlqYUVr6zX7tZo2BuGXVbRmWFrGrfaZTMCi8I xOYngq1R/9byqt8tXVW4g7BciNK4W27PuhUQIQitvH60eKELAtrfSp3wJczbPvxwrJgu puElWcThs2l2HqpSk23LQuVMgOjTC08Do8vnAaALPgCJZt+sCZkP/Qr9MZ6Ct7Dt9/VP Tja1YQQleNW2Fmw9uA/zEV4K1S/mF3r5d4JqU3DOTf+mSHf1i7AvX0N8Yl9bWA91Er93 fmtyMuZjqQYQcPq9FjsDCFU232QTzvnegQvoWblsvcLnsjtwud0uNxmW+cJJ2AaU8+/H hNxQ== X-Received: by 10.224.129.65 with SMTP id n1mr17105184qas.29.1376938427953; Mon, 19 Aug 2013 11:53:47 -0700 (PDT) Received: from charmander.sandvine.com ([64.7.137.182]) by mx.google.com with ESMTPSA id 9sm18574499qau.3.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 19 Aug 2013 11:53:47 -0700 (PDT) Sender: Mark Johnston Date: Mon, 19 Aug 2013 14:54:26 -0400 From: Mark Johnston To: sbruno@freebsd.org Subject: Re: Interesting, yet stupid test case Message-ID: <20130819185426.GA4765@charmander.sandvine.com> References: <1376934295.1455.4.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1376934295.1455.4.camel@localhost> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "FreeBSD-scsi@freebsd.org" X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Aug 2013 18:53:49 -0000 On Mon, Aug 19, 2013 at 10:44:54AM -0700, Sean Bruno wrote: > Was able to get mfi to detonate (via CAM) today on stable/9 > > At the loader prompt, physically remove some amount of drives (in my > case drives 0-5, as 6-11 are my zroot). Boot up into single user via > boot -s > > System will attempt to process all the events in the controller on boot > up and die violently. :-) Yuck. :( I think we're not supposed to drop the SIM lock before calling xpt_rescan(); the other drivers I've looked at don't do this at least. We're also unnecessarily dropping the mfi lock around the call to xpt_alloc_ccb_nowait(). I think the following (untested) patch should help. I can try testing it myself later if I can get a hold of some equipment at work (might take a few days). Thanks, -Mark Index: mfi_cam.c =================================================================== --- mfi_cam.c (revision 254539) +++ mfi_cam.c (working copy) @@ -307,10 +307,10 @@ return; } camsc->state = MFIP_STATE_RESCAN; - mtx_unlock(&sc->mfi_io_lock); ccb = xpt_alloc_ccb_nowait(); if (ccb == NULL) { + mtx_unlock(&sc->mfi_io_lock); device_printf(sc->mfi_dev, "Cannot allocate ccb for bus rescan.\n"); return; @@ -317,7 +317,6 @@ } sim = camsc->sim; - mtx_lock(&sc->mfi_io_lock); if (xpt_create_path(&ccb->ccb_h.path, NULL, cam_sim_path(sim), tid, CAM_LUN_WILDCARD) != CAM_REQ_CMP) { xpt_free_ccb(ccb); @@ -326,11 +325,8 @@ "Cannot create path for bus rescan.\n"); return; } - mtx_unlock(&sc->mfi_io_lock); - xpt_rescan(ccb); - mtx_lock(&sc->mfi_io_lock); camsc->state = MFIP_STATE_NONE; mtx_unlock(&sc->mfi_io_lock); } From owner-freebsd-scsi@FreeBSD.ORG Fri Aug 23 11:27:40 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 85923EE5 for ; Fri, 23 Aug 2013 11:27:40 +0000 (UTC) (envelope-from freebsd-scsi@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 425472F7E for ; Fri, 23 Aug 2013 11:27:40 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VCpWj-0004Zr-Ih for freebsd-scsi@freebsd.org; Fri, 23 Aug 2013 13:27:37 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Aug 2013 13:27:37 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Aug 2013 13:27:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-scsi@freebsd.org From: Ivan Voras Subject: QLogic (isp) problem Date: Fri, 23 Aug 2013 13:27:23 +0200 Lines: 51 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2MDMWCDPKCKMEFWGRTBMG" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130322 Thunderbird/17.0.4 X-Enigmail-Version: 1.5.1 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 11:27:40 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2MDMWCDPKCKMEFWGRTBMG Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, For the last few days I've had some spontaneous reboots and a large volume of scary looking messages from the isp driver, which I don't know how to interpret: http://people.freebsd.org/~ivoras/stuff/messages.isp_problem.txt The only think that's changed is that I've modified some volume-host mappings in the SAN storage device (HP MSA 2000, on the 20th), but not for this host or for any volumes this host has access to. The volume of messages is high because I have hint.isp.0.debug=3D0x30f hint.isp.1.debug=3D0x30f in my loader.conf from some earlier debugging session, but the reboots concern me. Can someone interpret the log? Another host connected to the same SAN doesn't show such errors, but it's also much more lightly loaded. The only messages on this other host are: Aug 23 11:36:56 freddy kernel: isp0: Chan 0 PLOGX PortID 0x010200 to N-Port handle 0x8: already logged in with N-Port handle 0x2 Aug 23 11:36:58 freddy kernel: isp1: Chan 0 PLOGX PortID 0x010200 to N-Port handle 0x8: already logged in with N-Port handle 0x2 ------enig2MDMWCDPKCKMEFWGRTBMG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlIXRxwACgkQ/QjVBj3/HSxJYwCeOULHC2TfVxsQVhmRwPR/ENdo fekAoJEOIb2TJEZwogHaFJphkNMGy1fV =puaA -----END PGP SIGNATURE----- ------enig2MDMWCDPKCKMEFWGRTBMG-- From owner-freebsd-scsi@FreeBSD.ORG Fri Aug 23 15:40:24 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id ABFA1E75; Fri, 23 Aug 2013 15:40:24 +0000 (UTC) (envelope-from mj@feral.com) Received: from virtual.feral.com (virtual.feral.com [216.224.170.83]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6F39E2F61; Fri, 23 Aug 2013 15:40:24 +0000 (UTC) Received: from spea.in1.lcl (lowell.feral.com [76.14.48.84]) by virtual.feral.com (8.14.4/8.14.4) with ESMTP id r7NFYB97030102 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 23 Aug 2013 08:34:24 -0700 Received: from spea.in1.lcl (localhost [127.0.0.1]) by spea.in1.lcl (8.14.4/8.14.4) with ESMTP id r7NFYBXc031716; Fri, 23 Aug 2013 08:34:11 -0700 Received: from localhost (mjacob@localhost) by spea.in1.lcl (8.14.4/8.14.4/Submit) with ESMTP id r7NFYBuL031712; Fri, 23 Aug 2013 08:34:11 -0700 Date: Fri, 23 Aug 2013 08:34:10 -0700 (PDT) From: Matthew Jacob To: Ivan Voras Subject: Re: QLogic (isp) problem In-Reply-To: Message-ID: References: User-Agent: Alpine 2.03 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (virtual.feral.com [216.224.170.83]); Fri, 23 Aug 2013 08:34:24 -0700 (PDT) Cc: freebsd-scsi@freebsd.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: mj@feral.com List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 15:40:24 -0000 Ivan, I need some more information 1. What FreeBSD version and what qlogic hardware and are you loading the appropriate ispfw module for that card? 2. What is the connection topology? Clearly there's a switch involved. What switch vendor? 3. You mentioned an HP MSA 2000. How many other initiators are there on the fabric? Just the one I see coming and going? 4. You say "spontaneous reboots". Some detail about this would be good. From owner-freebsd-scsi@FreeBSD.ORG Fri Aug 23 17:05:09 2013 Return-Path: Delivered-To: FreeBSD-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2CF0D4F4 for ; Fri, 23 Aug 2013 17:05:09 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm13-vm4.bullet.mail.ne1.yahoo.com (nm13-vm4.bullet.mail.ne1.yahoo.com [98.138.91.173]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C38022497 for ; Fri, 23 Aug 2013 17:05:08 +0000 (UTC) Received: from [98.138.101.129] by nm13.bullet.mail.ne1.yahoo.com with NNFMP; 23 Aug 2013 16:59:46 -0000 Received: from [98.138.226.60] by tm17.bullet.mail.ne1.yahoo.com with NNFMP; 23 Aug 2013 16:59:46 -0000 Received: from [127.0.0.1] by smtp211.mail.ne1.yahoo.com with NNFMP; 23 Aug 2013 16:59:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1377277186; bh=z1T+hIIAc3xV2DzZnE8RvnR/JvMmhC86b93t4R/HdUw=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Subject:From:Reply-To:To:Cc:In-Reply-To:References:Content-Type:Date:Message-ID:Mime-Version:X-Mailer; b=ksfZBaBSv5smZztP4WfT+5ututjSocHfTb6yTBomgIOpVxD5V77JDOrbV8D+AMpiucxX/7XaR0GmCf384n4tugd7iynFUNO5TSHJROBpo3y+szKRZxJ8x2EyapDxUs9wR2Yycm/RMVD9GiEwJeqkTZ5lpailRAsR2cRrp83UohY= X-Yahoo-Newman-Id: 579273.70419.bm@smtp211.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: iyPOioQVM1lzDYFQblx13LzAyOjL6jE8gOu36sSfhFZwDSV uWxDD8qfnzqzT3KyOMvWdtC0ZTz5UJIqSLC.uZeUA5UJRETBePQUw4QzmDTW X5oKnGbQS61nAhXIKtJzPH2sZrFaKUXawAKgux9UZKxbV8YljIS.Zw77OhXK PfTUHH3CVVGsrowDD3do6jCCCVJjquxoK5fPbP2gDNqCRJIp81y6wBdw5Dae on6FPd.13b5267EMxGP4scp2P9lq8CANuTqbaEi1d6HGjrZbh0aD2SQpO3wK DuzRZYxrfr1oSw57KTl9DkXdu8Ketqnq5Sw8KaRjkHI7mmfDDxygLIRysLex cnPtp9_VcMIPeXa2ugKFxIqiDjDujskdlq_TxyUN3utv9hbkQ3i1yvcAMWzI AG9PZxlNJtzLMzMLqbvhQlo4AhF0YkcQN7yJIcQApGdlQiQuVMWfCUn_RT_6 fHuBjfWS4uGMWfxsqZN1r..RecPVPnQabGBrFntj6fVv82pmpgkosTEDkSnW B83j82Kp0gf.I4ToA29ZFju0EJvu7K6ZhwCrP8dto4VCLJ187Zg-- X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [192.168.43.121] (sean_bruno@70.197.5.65 with ) by smtp211.mail.ne1.yahoo.com with SMTP; 23 Aug 2013 09:59:46 -0700 PDT Subject: Re: Interesting, yet stupid test case From: Sean Bruno To: Mark Johnston In-Reply-To: <20130819185426.GA4765@charmander.sandvine.com> References: <1376934295.1455.4.camel@localhost> <20130819185426.GA4765@charmander.sandvine.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-19vJrLjt1memIyAEdgDw" Date: Fri, 23 Aug 2013 09:59:43 -0700 Message-ID: <1377277183.1469.6.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: "FreeBSD-scsi@freebsd.org" X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: sbruno@freebsd.org List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 17:05:09 -0000 --=-19vJrLjt1memIyAEdgDw Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Mon, 2013-08-19 at 14:54 -0400, Mark Johnston wrote: > On Mon, Aug 19, 2013 at 10:44:54AM -0700, Sean Bruno wrote: > > Was able to get mfi to detonate (via CAM) today on stable/9=20 > >=20 > > At the loader prompt, physically remove some amount of drives (in my > > case drives 0-5, as 6-11 are my zroot). Boot up into single user via > > boot -s > >=20 > > System will attempt to process all the events in the controller on boot > > up and die violently. :-) >=20 > Yuck. :( >=20 > I think we're not supposed to drop the SIM lock before calling > xpt_rescan(); the other drivers I've looked at don't do this at least. > We're also unnecessarily dropping the mfi lock around the call to > xpt_alloc_ccb_nowait(). >=20 > I think the following (untested) patch should help. I can try testing it > myself later if I can get a hold of some equipment at work (might take a > few days). >=20 > Thanks, > -Mark >=20 Yup, this fixes the panic on startup on a Dell H310 if I pull 3 disks out at the loader prompt and then continue to boot. Sean > Index: mfi_cam.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- mfi_cam.c (revision 254539) > +++ mfi_cam.c (working copy) > @@ -307,10 +307,10 @@ > return; > } > camsc->state =3D MFIP_STATE_RESCAN; > - mtx_unlock(&sc->mfi_io_lock); > =20 > ccb =3D xpt_alloc_ccb_nowait(); > if (ccb =3D=3D NULL) { > + mtx_unlock(&sc->mfi_io_lock); > device_printf(sc->mfi_dev, > "Cannot allocate ccb for bus rescan.\n"); > return; > @@ -317,7 +317,6 @@ > } > =20 > sim =3D camsc->sim; > - mtx_lock(&sc->mfi_io_lock); > if (xpt_create_path(&ccb->ccb_h.path, NULL, cam_sim_path(sim), > tid, CAM_LUN_WILDCARD) !=3D CAM_REQ_CMP) { > xpt_free_ccb(ccb); > @@ -326,11 +325,8 @@ > "Cannot create path for bus rescan.\n"); > return; > } > - mtx_unlock(&sc->mfi_io_lock); > - > xpt_rescan(ccb); > =20 > - mtx_lock(&sc->mfi_io_lock); > camsc->state =3D MFIP_STATE_NONE; > mtx_unlock(&sc->mfi_io_lock); > } --=-19vJrLjt1memIyAEdgDw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (FreeBSD) iQEcBAABAgAGBQJSF5T3AAoJEBkJRdwI6BaH/UwH/ijMLnZ8mTx5IhqF00wSwSLN WBDU7zjc7GDjamlkF3fz6v98GEthddEW7UlUaqwchX9Y+uv26/MmVqUUhNwnHThH gfptUN3S+ClkL8ZfqBADirnF4mlmzG1vl5H38Mnkqpv90IBM9eACTp1lsZ9BHWTc yGSRID9qxjH1K5fbvtThWNLY9xKKaK7vTPjWeBInTQb5t7/TJei76fvOdhrWdSFQ e3lP1Wor1pQO1Ztvw+q5d7oITl9FfwhuoZS39zHy0LxYorzTL7/EhPySv1Ojlufk 7fPmT7Q0qBc/vGPYa51DqTQlmgJ57eLASt67+kLnjfBbdHw5BLPgalLbAkxFdyU= =k4Px -----END PGP SIGNATURE----- --=-19vJrLjt1memIyAEdgDw-- From owner-freebsd-scsi@FreeBSD.ORG Fri Aug 23 19:12:14 2013 Return-Path: Delivered-To: FreeBSD-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0C4DAC4C; Fri, 23 Aug 2013 19:12:14 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qc0-x236.google.com (mail-qc0-x236.google.com [IPv6:2607:f8b0:400d:c01::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B04012D1D; Fri, 23 Aug 2013 19:12:13 +0000 (UTC) Received: by mail-qc0-f182.google.com with SMTP id c11so542124qcv.41 for ; Fri, 23 Aug 2013 12:12:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=5GzU2VOZIqKRnuHaSJofPGKfSmyoftmITuChKSgMztc=; b=N85QvgRSL+ZkX9zHx+BlyErOKDNj9dIRdBOCftptGTh49RQareRpKlZXuE2bnZjRJd LYve93Tia2v/dGBapDsobP80iN0KTV69YLunfOl9bRzqrVAI1NLCq5afg8g2FkuLqvh9 8FeMD4rQsJ4dnfQiMMEDNZpOBn2ZMsYspQWZLQaPpyazOZNI8GlnaO+6uE46sdaIeKzF fXSAcl/nLvKjV2yWv30ewmLsxrpJS6GSUXJUpklrt5HukdeKVwm4pNaHxHAasI/IOLnc QoJEvpAq/VKAjtYUT414J9Ml9OXR9BWnRpe0V/J9AAgG9TbPmN++wIbXRh62KyuVisfq apOg== X-Received: by 10.49.82.43 with SMTP id f11mr1586969qey.26.1377285132832; Fri, 23 Aug 2013 12:12:12 -0700 (PDT) Received: from charmander.sandvine.com ([64.7.137.182]) by mx.google.com with ESMTPSA id m10sm2874163qae.12.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Aug 2013 12:12:12 -0700 (PDT) Sender: Mark Johnston Date: Fri, 23 Aug 2013 15:13:03 -0400 From: Mark Johnston To: sbruno@freebsd.org Subject: Re: Interesting, yet stupid test case Message-ID: <20130823191303.GB8658@charmander.sandvine.com> References: <1376934295.1455.4.camel@localhost> <20130819185426.GA4765@charmander.sandvine.com> <1377277183.1469.6.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1377277183.1469.6.camel@localhost> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "FreeBSD-scsi@freebsd.org" X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 19:12:14 -0000 On Fri, Aug 23, 2013 at 09:59:43AM -0700, Sean Bruno wrote: > On Mon, 2013-08-19 at 14:54 -0400, Mark Johnston wrote: > > On Mon, Aug 19, 2013 at 10:44:54AM -0700, Sean Bruno wrote: > > > Was able to get mfi to detonate (via CAM) today on stable/9 > > > > > > At the loader prompt, physically remove some amount of drives (in my > > > case drives 0-5, as 6-11 are my zroot). Boot up into single user via > > > boot -s > > > > > > System will attempt to process all the events in the controller on boot > > > up and die violently. :-) > > > > Yuck. :( > > > > I think we're not supposed to drop the SIM lock before calling > > xpt_rescan(); the other drivers I've looked at don't do this at least. > > We're also unnecessarily dropping the mfi lock around the call to > > xpt_alloc_ccb_nowait(). > > > > I think the following (untested) patch should help. I can try testing it > > myself later if I can get a hold of some equipment at work (might take a > > few days). > > > > Thanks, > > -Mark > > > Yup, this fixes the panic on startup on a Dell H310 if I pull 3 disks > out at the loader prompt and then continue to boot. Thanks! I've tested it on FreeBSD 8 with a 9261-8i controller, works for me too. I'll commit it soon. -Mark From owner-freebsd-scsi@FreeBSD.ORG Fri Aug 23 23:32:17 2013 Return-Path: Delivered-To: scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 41C4E507 for ; Fri, 23 Aug 2013 23:32:17 +0000 (UTC) (envelope-from will@firepipe.net) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 048C02C0C for ; Fri, 23 Aug 2013 23:32:16 +0000 (UTC) Received: by mail-ve0-f169.google.com with SMTP id db10so915310veb.0 for ; Fri, 23 Aug 2013 16:32:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=BF3J+o9ZSdGyri8i9n4Gl2jkv41kJZCcnK2iXHksKGc=; b=c2llrjALGuAs2s/3e999P4/5CCkD8uuBQZJnGWzRAF4WxGpdFB6Lf7UIw8z/GaMe/s bGCYr9LOZcWvDDyleIoXPcQo4Xg6MjharTBzgUyMHsWD7QJ3Y3EkE+ElxMo81DhD/NT2 BWkaXwZoQ9RGwa+lsCOYNJrbH1cj7gY7rIDZWjlq9YMVbHChIOH67wWdcVM4qVh579jv AwiEWkfgjz0waMIUDNMr6cJ8KOSPzYIeIX0WN2ioVhTSk7LMm2tLDKVYICsyF0BFc46M S9wj+REFyXzOIme1kTnTk+JMWOfwbqwwiQajFXC70EDwuUB5BqJF0ecd0phM0T8Nd5JX AHZQ== X-Gm-Message-State: ALoCoQlQf6XgDzJ3OCRlSJrK0cYKhOW5N1+rsdBAlCxVYywfPvWRivaUPhr2m6J/2VR4L83ul2ff MIME-Version: 1.0 X-Received: by 10.58.196.132 with SMTP id im4mr105872vec.28.1377300730150; Fri, 23 Aug 2013 16:32:10 -0700 (PDT) Received: by 10.58.226.66 with HTTP; Fri, 23 Aug 2013 16:32:10 -0700 (PDT) Date: Fri, 23 Aug 2013 17:32:10 -0600 Message-ID: Subject: 8K quirks & making quirk table more structured From: Will Andrews To: scsi@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 23:32:17 -0000 Hi, We have seen 8K blocksize devices in our lab, which require quirks to behave properly. Rather than simply add another quirk for a different size, we made the quirk entries more structured, and changed blocksize to be a fixed-size integer element. Please review: http://people.freebsd.org/~will/head-convert-cam-quirk-tables-to-structs.diff The naming isn't particularly intuitive, but I'd like to check this in as primarily a structural change, and follow up with other improvements later. Thanks! --Will. From owner-freebsd-scsi@FreeBSD.ORG Sat Aug 24 00:57:33 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 73567E9D for ; Sat, 24 Aug 2013 00:57:33 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm5-vm3.bullet.mail.gq1.yahoo.com (nm5-vm3.bullet.mail.gq1.yahoo.com [98.136.218.178]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B11082011 for ; Sat, 24 Aug 2013 00:57:32 +0000 (UTC) Received: from [216.39.60.181] by nm5.bullet.mail.gq1.yahoo.com with NNFMP; 24 Aug 2013 00:54:36 -0000 Received: from [208.71.42.205] by tm17.bullet.mail.gq1.yahoo.com with NNFMP; 24 Aug 2013 00:54:36 -0000 Received: from [127.0.0.1] by smtp216.mail.gq1.yahoo.com with NNFMP; 24 Aug 2013 00:54:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1377305676; bh=BLzDhr6f1YjLwJ+lG6qtrjTn3RiD34F8wtE04MMeA4w=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Subject:From:Reply-To:To:Content-Type:Date:Message-ID:Mime-Version:X-Mailer; b=pykV+V6xs+p40ETWD/Ei25L4OrMLwBzmak/gfAQXQ7LAvol2nHg4tXoV5bM39Uxs24HW32wfxh85F/2rkaJ11KIt4KwMLOuuczwutKhIFyPPuQP+5q6E0iVCsCLm1jSfZLEEGr5F6f8b2rq4QiEhmRvr/ihHigBIml9nh6ZYuls= X-Yahoo-Newman-Id: 619483.56830.bm@smtp216.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: rHXs230VM1mCkqdaavVle0Tr4hoan9mTbPro90hUp88q_e8 X_gaqNtRztv41hVO8LJa08gNjG79cIeHCR2IDyIliAH2k4TwWJLWxsMB19Zr UBBL0ifcySzuhcomjuSqXJv7Dlzg.ALfDpOVPLOhoRqcKw78Ec8vOt3Y9.2. 8.iggp8zQkImZYNoCtXX58K_7xBgCJHSTvv0kVBsTnI.Nr0_NaI30QlDIdgJ wLizVI4URyiCM_rq7QEzPxodtm5WL9PpbCDSYSb2qn34hWRIYoqf9x0P8d8S 712H2jXlD6DTd7JZEz04qJpxYgAxMHdz.hgmm8Px4OE.hufydRqe1niSgZH2 yQEBhZ_vmtWzmJAF6xbI0dFO0Frr.swhjVEbE94XHg5leVBPalkaOC7wPHYh GJG8I9lCkiZzoZDwXR6oAyrN6wzQmVafNCWfupaYXF1R.g_deIHiABk4cS5w ZjowRVi466t_6HMlx2WjCnmJIP9aadVkEcQOuQdh6S4KBc1uhnF1960DU0gO ybmoqlb80Lxoh8rt7GGV4wGu.uVQX1wGUNds5aVaiCAt7ghVznmX4AGIeAyG 9KlZHxNltuhhKl60F1Up6.UmuS8M9TH59MPp4w4iPzsKc3biGYGs20LswQvS qsW_uz50MAr7KUCnpIgwYFTHD4I.TZJJvkfWDgPHIdg-- X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [10.73.160.242] (sean_bruno@209.131.62.116 with ) by smtp216.mail.gq1.yahoo.com with SMTP; 24 Aug 2013 00:54:36 +0000 UTC Subject: [patch] mfiutil add SYSPD create support From: Sean Bruno To: freebsd-scsi@freebsd.org Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-+uGJgv3U8qV6K9yOABWr" Date: Fri, 23 Aug 2013 17:54:35 -0700 Message-ID: <1377305675.1683.309.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: sbruno@freebsd.org List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Aug 2013 00:57:33 -0000 --=-+uGJgv3U8qV6K9yOABWr Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Adds support to reconfigure a drive as SYSPD (real JBOD in LSI terminology). Adds command "mfiutil syspd " to change a drive to SYSPD. Drive will then be scanned/reported immediately as /dev/mfisyspdX by the host. "mfiutil good " clears SYSPD mode, remove /dev/mfisyspdX and sets disk into UNCONFIGURED mode. http://people.freebsd.org/~sbruno/mfiutil_syspd.diff --=-+uGJgv3U8qV6K9yOABWr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (FreeBSD) iQEcBAABAgAGBQJSGAREAAoJEBkJRdwI6BaHhpwH/1+GchANwZmLxfLhKFSzrTWg VIVEIbrjdr6SEr95Ma1mVoVpG+Bxi9QKsbpBmVHL/v6vzhRaOHOjmNRzXox671QH REaq/tj4HfwiI5DyFQ76n5TtT0uEccX3pAYylz6modnCFfuz9CWebosiB6nWAOC0 wwW49EgywoF9e+gtAM7kYxK0jmun1B6QmPPzzv01DTfOjM00JlFFu25Z/nxCi661 vib5U8XRTDj6MAjnZ+gYObNiEvl2o2t3Vg0SoRaZAgxazDJVv7geNbwllptfato4 7WaZOJh3x6L/LtrTwKVf1eJBqwevvdziQdqFD2WfFG1b/5WfAjZBbr0Qupp5PHk= =K84o -----END PGP SIGNATURE----- --=-+uGJgv3U8qV6K9yOABWr-- From owner-freebsd-scsi@FreeBSD.ORG Sat Aug 24 11:51:43 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9C021234 for ; Sat, 24 Aug 2013 11:51:43 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-ve0-x233.google.com (mail-ve0-x233.google.com [IPv6:2607:f8b0:400c:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5D7DE2A0B for ; Sat, 24 Aug 2013 11:51:43 +0000 (UTC) Received: by mail-ve0-f179.google.com with SMTP id c13so1083612vea.24 for ; Sat, 24 Aug 2013 04:51:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=zF8TlDGXIjNLbo/g2Qc4l6XkJRJFt26y7/SepWYFjfw=; b=of9bYQmJOtUYG4HcKlkPR3ubTmNESQDF+HA62wuQnOQHwmRnZDeG8JZbTMaP+gVsPo 8xvpHQo/XWptS9jjGXkHxZTkBmQ3iwUkfQujcoDrAnQBuYJmH2kFAaTpkxvGtnLtnK71 pBGOc9Bd7JuRA4yxCog73XP+ivWPmnmkULgudKO6KB1fih1ZO3ijSB0cDUGvfkkl4goV U8agH1QDz4B0hwo2/R3svhFRoyB4Ht582vvslmJVGazdkMo+BAyyVDY1ESy9rbtENf/T yTUUHsfMl3o2FxSgyFXo84F4q0RkF1yLSE6vnN2lWxEOaAmGIR/YiofJ/ZqnRHNjO0Dp N+pg== X-Received: by 10.220.74.69 with SMTP id t5mr4237406vcj.18.1377345102512; Sat, 24 Aug 2013 04:51:42 -0700 (PDT) MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.58.229.167 with HTTP; Sat, 24 Aug 2013 04:51:02 -0700 (PDT) In-Reply-To: References: From: Ivan Voras Date: Sat, 24 Aug 2013 13:51:02 +0200 X-Google-Sender-Auth: 5j-8TZxGZJ8Gem6WjaNrWwOHGRk Message-ID: Subject: Re: QLogic (isp) problem To: Matthew Jacob Content-Type: text/plain; charset=UTF-8 Cc: freebsd-scsi@freebsd.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Aug 2013 11:51:43 -0000 On 23 August 2013 17:34, Matthew Jacob wrote: > > > Ivan, I need some more information > > 1. What FreeBSD version and what qlogic hardware and are you loading > the appropriate ispfw module for that card? FreeBSD 9.1-RELEASE, here's what dmesg writes: isp0: port 0x5000-0x50ff mem 0xfdff0000-0xfdff3fff irq 19 at device 0.0 on pci19 isp0: set PCI latency to 64 isp0: Board Type 2422, Chip Revision 0x3, loaded F/W Revision 5.4.0 isp0: 4096 max I/O command limit set isp0: Chan 0 0x5001438003bddccd/0x5001438003bddccc Role Initiator isp0: Starting Initial Loop Down Timer @ 1 isp1: port 0x5400-0x54ff mem 0xfdfe0000-0xfdfe3fff irq 16 at device 0.1 on pci19 isp1: set PCI latency to 64 isp1: Board Type 2422, Chip Revision 0x3, loaded F/W Revision 5.4.0 isp1: 4096 max I/O command limit set isp1: Chan 0 0x5001438003bddccf/0x5001438003bddcce Role Initiator isp1: Starting Initial Loop Down Timer @ 1 As for the firmware, the only thing I'm doing is having this: ispfw_load="YES" in my loader.conf. If you need more information, you need to tell me how to obtain it. > 2. What is the connection topology? Clearly there's a switch involved. > What switch vendor? Brocade. The topology is redundant: there are 2 of everything: the SAN storage has two controllers, each connected to its own Brocade switch, and the host isp device has two ports which are connected to one each of the switches. > 3. You mentioned an HP MSA 2000. How many other initiators are there > on the fabric? Just the one I see coming and going? I'm not that well versed in terminology, but from my interpretation of your question, here's what we have: there are 7 more identical servers which are connected identically to the whole setup. Not all of them are up all the time. The MSA storage allows us to "map" certain volumes to certain ports, which we do (not all of the servers can access all of the volumes). > 4. You say "spontaneous reboots". Some detail about this would be good. That's the problem - I don't have any. The only thing I have is that "something weird" happens with the isp device (as seen in the logs) and the machine reboots. See what happens at the timepoint Aug 20 15:03:23 in the log file I've linked to in my original message. Foremost, I'd like to know if you suspect this is a hardware error. From owner-freebsd-scsi@FreeBSD.ORG Sat Aug 24 16:27:40 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 674B98BD for ; Sat, 24 Aug 2013 16:27:40 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from virtual.feral.com (virtual.feral.com [216.224.170.83]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2A26926C6 for ; Sat, 24 Aug 2013 16:27:39 +0000 (UTC) Received: from [192.168.136.3] (lowell.feral.com [76.14.48.84]) by virtual.feral.com (8.14.4/8.14.4) with ESMTP id r7OGQU6b006798 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sat, 24 Aug 2013 09:26:30 -0700 Message-ID: <5218DEB4.4060101@freebsd.org> Date: Sat, 24 Aug 2013 09:26:28 -0700 From: Matthew Jacob Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org Subject: Re: QLogic (isp) problem References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (virtual.feral.com [216.224.170.83]); Sat, 24 Aug 2013 09:26:31 -0700 (PDT) X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: mjacob@freebsd.org List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Aug 2013 16:27:40 -0000 On 8/24/2013 4:51 AM, Ivan Voras wrote: > ...: > Foremost, I'd like to know if you suspect this is a hardware error. Ivan, thanks. I don't immediately suspect hardware error. From the messages you sent out earlier instead I'm seeing fabric instability with constant churn where the name server (in the switch) says something has changed, and then the isp driver on this system going through the re-evaluation, only to find things changing again. I need to review more carefully the messages and what you've just written and get back to you. Unless somebody else wants to share in this discussion should we take this off list? From owner-freebsd-scsi@FreeBSD.ORG Sat Aug 24 22:24:27 2013 Return-Path: Delivered-To: scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CD53499 for ; Sat, 24 Aug 2013 22:24:27 +0000 (UTC) (envelope-from prvs=1948296411=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6CEC9273D for ; Sat, 24 Aug 2013 22:24:27 +0000 (UTC) Received: from r2d2 ([82.12.17.95]) by mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (MDaemon PRO v10.0.4) with ESMTP id md50005673002.msg for ; Sat, 24 Aug 2013 23:23:45 +0100 X-Spam-Processed: mail1.multiplay.co.uk, Sat, 24 Aug 2013 23:23:45 +0100 (not processed: message from valid local sender) X-MDDKIM-Result: neutral (mail1.multiplay.co.uk) X-MDDNSBL-Result: mail1.multiplay.co.uk, Sat, 24 Aug 2013 23:23:45 +0100 zen.spamhaus.org returned result of 127.0.0.11 X-MDRemoteIP: 82.12.17.95 X-Return-Path: prvs=1948296411=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-MDaemon-Deliver-To: scsi@freebsd.org Message-ID: From: "Steven Hartland" To: "Will Andrews" , References: Subject: Re: 8K quirks & making quirk table more structured Date: Sat, 24 Aug 2013 23:24:53 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Aug 2013 22:24:27 -0000 That currently breaks the main reason for the output of quirks in xpt_announce_quirks Also it appears that the new method of setting lbppbe in scsi would make the result dependent on block_len which makes it potentially hard to predict the value needed to set a drive to 4 etc. In ata you use a different method entirely which its not good for consistency as ideally we should have just one set of quirks which work for scsi and ata. Also in ata you appear to have lost the output of quirks. Regards Steve ----- Original Message ----- From: "Will Andrews" To: Sent: Saturday, August 24, 2013 12:32 AM Subject: 8K quirks & making quirk table more structured > Hi, > > We have seen 8K blocksize devices in our lab, which require quirks to > behave properly. Rather than simply add another quirk for a different > size, we made the quirk entries more structured, and changed blocksize > to be a fixed-size integer element. > > Please review: http://people.freebsd.org/~will/head-convert-cam-quirk-tables-to-structs.diff > > The naming isn't particularly intuitive, but I'd like to check this in > as primarily a structural change, and follow up with other > improvements later. > > Thanks! > --Will. > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org" > ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk.