Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7695672ybi; Wed, 5 Jun 2019 23:27:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyD/PtBcNAZSVpNSKTfPp5MlBXZyLSgQbvU6KohaEjV6M87XIKQHFP8u7o4XudNlHg4JUgc X-Received: by 2002:aa7:808d:: with SMTP id v13mr51287996pff.198.1559802469317; Wed, 05 Jun 2019 23:27:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559802469; cv=none; d=google.com; s=arc-20160816; b=XOYTLcshr8W+By17WBfGLOuT8HOUuKZfCros+QoeXeDJfQtau0NTYufUVB67p2gcn3 5QWZogqW3EtMffzr5QN1NXLEMGGdB+xy0wEWpw6xm0MD8w9C5Z9DRF8Tvl4yYq8kSGp1 b3d1oPP7PIjJshhukpiLXDU/1xJuv8v+68LLOxJoCdRdpSObPdE2TbJ5tSAmKnBof7+2 N7BzBcM+JeG18xJ51L4t79UHR+yYktHiZB5Utc8iVtuBJ+5wFS3okUvuoMpOjpksNIwp nXMQJtX5gKzSPEesUbpC3EdPJWXQwtLZS0ZvJVrprVoR1HK8rgM4BV4YpA9lPkIIiMY2 PNxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=WG8/lZ6748OOqpvRU8r8qlwSAwQXFqGY2KzVQx5D9XY=; b=ddOFMZStZiQqBvTSD7ttC6pfdjV3XVvrR1YyzpYTxLYgYwwpNNlkGNeo4URZVqIpKp ak8kq04XRgGOEDo8O95z9ydJ0ZsYmk+K4luO36vre88fTHpnAI3/b+RdX/Kp+Q85bgM3 Wgxwci20FckMsDBUpx1BJ0x1FcY7w1lfLjQQRahquBSJGVewXGWakjYWbwnMabwa5ury kF5/SpddLYWD5yEuRCBmAnXs/s7ZGIVB01XKlQjZuirOJbZbxnmdniZrSF6cis56aebU F3HBE+ZpRfR7D52EV7sHeY++mEy9dDSnEm5znRtazy9HF7anIvACN05+SCbw6LlGpmmZ WDRg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si1387166pgs.342.2019.06.05.23.27.32; Wed, 05 Jun 2019 23:27:49 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726711AbfFFGZJ (ORCPT + 99 others); Thu, 6 Jun 2019 02:25:09 -0400 Received: from verein.lst.de ([213.95.11.211]:47303 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725267AbfFFGZJ (ORCPT ); Thu, 6 Jun 2019 02:25:09 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 4448768B05; Thu, 6 Jun 2019 08:24:41 +0200 (CEST) Date: Thu, 6 Jun 2019 08:24:41 +0200 From: Christoph Hellwig To: Jason Gunthorpe Cc: Christoph Hellwig , Jens Axboe , Sebastian Ott , Sagi Grimberg , Max Gurtovoy , Bart Van Assche , Ulf Hansson , Alan Stern , Oliver Neukum , linux-block@vger.kernel.org, linux-rdma@vger.kernel.org, linux-mmc@vger.kernel.org, linux-nvme@lists.infradead.org, linux-scsi@vger.kernel.org, megaraidlinux.pdl@broadcom.com, MPT-FusionLinux.pdl@broadcom.com, linux-hyperv@vger.kernel.org, linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH 08/13] IB/iser: set virt_boundary_mask in the scsi host Message-ID: <20190606062441.GB26745@lst.de> References: <20190605190836.32354-1-hch@lst.de> <20190605190836.32354-9-hch@lst.de> <20190605202235.GC3273@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190605202235.GC3273@ziepe.ca> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 05, 2019 at 05:22:35PM -0300, Jason Gunthorpe wrote: > On Wed, Jun 05, 2019 at 09:08:31PM +0200, Christoph Hellwig wrote: > > This ensures all proper DMA layer handling is taken care of by the > > SCSI midlayer. > > Maybe not entirely related to this series, but it looks like the SCSI > layer is changing the device global dma_set_max_seg_size() - at least > in RDMA the dma device is being shared between many users, so we > really don't want SCSI to make this value smaller. > > Can we do something about this? We could do something about it as outlined in my mail - pass the dma_params explicitly to the dma_map_sg call. But that isn't really suitable for a short term fix and will take a little more time. Until we've sorted that out the device paramter needs to be set to the smallest value supported.