From patchwork Mon May 24 08:36:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Can Guo X-Patchwork-Id: 447727 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94E18C04FF3 for ; Mon, 24 May 2021 08:37:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 650A861151 for ; Mon, 24 May 2021 08:37:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232362AbhEXIi3 (ORCPT ); Mon, 24 May 2021 04:38:29 -0400 Received: from labrats.qualcomm.com ([199.106.110.90]:8039 "EHLO labrats.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232313AbhEXIi3 (ORCPT ); Mon, 24 May 2021 04:38:29 -0400 IronPort-SDR: mzEmM0+0rwgj8Qb0ksSEl4KboA4x9pgJsPdu+EvDkOT73TPyCSGpUH92jZ00L85Aq+oDA6x8My NGMwykTkfVFVjhQN6O3n0v8HTA01huWSsMJYqcQ9yEehnvFFNrSF+MO51CC3ktzptrt1om77pc LjXJrvw1KPLMfZFv1HGWBh720F9K5h5WGsPVsf/282XIbRzUXSNZbmXrBtgKtXoyyBOQ9XsnkZ VaVbPa7rnPJ7mDmzq1wloubN6I04+uvhcqB2PsdPCloFLWAjrPuxVCMSn6vqDqZnPlQakLFmfq ugo= X-IronPort-AV: E=Sophos;i="5.82,319,1613462400"; d="scan'208";a="47877514" Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by labrats.qualcomm.com with ESMTP; 24 May 2021 01:37:01 -0700 X-QCInternal: smtphost Received: from wsp769891wss.qualcomm.com (HELO stor-presley.qualcomm.com) ([192.168.140.85]) by ironmsg02-sd.qualcomm.com with ESMTP; 24 May 2021 01:37:00 -0700 Received: by stor-presley.qualcomm.com (Postfix, from userid 359480) id D343721AD7; Mon, 24 May 2021 01:37:00 -0700 (PDT) From: Can Guo To: asutoshd@codeaurora.org, nguyenb@codeaurora.org, hongwus@codeaurora.org, linux-scsi@vger.kernel.org, kernel-team@android.com, cang@codeaurora.org Subject: [PATCH v1 0/3] Optimize host lock on TR send/compl paths and utilize UTRLCNR Date: Mon, 24 May 2021 01:36:55 -0700 Message-Id: <1621845419-14194-1-git-send-email-cang@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org By optimizing host lock usage on TR send/compl paths and utilizing UTRLCNR, we can get considerable gain in both random read and random write performance. Can Guo (3): scsi: ufs: Remove a redundant command completion logic in error handler scsi: ufs: Optimize host lock on transfer requests send/compl paths scsi: ufs: Utilize Transfer Request List Completion Notification Register drivers/scsi/ufs/ufshcd.c | 309 +++++++++++++++++++++++----------------------- drivers/scsi/ufs/ufshcd.h | 7 +- drivers/scsi/ufs/ufshci.h | 1 + 3 files changed, 162 insertions(+), 155 deletions(-)