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