From patchwork Tue Nov 28 05:35:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kiwoong Kim X-Patchwork-Id: 10078687 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 22A53602BC for ; Tue, 28 Nov 2017 05:35:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 348542906C for ; Tue, 28 Nov 2017 05:35:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2934829092; Tue, 28 Nov 2017 05:35:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, UPPERCASE_50_75 autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53C542906C for ; Tue, 28 Nov 2017 05:35:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751144AbdK1Ffg (ORCPT ); Tue, 28 Nov 2017 00:35:36 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:33150 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750933AbdK1Fff (ORCPT ); Tue, 28 Nov 2017 00:35:35 -0500 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20171128053530epoutp02f9db124227785e0894538be3e4d45b5c~7KSL1Ajyj3212332123epoutp02e; Tue, 28 Nov 2017 05:35:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20171128053530epoutp02f9db124227785e0894538be3e4d45b5c~7KSL1Ajyj3212332123epoutp02e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1511847330; bh=RdXszoySzgHVNfdHqgtHiHAT8hBbSb2ss/KVM+islR8=; h=From:To:Cc:Subject:Date:References:From; b=amHGmg5rfMyr6fhPeEsqlGx20UDLCl5Xu64euu39ogoVkPVqrk90ETyCcd05COMAO lkM9IM/zqwfY/g1zpFOF9Kx0EAtC4NCylcKWQ5+MdKRRvh41Zc+/MZYCI/ALblpO2T R1T1yqeB3z0V19DR/LYv7ltHZHDrJJLg6HqTfzsI= Received: from epsmges1p3.samsung.com (unknown [182.195.40.50]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20171128053529epcas2p1b9f14d38aac2c8b356b8c436bb09747b~7KSLiwQed0886708867epcas2p1U; Tue, 28 Nov 2017 05:35:29 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 89.D2.04161.1A5FC1A5; Tue, 28 Nov 2017 14:35:29 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20171128053529epcas1p37ae00cda0b6f73698e5e887b0c4de8c4~7KSLW-udg0916309163epcas1p3W; Tue, 28 Nov 2017 05:35:29 +0000 (GMT) X-AuditID: b6c32a37-42bff70000001041-cc-5a1cf5a17457 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 93.F5.04148.1A5FC1A5; Tue, 28 Nov 2017 14:35:29 +0900 (KST) Received: from DOKWMADKIM03 ([12.36.155.126]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P0400M0T4V5AD90@mmp1.samsung.com>; Tue, 28 Nov 2017 14:35:29 +0900 (KST) From: =?UTF-8?B?6rmA6riw7JuF?= To: linux-scsi@vger.kernel.org, "Martin K. Petersen" Cc: cpgs@samsung.com, HeonGwang Chu , YOUNGEUN PARK , =?UTF-8?B?6rmA67aA7KeE?= Subject: [PATCH 1/2] scsi: ufs: add some definition included in UFS HCI specifications Date: Tue, 28 Nov 2017 14:35:29 +0900 Message-id: <002901d3680a$b35e74f0$1a1b5ed0$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-index: AdNoCpJo6zeanywER2OIb9LOOpfvHQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBKsWRmVeSWpSXmKPExsWy7bCmge7CrzJRBkd6tCzenPzDZvHykKbF 7AtNjBbd13ewWSw//o/JomPRUiYHNo+PT2+xePRtWcXo8XmTXABzVKpNRmpiSmqRQmpecn5K Zl66rZJ3cLxzvKmZgaGuoaWFuZJCXmJuqq2Si0+ArltmDtBaJYWyxJxSoFBAYnGxkr6dTVF+ aUmqQkZ+cYmtUrShoZGeoYG5npGRkZ6JUayVkSlQSUJqxvTbc5kLdgpWdCwwa2Ds4e9i5OSQ EDCR2L3+D2MXIxeHkMAORon1f1+xQzjfGSX2nfjLBlP18m8zM0RiN6PE7XdzoKreM0pcWHca rIpNwEzi+Z2/7CC2iECwxLKey2BFzAKzGCWOLtnMCJIQFoiQePDuEzOIzSKgKtH06CYriM0r YCnRc/ASI4QtKPFj8j0WEJtZQFNi6+717BC2vMTmNW+ZIU5SkNj96ShQLwfQMj2Jz89qIEpE JPa9eAf2j4TAEjaJJ+c+QL3gInHmyUFWCFtY4tXxLewgvRIC0hKXjtpC1DczSvSdO8IK4fQw Ssz6OIUJosFYYtazdkaIDXwS7772sEI080p0tAlBlHhIHO3dCTXfUeL7439gtpBArMSXBxeZ JzDKzULy2iwkr81C8tosJD8sYGRZxSiWWlCcm55abFhgrFecmFtc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+bg86meb//2D7Z02V3qy5r/tX7J3DKBnKFscx zWquEktxRqKhFnNRcSIA3N6MY2ECAAA= X-CMS-MailID: 20171128053529epcas1p37ae00cda0b6f73698e5e887b0c4de8c4 X-Msg-Generator: CA CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20171128053529epcas1p37ae00cda0b6f73698e5e887b0c4de8c4 X-RootMTR: 20171128053529epcas1p37ae00cda0b6f73698e5e887b0c4de8c4 References: Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP These would be used in the future in some specific drivers. Signed-off-by: Kiwoong Kim --- drivers/scsi/ufs/ufshci.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/scsi/ufs/ufshci.h b/drivers/scsi/ufs/ufshci.h index 277752b0fc6f..1a1b5d9fe514 100644 --- a/drivers/scsi/ufs/ufshci.h +++ b/drivers/scsi/ufs/ufshci.h @@ -157,6 +157,8 @@ enum { #define UTP_TRANSFER_REQ_LIST_READY 0x2 #define UTP_TASK_REQ_LIST_READY 0x4 #define UIC_COMMAND_READY 0x8 +#define HOST_ERROR_INDICATOR 0x10 +#define DEVICE_ERROR_INDICATOR 0x20 #define UIC_POWER_MODE_CHANGE_REQ_STATUS_MASK UFS_MASK(0x7, 8) #define UFSHCD_STATUS_READY (UTP_TRANSFER_REQ_LIST_READY |\ @@ -185,6 +187,10 @@ enum { /* UECDL - Host UIC Error Code Data Link Layer 3Ch */ #define UIC_DATA_LINK_LAYER_ERROR 0x80000000 #define UIC_DATA_LINK_LAYER_ERROR_CODE_MASK 0x7FFF +#define UIC_DATA_LINK_LAYER_ERROR_TCX_REP_TIMER_EXP 0x2 +#define UIC_DATA_LINK_LAYER_ERROR_AFCX_REQ_TIMER_EXP 0x4 +#define UIC_DATA_LINK_LAYER_ERROR_FCX_PRO_TIMER_EXP 0x8 +#define UIC_DATA_LINK_LAYER_ERROR_RX_BUF_OF 0x20 #define UIC_DATA_LINK_LAYER_ERROR_PA_INIT 0x2000 #define UIC_DATA_LINK_LAYER_ERROR_NAC_RECEIVED 0x0001 #define UIC_DATA_LINK_LAYER_ERROR_TCx_REPLAY_TIMEOUT 0x0002 @@ -192,10 +198,20 @@ enum { /* UECN - Host UIC Error Code Network Layer 40h */ #define UIC_NETWORK_LAYER_ERROR 0x80000000 #define UIC_NETWORK_LAYER_ERROR_CODE_MASK 0x7 +#define UIC_NETWORK_UNSUPPORTED_HEADER_TYPE 0x1 +#define UIC_NETWORK_BAD_DEVICEID_ENC 0x2 +#define UIC_NETWORK_LHDR_TRAP_PACKET_DROPPING 0x4 /* UECT - Host UIC Error Code Transport Layer 44h */ #define UIC_TRANSPORT_LAYER_ERROR 0x80000000 #define UIC_TRANSPORT_LAYER_ERROR_CODE_MASK 0x7F +#define UIC_TRANSPORT_UNSUPPORTED_HEADER_TYPE 0x1 +#define UIC_TRANSPORT_UNKNOWN_CPORTID 0x2 +#define UIC_TRANSPORT_NO_CONNECTION_RX 0x4 +#define UIC_TRANSPORT_CONTROLLED_SEGMENT_DROPPING 0x8 +#define UIC_TRANSPORT_BAD_TC 0x10 +#define UIC_TRANSPORT_E2E_CREDIT_OVERFOW 0x20 +#define UIC_TRANSPORT_SAFETY_VALUE_DROPPING 0x40 /* UECDME - Host UIC Error Code DME 48h */ #define UIC_DME_ERROR 0x80000000