Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2492693rwb; Mon, 3 Oct 2022 01:14:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6qK/qgMTdjY8Z1Hf9/rXJ5yhkF+NDTxGeD8Od7bOoCBqibyF9TJkyycr7BgPyAlGpC432r X-Received: by 2002:a17:903:1112:b0:179:ce23:dd57 with SMTP id n18-20020a170903111200b00179ce23dd57mr21668558plh.114.1664784886883; Mon, 03 Oct 2022 01:14:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664784886; cv=none; d=google.com; s=arc-20160816; b=TKH5SyQ86OtDIWQnMR1tZfGYlCXJwHsNw+iQQG8v62zRhQ+Ox3N/ms8BvSvHEWc9uF EEM8DWrrw2mK2yIF1VYPUoUB9dC+XoVHg0lVRusQDot5nb/frCsWspdSEYt3amZuj0md fprk7zUlyOwGYkOJ+i6T+SocRpB2rqUTRJHFgsSvHmyDh4b2XzvjE1ClT65Utu+SSkYl QQMyZhiP2XUORyPnhtBYsjs8Dir7jMhi/jCRtFCrRBeqUvYk83MjRZNvv4NOvjfZ3wNJ z4FillFFiP4nyF1j7QJxYW1y8DlkhdD0L3ZPui/DqT7U75lbDMaWS1PxDBOWMcF7KFNp TJGQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ne1WlPgzCcSO2JWZ7FWI3WB1lGtE/7//63vMs8KvouY=; b=izH7A+St1xf/QXFzR9Nsmv8agzRap9dSsPb4EyTFQF3JNFtTI9pXdQ4lpSf7WMyQTr pHpCLvGqBT5UeLKe/glnDa3NPXChCA0DaKRJkLHf07lPlPYbcfBIg/LPZFg6IYisYK3k qBnFSNr70hH04By6W+0sCMA1BMjN0uAToxXd6h4SuEoRLth50Yde7QrQmuxYZxzCKnPK Iqc9lsAbZPwc04M8G9entpoSi0dbp3Lu9X2e+b6QWEkKwtnA2puB9oMDmsaD3nSpTllP vAP1CkHumuktNj5a2vg3v+1IJzTa+eUoDlehXaE6yHImWrWOOjjzmJfnBzEVUf/xmQJ0 p7kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=m+N4KFek; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f185-20020a636ac2000000b0043af57e5d16si9607635pgc.724.2022.10.03.01.14.35; Mon, 03 Oct 2022 01:14:46 -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=@linuxfoundation.org header.s=korg header.b=m+N4KFek; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231512AbiJCHiU (ORCPT + 99 others); Mon, 3 Oct 2022 03:38:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231693AbiJCHgZ (ORCPT ); Mon, 3 Oct 2022 03:36:25 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BF1153D0C; Mon, 3 Oct 2022 00:22:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C6ACFB80E69; Mon, 3 Oct 2022 07:22:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F660C433D6; Mon, 3 Oct 2022 07:22:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664781760; bh=8CWZ2rjiMfSIaCk2lrdV1z4t216zZf960SDQL+EgAvU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m+N4KFek96RuP22yekUqvaP05fTs7nTJZTakeT3ZSaJ5Mq6giunAQ0rgB4Y/vWL7G 6rgjVcU2shxOxbG1DMbVtXA29sFTcFUQk2nB8nSHcA6NnRIfVIciDIJBZ9gP+mrl6h 5CTN7QusE1xTUqXqK/yFgUbwcURyoHtoaLUNw0vE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yu Kuai , John Garry Subject: [PATCH 5.10 30/52] scsi: hisi_sas: Revert "scsi: hisi_sas: Limit max hw sectors for v3 HW" Date: Mon, 3 Oct 2022 09:11:37 +0200 Message-Id: <20221003070719.625864262@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221003070718.687440096@linuxfoundation.org> References: <20221003070718.687440096@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 From: Yu Kuai This reverts commit 24cd0b9bfdff126c066032b0d40ab0962d35e777. 1) commit 4e89dce72521 ("iommu/iova: Retry from last rb tree node if iova search fails") tries to fix that iova allocation can fail while there are still free space available. This is not backported to 5.10 stable. 2) commit fce54ed02757 ("scsi: hisi_sas: Limit max hw sectors for v3 HW") fix the performance regression introduced by 1), however, this is just a temporary solution and will cause io performance regression because it limit max io size to PAGE_SIZE * 32(128k for 4k page_size). 3) John Garry posted a patchset to fix the problem. 4) The temporary solution is reverted. It's weird that the patch in 2) is backported to 5.10 stable alone, while the right thing to do is to backport them all together. Signed-off-by: Yu Kuai Reviewed-by: John Garry Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 7 ------- 1 file changed, 7 deletions(-) --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -2738,7 +2738,6 @@ static int slave_configure_v3_hw(struct struct hisi_hba *hisi_hba = shost_priv(shost); struct device *dev = hisi_hba->dev; int ret = sas_slave_configure(sdev); - unsigned int max_sectors; if (ret) return ret; @@ -2756,12 +2755,6 @@ static int slave_configure_v3_hw(struct } } - /* Set according to IOMMU IOVA caching limit */ - max_sectors = min_t(size_t, queue_max_hw_sectors(sdev->request_queue), - (PAGE_SIZE * 32) >> SECTOR_SHIFT); - - blk_queue_max_hw_sectors(sdev->request_queue, max_sectors); - return 0; }