From owner-freebsd-scsi@freebsd.org Sun Sep 9 21:01:00 2018 Return-Path: Delivered-To: freebsd-scsi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC2CF109E7C1 for ; Sun, 9 Sep 2018 21:01:00 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4C2BD81686 for ; Sun, 9 Sep 2018 21:01:00 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 11754109E7B6; Sun, 9 Sep 2018 21:01:00 +0000 (UTC) Delivered-To: scsi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F41EB109E7B1 for ; Sun, 9 Sep 2018 21:00:59 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9814481672 for ; Sun, 9 Sep 2018 21:00:59 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id E6EB7100C8 for ; Sun, 9 Sep 2018 21:00:58 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w89L0wnv016160 for ; Sun, 9 Sep 2018 21:00:58 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w89L0wvL016151 for scsi@FreeBSD.org; Sun, 9 Sep 2018 21:00:58 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201809092100.w89L0wvL016151@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: scsi@FreeBSD.org Subject: Problem reports for scsi@FreeBSD.org that need special attention Date: Sun, 9 Sep 2018 21:00:58 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Sep 2018 21:01:00 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- New | 221952 | cam iosched: Fix trim statistics 1 problems total for which you should take action. From owner-freebsd-scsi@freebsd.org Mon Sep 10 16:47:03 2018 Return-Path: Delivered-To: freebsd-scsi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DA2081095785 for ; Mon, 10 Sep 2018 16:47:02 +0000 (UTC) (envelope-from leeb@ratnaling.org) Received: from mail-it0-x22c.google.com (mail-it0-x22c.google.com [IPv6:2607:f8b0:4001:c0b::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 716EC8B068 for ; Mon, 10 Sep 2018 16:47:02 +0000 (UTC) (envelope-from leeb@ratnaling.org) Received: by mail-it0-x22c.google.com with SMTP id f14-v6so30403308ita.4 for ; Mon, 10 Sep 2018 09:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ratnaling-org.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=ozqtX7QdsyqLF3TNq60bNSa4SoyzO3ZiktefK89GVVQ=; b=kX+idO8N9ks1n/GM0kKc4MPRMmLjUZwyGuzMF4XkAEHZvjO0jQXsuaxIVG1M2uZkpJ n9JGIWJ5veHmE5n/tdsx/A6xccRPCjT6Gjpskl1fcpkf9ERkW2V9FDt2rqt/NoB2e73a ATgTSiK23gh57CUmKqbfW1wMEGdv+MNgRwmFCu6qd+gPSkuN0+jVUVo0DpP35RdS5i2Y Mlmu8Mt4kOv8LkRKoy6FBx3Pu8Pzwc0vaG4u610mNKJ7k+S8uFyNFwlCuMBQsh6z1hPC rxB5aT/cE3y6l/0UitdLgDqSHWZWMMr4ioBPrgJ33L4lNIVeIGzPSYTJg5LENPuBBqIi 9/Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=ozqtX7QdsyqLF3TNq60bNSa4SoyzO3ZiktefK89GVVQ=; b=C3WND6YMgxsZGLn5Ec8chBIBVfieWU/Nf/Nug3zOxSUzOOKIa5S6txv+/mbHOfaKZf ASQ4ZaS5j3s0SU73LGwYIx4miGzsIK41EgIUGonDbRFy3C5ldMNwMNdAPFVUSuFPoLgc COfh2K4w23bKCYWOSOnTuhm0cDhBcRAux9JUjBGAWuu1e1YaXrMbxVRMGSx0DRO/ooVt PkEDmFyWSfxTvde6VNY1VV6WlnLAOSlfUzmadcs7SlaJKmRuQ+MivZIDMthqMfpMZfRW xZuh/lNCA14K/NN5loQqHJ6XTVXuFexvqpqAg5AomVzT6Wgrjel91RNAHl8mclu52KFn 0m9w== X-Gm-Message-State: APzg51DGAKViCcxFI5GpMA393ekiIMcsFEC0+kFQHYMgW2fmdVUq/yrJ /YaLVaPTgfv+pSIYnh8CCZ3WGxTwovl0pPaEyUIrxpPHqYDByw== X-Google-Smtp-Source: ANB0VdaL9f6mTWXC2pAGNxtiYakYgA/1DOSUcFfIJLld7Tb+kFY/QIuYwqzwVH2RayfvtPwDxil0tZBYa1FQQfcvW2U= X-Received: by 2002:a24:ac44:: with SMTP id m4-v6mr17616238iti.90.1536598021446; Mon, 10 Sep 2018 09:47:01 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:d104:0:0:0:0:0 with HTTP; Mon, 10 Sep 2018 09:47:00 -0700 (PDT) From: Lee Brown Date: Mon, 10 Sep 2018 09:47:00 -0700 Message-ID: Subject: mpr(4) and disable_eedp To: "Kenneth D. Merry" Cc: freebsd-scsi@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Sep 2018 16:47:03 -0000 On Thu, Nov 16, 2017 at 6:28 AM, Kenneth D. Merry wrote: > On Wed, Nov 15, 2017 at 12:24:47 -0800, Lee Brown wrote: > > I'm looking to build a SAS array with a Dell MD1420. It will be attached > > via a SAS 9300-414E HBA in a Dell R330. > > In theory it should be fine. I haven't used a Dell enclosure recently, but > from posts here, it seems that they like to turn on Type 2 Protection > Information on the drives. (Assuming you buy the drives from Dell.) > > If they do that, you can either reformat, or see the patch here for the > mpr(4) driver to disable using protection information: > > https://docs.freebsd.org/cgi/getmsg.cgi?fetch=308820+0+ > archive/2017/freebsd-scsi/20171022.freebsd-scsi > > I have been using this patch in production on an 11.1 kernel with great success. I'm upgrading to 11.2 today and am wondering what's required to push this into the source tree (so I can be lazy next time and not have to patch)? I can provide testing and maybe the MD1420 could be added to the officially supported hardware list? Let me know how I could help. BTW, there's a typo in the patch for mpr.c "dsiable" should be "disable": + OID_AUTO, "dsiable_eedp", CTLFLAG_RD, &sc->disable_eedp, 0, Regards -- lee From owner-freebsd-scsi@freebsd.org Mon Sep 10 17:53:29 2018 Return-Path: Delivered-To: freebsd-scsi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4063410978D4 for ; Mon, 10 Sep 2018 17:53:29 +0000 (UTC) (envelope-from ken@kdm.org) Received: from mithlond.kdm.org (mithlond.kdm.org [96.89.93.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mithlond.kdm.org", Issuer "mithlond.kdm.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BF2BB8DBFF for ; Mon, 10 Sep 2018 17:53:28 +0000 (UTC) (envelope-from ken@kdm.org) Received: from mithlond.kdm.org (localhost [127.0.0.1]) by mithlond.kdm.org (8.15.2/8.14.9) with ESMTPS id w8AHpNi6075518 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 10 Sep 2018 13:51:23 -0400 (EDT) (envelope-from ken@mithlond.kdm.org) Received: (from ken@localhost) by mithlond.kdm.org (8.15.2/8.14.9/Submit) id w8AHpNfH075517; Mon, 10 Sep 2018 13:51:23 -0400 (EDT) (envelope-from ken) Date: Mon, 10 Sep 2018 13:51:23 -0400 From: "Kenneth D. Merry" To: Lee Brown Cc: freebsd-scsi@freebsd.org Subject: Re: mpr(4) and disable_eedp Message-ID: <20180910175123.GC40028@mithlond.kdm.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (mithlond.kdm.org [127.0.0.1]); Mon, 10 Sep 2018 13:51:24 -0400 (EDT) X-Spam-Status: No, score=-2.7 required=5.0 tests=ALL_TRUSTED,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mithlond.kdm.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Sep 2018 17:53:29 -0000 On Mon, Sep 10, 2018 at 09:47:00 -0700, Lee Brown wrote: > On Thu, Nov 16, 2017 at 6:28 AM, Kenneth D. Merry wrote: > > > On Wed, Nov 15, 2017 at 12:24:47 -0800, Lee Brown wrote: > > > I'm looking to build a SAS array with a Dell MD1420. It will be attached > > > via a SAS 9300-414E HBA in a Dell R330. > > > > In theory it should be fine. I haven't used a Dell enclosure recently, but > > from posts here, it seems that they like to turn on Type 2 Protection > > Information on the drives. (Assuming you buy the drives from Dell.) > > > > If they do that, you can either reformat, or see the patch here for the > > mpr(4) driver to disable using protection information: > > > > https://docs.freebsd.org/cgi/getmsg.cgi?fetch=308820+0+ > > archive/2017/freebsd-scsi/20171022.freebsd-scsi > > > > I have been using this patch in production on an 11.1 kernel with great > success. > > I'm upgrading to 11.2 today and am wondering what's required to push this > into the source tree (so I can be lazy next time and not have to patch)? I > can provide testing and maybe the MD1420 could be added to the officially > supported hardware list? Let me know how I could help. > > BTW, there's a typo in the patch for mpr.c "dsiable" should be "disable": > + OID_AUTO, "dsiable_eedp", CTLFLAG_RD, &sc->disable_eedp, 0, I put in a slightly different version of the change in March 2018 that just disables Type 2 data protection: https://svnweb.freebsd.org/base?view=revision&revision=331422 I MFCed it a few days later, so 11.2 should work without a patch. If it doesn't, let me know. There is no sysctl/tunable variable in the new version. To get the Dell MD1420 put in as supported hardware, you could probably put in a documentation bug report, the links are here: https://www.freebsd.org/support.html Ken -- Kenneth Merry ken@FreeBSD.ORG From owner-freebsd-scsi@freebsd.org Mon Sep 10 19:08:25 2018 Return-Path: Delivered-To: freebsd-scsi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 75B1C10992AE for ; Mon, 10 Sep 2018 19:08:25 +0000 (UTC) (envelope-from leeb@ratnaling.org) Received: from mail-io0-x22a.google.com (mail-io0-x22a.google.com [IPv6:2607:f8b0:4001:c06::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F217470627 for ; Mon, 10 Sep 2018 19:08:24 +0000 (UTC) (envelope-from leeb@ratnaling.org) Received: by mail-io0-x22a.google.com with SMTP id r196-v6so1587407iod.0 for ; Mon, 10 Sep 2018 12:08:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ratnaling-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MaRA8VD76+I/Vbhx/C9NgpfalQCNv0i6dW2QxlRYTlQ=; b=u94q+E6ku5V/ARL0qMFEMWXbMUgkeI1AQQhOlw1M03JP5xGjlE8/ck54q+I3c5oQxZ RxE3QjhL6mmjHB0t76L4j3+EIDAuNCGpUZRBx+HCJsdGmFaCifl84UYy55I+vYaiYoXX Iw8t4O12OZJWyHqDaGL54cJ/6wYjqjkqUj96UIKw1js28NYLMR4fUhTscdwDLxjuGeFL k0Ezt8kY0uQxOrq6GidvnUOTeFh/a3CBUXH5V1PYebWfG1rDcyJ3RXrHAivM2mtPy4yd iLi+qoaG2EHNQh7zHC3SfgVWh5kExRSNWApYOMUlJgylfbgRZ15UgO/CQVc5vI34mx05 ku/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MaRA8VD76+I/Vbhx/C9NgpfalQCNv0i6dW2QxlRYTlQ=; b=TruimKjbDsd/foDcuDxNeyWaqDlbi9ceVhSBEhPFl0SZWfYbR/DQEXu78Z1erM85+i mxXciz/5Hl7FzKzMKNq9BX643Js8VhNzx5kG9EqXiKMj+DIMJFESky9K26fHwoxI7gF6 CkpXrkOMgiYyyurPaI15SlqutsT9NhEJz2/Mtkfx7Yy6jVhernln2JZihfrMTyeZi9vB ibnBSFi/zOykOJWMQ7l2YbvM4xDvHosn99bYNnHFetgGk1Wb0hDrS1jcMSX78QBfh/5G DFg+r+v8ZWiKHxyPUroXtis+iLInje50+1suMb1qvoD1MIhZgf7ux7rxr3C4blJeph5q d2cA== X-Gm-Message-State: APzg51AdG/ZhsI7P9jfuNAvBLhjgF6YX6HE02fNpScGxrDBUEeQMnCcM iplWgQ09cVgMDcSLg3gmHziWI5ZiSI35W18N11O9xVt9A3Q= X-Google-Smtp-Source: ANB0VdYake/0kobrfazg9ZRBRphWWcLHrH6UjSv7R0epZCfIYoqZB9eV9YTCGDb19145SGV69up98nQgLXJDqCTnFAI= X-Received: by 2002:a6b:7a49:: with SMTP id k9-v6mr19056792iop.238.1536606504300; Mon, 10 Sep 2018 12:08:24 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:d104:0:0:0:0:0 with HTTP; Mon, 10 Sep 2018 12:08:23 -0700 (PDT) In-Reply-To: <20180910175123.GC40028@mithlond.kdm.org> References: <20180910175123.GC40028@mithlond.kdm.org> From: Lee Brown Date: Mon, 10 Sep 2018 12:08:23 -0700 Message-ID: Subject: Re: mpr(4) and disable_eedp To: "Kenneth D. Merry" Cc: freebsd-scsi@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Sep 2018 19:08:25 -0000 On Mon, Sep 10, 2018 at 10:51 AM, Kenneth D. Merry wrote: > On Mon, Sep 10, 2018 at 09:47:00 -0700, Lee Brown wrote: > > On Thu, Nov 16, 2017 at 6:28 AM, Kenneth D. Merry > wrote: > > > > > On Wed, Nov 15, 2017 at 12:24:47 -0800, Lee Brown wrote: > > > > I'm looking to build a SAS array with a Dell MD1420. It will be > attached > > > > via a SAS 9300-414E HBA in a Dell R330. > > > > > > In theory it should be fine. I haven't used a Dell enclosure > recently, but > > > from posts here, it seems that they like to turn on Type 2 Protection > > > Information on the drives. (Assuming you buy the drives from Dell.) > > > > > > If they do that, you can either reformat, or see the patch here for the > > > mpr(4) driver to disable using protection information: > > > > > > https://docs.freebsd.org/cgi/getmsg.cgi?fetch=308820+0+ > > > archive/2017/freebsd-scsi/20171022.freebsd-scsi > > > > > > I have been using this patch in production on an 11.1 kernel with great > > success. > > > > I'm upgrading to 11.2 today and am wondering what's required to push this > > into the source tree (so I can be lazy next time and not have to > patch)? I > > can provide testing and maybe the MD1420 could be added to the officially > > supported hardware list? Let me know how I could help. > > > > BTW, there's a typo in the patch for mpr.c "dsiable" should be "disable": > > + OID_AUTO, "dsiable_eedp", CTLFLAG_RD, &sc->disable_eedp, 0, > > I put in a slightly different version of the change in March 2018 that just > disables Type 2 data protection: > > https://svnweb.freebsd.org/base?view=revision&revision=331422 > > I MFCed it a few days later, so 11.2 should work without a patch. If it > doesn't, let me know. There is no sysctl/tunable variable in the new > version. > > Many Thanks Ken. I'm in the middle of building the two releases, so I'll stop now and restart with a fresh checkout. If there are problems I'll be back, but I probably won't be able to test this until tomorrow evening. --lee From owner-freebsd-scsi@freebsd.org Thu Sep 13 19:55:54 2018 Return-Path: Delivered-To: freebsd-scsi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A735E1097B8A for ; Thu, 13 Sep 2018 19:55:54 +0000 (UTC) (envelope-from dgilbert@interlog.com) Received: from smtp.infotech.no (smtp.infotech.no [82.134.31.41]) by mx1.freebsd.org (Postfix) with ESMTP id 18A21805F6 for ; Thu, 13 Sep 2018 19:55:53 +0000 (UTC) (envelope-from dgilbert@interlog.com) Received: from localhost (localhost [127.0.0.1]) by smtp.infotech.no (Postfix) with ESMTP id 13CDD204199 for ; Thu, 13 Sep 2018 21:55:46 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.6 (20110518) (Debian) at infotech.no Received: from smtp.infotech.no ([127.0.0.1]) by localhost (smtp.infotech.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aIoosssmbCwL for ; Thu, 13 Sep 2018 21:55:39 +0200 (CEST) Received: from [192.168.48.23] (host-45-58-207-169.dyn.295.ca [45.58.207.169]) by smtp.infotech.no (Postfix) with ESMTPA id 12FA720416A for ; Thu, 13 Sep 2018 21:55:38 +0200 (CEST) To: freebsd-scsi@freebsd.org Reply-To: dgilbert@interlog.com From: Douglas Gilbert Subject: [Announce] sg3_utils-1.44 available Message-ID: <3e729be9-499c-7e31-643e-b5d4587b3497@interlog.com> Date: Thu, 13 Sep 2018 15:55:36 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2018 19:55:54 -0000 sg3_utils is a package of command line utilities for sending SCSI commands to storage devices. In some contexts it can send some ATA and NVMe commands. The package targets the Linux 4, 3, 2.6 and 2.4 kernel series. It has ports to FreeBSD, Android, Solaris, and Windows (cygwin and MinGW). For an overview of sg3_utils and downloads see this page: http://sg.danny.cz/sg/sg3_utils.html The sg_ses utility (for enclosure devices) is discussed at: http://sg.danny.cz/sg/sg_ses.html A full changelog can be found at: http://sg.danny.cz/sg/p/sg3_utils.ChangeLog There is no FreeBSD "ports" specific code in the tarball; build and install with: ./configure ; make ; make install It should not be needed but './autogen.sh' can precede the above sequence. There is a README.freebsd file in the tarball. If any FreeBSD user has access to a NVMe enclosure that supports the new NVME-MI SES Send and Receive commands, I would be interested in how sg_ses performs on that enclosure using FreeBSD. Changelog summary for sg3_utils-1.44 [20180912 rev 791] since version 1.42 [20160217] New utilities - sg_bg_ctl: send Background control command (sbc4r08) - sg_seek: send SEEK(10) or PRE-FETCH(10 or 16) - sg_stream_ctl: send STREAM CONTROL or GET STREAM STATUS - sg_write_x: send either WRITE(n), ORWRITE(n), WRITE ATOMIC(n), WRITE SAME(n), WRITE SCATTERED(n) or WRITE STREAM(n); where 'n' is 16 or 32 which is the length of the cdb New general options: - --dry-run option added to utilities that would otherwise modify user data and potentially take a long time. Utilties that the --dry-run option has been added to: sg_dd, sg_format, sgm_dd, sgp_dd, sg_sanitize, sg_ses_microcode, sg_unmap, sg_write_buffer and sg_write_x - --timeout=SECS option for extending the default command OS timeout added to: sg_compare_and_write, sg_format, sg_raw, sg_sanitize, sg_senddiag, sg_sync, sg_unmap, sg_write_buffer, sg_write_same, sg_write_verify, and sg_write_x Take input from file rather than SCSI device The number of 'decoding' utilities that can take input from a file rather than a SCSI device has been expanded. This allows data to be collected as hex or binary files and later analysed. Utilities that have this facility are: sg_inq, sg_logs, sg_read_attr, sg_ses and sg_vpd. The sdparm utility, in its own package, decodes mode pages (and VPD pages) now has this facility while the sg_modes utility does not. NVMe support NVMe have chosen to use the SES-3 standard with the addition of the NVME-MI SES Send and Receive admin commands. Rather than modify sg_ses, the underlying library has a small SNTL used when the given device is a NVMe device. sg_ses (and sg_ses_microcode) can now be used with a NVMe enclosure. sg_inq decodes part of the NVME Identify controller and namespace response. sg_raw can issue NVMe admin commands and sg_senddiag can issue SES Send and Receive admin commands. Page align many heap allocations Both NVMe and certain FreeBSD pass-through calls require page alignment. So many (but not all) malloc() calls have been replaced by sg_memalign() which is a front for posix_memalign() if it is available. Typically the default page size (often 4096 (bytes)) is used for alignment. Individual utility additions - rescan-scsi-bus.sh: harden code, install by default - add --ignore-rev to ignore revision change - sg_dd: add --verbose option; allow multiple short options (e.g. -dvv) - sgp_dd: pthread_cancel() has issues in C++ (and the Android multi-threaded library doesn't supply it) so use pthread_kill() - add --dry-run and --verbose options - sg_decode sense: add --cdb and --err=ES options - sg_format: add --quick option to skip reconsideration time - extend --wait timeout to 40 hours for disk sizes > 4 TB - sg_get_lba_status: add --report-type= option (sbc4r12) - add support for 32 byte cdb variant (sbc4r14) - add support for --element-id= and --scan-len= options (sbc4r14) - decode response's RTP and two more provisioning statuses and the additional status (sbc4r12); decode completion condition (sbc4r14) - sg_inq: fix potential unbounded loop in --export - add --only to stop standard inquiry decoding also doing a serial number vpd page (0x80) fetch - with NVMe --only restricts to a single Identify controller command - add --long which decodes more of the NVMe Identify cmd responses - sg_inq+sg_vpd: update Extended inquiry data vpd page (spc5r09, spc5r17 and 17-142r5) - add --force option to bypass checking Supported VPD Pages page and fetch requested page directly - sg_logs: add --vendor=VP and '--pdt=DT' options - sg_modes: add Out of band management control mpage - accept acronym for mode page - sg_opcode: add '--enumerate' and '--pdt=' options; support CDLP (command duration limit page) and MLU (Multiple Logical Units) - sg_persist: add --maxlen-LEN option, LEN defaults to decimal, similar to --alloc-length= which takes hex; add Replace Lost Reservation Capable (RLR_C) bit in Report Capabilities (spc4r36) - sg_raw: add --cmdfile=CF option, CF in hex unless --raw option also given; this and other tweaks facilitate sending 64 byte NVMe admin commands to be sent - add --enumerate option to decode command name from cdb - sg_rdac: add sanity checks for -f=lun value - sg_rep_zones: expand --help option information - sg_reset_wp add --count=ZC option, zbc2r01b - sg_sat_identify: expand to take --len=32 - sg_ses: handle 2 bit EIIOE field in aes dpage - add --quiet option to suppress messages - allow multiple --clear=, --get= and --set= options - allow individual index ranges (e.g. --index=3-5) - allow --index=IIA with -ee to enumerate only fields belonging to element type IIA - sg_ses_microcode: add -ealsd option (exit after last send diagnostic) - sg_timestamp: add '--no-timestamp', '--elapsed' and '--hex' options - sg_turs: add --low option to force low level sg_pt interface use - sg_unmap: add --all=ST,RN[,LA] option to unmap large contiguous segments of a disk/ssd - sg_vpd: 3 party copy VPD page improvements - fully implement Device constituents VPD page - sg_wr_mode: add --rtd option for RTD bit - sg_zone: add --sequentialize, --count=ZC options, zbc2r01b N.B. sg3_utils is developed using the author's private subversion repository. There is an official git mirror at: https://github.com/hreinecke/sg3_utils which unfortunately has a version 1.43 release tag from 20160218 (rev: 665). Some Linux distributions therefore assumed 1.43 was released in 2016 rather than 2 days ago. Solution: roll out release 1.44 (svn rev 791). Doug Gilbert