Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2513654imw; Wed, 6 Jul 2022 07:13:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vbuZdgSOzgNAMzSh/VinO8I/8AUqXRH0OTo3UBU6i6+DofzwOLFwIabaJnfPyxt98O6Hfl X-Received: by 2002:a05:6402:5508:b0:43a:896e:8edd with SMTP id fi8-20020a056402550800b0043a896e8eddmr4881471edb.203.1657116817504; Wed, 06 Jul 2022 07:13:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657116817; cv=none; d=google.com; s=arc-20160816; b=esRiDznhTXOFrTL0GPKOz8FIqFijL9rXtuQQOn2ojdc+i1VuKuxgEEWd/QJYeBMfyh Tf5Ix0ikFWKn1q4mYv2ehbkpS4zFzGRSQz2Mn7nMGBntb7lsRRsVlm4H5uxqSlLdiyPy LwuqTSGwWmRcq7XchWD09Gj57zPAl3FUJn5rmqospITvbRpe0f3xmAJ4PjIxyKIun3QH /einPMjt05UsZjb6FPnmkq/vCSNiLL/D5q94pyOJpag3sd8c7aZtcM3Z0ORrjKsAUaui uHxs52MCl5DODd94XBaOVrDmLI9Lgv16VawOAHqDJeydb9H1BCE/cZIehULXlVNgpDhl PRnw== 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=1YYF0rfmI3mR7iR1RhLQaKvp/LtGsxwhzMR+Z04iI/Q=; b=091mIp4yw4NczV2oBaFHQ0o+/34QSHhJAINL2iJe9/I8jwakZaFafzX5KRo+XVT8sc r8SA/Le3icDdisdg/2vB2EqyXHze7Xs44vmxrHgaIYHnerWw5NRyejVcekXXrhrnTjZt njwjPENNCoXAvNTIkkFd5Yp4I55w/titXSuGEbavWho66AXCxY9etnJUDcfyJ969SXom DBVOwwYCUxAsqBGKZypoZhFXeGC+K6da083xJS7j28ELYp2S/u5ZX0QQDbHsAd4tUVoE RjFHoqo9L9fY4V2Zgh291KGMhCe+E/M9NMTihEYqA0uqWHAr0fnbXZijAMJhGP0TsJWF qx9A== 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 hv20-20020a17090760d400b00726d06852besi19900263ejc.148.2022.07.06.07.12.56; Wed, 06 Jul 2022 07:13:37 -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 S232240AbiGFNkv (ORCPT + 99 others); Wed, 6 Jul 2022 09:40:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229757AbiGFNku (ORCPT ); Wed, 6 Jul 2022 09:40:50 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCE652317C; Wed, 6 Jul 2022 06:40:48 -0700 (PDT) Received: from fraeml735-chm.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4LdLG35gX0z689K5; Wed, 6 Jul 2022 21:38:03 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml735-chm.china.huawei.com (10.206.15.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 6 Jul 2022 15:40:46 +0200 Received: from [10.126.171.66] (10.126.171.66) 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; Wed, 6 Jul 2022 14:40:45 +0100 Message-ID: Date: Wed, 6 Jul 2022 14:40:44 +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 v5 0/5] DMA mapping changes for SCSI core To: , , , , , , , CC: , , , , , , References: <1656590892-42307-1-git-send-email-john.garry@huawei.com> From: John Garry In-Reply-To: <1656590892-42307-1-git-send-email-john.garry@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.126.171.66] X-ClientProxiedBy: lhreml732-chm.china.huawei.com (10.201.108.83) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.6 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 30/06/2022 13:08, John Garry wrote: Hi Christoph, Can you please consider picking up this series? A few things to note beforehand: - I changed to only apply the mapping limit to SAS hosts in this version. I would need a fresh ack from Martin for those SCSI parts, but wanted to make sure you were ok with it. - Damien had some doubt on updating the shost max_sectors as opposed to the per-request queue default, but I think he's ok with it - see patch 4/5 Thanks, John > As reported in [0], DMA mappings whose size exceeds the IOMMU IOVA caching > limit may see a big performance hit. > > This series introduces a new DMA mapping API, dma_opt_mapping_size(), so > that drivers may know this limit when performance is a factor in the > mapping. > > The SCSI SAS transport code is modified only to use this limit. For now I > did not want to touch other hosts as I have a concern that this change > could cause a performance regression. > > I also added a patch for libata-scsi as it does not currently honour the > shost max_sectors limit. > > [0]https://lore.kernel.org/linux-iommu/20210129092120.1482-1-thunder.leizhen@huawei.com/ > > Changes since v4: > - tweak libata and other patch titles > - Add Robin's tag (thanks!) > - Clarify description of new DMA mapping API