From owner-freebsd-current@freebsd.org Wed Oct 19 15:17:10 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1E1D1C185E5 for ; Wed, 19 Oct 2016 15:17:10 +0000 (UTC) (envelope-from dgeo@centrale-marseille.fr) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 0211C15A for ; Wed, 19 Oct 2016 15:17:10 +0000 (UTC) (envelope-from dgeo@centrale-marseille.fr) Received: by mailman.ysv.freebsd.org (Postfix) id 016F5C185E0; Wed, 19 Oct 2016 15:17:10 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 00FFCC185DF; Wed, 19 Oct 2016 15:17:10 +0000 (UTC) (envelope-from dgeo@centrale-marseille.fr) Received: from mel1.ec-m.fr (melout.ec-m.fr [147.94.19.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B12E2155; Wed, 19 Oct 2016 15:17:08 +0000 (UTC) (envelope-from dgeo@centrale-marseille.fr) Subject: Re: LOR in mpr(4) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=centrale-marseille.fr; s=smtp0; t=1476889837; bh=3Q4QABkDoWOPUt6vBS7UekHdYExpY5WwsFoUVWSs2Ts=; h=Subject:To:References:From:Date:In-Reply-To; b=B7/aMMVrmoPlQxcScXBWVLprMV27bpe3nfbdNDIGpHL3A/aBwSrHMYYBP/kNexfQf 5q+Id1TExD/9nN9Y5NQ1cp8fcAFTXtU+Y5Bc0DzDr+y9z5syH9r/w4wV3EuaPc2X9D FIGgo4M4geiRlC9F3q12KFxKcHf8YPy8XkAPbeyo+mERtop/UoSUUPiEPwK7ca4XZe AakKjG2cqR2NPayautS9rMo+oTX4+dGYk6U7xVZCw1uyurg+bk7H+4kwoS5lyuB0Tx G60SZfci69bRSEDRAh0nXJTbP6FhvU5fSGvHkBVI7h+ahMOitvcx416irWtRczcDrf 00GQTTwIt5L5w== To: Pete Wright , current@freebsd.org, freebsd-stable@FreeBSD.org References: <5644D014.4080601@nomadlogic.org> <564B917E.4000205@nomadlogic.org> From: geoffroy desvernay Openpgp: id=E15095B3F06A1012EE2921023FCFF4094587A0F0 Message-ID: <9fc856a5-c91d-cdfa-5000-5d8fc8ea20f1@centrale-marseille.fr> Date: Wed, 19 Oct 2016 17:10:31 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <564B917E.4000205@nomadlogic.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="UDifcBq6JcAxma9IkvI9nI6cJpcWrqj9N" X-Mailman-Approved-At: Wed, 19 Oct 2016 15:31:29 +0000 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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, 19 Oct 2016 15:17:10 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --UDifcBq6JcAxma9IkvI9nI6cJpcWrqj9N Content-Type: multipart/mixed; boundary="U4VW04IbcVi4a8sNMqML5ekh2TMcPn22x"; protected-headers="v1" From: geoffroy desvernay To: Pete Wright , current@freebsd.org, freebsd-stable@FreeBSD.org Message-ID: <9fc856a5-c91d-cdfa-5000-5d8fc8ea20f1@centrale-marseille.fr> Subject: Re: LOR in mpr(4) References: <5644D014.4080601@nomadlogic.org> <564B917E.4000205@nomadlogic.org> In-Reply-To: <564B917E.4000205@nomadlogic.org> --U4VW04IbcVi4a8sNMqML5ekh2TMcPn22x Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 11/17/2015 21:43, Pete Wright wrote: >=20 >=20 > On 11/12/15 09:44, Pete Wright wrote: >> Hi All, >> Just wanted a sanity check before filing a PR. I am running r290688 a= nd >> am seeing a LOR being triggered in the mpr(4) device: >> >> $ uname -ar >> FreeBSD srd0013 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r290688: Wed Nov = 11 >> 21:28:26 PST 2015 root@srd0013:/usr/obj/usr/src/sys/GENERIC amd64= >> >> >> lock order reversal: >> 1st 0xfffff8000d26bc60 CAM device lock (CAM device lock) @ >> /usr/src/sys/cam/cam_xpt.c:784 >> 2nd 0xfffffe00012811c0 MPR lock (MPR lock) @ >> /usr/src/sys/cam/cam_xpt.c:2620 >> KDB: stack backtrace: >> db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame >> 0xfffffe04608ee890 >> witness_checkorder() at witness_checkorder+0xe79/frame 0xfffffe04608ee= 910 >> __mtx_lock_flags() at __mtx_lock_flags+0xa4/frame 0xfffffe04608ee960 >> xpt_action_default() at xpt_action_default+0xb6c/frame 0xfffffe04608ee= 9b0 >> scsi_scan_bus() at scsi_scan_bus+0x1d5/frame 0xfffffe04608eea20 >> xpt_scanner_thread() at xpt_scanner_thread+0x15c/frame 0xfffffe04608ee= a70 >> fork_exit() at fork_exit+0x84/frame 0xfffffe04608eeab0 >> fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe04608eeab0 >> --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- >> >=20 > FWIW I filed the following PR as I can still reproduce this on boot: >=20 > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D204614 >=20 > cheers, > -pete >=20 Hi all, Sorry for cross-posting, let me know where this should go please, I didn't figured it out :( On 11-RELEASE-p1 here (but replying on current@ where I found something around mpr(4)) Not sure if it's related, but on a fresh new machine with Avago SAS3008 and a 24 disks enclosure (single attached). I see a bunch of: mpr0: Found device <401,End Device> <12.0Gbps> handle<0x001b> enclosureHandle<0x0002> slot 8 (da0:mpr0:0:8:0): UNMAPPED (da0:mpr0:0:8:0): CAM status: SCSI Status Error (da0:mpr0:0:8:0): SCSI status: Check Condition (da0:mpr0:0:8:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) (da0:mpr0:0:8:0): Error 22, Unretryable error 10:0): UNMAPPED (da0:mpr0:0:8:0): READ(10). CDB: 28 00 e8 e0 88 71 00 00 04 00 (da0:mpr0:0:8:0): CAM status: SCSI Status Error (da0:mpr0:0:8:0): SCSI status: Check Condition (da0:mpr0:0:8:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) (da0:mpr0:0:8:0): Error 22, Unretryable error ses0: da0: Element descriptor: 'Drive Slot 0' ses0: da0: SAS Device Slot Element: 2 Phys at Slot 0 ses0: phy 0: SAS device type 1 id 0 ses0: phy 0: protocols: Initiator( None ) Target( SSP ) ses0: phy 0: parent 520474729974b57f addr 5000c50097ce8215 ses0: phy 1: SAS device type 1 id 1 ses0: phy 1: protocols: Initiator( None ) Target( SSP ) ses0: phy 1: parent 520474729974b5ff addr 5000c50097ce8216 (more complete dmesg.boot here: http://dgeo.perso.ec-m.fr/dmesg.boot ) Later, no way to use these disks with zfs: # zpool create tank da0 cannot create 'tank': invalid argument for this pool operation I can dd if=3D/dev/zero of=3D/dev/da0 though not tested until disk is ful= l=85 Can this be related ? Must I open a pr ? How can I help debugging this ? I'm not kernel/driver hacker, but I'd like to help this be figured out :)= Yours, --=20 *geoffroy desvernay* C.R.I - Administration syst=E8mes et r=E9seaux Ecole Centrale de Marseille --U4VW04IbcVi4a8sNMqML5ekh2TMcPn22x-- --UDifcBq6JcAxma9IkvI9nI6cJpcWrqj9N 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 iQIcBAEBCAAGBQJYB4zrAAoJED/P9AlFh6DwErcP/2ZZwg4jr+wsC8NJHAxHbQXk rmWc1VucMbYDBEZDH3tjjcIm3wlCYXbklMUzPamRGWqU1WOC3YQ8YHsra467psls SVeaC2VNOr8/6vWEvpzjv8nwxVXDj84tVOb0bcHt3exkHff6F0OwE9pEHoxNblfq EqJzxO6A8r2nAHGAvnhdHNKxGlmfWeG7Tb9dRi9vhOwXbE5c55rjlKpul0JF63+A 9hMHNd0TyTk3uNTr9IDhAlbADMdYcCpqVyHfBIK37EwevK7zzakIPV9baDu/gl54 iRQYSW1h+Nuf3SlhlyU4I0ls1kHiBLkXTW7nvTSzbxVG0YZH317E+RKMt6bAyoeM G79tkQd+sOiEkQsyj+TohqsPSQd8Ai4uVvBxFJ8zS95nHnVMSyGFd71pOs1nmh/z sTOst78pxn0wR5HheCof22C/ijI0ivymk9+jCIB5fYuY9meq/vTz7DPK4vVvI9Mk bN2lniqot4F36ZCyC/sO8akNCzE8trLE9EMc4+IgKZJXQWBSSA7/8D7DiKdPH5Ex jZgY0U2Rfod49sp5vTaWFSovWsppSOIx7DarDfBzNCHdxVXbTc4/idLDtnND7atZ jARSpcF99SIWiPvAUWSn0nRECf1Gbn/x+6tbMro5+DYu2hGMKDoUdxCssi43TfK5 lGKR/MDejJJvJU6I2+kA =L047 -----END PGP SIGNATURE----- --UDifcBq6JcAxma9IkvI9nI6cJpcWrqj9N--