Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3582601iog; Mon, 27 Jun 2022 20:50:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uuIxx43uwGDKw4OXvyg+JuxiqlIg2Rt32TgMFF4Uew8wIWOp42mRG1b1MF0C0h4nY7ecZR X-Received: by 2002:a05:6a00:244a:b0:4fa:ebf9:75de with SMTP id d10-20020a056a00244a00b004faebf975demr2564346pfj.73.1656388253484; Mon, 27 Jun 2022 20:50:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656388253; cv=none; d=google.com; s=arc-20160816; b=kNDK4oNaahZi1Wn4YzTzEWRb5s8FYEMDHGWGlf3YPYM+ItQnDsB9IPtG+rDROuOhgh CjWWIwyRJTkZJvdwSPc6MIKngYqREMK717BibfWyszqOyqP6QtrxDIQCRgegFs1OxRNL /tRRNloGZDr7FehqcNx45ui8BRXOvCUjG+r/ysB0QA/OUMV6UyX3ABmITu24AfbGPbt/ irOaUgMByVOAHjW1GjHatXxQFlCP+GbgyqX5aFHx+MmdEg2SSaYNU80Q3a0s14+SaO8w vdk62JYvu89CwhzDGoQXqkNwSmrej2YfjHs9ghXsHh6B0rlruo48mHQOIYgVKIhX0Ud0 2Vaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wFj7jr5++wVzk3NhTMH3VP2cJALD8lp6NWC4+k64PCk=; b=dw7f1RzuoKHqqRAvESh/HslMeA2Ibk8V8llNhSlS6oSX0RPZ0GnUCzLDN3bd8z68xb 3HxhUez4dR+0dZz+ZevhGUFOs4g6VKUUoSXcuIYKIM2sr+Z0/Dk8w0JpXJPx3+53vyzQ gsx4uaf1kLFFkmJ0ZkwSP3MoToBMUj0OoX0pRYaP6hM0wVl/It2ql/cbC4tdq5SlbBX0 K2RVPFnT8ypYYnVLHnLTV1Z8GQJycu2vNK1jb1/5ZLYS8uyx0KQdRvY8tNnlf/7Wgv1G 39mtXj9keoV0+C6jNKUScYOLGwA7Zd1HVgWFCPMpHi+X3rPDs0nidaPHXBWoq5KVE6in HkGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=zQpYyxoE; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z7-20020a170902ccc700b0016a674598c2si16982467ple.527.2022.06.27.20.50.40; Mon, 27 Jun 2022 20:50:53 -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; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=zQpYyxoE; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231565AbiF1DYa (ORCPT + 99 others); Mon, 27 Jun 2022 23:24:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231548AbiF1DYX (ORCPT ); Mon, 27 Jun 2022 23:24:23 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD86624F33; Mon, 27 Jun 2022 20:24:22 -0700 (PDT) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25S1U54B002153; Tue, 28 Jun 2022 03:24:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=corp-2021-07-09; bh=wFj7jr5++wVzk3NhTMH3VP2cJALD8lp6NWC4+k64PCk=; b=zQpYyxoEn90fAOIgD5exJ3ItD9jq/QnwtMoiOVptb0t1e0NpMPl3R/2GUFUNGLKVA4za EnmCSAHzYtB2VpvsczmSvSBzv5Na1w/0YIlR5wCa6UKFF4Jsj4NxhezeWjYTHqPSbdUd eEh5Y9LB06nM0X0PpA5fs1sUiawN5iOMc8tkjpMOirInrBzJD3zLK7pG5gw1IsfVT8H3 +TI2SmR338PBvLPtD6GdVH2jgOOM4bpsRj/3zzpUiK4NwCgcqj64USbog8dFNCATnCys 6b33zo7HVRI29RgOIrBAA14i3kEx/XlvdjzA6GKHTy4sdnTSODd16Gz3n8hJTtkowKVQ mA== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3gws52cunp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 Jun 2022 03:24:11 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 25S3Euqt032131; Tue, 28 Jun 2022 03:24:10 GMT Received: from pps.reinject (localhost [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com with ESMTP id 3gwrt1yjd6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 Jun 2022 03:24:10 +0000 Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 25S3O9ij005491; Tue, 28 Jun 2022 03:24:09 GMT Received: from ca-mkp.mkp.ca.oracle.com (ca-mkp.ca.oracle.com [10.156.108.201]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com with ESMTP id 3gwrt1yjcw-1; Tue, 28 Jun 2022 03:24:09 +0000 From: "Martin K. Petersen" To: jejb@linux.ibm.com, John Garry Cc: "Martin K . Petersen" , hch@lst.de, linux-scsi@vger.kernel.org, linuxarm@huawei.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scsi: hisi_sas: Limit max hw sectors for v3 HW Date: Mon, 27 Jun 2022 23:24:07 -0400 Message-Id: <165638664146.7677.5674015792755876546.b4-ty@oracle.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <1655988119-223714-1-git-send-email-john.garry@huawei.com> References: <1655988119-223714-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: oTwzKNERGeDhb51xc2_H4Wn1gZJGnwZL X-Proofpoint-GUID: oTwzKNERGeDhb51xc2_H4Wn1gZJGnwZL X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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 Thu, 23 Jun 2022 20:41:59 +0800, John Garry wrote: > If the controller is behind an IOMMU then the IOMMU IOVA caching range can > affect performance, as discussed in [0]. > > Limit the max HW sectors to not exceed this limit. We need to hardcode > the value until a proper DMA mapping API is available. > > [0] https://lore.kernel.org/linux-iommu/20210129092120.1482-1-thunder.leizhen@huawei.com/ > > [...] Applied to 5.19/scsi-fixes, thanks! [1/1] scsi: hisi_sas: Limit max hw sectors for v3 HW https://git.kernel.org/mkp/scsi/c/fce54ed02757 -- Martin K. Petersen Oracle Linux Engineering