[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1622688899.7096.7.camel@mtkswgap22>
Date: Thu, 3 Jun 2021 10:54:59 +0800
From: Stanley Chu <stanley.chu@...iatek.com>
To: Can Guo <cang@...eaurora.org>
CC: <asutoshd@...eaurora.org>, <nguyenb@...eaurora.org>,
<hongwus@...eaurora.org>, <linux-scsi@...r.kernel.org>,
<kernel-team@...roid.com>, Alim Akhtar <alim.akhtar@...sung.com>,
Avri Altman <avri.altman@....com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Matthias Brugger <matthias.bgg@...il.com>,
Bean Huo <beanhuo@...ron.com>,
Jaegeuk Kim <jaegeuk@...nel.org>,
"Adrian Hunter" <adrian.hunter@...el.com>,
Kiwoong Kim <kwmad.kim@...sung.com>,
Satya Tangirala <satyat@...gle.com>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>,
Caleb Connolly <caleb@...nolly.tech>,
open list <linux-kernel@...r.kernel.org>,
"moderated list:ARM/Mediatek SoC support"
<linux-arm-kernel@...ts.infradead.org>,
"moderated list:ARM/Mediatek SoC support"
<linux-mediatek@...ts.infradead.org>
Subject: Re: [PATCH v1 3/3] scsi: ufs: Utilize Transfer Request List
Completion Notification Register
Hi Can,
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 <stanley.chu@...iatek.com>
> Co-developed-by: Asutosh Das <asutoshd@...eaurora.org>
> Signed-off-by: Asutosh Das <asutoshd@...eaurora.org>
> Signed-off-by: Can Guo <cang@...eaurora.org>
Reviewed-by: Stanley Chu <stanley.chu@...iatek.com>
> +++ b/drivers/scsi/ufs/ufshci.h
> @@ -39,6 +39,7 @@ enum {
> REG_UTP_TRANSFER_REQ_DOOR_BELL = 0x58,
> REG_UTP_TRANSFER_REQ_LIST_CLEAR = 0x5C,
> REG_UTP_TRANSFER_REQ_LIST_RUN_STOP = 0x60,
> + REG_UTP_TRANSFER_REQ_LIST_COMPL = 0x64,
> REG_UTP_TASK_REQ_LIST_BASE_L = 0x70,
> REG_UTP_TASK_REQ_LIST_BASE_H = 0x74,
> REG_UTP_TASK_REQ_DOOR_BELL = 0x78,
Powered by blists - more mailing lists