Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2270151ybi; Mon, 17 Jun 2019 01:45:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTyvC9egzytEURajVDXiu5wHnO2K3FdBPJEu3ROcyYsQa6E+om/Cd0sTJBj7ga1EEwOjo7 X-Received: by 2002:a17:902:7883:: with SMTP id q3mr105488869pll.89.1560761130469; Mon, 17 Jun 2019 01:45:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560761130; cv=none; d=google.com; s=arc-20160816; b=JWtEPsPVt5bKGxGEByLHHYETtVMOqGaMAeYoHPy+MoiJL1tp0jJN1f3Mx97kZveu2b 8acpSEInpf4qQ+HqYBjU+iPWVaMJIGZyrlfQL2Co8Ojwz/kMZYClO7nBiO5P525N8+cM 0jbzxOXZ/hjiwNhWn1XsYbtDkrdY9ph8z2TUS9mPQCxcBuWgTTZtSoRWr8ROEm4vE0R6 7M0A4kfCelwfKqeV5o39MQ02OAAJpxK8vCyKHJfVQAfe3hVnY/Gn4I6THEi/RtZRoIez wBcmTXcYvn2z7c1/y6yNj+gIk3xWPsdmAqn5wqUmnMp4gF5t3cFBtenvya1qM3si+NJ7 XxIQ== 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=W2L8YwhuK0dBbtup+XP5UTJXcciA1C0ZZQuQnVQws50=; b=hJPBcRXxzff2vXV5n1LXqTPg6oQ0uIiXsYgw2Gl6cYaYCLQwCHJimCA52tJmZPYMTN dcY0IR+22hOiNrd3Ro8BYUQtGjVOEyIedqUjeswfGuUM/w4Oj/GZsBLD0+wxUKT1sG/B CrTJgP97iBz5QDEsuF0fmZA99Ypl7jLk6imLq6EgYqO6DBjFoX3oZQYHqtFw00OxUspB IznT+UeLyHbh5mtLX28kVYNXp0G5cmRk7zf3+fdtnzQyIKAzawqM1Mmf9/YfvAzSxBPj 6l5fac3aFZaTgVZwKBNKyv6A2c5OT9iToXH/8WbIyKKIg8HXkcrwFdny6j5luMAn5kqX eiHw== 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 m9si9418636pjl.98.2019.06.17.01.45.14; Mon, 17 Jun 2019 01:45:30 -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 S1727723AbfFQIpG (ORCPT + 99 others); Mon, 17 Jun 2019 04:45:06 -0400 Received: from verein.lst.de ([213.95.11.211]:34464 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725971AbfFQIpG (ORCPT ); Mon, 17 Jun 2019 04:45:06 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 6715C68AFE; Mon, 17 Jun 2019 10:44:33 +0200 (CEST) Date: Mon, 17 Jun 2019 10:44:33 +0200 From: Christoph Hellwig To: Kashyap Desai 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, "PDL,MEGARAIDLINUX" , PDL-MPT-FUSIONLINUX , 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 10/13] megaraid_sas: set virt_boundary_mask in the scsi host Message-ID: <20190617084433.GA7969@lst.de> References: <20190605190836.32354-1-hch@lst.de> <20190605190836.32354-11-hch@lst.de> <20190608081400.GA19573@lst.de> <98f6557ae91a7cdfe8069fcf7d788c88@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <98f6557ae91a7cdfe8069fcf7d788c88@mail.gmail.com> 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 Fri, Jun 14, 2019 at 01:28:47AM +0530, Kashyap Desai wrote: > Is there any changes in API blk_queue_virt_boundary? I could not find > relevant code which account for this. Can you help ? > Which git repo shall I use for testing ? That way I can confirm, I didn't > miss relevant changes. Latest mainline plus the series (which is about to get resent). blk_queue_virt_boundary now forced an unlimited max_hw_sectors as that is how PRP-like schemes work, to work around a block driver merging bug. But we also need to communicate that limit to the DMA layer so that we don't set a smaller iommu segment size limitation. > >From your above explanation, it means (after this patch) max segment size > of the MR controller will be set to 4K. > Earlier it is possible to receive single SGE of 64K datalength (Since max > seg size was 64K), but now the same buffer will reach the driver having 16 > SGEs (Each SGE will contain 4K length). No, there is no more limit for the size of the segment at all, as for PRPs each PRP is sort of a segment from the hardware perspective. We just require the segments to not have gaps, as PRPs don't allow for that. That being said I think these patches are wrong for the case of megaraid or mpt having both NVMe and SAS/ATA devices behind a single controller. Is that a valid configuration?