From patchwork Fri Mar 19 13:25:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 404792 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1377681jai; Fri, 19 Mar 2021 06:31:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycpbRqXoAZQSB5DFVgrFiG4BTWeYR4DVVMzaqWj7ugalDNQosTLtF42Vdr63dD/8cpyuYr X-Received: by 2002:a17:907:2b03:: with SMTP id gc3mr4371378ejc.448.1616160685771; Fri, 19 Mar 2021 06:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616160685; cv=none; d=google.com; s=arc-20160816; b=y16t0K6CaOO+tEe/eiBaKlGgpk9PXbHEWLDIELr30IRDnDhkUbu8+L3VjwAp3QNv8y wnatmhxN4EJo0GIarW+49RWPz6oe4m9iLD7s43oNxZc1QRgayv2FwjqpX02xgy2Xlnqd pi6qwcqPDRvVEFMLLhDGzNqHbBqei0GDSC7FilFHEFldwGMTzeDXrBwAj2Gk2eEzjrNS +42a6urPLRc3mQmZWb+CCMSUpUwxkpKohQnBgP/xH9YH+s8+XxWdenAqPBH3YNuuoACc t/pEhf2ghfrNTmz0cxK5kw+Rb6xa1XrUdzPDKDGw7gNNRXoZi7aHWBpvx2LzyOOS8YkY JN3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Il5uVGG9IcxMgiOSO0E9IWH0PurtaVdV3/Zkgezmn/Y=; b=Pesv+Yz0Ec9Pyo9yBe6FT2RY2Z2a7fOOatOnKv7qTvdve6Kq1V0q+0UAR2kZ/OGwXQ 5HkqqFBrPnwk1n+RHxPveqgpkBAvB52ic3Y6m8GmP3BFPWxZIusgLKnvS+4c2hRKzN31 PckbiwA1a9V77KXXzlbwmh6n/U9qxb6bGyXSueCQ0spmG+GRMj0DSCFIERrFcjWIMzTO WaMpFZDi8CM66k92IbknTVLJ78amcwd4sOPzF9cAdQ6W/eNmcvmxF/jru2O6IciWaa91 3g1PF6r1s3ZoqnoMVgc/7dO7GqJ/q8+It9w7TWb4WR29OsUO1z/+zmBz58vrJVpCYzU2 b3pQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m21si4292630ejx.725.2021.03.19.06.31.25 for ; Fri, 19 Mar 2021 06:31:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230262AbhCSNap (ORCPT ); Fri, 19 Mar 2021 09:30:45 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14017 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230254AbhCSNaT (ORCPT ); Fri, 19 Mar 2021 09:30:19 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4F24T24JxyzPk7t; Fri, 19 Mar 2021 21:27:50 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.498.0; Fri, 19 Mar 2021 21:30:08 +0800 From: John Garry To: , , , , , , CC: , , , , John Garry Subject: [PATCH 6/6] scsi: hisi_sas: Set max optimal DMA size for v3 hw Date: Fri, 19 Mar 2021 21:25:48 +0800 Message-ID: <1616160348-29451-7-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1616160348-29451-1-git-send-email-john.garry@huawei.com> References: <1616160348-29451-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.58] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org For IOMMU strict mode, more than doubles throughput in some scenarios. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.26.2 diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c index 4580e081e489..2f77b418bbeb 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -4684,6 +4684,8 @@ hisi_sas_v3_probe(struct pci_dev *pdev, const struct pci_device_id *id) goto err_out_regions; } + dma_set_max_opt_size(dev, PAGE_SIZE * HISI_SAS_SGE_PAGE_CNT); + shost = hisi_sas_shost_alloc_pci(pdev); if (!shost) { rc = -ENOMEM;