Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1590852ybi; Thu, 20 Jun 2019 00:04:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8SvsfS6mZzJk0Gh2T5jGezdoa/Y2F171L7bLfW/LGJaAx3E3U8h2Ha+k5v4t3O/7w12jm X-Received: by 2002:a65:5344:: with SMTP id w4mr11482947pgr.8.1561014283503; Thu, 20 Jun 2019 00:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561014283; cv=none; d=google.com; s=arc-20160816; b=dgbjB2/qizFoOlrlBUCe2Z96itLFtN9c2vFOtI4vhUDD6hLI0Yc1FqYWuwbiebUTMr 2aWlRi3fjfQO7MdfGw4gp5QC+743L7A++q6ZzuuIJcr9j1ojnb7dyGwgp5SlktrPP8N6 xa6zkl5LexO7cy99YGgKeaVbHzysjmdmDTVAqKkAxx+i4z8dYLAJSCW808aZJslnyrPv Q6A5n15wHKs7QSgD1DBOSno2CYVBBkAhqQ6ln6lbbTiUNpBBhR0ATpO4yfQUzyHmsBu6 8RWQxn1rrJ/pFkzi1epcxybfx30UrS5gvr8dtAwUA/sPKZDzs2ckeoNvH00Txmy4Ld3Y r1LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=qra3uPbmwxdDyA4AaZlBHKJVrJf/WvX+mVnEuv9KXzU=; b=G7p7DMjPL7GzyGmDO9x4ethnybDim1SkiXcWISHRmjMuthR/PVkKFRLTaPU/J0Fi6g WsaddIjhs/jo/ZCYgp0cdkTGkNDZLGiayH8wEQeFyWvcLYKD6fzCQxx37DdqaaGgdUXP 1ryYZ1ySDfHc6wcd6xYAuVYpsoCAm4u22RStMJqiL8O00P5/H8eyoJggUsGCgkZTDDzu BKLwdX32ZtofQCMLQAPKAiukhnYlcdePdHd56YIclWJp1h5ZFjD5cTHwJXFwWzJuZDq0 BFDICJAjknvX6Ijac056Awq6zr0dfRRncInVAMG4fs02qYjuFVjwHeEfUIRMO3W3Nn4p KNgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=W8Kq8n3T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b67si3513643pjc.81.2019.06.20.00.04.27; Thu, 20 Jun 2019 00:04:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=W8Kq8n3T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730586AbfFTHEP (ORCPT + 99 others); Thu, 20 Jun 2019 03:04:15 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:45265 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725872AbfFTHEP (ORCPT ); Thu, 20 Jun 2019 03:04:15 -0400 Received: by mail-qk1-f196.google.com with SMTP id s22so1204885qkj.12 for ; Thu, 20 Jun 2019 00:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qra3uPbmwxdDyA4AaZlBHKJVrJf/WvX+mVnEuv9KXzU=; b=W8Kq8n3Tk/T94dHOWAMcyWhdnrnuJks3EX2wE7Bfqelm6h6U/w8oSPk7CCXKmTjmoU TfeeCKVRvJNzayy9f6Wi+t1jtIkmar2UUzYZX9NejWdA9c0Y6KWK9OBS3ZGo5Qs2aFIW DRhFxFA4WqFOqWagNobpAj/17ziKwPPEJgIUw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qra3uPbmwxdDyA4AaZlBHKJVrJf/WvX+mVnEuv9KXzU=; b=Lnhna5pt2toIyJkC4/uo+BdIkY0MJZiGN2H4y3ass4GwGtenotMHl734ms8nc0kUZq sVf1YiXEpCjYrKV0TJOOgFB+9BidViBkegthlwhShEo1Eti+kAnfzio2T+zKDUcICAxZ XhpYKSTt1I6EpmQh0sriseodqULxkDMXTJvUkl0NArzoNFaKhaUrzAQgDg6V7KPh+fVO QDKLwDjcrtBc/i0zHg7Zqax4rpCKNmsQ5gyVyxZQzTf2S2MKZQL9t4NM2b/3+SKF+00R 9MPOgQYyjWMIw5B6lHHr4GHI7zzJbSTIhSZP5b8CwgwbAjSkA0E8ejgEs3cS+KD54yf4 HiIQ== X-Gm-Message-State: APjAAAWsQCBcCX2IcyEMwIDCkbJB/aaWWRg7R4b5zUWxYBpJw5gsW5yZ CLW1kPJqUoJjVvz927cBEJre5Js8AhvE7tvNafWiQQ== X-Received: by 2002:a37:ea0c:: with SMTP id t12mr35032475qkj.117.1561014254295; Thu, 20 Jun 2019 00:04:14 -0700 (PDT) MIME-Version: 1.0 References: <20190617122000.22181-1-hch@lst.de> <20190617122000.22181-8-hch@lst.de> In-Reply-To: From: Suganath Prabu Subramani Date: Thu, 20 Jun 2019 12:38:52 +0530 Message-ID: Subject: Re: [PATCH 7/8] mpt3sas: set an unlimited max_segment_size for SAS 3.0 HBAs To: Ming Lei Cc: Christoph Hellwig , "Martin K . Petersen" , Sagi Grimberg , Max Gurtovoy , Bart Van Assche , linux-rdma , Linux SCSI List , megaraidlinux.pdl@broadcom.com, PDL-MPT-FUSIONLINUX , linux-hyperv@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Acked-by: Suganath Prabu On Thu, Jun 20, 2019 at 12:34 PM Suganath Prabu Subramani wrote: > > Please consider this as Acked-by: Suganath Prabu > > > > On Tue, Jun 18, 2019 at 6:16 AM Ming Lei wrote: > > > > On Mon, Jun 17, 2019 at 8:21 PM Christoph Hellwig wrote: > > > > > > When using a virt_boundary_mask, as done for NVMe devices attached to > > > mpt3sas controllers we require an unlimited max_segment_size, as the > > > virt boundary merging code assumes that. But we also need to propagate > > > that to the DMA mapping layer to make dma-debug happy. The SCSI layer > > > takes care of that when using the per-host virt_boundary setting, but > > > given that mpt3sas only wants to set the virt_boundary for actual > > > NVMe devices we can't rely on that. The DMA layer maximum segment > > > is global to the HBA however, so we have to set it explicitly. This > > > patch assumes that mpt3sas does not have a segment size limitation, > > > which seems true based on the SGL format, but will need to be verified. > > > > > > Signed-off-by: Christoph Hellwig > > > --- > > > drivers/scsi/mpt3sas/mpt3sas_scsih.c | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c > > > index 1ccfbc7eebe0..c719b807f6d8 100644 > > > --- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c > > > +++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c > > > @@ -10222,6 +10222,7 @@ static struct scsi_host_template mpt3sas_driver_template = { > > > .this_id = -1, > > > .sg_tablesize = MPT3SAS_SG_DEPTH, > > > .max_sectors = 32767, > > > + .max_segment_size = 0xffffffff, > > > > .max_segment_size should be aligned, either setting it here correctly or > > forcing to make it aligned in scsi-core. > > > > Thanks, > > Ming Lei