From patchwork Tue Jan 19 02:28:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kiwoong Kim X-Patchwork-Id: 12028527 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=-18.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,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 13C81C433E6 for ; Tue, 19 Jan 2021 02:41:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CF26822E00 for ; Tue, 19 Jan 2021 02:41:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394494AbhASCla (ORCPT ); Mon, 18 Jan 2021 21:41:30 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:38059 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394337AbhASClV (ORCPT ); Mon, 18 Jan 2021 21:41:21 -0500 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20210119024017epoutp02bf5320cba298a988f32ea32e9014d6eb~bgc7Tl1P31542315423epoutp028 for ; Tue, 19 Jan 2021 02:40:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20210119024017epoutp02bf5320cba298a988f32ea32e9014d6eb~bgc7Tl1P31542315423epoutp028 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1611024017; bh=YA1/e4TPOxL6MryBAuaA6i41XFxzfZMi+vkRoddHhbA=; h=From:To:Cc:Subject:Date:In-Reply-To:In-Reply-To:References:From; b=Jth2zuIpzfEALzNf1SqilOEWrqxjBqdeloTmyInElQgxpx3PA+dLWWHTt71kta2pE fJddbtY3jt8nsJ/bygTXQnjP87BSXPcpr0yqsLamKZd4j9GDzqgOEHfLYQgMm6Uf/K AjA4yMPhAEEIugaD7zFW3kdHfn/LRn4u/JTnu9/Q= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20210119024016epcas2p388ca6f2e940da662337124102c2a013e~bgc6rNC9B1033910339epcas2p3Z; Tue, 19 Jan 2021 02:40:16 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.40.188]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4DKXv14zT4z4x9Q7; Tue, 19 Jan 2021 02:40:13 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 0D.8A.56312.D8646006; Tue, 19 Jan 2021 11:40:13 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20210119024012epcas2p2b99e5846e1e04d8a8fab76c75bf534a7~bgc3Vwq5w2850928509epcas2p2H; Tue, 19 Jan 2021 02:40:12 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20210119024012epsmtrp1c31233e60bd8204d358de7d0d32dcf93~bgc3U1Aaa1474014740epsmtrp1a; Tue, 19 Jan 2021 02:40:12 +0000 (GMT) X-AuditID: b6c32a46-1efff7000000dbf8-38-6006468d39e1 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id C8.D6.13470.C8646006; Tue, 19 Jan 2021 11:40:12 +0900 (KST) Received: from ubuntu.dsn.sec.samsung.com (unknown [12.36.155.120]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210119024012epsmtip2283fdba17de0d85d207cef1cafc49551~bgc3IXs5N0357703577epsmtip2d; Tue, 19 Jan 2021 02:40: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, bhoon95.kim@samsung.com Cc: Kiwoong Kim Subject: [ PATCH v6 1/2] ufs: introduce a quirk to allow only page-aligned sg entries Date: Tue, 19 Jan 2021 11:28:48 +0900 Message-Id: <56dddef94f60bd9466fd77e69f64bbbd657ed2a1.1611023224.git.kwmad.kim@samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: In-Reply-To: X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAJsWRmVeSWpSXmKPExsWy7bCmqW6vG1uCQd97KYsH87axWextO8Fu 8fLnVTaLgw87WSy+Ln3GajHtw09mi0/rl7Fa/Pq7nt1i9eIHLBaLbmxjsri55SiLRff1HWwW y4//Y7LounuD0WLpv7csDvwel694e1zu62XymLDoAKPH9/UdbB4fn95i8ejbsorR4/MmOY/2 A91MARxROTYZqYkpqUUKqXnJ+SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5 QMcrKZQl5pQChQISi4uV9O1sivJLS1IVMvKLS2yVUgtScgoMDQv0ihNzi0vz0vWS83OtDA0M jEyBKhNyMs50/mMt+MZf8fjvV9YGxu88XYycHBICJhL9ja2MXYxcHEICOxglDp86wwThfGKU WPhqCVTmG6PEkpdHmWBa2l88Z4FI7GWUODd/KTuE84NR4u7nO+wgVW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KL9O0SuDLOdP5jLfjGX/H471fWBsbvPF2MnBwSAiYS7S+es3QxcnEI CexmlNj89hYLREJS4sTO54wQtrDE/ZYjrCC2kMA3RonXR71AbDYBTYmnN6cygTSLCNxjkrg0 YS4zSIJZQF1i14QTTCC2sECoRMvp5WwgNouAqsSZr+vAFvAKREvMbNrDBLFATuLmuU6wXk4B S4nZi88wQiyzkLj15R07LvEJjAILGBlWMUqmFhTnpucWGxYY5qWW6xUn5haX5qXrJefnbmIE x4SW5g7G7as+6B1iZOJgPMQowcGsJMJbuo4pQYg3JbGyKrUoP76oNCe1+BCjNAeLkjjvha6T 8UIC6YklqdmpqQWpRTBZJg5OqQYmG76THinFlen5v07/fHZvw253wzeOdn28m43TLVKvKdYX J1/56DM5vPKoTZZTt7TBe2FP21CtdtWQVZ2B2y9tOhj6ZOU5tqvWLA7nFpms3Cq5br+As8DR b3nNv6wfms3d9sk1Kfh8q96y7PNXJJc7vPE9UGVivOp9nVitfcdFFperc+6m2B5bdCVp05aj wssZpRyubJWt7/I86/Ba51Wh/5XS9vX9v4KiTM8V2RdLyeSKLYi2jdt+dr8Of/BdlkPeWU9P ph2skGbYm7c6bdmhtaYSDO2THddL1PnO0vZaZbwuU7ogYZ30VOubG322MmZl+n9QytSv9rv4 Qtc8rnFdwypHl6nuD6d/OfX5krsSS3FGoqEWc1FxIgDt41pV+AIAAA== X-CMS-MailID: 20210119024012epcas2p2b99e5846e1e04d8a8fab76c75bf534a7 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210119024012epcas2p2b99e5846e1e04d8a8fab76c75bf534a7 References: Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Some SoCs could require one scatterlist entry for smaller than page size, i.e. 4KB. For the cases of dispatching commands with more than one scatterlist entry and under 4KB size, They could behave as follows: Given that a command to read something from device is dispatched with two scatterlist entries that are named AAA and BBB. After dispatching, host builds two PRDT entries and during transmission, device sends just one DATA IN because device doesn't care on host dma. The host then tranfers the whole data from start address of the area named AAA. In consequence, the area that follows AAA would be corrupted. |<------------->| +-------+------------ +-------+ + AAA + (corrupted) ... + BBB + +-------+------------ +-------+ In this case, you need to force an aligment with page size for sg entries. Signed-off-by: Kiwoong Kim --- drivers/scsi/ufs/ufshcd.c | 2 ++ drivers/scsi/ufs/ufshcd.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index e221add..847eb02 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -4792,6 +4792,8 @@ static int ufshcd_slave_configure(struct scsi_device *sdev) struct request_queue *q = sdev->request_queue; blk_queue_update_dma_pad(q, PRDT_DATA_BYTE_COUNT_PAD - 1); + if (hba->quirks & UFSHCD_QUIRK_ALIGN_SG_WITH_PAGE_SIZE) + blk_queue_update_dma_alignment(q, PAGE_SIZE - 1); if (ufshcd_is_rpm_autosuspend_allowed(hba)) sdev->rpm_autosuspend = 1; diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h index 9bb5f0e..9e7223f 100644 --- a/drivers/scsi/ufs/ufshcd.h +++ b/drivers/scsi/ufs/ufshcd.h @@ -549,6 +549,10 @@ enum ufshcd_quirks { */ UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL = 1 << 12, + /* + * This quirk allows only sg entries aligned with page size. + */ + UFSHCD_QUIRK_ALIGN_SG_WITH_PAGE_SIZE = 1 << 13, }; enum ufshcd_caps { From patchwork Tue Jan 19 02:28:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kiwoong Kim X-Patchwork-Id: 12028529 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=-18.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,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 9E8A6C433DB for ; Tue, 19 Jan 2021 02:41:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 71CAF22E00 for ; Tue, 19 Jan 2021 02:41:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394506AbhASClb (ORCPT ); Mon, 18 Jan 2021 21:41:31 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:36288 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394339AbhASClU (ORCPT ); Mon, 18 Jan 2021 21:41:20 -0500 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20210119024017epoutp03923eb5f842dd2a686765a8e36845d54f~bgc760ElG0797607976epoutp03M for ; Tue, 19 Jan 2021 02:40:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20210119024017epoutp03923eb5f842dd2a686765a8e36845d54f~bgc760ElG0797607976epoutp03M DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1611024017; bh=IUvNu4dNPyTjKtls0lrz2Urf0qov0F2gqycSUqGOIkg=; h=From:To:Cc:Subject:Date:In-Reply-To:In-Reply-To:References:From; b=vdQSaCN3gB4KLRCL77V5jYjPzQm/GksHseDUkqDSu0R8OGf1PENsPD4OPl4Mli0Es oC1yhecy5eyKRm3McYxNTK6iaE7/Xup37ibNGjPxqzlbZKquw0btLwqwiKUMXafJ9V NA73Xi/NvKGTQEbg6/wMpCnbMIPmgoxGWgVOdR5g= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20210119024016epcas2p2e36349d1143f43e041496fe55ba81227~bgc7HJ-l00524205242epcas2p2N; Tue, 19 Jan 2021 02:40:16 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.40.182]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4DKXv26JLJz4x9Q8; Tue, 19 Jan 2021 02:40:14 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 6A.94.05262.E8646006; Tue, 19 Jan 2021 11:40:14 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20210119024013epcas2p1b0ebaa5fbc2e966529a549386535fdbb~bgc4WMAFt0127201272epcas2p1A; Tue, 19 Jan 2021 02:40:13 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20210119024013epsmtrp27a33271ac6761a171b7663a82e55c99b~bgc4UQjzw0484804848epsmtrp2O; Tue, 19 Jan 2021 02:40:13 +0000 (GMT) X-AuditID: b6c32a47-b97ff7000000148e-20-6006468e8ad4 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 55.6A.08745.D8646006; Tue, 19 Jan 2021 11:40:13 +0900 (KST) Received: from ubuntu.dsn.sec.samsung.com (unknown [12.36.155.120]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210119024013epsmtip2b3bed87e0c821d01943747204ea672ae~bgc4FcOAB0182701827epsmtip2B; Tue, 19 Jan 2021 02:40: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, bhoon95.kim@samsung.com Cc: Kiwoong Kim Subject: [ PATCH v6 2/2] ufs: ufs-exynos: use UFSHCD_QUIRK_ALIGN_SG_WITH_PAGE_SIZE Date: Tue, 19 Jan 2021 11:28:49 +0900 Message-Id: <80d7e27d6ec537e650a6bd74897b6c60618efcdc.1611023224.git.kwmad.kim@samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: In-Reply-To: X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAJsWRmVeSWpSXmKPExsWy7bCmmW6fG1uCwbSPhhYP5m1js9jbdoLd 4uXPq2wWBx92slh8XfqM1WLah5/MFp/WL2O1+PV3PbvF6sUPWCwW3djGZHFzy1EWi+7rO9gs lh//x2TRdfcGo8XSf29ZHPg9Ll/x9rjc18vkMWHRAUaP7+s72Dw+Pr3F4tG3ZRWjx+dNch7t B7qZAjiicmwyUhNTUosUUvOS81My89JtlbyD453jTc0MDHUNLS3MlRTyEnNTbZVcfAJ03TJz gI5XUihLzCkFCgUkFhcr6dvZFOWXlqQqZOQXl9gqpRak5BQYGhboFSfmFpfmpesl5+daGRoY GJkCVSbkZMw8/JmtYBl7xcoDE9gaGJvYuhg5OSQETCRamn4xdjFycQgJ7GCUmPDgATOE84lR 4tXlJ6wQzmdGiUd3HzLDtNzv2MgCkdjFKPFk3lso5wejxJW7S1lBqtgENCWe3pzKBJIQETjD JHGt9SxYgllAXWLXhBNMILawQIjE8fdvGUFsFgFViZ0d/UA2BwevQLTE8eesENvkJG6e6wTb zClgKTF78RlGVDYXUM1cDomti9qZIBpcJB7fXwvVLCzx6vgWdghbSuLzu71QX9dL7JvawArR 3MMo8XTf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SVg4NXIFri+HOoZXISN891grVyClhK zF58BmyxkICFxK0v79hxiU9gFFjAyLCKUTK1oDg3PbfYsMAoL7Vcrzgxt7g0L10vOT93EyM4 JrS0djDuWfVB7xAjEwfjIUYJDmYlEd7SdUwJQrwpiZVVqUX58UWlOanFhxilOViUxHkvdJ2M FxJITyxJzU5NLUgtgskycXBKNTDtOFfZlr6jVbZvt6iiVwpz1I5btxMbDIKUxS17s14/Dzxz sJjjuMG9qcuSO5anqAvNnn3m6xa2U3I9FsW3g/d89dmgvXT5K+dnTDVrZfzayv8tawndtGT2 cu/WaTcnlvdOKDktl6KQ8FT+yI6MF8KLm7bu8qpMjPOyvm2m9L4t9sLOixnsu6I6prbq2O0o dNwasGlKavoxA4vzJllXNFmXhV6uP3p/reaWeuuNP2ZMnS+yVDlevWrbV5sP244XTgmdu3nH +7RlZgv35Dozi5lfPxV0K9PydUlQbfruiWxzOKuTDT/diNsrEuHRddhct1ry3om3VrP1FTI9 RbjnvC6uadn/a2P1Q4e9s5mUV0srsRRnJBpqMRcVJwIAIBzFVfgCAAA= X-CMS-MailID: 20210119024013epcas2p1b0ebaa5fbc2e966529a549386535fdbb X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210119024013epcas2p1b0ebaa5fbc2e966529a549386535fdbb References: Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Exynos needs alignment with page size because it isn't capable to transfer data in one DATA IN to seversal areas. Signed-off-by: Kiwoong Kim --- 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 a8770ff..d1f0031 100644 --- a/drivers/scsi/ufs/ufs-exynos.c +++ b/drivers/scsi/ufs/ufs-exynos.c @@ -1236,7 +1236,8 @@ struct exynos_ufs_drv_data exynos_ufs_drvs = { UFSHCI_QUIRK_BROKEN_HCE | UFSHCI_QUIRK_SKIP_RESET_INTR_AGGR | UFSHCD_QUIRK_BROKEN_OCS_FATAL_ERROR | - UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL, + UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL | + UFSHCD_QUIRK_ALIGN_SG_WITH_PAGE_SIZE, .opts = EXYNOS_UFS_OPT_HAS_APB_CLK_CTRL | EXYNOS_UFS_OPT_BROKEN_AUTO_CLK_CTRL | EXYNOS_UFS_OPT_BROKEN_RX_SEL_IDX |