Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2290497ybi; Mon, 17 Jun 2019 02:10:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9Bf3BGfw5r+NXsz3zOKxbw8DNKl6rICHFuAyJg3NOPBRuyg6vh5NkY+EilvcaEh2C+3Xm X-Received: by 2002:aa7:8f24:: with SMTP id y4mr69222702pfr.36.1560762651235; Mon, 17 Jun 2019 02:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560762651; cv=none; d=google.com; s=arc-20160816; b=eKyE9SQNcAif2clGtCrabHZbYzDAoJWcidwwliIwN5NjRSIGdh4rBtYSv9silO4Bo1 +yS+CqTU02n8WY7Hu8snySTWy+FPgONk9Mmve0gGYDxVtKd8yuw4hAWF19kCxO2Tw1EH p4hucHxbHnYe7ShiCnWoTINPil3+k4g7b3WOf9vx3mPQNxcgmdPHelqXDMHNnAWwyFu8 qOtbuR2YZzgteiNUGvubKatNq8OdbMvCNpNVcRIxYaxyR8lSvTHyoFa5uB9VnNV7Okph QURZBwFO5+HXHnEIvI3fw5JI8t88Ti1kpXzWpCe97d1//wRESxigKZ0vrBLb1VM/5cEP KGNA== 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 :thread-index:mime-version:in-reply-to:references:from :dkim-signature; bh=Mj+s4plNnZbEVe10BIzmZ1IijmMEuCHawFgLwkcZqoI=; b=q5KQasbwd7ynq0/vC7FkSkGqn5oQZEHmUOfKYG3zfwz4X6xa9O0mZ3wQCZiAUJFdzV QrRR8uuzcV9Umlf2WM44X1HBa16yylEVJqZtim16Imr5MZCf5LKkS3TPUXUZoz29aU0T wPpQVFX6Gk2AB3f6w+I4/ZJTXhtcgfGb9fBeLbUd+WTP4FbTTGvQK6vtfkUxlqVzqsCA 9b6bVzSOuMYOa2DdjARqf7fcRDYwcnDT+hZM29+lFRxnCq4XvEh+RRUjLWMUalkY9CU7 qBeGSf26qnzHKlyhnvnZJ1hwiaiIVCVxWkm8K/SuXFROtnZIaEa2jEnutiOBm/e0ql3c CwPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="ZVXe7pF/"; 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 65si9961481pff.66.2019.06.17.02.10.34; Mon, 17 Jun 2019 02:10:51 -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="ZVXe7pF/"; 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 S1727852AbfFQJK2 (ORCPT + 99 others); Mon, 17 Jun 2019 05:10:28 -0400 Received: from mail-io1-f44.google.com ([209.85.166.44]:35752 "EHLO mail-io1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727549AbfFQJK2 (ORCPT ); Mon, 17 Jun 2019 05:10:28 -0400 Received: by mail-io1-f44.google.com with SMTP id m24so19648661ioo.2 for ; Mon, 17 Jun 2019 02:10:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:references:in-reply-to:mime-version:thread-index:date :message-id:subject:to:cc; bh=Mj+s4plNnZbEVe10BIzmZ1IijmMEuCHawFgLwkcZqoI=; b=ZVXe7pF/DKKbAtg0BLq1kHz+Yf8AmgubdjAQekKwZeBkWQQeo+lrwMdIAePBmlOgcE WJ3paACJ9GsoxC9mAywQ6EfBHW7Qhb1RZpLg6OjDRo0//12nX9SRpN+HRZNsKHbLnYNY mXR2sr52mBeN/pkOHc0Q5eeZBCOpWx8hMerKU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:cc; bh=Mj+s4plNnZbEVe10BIzmZ1IijmMEuCHawFgLwkcZqoI=; b=XM5xid4XwHdRN8hb03oGxWnezBDTPa7Aj/n6rK4eD7RX1aoAkiLefGiZ5I3/CKBULO 7hIq7Qpg/v+EsopzfUr55IiRnxx0NsQS/6SOP1zlfKTehCu5jDVmMvr44dEjpGXgrIZr 7ie9OVDTPsh2BHBJbBokTMRzNMOt9j3VoxqblWkpZiqwktPYCbsbdwtSIfpu7q2WUkbQ J2pyARB+hrZu66yfK5NGfB57a9mOBaJcHxeYXegUPPab6VZmuazZ23x9/vVX9bX/MTuI QQZ+7fMO2YHbEZFtQQao6SKCVBjm4OSX1n3fQ7V3T7feXZvDuG2CYvk5n0oyHy8OebBI TGoQ== X-Gm-Message-State: APjAAAVlMN3/FWAc78QFvDVGJSgrY80/pO/EGe0XTZtjK4ujc4+LHDEY jdbUabfNpS65ffQ/Tx94JXzL/rOIEMVXODqbwTG+9w== X-Received: by 2002:a02:298b:: with SMTP id p133mr87239176jap.37.1560762627424; Mon, 17 Jun 2019 02:10:27 -0700 (PDT) From: Kashyap Desai References: <20190605190836.32354-1-hch@lst.de> <20190605190836.32354-11-hch@lst.de> <20190608081400.GA19573@lst.de> <98f6557ae91a7cdfe8069fcf7d788c88@mail.gmail.com> <20190617084433.GA7969@lst.de> In-Reply-To: <20190617084433.GA7969@lst.de> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQNLjZIO2zMn7N+9xPobnDbFSu4o5gI2RJdJAgF+bYgBfxw4kQGu5dmvAzKBgtajXfsrgA== Date: Mon, 17 Jun 2019 14:40:25 +0530 Message-ID: Subject: RE: [PATCH 10/13] megaraid_sas: set virt_boundary_mask in the scsi host To: Christoph Hellwig Cc: 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 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 > > 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. Thanks for clarification. I have also observed that max_segment_size Is unchanged and it is 64K. > > 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? Yes. This is a valid configuration.