From patchwork Mon Aug 24 02:29:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kiwoong Kim X-Patchwork-Id: 11732073 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B0F0F109B for ; Mon, 24 Aug 2020 02:38:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9272A2078A for ; Mon, 24 Aug 2020 02:38:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="EQZgglKY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728095AbgHXCiY (ORCPT ); Sun, 23 Aug 2020 22:38:24 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:49517 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727939AbgHXCiU (ORCPT ); Sun, 23 Aug 2020 22:38:20 -0400 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20200824023817epoutp011fcb1e16aef96b131b3e63326dfe7da8~uE87lysnc1009510095epoutp01r for ; Mon, 24 Aug 2020 02:38:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20200824023817epoutp011fcb1e16aef96b131b3e63326dfe7da8~uE87lysnc1009510095epoutp01r DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1598236697; bh=WfMcrTf4Hn7Ff084m5WIrUgQ2Rr2LGa9aO7xVH0LSSg=; h=From:To:Cc:Subject:Date:In-Reply-To:In-Reply-To:References:From; b=EQZgglKYEOLIf0tpssKFyrvDROQY57QEnEUntDKp0CKiEdw0CYB4zffSpMMOHlao/ M8aNJosIk4/yXaeU71cdNxhHB8ZDuEtlSCVK+C6ps5HmmtVUfZ+6XBjJl8fiu5WWqz xDU9vIy4KqwrkXsewVtNzHUg0DO2LQcXCNyuM3e8= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20200824023816epcas2p36993b9231308e25dd5e566279935a863~uE87J-N1L2866228662epcas2p3o; Mon, 24 Aug 2020 02:38:16 +0000 (GMT) Received: from epsmges2p1.samsung.com (unknown [182.195.40.182]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4BZbs14gQKzMqYkZ; Mon, 24 Aug 2020 02:38:13 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id CC.4F.19322.518234F5; Mon, 24 Aug 2020 11:38:13 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20200824023812epcas2p13703641720a1a031e4b0157b224e7ec3~uE83klqmp1928719287epcas2p1m; Mon, 24 Aug 2020 02:38:12 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200824023812epsmtrp2647b8fe821d24f5fc7c63f4b3ed650a0~uE83jzVE21376513765epsmtrp28; Mon, 24 Aug 2020 02:38:12 +0000 (GMT) X-AuditID: b6c32a45-797ff70000004b7a-cd-5f432815948d Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id C8.88.08382.418234F5; Mon, 24 Aug 2020 11:38:12 +0900 (KST) Received: from ubuntu.dsn.sec.samsung.com (unknown [12.36.155.120]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200824023812epsmtip291f6e2de43d0da073cfd796dea96dece~uE83X27yv0476704767epsmtip2T; Mon, 24 Aug 2020 02:38:12 +0000 (GMT) From: Kiwoong Kim To: linux-scsi@vger.kernel.org, alim.akhtar@samsung.com, avri.altman@wdc.com, jejb@linux.ibm.com, martin.petersen@oracle.com, beanhuo@micron.com, asutoshd@codeaurora.org, cang@codeaurora.org, bvanassche@acm.org, grant.jung@samsung.com, sc.suh@samsung.com, hy50.seo@samsung.com, sh425.lee@samsung.com Cc: Kiwoong Kim Subject: [PATCH v2 1/2] ufs: introduce skipping manual flush for wb Date: Mon, 24 Aug 2020 11:29:26 +0900 Message-Id: <62ef1c22df6e3fb3c7fa532523b2cf437cd4fcbc.1598236010.git.kwmad.kim@samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: In-Reply-To: X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNJsWRmVeSWpSXmKPExsWy7bCmqa6ohnO8wbQlXBYP5m1js9jbdoLd 4uXPq2wWBx92slhM+/CT2eLT+mWsFr/+rme3WL34AYvFohvbmCxubjnKYtF9fQebxfLj/5gs uu7eYLRY+u8tiwOfx+Ur3h6X+3qZPCYsOsDo8X19B5vHx6e3WDz6tqxi9Pi8Sc6j/UA3UwBH VI5NRmpiSmqRQmpecn5KZl66rZJ3cLxzvKmZgaGuoaWFuZJCXmJuqq2Si0+ArltmDtDdSgpl iTmlQKGAxOJiJX07m6L80pJUhYz84hJbpdSClJwCQ8MCveLE3OLSvHS95PxcK0MDAyNToMqE nIxHvWfYChbzVFyac4SpgXEuVxcjJ4eEgInE1BkvWLoYuTiEBHYwSsx7+YYRwvnEKPGs/Q07 hPONUeLowQ4WmJbJv5ezg9hCAnsZJc7ekIIo+sEo8W7TK0aQBJuApsTTm1OZQBIiApuZJF4t uM8MkmAWUJfYNeEEE4gtLOAs0bLiINgkFgFVidfrXrOB2LwC0RKvJsxnhdgmJ3HzXCdYL6eA pcTnzZPZUNlcQDVTOSQOT9wC1eAisfz8FqhThSVeHd/CDmFLSXx+t5cNwq6X2De1gRWiuYdR 4um+f4wQCWOJWc/agWwOoEs1Jdbv0gcxJQSUJY7cYo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aZiGxd5U1DuEJjAILGBlWMUqmFhTnpucWGxYY5qWW6xUn5haX5qXrJefnbmIEx4GW5g7G 7as+6B1iZOJgPMQowcGsJMJ7e5N9vBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHeG4UL44QE0hNL UrNTUwtSi2CyTBycUg1MebtZM/RmZXHlb7xxb+XPNerc+Y8WvXuUXlnce08vauOOTBdr43ht 4e9NIf/zBRzPGq8R8uhKdF946doU3nfXT7uq6izuCmj+ubNP+lrarfpNnE+/BOyJ5dmakMu2 Jtnx5NvirY8vhSiG84gtyD6yeK6UbuSzKYFv2e+/sVbZZa1qv7dZsiv4r/6C5szFv9ew2LP4 PC3nYdqx98VdoxlXP6pM5vGVXLH1rHVzGzdvDk9goKSm8pJsHtkbdaVWsxhVFk+1esu4+I+n TKyrk12y9EyV+4k3vtj/ODfhStI+u60vk04u7s3NWN++l9nnzSGNT3wzArwFZJXMdAW/LfQt 2i77VWje3EnaO6/dn9KuxFKckWioxVxUnAgAOClIMvICAAA= X-CMS-MailID: 20200824023812epcas2p13703641720a1a031e4b0157b224e7ec3 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200824023812epcas2p13703641720a1a031e4b0157b224e7ec3 References: Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org We have two knobs to flush for write booster, i.e. fWriteBoosterEn, fWriteBoosterBufferFlushEn. However, many product makers uses only fWriteBoosterBufferFlushEn, because this can reportedly cover most scenarios and there have been some reports that flush by fWriteBoosterEn could lead raise power consumption thanks to unexpected internal operations. So we need a way to enable or disable fWriteBoosterEn. Signed-off-by: Kiwoong Kim --- drivers/scsi/ufs/ufshcd.c | 3 +++ drivers/scsi/ufs/ufshcd.h | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index ed03051..7c79a8f 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -5277,6 +5277,9 @@ static int ufshcd_wb_toggle_flush_during_h8(struct ufs_hba *hba, bool set) static inline void ufshcd_wb_toggle_flush(struct ufs_hba *hba, bool enable) { + if (hba->quirks & UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL) + return; + if (enable) ufshcd_wb_buf_flush_enable(hba); else diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h index e5353d6..cfafd6e 100644 --- a/drivers/scsi/ufs/ufshcd.h +++ b/drivers/scsi/ufs/ufshcd.h @@ -511,6 +511,11 @@ enum ufshcd_quirks { * OCS FATAL ERROR with device error through sense data */ UFSHCD_QUIRK_BROKEN_OCS_FATAL_ERROR = 1 << 10, + + /* + * This quirk needs to disable manual flush for write booster + */ + UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL = 1 << 11, }; enum ufshcd_caps { From patchwork Mon Aug 24 02:29:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kiwoong Kim X-Patchwork-Id: 11732075 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 60C301731 for ; Mon, 24 Aug 2020 02:38:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4A03B2078A for ; Mon, 24 Aug 2020 02:38:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="PYjwjhF9" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728100AbgHXCiY (ORCPT ); Sun, 23 Aug 2020 22:38:24 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:49535 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727942AbgHXCiU (ORCPT ); Sun, 23 Aug 2020 22:38:20 -0400 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20200824023818epoutp01aee109ead924924a399c3fde3f6f3c75~uE88lJjdr1009510095epoutp01u for ; Mon, 24 Aug 2020 02:38:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20200824023818epoutp01aee109ead924924a399c3fde3f6f3c75~uE88lJjdr1009510095epoutp01u DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1598236698; bh=rdQCFpaDIijB55N8c7lwlO0mBjw1eDFr/RCQmqqQch8=; h=From:To:Cc:Subject:Date:In-Reply-To:In-Reply-To:References:From; b=PYjwjhF9P7lDnbQUODJlOz8KhRlHa1yXIyoWya3D3JouYnTHdH1V3+DOMO9rgpCr5 TJLAW6BMb2yuLAEoNUvHz07UR3oBwBnX/iiJzVMIPKpI56BpB+AA/hf05rRBlAJ3ZR 7E5fs2EG4A/U2zVVpMzHbwNRsohHppQe9bXK2byA= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20200824023817epcas2p12203b0ac22ee8123140c26e149e8b124~uE87-DWtw3024430244epcas2p1u; Mon, 24 Aug 2020 02:38:17 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.40.188]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4BZbs33SvWzMqYkh; Mon, 24 Aug 2020 02:38:15 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id EB.D8.18874.618234F5; Mon, 24 Aug 2020 11:38:14 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20200824023813epcas2p1ff02473d05b0c69815f779d350fb8d0b~uE84cWVI83024430244epcas2p1Z; Mon, 24 Aug 2020 02:38:13 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200824023813epsmtrp15e96606541516b06d7bd75475ccb8382~uE84berJR1622416224epsmtrp1Q; Mon, 24 Aug 2020 02:38:13 +0000 (GMT) X-AuditID: b6c32a46-519ff700000049ba-51-5f4328164198 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id B2.27.08303.518234F5; Mon, 24 Aug 2020 11:38:13 +0900 (KST) Received: from ubuntu.dsn.sec.samsung.com (unknown [12.36.155.120]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200824023813epsmtip23580afc5da8ace1d0493e019998d296f~uE84I836f0110901109epsmtip2U; Mon, 24 Aug 2020 02:38:13 +0000 (GMT) From: Kiwoong Kim To: linux-scsi@vger.kernel.org, alim.akhtar@samsung.com, avri.altman@wdc.com, jejb@linux.ibm.com, martin.petersen@oracle.com, beanhuo@micron.com, asutoshd@codeaurora.org, cang@codeaurora.org, bvanassche@acm.org, grant.jung@samsung.com, sc.suh@samsung.com, hy50.seo@samsung.com, sh425.lee@samsung.com Cc: Kiwoong Kim Subject: [PATCH v2 2/2] ufs: exynos: enable UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL Date: Mon, 24 Aug 2020 11:29:27 +0900 Message-Id: <93dc4a17520b92b1f990bd7d82523435f8ed6dd3.1598236010.git.kwmad.kim@samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: In-Reply-To: X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBJsWRmVeSWpSXmKPExsWy7bCmma6YhnO8wYTNrBYP5m1js9jbdoLd 4uXPq2wWBx92slhM+/CT2eLT+mWsFr/+rme3WL34AYvFohvbmCxubjnKYtF9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etQ jH/N6ftfD/yzqrWr5dxWbBeoxFKckWioxVxUnAgAO0zWePACAAA= X-CMS-MailID: 20200824023813epcas2p1ff02473d05b0c69815f779d350fb8d0b X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200824023813epcas2p1ff02473d05b0c69815f779d350fb8d0b References: Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org For Exynos, only flush during hibern8 is enough for sustaining performance and I think that there is a possiblity of raising current thanks to an increase of internal operations for manual flush. Signed-off-by: Kiwoong Kim Reviewed-by: Avri Altman --- drivers/scsi/ufs/ufs-exynos.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufs-exynos.c b/drivers/scsi/ufs/ufs-exynos.c index 3c0a50b..defbcc2 100644 --- a/drivers/scsi/ufs/ufs-exynos.c +++ b/drivers/scsi/ufs/ufs-exynos.c @@ -1289,7 +1289,8 @@ struct exynos_ufs_drv_data exynos_ufs_drvs = { UFSHCI_QUIRK_BROKEN_REQ_LIST_CLR | UFSHCI_QUIRK_BROKEN_HCE | UFSHCI_QUIRK_SKIP_RESET_INTR_AGGR | - UFSHCD_QUIRK_BROKEN_OCS_FATAL_ERROR, + UFSHCD_QUIRK_BROKEN_OCS_FATAL_ERROR | + UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL, .opts = EXYNOS_UFS_OPT_HAS_APB_CLK_CTRL | EXYNOS_UFS_OPT_BROKEN_AUTO_CLK_CTRL | EXYNOS_UFS_OPT_BROKEN_RX_SEL_IDX |