From patchwork Tue Jan 19 03:33:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kiwoong Kim X-Patchwork-Id: 12028557 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 EB0A0C433DB for ; Tue, 19 Jan 2021 03:48:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C06742250E for ; Tue, 19 Jan 2021 03:48:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729257AbhASDsb (ORCPT ); Mon, 18 Jan 2021 22:48:31 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:48255 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728770AbhASDp5 (ORCPT ); Mon, 18 Jan 2021 22:45:57 -0500 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20210119034508epoutp03cf050484fbb43a651ae009bc60d3d4f1~bhVjIoumZ2531525315epoutp03- for ; Tue, 19 Jan 2021 03:45:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20210119034508epoutp03cf050484fbb43a651ae009bc60d3d4f1~bhVjIoumZ2531525315epoutp03- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1611027908; bh=YA1/e4TPOxL6MryBAuaA6i41XFxzfZMi+vkRoddHhbA=; h=From:To:Cc:Subject:Date:In-Reply-To:In-Reply-To:References:From; b=Rvy4+GJZDNFVcsBkJYbsHmtsEWiB/PJlxR8RVGmVcHIUCqBHvaJ+1HiJemxXOnb5N F2ReHayPLqGMPUDB+ckg5gYV5m1ZjUITu9AuWCFrCm79ebWXD22Z6TGCzz8slURfWZ pqljL7+J/zX/O1MUxcKu7aYb2MYy+ZdHbQvXsN10= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20210119034507epcas2p4cffb9920a56ce312dde03c7ebb84fffd~bhVig18HP2622426224epcas2p4i; Tue, 19 Jan 2021 03:45:07 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.40.185]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4DKZKs0kjFz4x9Pt; Tue, 19 Jan 2021 03:45:05 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id D9.F1.05262.FB556006; Tue, 19 Jan 2021 12:45:03 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20210119034503epcas2p1d5be1d29bc5def9d4f622e5edfd31df8~bhVexUOXZ1621716217epcas2p1x; Tue, 19 Jan 2021 03:45:03 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20210119034503epsmtrp203260053fa5f1f46098a057a90af569f~bhVewX0As0281202812epsmtrp2Z; Tue, 19 Jan 2021 03:45:03 +0000 (GMT) X-AuditID: b6c32a47-b81ff7000000148e-e6-600655bfd816 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 4E.7E.13470.FB556006; Tue, 19 Jan 2021 12:45:03 +0900 (KST) Received: from ubuntu.dsn.sec.samsung.com (unknown [12.36.155.120]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20210119034503epsmtip1a1f91cfc829b0debbf91931ca2ed5944~bhVeks8Of2273022730epsmtip1X; Tue, 19 Jan 2021 03:45:03 +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: [RESEND PATCH -6 1/2] ufs: introduce a quirk to allow only page-aligned sg entries Date: Tue, 19 Jan 2021 12:33:41 +0900 Message-Id: <56dddef94f60bd9466fd77e69f64bbbd657ed2a1.1611026909.git.kwmad.kim@samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: In-Reply-To: X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAJsWRmVeSWpSXmKPExsWy7bCmme7+ULYEg11/zC0ezNvGZrG37QS7 xcufV9ksDj7sZLH4uvQZq8W0Dz+ZLT6tX8Zq8evvenaL1YsfsFgsurGNyeLmlqMsFt3Xd7BZ LD/+j8mi6+4NRoul/96yOPB7XL7i7XG5r5fJY8KiA4we39d3sHl8fHqLxaNvyypGj8+b5Dza D3QzBXBE5dhkpCampBYppOYl56dk5qXbKnkHxzvHm5oZGOoaWlqYKynkJeam2iq5+AToumXm AB2vpFCWmFMKFApILC5W0rezKcovLUlVyMgvLrFVSi1IySkwNCzQK07MLS7NS9dLzs+1MjQw MDIFqkzIyTjT+Y+14Bt/xeO/X1kbGL/zdDFyckgImEg03eph7GLk4hAS2MEo0XzgKzuE84lR Yvv84ywQzjdGied/X7HAtJxa+osZIrGXUeJMw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8+b5Dza D3QzBXBEcdmkpOZklqUW6dslcGWc6fzHWvCNv+Lx36+sDYzfeboYOTkkBEwkTi39xdzFyMUh JLCbUaKp4QAbREJS4sTO54wQtrDE/ZYjrBBF3xglHk6cxgqSYBPQlHh6cyoTSEJE4B6TxKUJ c5lBEswC6hK7JpwASnBwCAtESzQ9sQcJswioSvx9fJ0JxOYFCi/a/gxqmZzEzXOdYK2cApYS Mzv2gNUICVhILNz5kwWX+ARGgQWMDKsYJVMLinPTc4sNCwzzUsv1ihNzi0vz0vWS83M3MYJj QktzB+P2VR/0DjEycTAeYpTgYFYS4S1dx5QgxJuSWFmVWpQfX1Sak1p8iFGag0VJnPdC18l4 IYH0xJLU7NTUgtQimCwTB6dUA5NNiNmmwsPPWjMWTH4Q3Surmbp346LtJuV2Gw/PFlfSmbet QyX0+N7Gm8L6+zfV/D5XEjvVRXPieQeZiHlr3zg/fHapcNur4zmc716GfXP43Fp0fuqm+GCX ZfvXL16isPHWM44nFbfse7UqfzndmPLvn9TxoqXuQrP5Es/XzZm/RftmxZ1DCad2dsyNW5uq t989zrjiea9b89YvWidiXSYzHD3UPcfk565442kXFd8uFDDdZKWowZ/J/TIn8UX2aa/wbY4v FjIwL26Qm1bZknTic8mFZM+FmyKrU3dsyxSrvCRydVJDVWN5u0GJ4cWSTQ5/iqT3hUQ+qkq6 9XV5TlbsM5GEVIXS1yue8U3iL09XYinOSDTUYi4qTgQABIvjtPgCAAA= X-CMS-MailID: 20210119034503epcas2p1d5be1d29bc5def9d4f622e5edfd31df8 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210119034503epcas2p1d5be1d29bc5def9d4f622e5edfd31df8 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 03:33:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kiwoong Kim X-Patchwork-Id: 12028559 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 836C9C433E0 for ; Tue, 19 Jan 2021 03:49:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 520102245C for ; Tue, 19 Jan 2021 03:49:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728738AbhASDs1 (ORCPT ); Mon, 18 Jan 2021 22:48:27 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:48267 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728725AbhASDp5 (ORCPT ); Mon, 18 Jan 2021 22:45:57 -0500 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20210119034508epoutp033922a461299b9a35d03d8c1c4cf95c55~bhVjfMg1H2549825498epoutp03r for ; Tue, 19 Jan 2021 03:45:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20210119034508epoutp033922a461299b9a35d03d8c1c4cf95c55~bhVjfMg1H2549825498epoutp03r DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1611027908; bh=IUvNu4dNPyTjKtls0lrz2Urf0qov0F2gqycSUqGOIkg=; h=From:To:Cc:Subject:Date:In-Reply-To:In-Reply-To:References:From; b=YqbprX8N1P3msUo12KblDdXM8aYTEHhblsPPhHn+0gj8tkfEiW806T8m8SRB7r+Jm tGNsmSTUmMbi+xRRuQcqvCoZnHWvQDrs5hgMFcNr1xMqZDtlzBHb6L3JO2lkcYq7Ct fEVmtPDZp7JUW8jIOHsvwkw9zmdkt1TyJbgCIKXQ= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20210119034507epcas2p3cc01858b045148ceb1d90fa30d90d717~bhVix0SAY0516005160epcas2p3Q; Tue, 19 Jan 2021 03:45:07 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.40.183]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4DKZKt0v0Nz4x9QH; Tue, 19 Jan 2021 03:45:06 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 04.F9.56312.0C556006; Tue, 19 Jan 2021 12:45:04 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20210119034504epcas2p478f76a8f9cb0cbecff219a2098cb2eaf~bhVfvQgXD3241732417epcas2p4u; Tue, 19 Jan 2021 03:45:04 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20210119034504epsmtrp1178b8c50594df5ab622f7f8ae85d92d7~bhVfuMWig1244212442epsmtrp1f; Tue, 19 Jan 2021 03:45:04 +0000 (GMT) X-AuditID: b6c32a46-777d6a800000dbf8-93-600655c02b03 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 50.8E.13470.0C556006; Tue, 19 Jan 2021 12:45:04 +0900 (KST) Received: from ubuntu.dsn.sec.samsung.com (unknown [12.36.155.120]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20210119034504epsmtip1462125dad2440652919c0a7ce49f08bc~bhVffXeWY2314823148epsmtip1Z; Tue, 19 Jan 2021 03:45:04 +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: [RESEND PATCH -6 2/2] ufs: ufs-exynos: use UFSHCD_QUIRK_ALIGN_SG_WITH_PAGE_SIZE Date: Tue, 19 Jan 2021 12:33:42 +0900 Message-Id: <80d7e27d6ec537e650a6bd74897b6c60618efcdc.1611026909.git.kwmad.kim@samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: In-Reply-To: X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPJsWRmVeSWpSXmKPExsWy7bCmqe6BULYEg13XjSwezNvGZrG37QS7 xcufV9ksDj7sZLH4uvQZq8W0Dz+ZLT6tX8Zq8evvenaL1YsfsFgsurGNyeLmlqMsFt3Xd7BZ LD/+j8mi6+4NRoul/96yOPB7XL7i7XG5r5fJY8KiA4we39d3sHl8fHqLxaNvyypGj8+b5Dza D3QzBXBE5dhkpCampBYppOYl56dk5qXbKnkHxzvHm5oZGOoaWlqYKynkJeam2iq5+AToumXm AB2vpFCWmFMKFApILC5W0rezKcovLUlVyMgvLrFVSi1IySkwNCzQK07MLS7NS9dLzs+1MjQw MDIFqkzIyZh5+DNbwTL2ipUHJrA1MDaxdTFyckgImEhc3dgNZHNxCAnsYJR4+HIbM0hCSOAT o8TmB64QiW+MEk+//WWG6Tjw8QwTRGIvo0TLjzdQ7T8YJRbtP8YCUsUmoCnx9OZUsCoRgTNM Etdaz7KCJJgF1CV2TTjBBGILC0RJTD61DcxmEVCV2DDvDJjNKxAtsfnDG3aIdXISN891gq3m FLCUmNmxhwmVzQVU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QuTZjL DJJgFlCX2DXhBBOILSwQIfGh/yeYzSKgKrFh3hkwm1cgWmLzhzfsEBvkJG6e6wTr5RSwlJjZ sQesRkjAQmLhzp8suMQnMAosYGRYxSiZWlCcm55bbFhgmJdarlecmFtcmpeul5yfu4kRHBVa mjsYt6/6oHeIkYmD8RCjBAezkghv6TqmBCHelMTKqtSi/Pii0pzU4kOM0hwsSuK8F7pOxgsJ pCeWpGanphakFsFkmTg4pRqY1r+UujTxW+DsEzFtLvzz3c4eu/5Yf+tdhsy5cvdTd4V/Xf03 54TLiaV3Gm7bC8mLy+3fPGe/3c5NzVkLN+z8YTf5ww3O6Wwrnio+fZ3wR/u5t+l368kf4r6f Oat5ePWkclY7l0VKjbHWybF1HctjfcXaJzAtndr33HXK9B1NAcdO2iSuK+Qwq5v8LizQ4+Oi S2cVPnNdPPni8f6WGG63j7tYln44fbmxcJ56zdrdk/feMnY9vPnwgxPZ6XkHcmcpz12wxyfg oz8H56bpU6eff3VU7qzZs5fv5QriFBuvW86+95I/c98OjtM1q6bLaD/997td+2vJjN6NfNui D8/5FPhIN0F6V4ZO9k83H3EFUV8WJZbijERDLeai4kQAr/a2N/kCAAA= X-CMS-MailID: 20210119034504epcas2p478f76a8f9cb0cbecff219a2098cb2eaf X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210119034504epcas2p478f76a8f9cb0cbecff219a2098cb2eaf 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 |