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