From patchwork Mon Aug 1 03:09:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kiwoong Kim X-Patchwork-Id: 594819 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59856C00140 for ; Mon, 1 Aug 2022 03:13:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238784AbiHADNJ (ORCPT ); Sun, 31 Jul 2022 23:13:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbiHADNI (ORCPT ); Sun, 31 Jul 2022 23:13:08 -0400 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04E0FA46B for ; Sun, 31 Jul 2022 20:13:05 -0700 (PDT) Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220801031303epoutp024d893eaf9f080395dd11e94ab16719ee~HGgHeLx8O1784117841epoutp02h for ; Mon, 1 Aug 2022 03:13:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220801031303epoutp024d893eaf9f080395dd11e94ab16719ee~HGgHeLx8O1784117841epoutp02h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1659323583; bh=IzTJpwJDmv27DqFGcnFFbEYZnoox6AVDGRsU60ndVjo=; h=From:To:Cc:Subject:Date:References:From; b=i8JmxXwGY0pxJTOHtePCpGf1Ron7Rbif39UBezh/jGkzDv5KQ5bhQipLylQ1722yx MKS/WD2sdEvsIHtdmlfAOwvetrRspopzkeJq7QTOtd6L90Ij4Q67VR/CbdINwPqsxU kzEYPqSPbGu0sTVUUJWSQp8hZ7o6V4Q0Jt7ArlYM= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20220801031301epcas2p2f53b8f11b7f52761f5261b2a55d34dd2~HGgGbbOER0653206532epcas2p2_; Mon, 1 Aug 2022 03:13:01 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.36.97]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4Lx38s1syGz4x9Q1; Mon, 1 Aug 2022 03:13:01 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 42.B4.09642.DB447E26; Mon, 1 Aug 2022 12:13:01 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20220801031300epcas2p25866dfc0158ecdd33ef18c44aa23b155~HGgFWtDOs0771607716epcas2p23; Mon, 1 Aug 2022 03:13:00 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220801031300epsmtrp107beaf4b67106b98f0c2178662c1dc07~HGgFV88m_1998119981epsmtrp1m; Mon, 1 Aug 2022 03:13:00 +0000 (GMT) X-AuditID: b6c32a47-5e1ff700000025aa-8b-62e744bdc9ee Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 20.A1.08905.CB447E26; Mon, 1 Aug 2022 12:13:00 +0900 (KST) Received: from ubuntu.dsn.sec.samsung.com (unknown [10.229.95.128]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220801031300epsmtip26a5d52c831d6a24302043c9d36e37293~HGgFHT5Bk0544405444epsmtip2_; Mon, 1 Aug 2022 03:13:00 +0000 (GMT) From: Kiwoong Kim To: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, alim.akhtar@samsung.com, avri.altman@wdc.com, jejb@linux.ibm.com, martin.petersen@oracle.com, beanhuo@micron.com, adrian.hunter@intel.com, sc.suh@samsung.com, hy50.seo@samsung.com, sh425.lee@samsung.com, bhoon95.kim@samsung.com Cc: Kiwoong Kim Subject: [RESEND PATCH v1] scsi: ufs: enable link lost interrupt Date: Mon, 1 Aug 2022 12:09:40 +0900 Message-Id: <1659323380-161341-1-git-send-email-kwmad.kim@samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOKsWRmVeSWpSXmKPExsWy7bCmqe5el+dJBkeXclicfLKGzeLBvG1s Fi9/XmWzOPiwk8Xi69JnrBarFz9gsVh0YxuTxc0tR1ksLu+aw2bRfX0Hm8Xy4/+YLLru3mC0 WPrvLYsDr8fiPS+ZPCYsOsDo8X19B5vHx6e3WDz6tqxi9Pi8Sc6j/UA3UwB7VLZNRmpiSmqR Qmpecn5KZl66rZJ3cLxzvKmZgaGuoaWFuZJCXmJuqq2Si0+ArltmDtC5SgpliTmlQKGAxOJi JX07m6L80pJUhYz84hJbpdSClJwC8wK94sTc4tK8dL281BIrQwMDI1OgwoTsjI2TO1kLTrNX HL2wm7mBcSlbFyMnh4SAicSKH08Zuxi5OIQEdjBKnLn4iRnC+cQocfLhSSjnG6NE485pcC0r 5/ayQCT2Mkq8uLqPDcL5wShxaMZEZpAqNgFNiac3pzKBJEQEVjJJ3Hi1jAkkwSygLrFrwgkg m4NDWMBB4uHvfJAwi4CqxI1rB9hBbF4BN4nleyZDbZOTuHmuE+wMCYGX7BIda4+zQiRcJBY9 aoSyhSVeHd/CDmFLSbzsb2MHmS8hUCyxaZ88RG8Do8SST5tZIGqMJWY9a2cEqWEGOnT9Ln2I cmWJI7dYIK7kk+g4/BdqCq9ER5sQRKOyxK9JkxkhbEmJmTfvQC31kNj7qBvMFhKIlei6+IVx AqPsLIT5CxgZVz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alFuXH F5XmpBYfYpTmYFES573QdTJeSCA9sSQ1OzW1ILUIJsvEwSnVwMTkqLzQJdVU52Gy+/ETPF0F ZufVmg7/Z73Vw6C1dqeL24bWjwmVYlyfBauO7cqc9lf5vO2ZQsmjTbpn63/x59vznm7jfvBW WHXysVM+6eryb2c8Mzquxm1sd1X+1Gnh2L7G06sn5n2NlzmwQfDEV63680UPneqP2v/0Mt3w c2+85vttvN5l27g/nPWYfLAn9E2TWWFD3j+fTNlnpz/z+369JjUtuq/bo9V34qMNz2a0z+Ny S4v1c9myiefixfey2Z0/n38U9Gtt4qyySBaM/vrtBee51Xxh0xuNMlQydT6YTmd39yj98k1Q 70qzeOQCmzjG2B/VLXmlk08WFpyUOSJ+1npul5eWeXhk7lFvJZbijERDLeai4kQAxcbPALgC AAA= X-CMS-MailID: 20220801031300epcas2p25866dfc0158ecdd33ef18c44aa23b155 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220801031300epcas2p25866dfc0158ecdd33ef18c44aa23b155 References: Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Link lost is treated as fatal error with the following patch, but its event isn't registered as interrupt source, so I enable it. --- scsi: ufs: Treat link loss as fatal error Signed-off-by: Kiwoong Kim --- drivers/scsi/ufs/ufshci.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/scsi/ufs/ufshci.h b/drivers/scsi/ufs/ufshci.h index a7ff0e5..0b627f4 100644 --- a/drivers/scsi/ufs/ufshci.h +++ b/drivers/scsi/ufs/ufshci.h @@ -133,11 +133,7 @@ static inline u32 ufshci_version(u32 major, u32 minor) #define UFSHCD_UIC_MASK (UIC_COMMAND_COMPL | UFSHCD_UIC_PWR_MASK) -#define UFSHCD_ERROR_MASK (UIC_ERROR |\ - DEVICE_FATAL_ERROR |\ - CONTROLLER_FATAL_ERROR |\ - SYSTEM_BUS_FATAL_ERROR |\ - CRYPTO_ENGINE_FATAL_ERROR) +#define UFSHCD_ERROR_MASK (UIC_ERROR | INT_FATAL_ERRORS) #define INT_FATAL_ERRORS (DEVICE_FATAL_ERROR |\ CONTROLLER_FATAL_ERROR |\