Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2777279pxj; Mon, 31 May 2021 10:29:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4vxyfJFsTaXY/WsWNn0WSGW728WZbS/XkDdTniQdSh/ePc4c+lp1wPsEikPu3ALW0K8O4 X-Received: by 2002:a17:906:1701:: with SMTP id c1mr23575366eje.425.1622482167704; Mon, 31 May 2021 10:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622482167; cv=none; d=google.com; s=arc-20160816; b=lNInhG9KZ2OjnA27u5DSqcYByJa1rHeuSHApfXEjpKIdcENw+iC9+xcjdMTd9fNWK+ NplIPV9Y/lH+VVrViqrQpvqv4JwSuMqhn7Z9faGGXn22hluMZ7RHUe84C4GsRTsIds3N aR8DJ33MqO/IoNzQFZqbnrUgMOp+/9yTYsUA8yT3wqS3+7GVCwekJtsQIvnJhFzhyBIi ZK0b+4qrT3zjLDyiVIVrsyAQp1bPJ0tE119kRbIRL3z7lOqKR9TMrZD/2G5s/N5SUlLL KGoBg9nEA4JUTXYo84cPuHFaX52/5viQAIZ2fV+qh3VubQa+nMv2gcFVqdHgz9heLt2R UA7w== 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:date:cc:to:from:subject :message-id:dkim-signature; bh=Qc6CI/WXrqiqEChpYGorO6MkwQYDxw3uL16JCZvhWUM=; b=eCw6zXVxW5Oo+NWibhiNSAkHM8/lalBisP+q9Wiq1THx1pI1HZURtKMN8L+kB+OKrP wfPomcPlz1005A464GBMIL0eR2Z7jsJaQyy32/6OMZqXer7n9BkAmy8xVANyS+NAPMhN 3Q4bFL+BkRDlowpRXRrhndoCYuoW9PlLE2E41EvFvGjDERrBsrTWrxmN/mV4Ge8QPBCK 2GlFIPV3Y1q43CZhoM8mBnVHf0cJCZZ+bDqthGCVTteJcY1mQayu0jvh1ZSVOGp7mvRE N7MmLpi7zVa9PW6LQSUz/NLYxpMinyvGQFFu/ZIHQ0d0glCaGn9Cf4Xy2CaWBh1s1MWW OmxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qCqJmtou; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z5si12142596edc.206.2021.05.31.10.29.05; Mon, 31 May 2021 10:29:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qCqJmtou; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233460AbhEaR1a (ORCPT + 99 others); Mon, 31 May 2021 13:27:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232096AbhEaR1I (ORCPT ); Mon, 31 May 2021 13:27:08 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 051ABC072122; Mon, 31 May 2021 09:05:27 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id n2so11472157wrm.0; Mon, 31 May 2021 09:05:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=Qc6CI/WXrqiqEChpYGorO6MkwQYDxw3uL16JCZvhWUM=; b=qCqJmtounWoHmySgIWFJx3GKQV1ZiTAr7/JgogeudF/5uBOPGllZYzdTYWU/SNLtgT RFRUeX6e7Wn0Y5gWuSrLxBOssFS9XD+TbSx03mhlnX7E/ZNtb4FwMRxjeqTQIZVB/KcU jo2+TuM3l/MXi3LaRGsCYqa4Te5vQ0tN1Nhcpf2M17WerAVT+fYlBMtmIZsrdam+1jze kIUs7FEgxl5vbh9JpnVM6JxYogFNGFm3PS4IvV03T57NtWUY1rWYacKXYMqcKdToyK9F cAMU2F38vcSAtuzA2D/OcQhbAYOoy3Sv09I1SKsfUZmxgLccZ3Q6bFrunv2EPkT/2Kb8 J6Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=Qc6CI/WXrqiqEChpYGorO6MkwQYDxw3uL16JCZvhWUM=; b=E1Jb7lbHAV1NWrP51TgsvY906sX2KkSaHS3UowbKpKtAPeqgHdVWJnRd+BmT9IsgVg PXJQtdMP74hVysZtZ3V0cYbIvB3F1/f3hCJ16trtQzqzsMHg6Jos9dKh6tIaSdcpwPLT FbtcJMa849LS8iHlALgFS3kX3+r7Uv76C7v5pCpsK6k2lPoDZxuR0O/C0o7kowkrMcDq miWN78dSHMKqV6gRZYWhUy8rk4H4YmbgYeVP1Nf4jo8qNN21rvggVaM0cY2yO3AOJDhg bRCChIClsfFHUCkm90z01Dfn4S3ruwsuPkZsa3uKD+6x+LOEEC7ZdQoss4CVh/HO5eKF x+Dg== X-Gm-Message-State: AOAM532yhlbNikqh/u0IHGpy15r1/qKTNuywrTvuLiCtMtoaTYTRNafT C32slV6RnihhzrFzqf11qck= X-Received: by 2002:adf:d1c2:: with SMTP id b2mr23013384wrd.407.1622477125656; Mon, 31 May 2021 09:05:25 -0700 (PDT) Received: from ubuntu-laptop (ip5f5bec5d.dynamic.kabel-deutschland.de. [95.91.236.93]) by smtp.googlemail.com with ESMTPSA id b10sm128238wrt.24.2021.05.31.09.05.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 May 2021 09:05:25 -0700 (PDT) Message-ID: <88dc0251ee98aee5af2217f5d864f0a893dbdef8.camel@gmail.com> Subject: Re: [PATCH v1 3/3] scsi: ufs: Utilize Transfer Request List Completion Notification Register From: Bean Huo To: Can Guo , asutoshd@codeaurora.org, nguyenb@codeaurora.org, hongwus@codeaurora.org, linux-scsi@vger.kernel.org, kernel-team@android.com Cc: Stanley Chu , Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Matthias Brugger , Bean Huo , Jaegeuk Kim , Adrian Hunter , Kiwoong Kim , Satya Tangirala , "Gustavo A. R. Silva" , Caleb Connolly , open list , "moderated list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" Date: Mon, 31 May 2021 18:05:24 +0200 In-Reply-To: <1621845419-14194-4-git-send-email-cang@codeaurora.org> References: <1621845419-14194-1-git-send-email-cang@codeaurora.org> <1621845419-14194-4-git-send-email-cang@codeaurora.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2021-05-24 at 01:36 -0700, Can Guo wrote: > By reading the UTP Transfer Request List Completion Notification > Register, > > which is added in UFSHCI Ver 3.0, SW can easily get the compeleted > transfer > > requests. Thus, SW can get rid of host lock, which is used to > synchronize > > the tr_doorbell and outstanding_reqs, on transfer requests dispatch > and > > completion paths. This can further benefit random read/write > performance. > > > > Cc: Stanley Chu > > Co-developed-by: Asutosh Das > > Signed-off-by: Asutosh Das > > Signed-off-by: Can Guo Reviewed-by: Bean Huo