Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp697659iol; Thu, 9 Jun 2022 11:59:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztGdbwJzvYxGT3ikE8lmJMjSAPNeKlpDUi8iTg2lJjzQK7PGJnlwI6k2sw9Yw+xT7t9vo8 X-Received: by 2002:a17:90a:b290:b0:1ea:4358:27b3 with SMTP id c16-20020a17090ab29000b001ea435827b3mr4811332pjr.72.1654801159092; Thu, 09 Jun 2022 11:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654801159; cv=none; d=google.com; s=arc-20160816; b=AS8MC2gq++xcAsT0/+HhuKNQQGdYhOhqpWH0MUi9E05xJrb375DE0/aUuzaaVQ1Q+T JcibFPZnhyOsSfP05vS4QuI2AuAWAEKKJNNPEwMdHGlAtPi/j5O2DWZQRSKv0TOrY0BR 6SpC4TQUQ1B9cmlsBE6jpzZF4u3LtSWuFW2DEbt50rug180EI3dpGjhZVBPFnmvvuueE HYbBwqtM84wI0kxL74Myp7UekYg/T37iOBVQE+2+5E0w3mSdSc5f6tYW+8R19BeXJTs/ MbRDFnAolY4w6nsnvl7iPXroDxt9lLI1pesC1deEGQGbhC8G11HtcpItomcJq5PMJtaY pQDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=w+BGiKP5qiBtGdoV+K/TDZNQ2h6WLT7JLTwVjPTWPWw=; b=FE+QlMqXY22Cmp/OlMGvY1M1H4F1VJkARC8rm/z/W703XEM6Vrp7dk8JQkKF19AOGd 4GM4fwfV44Wfzi52RrZn0BKXbC505Y0RSm3qgRafd5UDtskWeYngk3QeSF7cFeVNBI71 D6zNHu56iJ+y+YbbthXR7/IIxQRNsWwgd1KRBWEbfmiz1bmt34E0MdWVR2rAGZ2F337l 7n6kVvsd8ONtKr8HaWHQbbVhX4mC13uWzXgtuid1Gg/ew/NnaBRgIJz6MFf0VtiOZfLa SgsxUirefndMF9QpiXLSh5ZKY+bKtNAc2y9FgbYR4Re2r5WNZnninqopTIjNC0OaWwCw NP4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 71-20020a63014a000000b003f66d07b6e1si34117257pgb.721.2022.06.09.11.59.05; Thu, 09 Jun 2022 11:59:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344695AbiFIRyL (ORCPT + 99 others); Thu, 9 Jun 2022 13:54:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343666AbiFIRyI (ORCPT ); Thu, 9 Jun 2022 13:54:08 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFFB231E53F; Thu, 9 Jun 2022 10:54:06 -0700 (PDT) Received: from fraeml715-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4LJs7n4GZKz67xjL; Fri, 10 Jun 2022 01:50:29 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml715-chm.china.huawei.com (10.206.15.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 9 Jun 2022 19:54:03 +0200 Received: from [10.47.88.201] (10.47.88.201) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 9 Jun 2022 18:54:02 +0100 Message-ID: <9b1d155e-28cc-08dc-5a5a-8580132575e7@huawei.com> Date: Thu, 9 Jun 2022 18:54:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v3 3/4] scsi: core: Cap shost max_sectors according to DMA optimum mapping limits To: Bart Van Assche , , , , , , , , CC: , , , , , , , References: <1654507822-168026-1-git-send-email-john.garry@huawei.com> <1654507822-168026-4-git-send-email-john.garry@huawei.com> <31417477-953d-283e-808e-cf8701e820a8@huawei.com> <5b214e95-dd95-551a-496e-a2139a74e8eb@huawei.com> From: John Garry In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.88.201] X-ClientProxiedBy: lhreml727-chm.china.huawei.com (10.201.108.78) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/06/2022 18:18, Bart Van Assche wrote: >>> >>> SCSI host bus adapters that support 64-bit DMA may support much >>> larger transfer sizes than 128 KiB. >> >> Indeed, and that is my problem today, as my storage controller is >> generating DMA mapping lengths which exceeds 128K and they slow >> everything down. >> >> If you say that SRP enjoys best peformance with larger transfers then >> can you please test this with an IOMMU enabled (iommu group type DMA >> or DMA-FQ)? > > Hmm ... what exactly do you want me to test? Do you perhaps want me to > measure how much performance drops with an IOMMU enabled? Yes, I would like to know of any performance change with an IOMMU enabled and then with an IOMMU enabled and including my series. > I don't have > access anymore to the SRP setup I referred to in my previous email. But > I do have access to devices that boot from UFS storage. For these > devices we need to transfer 2 MiB per request to achieve full bandwidth. ok, but do you have a system where the UFS host controller is behind an IOMMU? I had the impression that UFS controllers would be mostly found in embedded systems and IOMMUs are not as common on there. Thanks, John