Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp398114pxj; Thu, 27 May 2021 02:55:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSTT8gbxnFPEoS19i2hr0Mf4SbPqUNSiFgZ/CPbM+CfWekfyycrk/KcAPA5yZPGI2x/W+a X-Received: by 2002:a6b:da05:: with SMTP id x5mr2219505iob.68.1622109308560; Thu, 27 May 2021 02:55:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622109308; cv=none; d=google.com; s=arc-20160816; b=BMqX6hfpX+Us08HGHbPwzLkUxfYJPYiCGNhI/27WQjygT3kqXTSfW1X+CsLaLmqpq+ zkCcy1KW87HGOH2FNk0np30/W6PDxbkRnL92ls1UdqWl53w5hGenqXWxkI98mu47c0pO zechGKo3MgDeze7Wd3UwebgC/EMD0EkbOZphNXo3RfRjax1KBAQNSfUWYohjzzV+wCuu rAaw/mvqgz75C0xnVRXDndElUhn8Zw68Wvy0SaEI4jL0/6KZfngzgwsSimQc5RUaHJW3 715V1yD2jQTjBACAkFFd2QlpDcMlaGSLMMPODxVwEpiMGogySDno9kAtiC36T8+n7g1F Tn2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-language :thread-index:content-transfer-encoding:mime-version:message-id:date :subject:in-reply-to:cc:to:from:dkim-signature:dkim-filter; bh=7WfbE81SCMyMRVK7lE4vZ58sZIrWai68dvEZTsZe7lA=; b=lplUBvTldXONaiy4h2j7zthWB3UO24UrLOMthlu+MxSEN3DU402pYQWTEXKR8kHr7n RrbJIxF9w+40NVvOx7w9cW5ZeEDS/+fffQADW8bL1G2ZWl5Wk80PsrOwELsbaKYGMZOi Cxn+WO9gH4ouREYuyxzs4Nn6zLcKmVqNoVmhNVxyje6yvbAupC8y4CvVRYt1y71M4RoW lchWYi2Vbs1cFMycxBMNgYGF/j3plCaWGXB8RTKmrYHGhDOJyn484yLFfdJPG/PYwQpr aLx7UIjZpIb+G6z/ZcL1Zx2CzNLuArG0zs84OrkVO/FjSvKtrntNM7zAN5dkvYFKhQRp bPtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=rlhxC+ui; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h17si2145015ila.72.2021.05.27.02.54.54; Thu, 27 May 2021 02:55:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=rlhxC+ui; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235960AbhE0JyJ (ORCPT + 99 others); Thu, 27 May 2021 05:54:09 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:12367 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235844AbhE0JyH (ORCPT ); Thu, 27 May 2021 05:54:07 -0400 Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20210527095232epoutp0335b0c96d29f1bd1c3513659aebec2f45~C464bT8pb3028430284epoutp03v for ; Thu, 27 May 2021 09:52:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20210527095232epoutp0335b0c96d29f1bd1c3513659aebec2f45~C464bT8pb3028430284epoutp03v DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1622109152; bh=7WfbE81SCMyMRVK7lE4vZ58sZIrWai68dvEZTsZe7lA=; h=From:To:Cc:In-Reply-To:Subject:Date:References:From; b=rlhxC+uikGFetnWqF+yj4PE2VYqTBVcjTI4xofWLfp6wdNbeCt7IqRHmlBOIX6bWh tbLthl6grmFSmrc/TVdg1VIOJPV3c55sA8jEBERSMApqy5cE0APtxnj40rwNj3Qmm9 JCj6sYtiIHLZtjqivtIhfoeV5WjHxUJluFt2hmvY= Received: from epsmges5p2new.samsung.com (unknown [182.195.42.74]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20210527095232epcas5p29baa6a33b5c47f2476e2989b37465fee~C4635VkfC0914009140epcas5p2B; Thu, 27 May 2021 09:52:32 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id C4.34.09697.FDB6FA06; Thu, 27 May 2021 18:52:31 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20210527081709epcas5p3435cb22c0f50ff9bb334f03da6d44899~C3nmJB9jo0946709467epcas5p3F; Thu, 27 May 2021 08:17:09 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20210527081709epsmtrp12ad81998305d193d3bf2b3338550bbf2~C3nmIQtbu2919229192epsmtrp1y; Thu, 27 May 2021 08:17:09 +0000 (GMT) X-AuditID: b6c32a4a-639ff700000025e1-3b-60af6bdf9167 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id E1.BD.08637.5855FA06; Thu, 27 May 2021 17:17:09 +0900 (KST) Received: from alimakhtar02 (unknown [107.122.12.5]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210527081707epsmtip212be513b26f135089ab2a8dd68f9c186~C3nkKUb102365023650epsmtip21; Thu, 27 May 2021 08:17:07 +0000 (GMT) From: "Alim Akhtar" To: "'jongmin jeong'" , , Cc: , , , , , In-Reply-To: <20210527030901.88403-1-jjmin.jeong@samsung.com> Subject: RE: [PATCH 0/3] Add quirk to support exynos ufshci Date: Thu, 27 May 2021 13:47:05 +0530 Message-ID: <36eb01d752d0$b0146200$103d2600$@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQIDHayZR31s/4hAgTEw4AxRKtdh6QIoW8PMqo4hsrA= Content-Language: en-in X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCKsWRmVeSWpSXmKPExsWy7bCmhu797PUJBgseW1mcfLKGzeLlz6ts FgcfdrJYfFq/jNVi0Y1tTBYrr1lYXN41h82i+/oONovlx/8xOXB6XO7rZfJYvOclk8eERQcY Pb6v72Dz+Pj0FotH35ZVjB6fN8l5tB/oZgrgiOKySUnNySxLLdK3S+DKmLnyF3vBK9mKpb0N LA2MreJdjJwcEgImEltavrN3MXJxCAnsZpT4+HA7G4TziVHizI/ZjCBVQgLfGCW+XeeC6bg8 8TU7RHwvo8TB5cIQDS8ZJWZMWAuWYBPQldixuI0NxBYRSJXYeK2bGaSIWWAxo8Sl7eeAijg4 OAVsJdZcyQSpERawluj6dpUVxGYRUJW4uHsBWAmvgKXErokVIGFeAUGJkzOfsIDYzALaEssW vmaGuEdB4ufTZawQq6wklv3sZIOoEZc4+rMHqmYPh8T3P24QtovEys9TmSBsYYlXx7ewQ9hS Ei/728DWSghkS/TsMoYI10gsnXeMBcK2lzhwZQ4LSAmzgKbE+l36EGFZiamn1jFBbOWT6P39 BGo6r8SOeTC2qkTzu6tQY6QlJnZ3s05gVJqF5LFZSB6bheSBWQjbFjCyrGKUTC0ozk1PLTYt MMpLLdcrTswtLs1L10vOz93ECE5YWl47GB8++KB3iJGJg/EQowQHs5II78HmtQlCvCmJ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5YkpqdmlqQWgSTZeLglGpgunKx3eXhcj3HVkm1 2+uWS2dfDZ22Srqs+7ZO9J3T27JeOmwuWsPz8ovYE4cjkXceK3rsdD7ANj8ka/nv7pMbgnVa H0wPNslRvRX0cdGHbSsKDxxNs2Hsf/7diXUB16b2qqldbM0GqlGFCa/Fli1nyVRwbhPKbZ3z bGNW8Qax7s7/W3b0PGya72TvNfEj+4ZpwSujvPMOifsuWxjtlMl+S8bYSfrXtM1unB99DL2s hVf4r52kco6x//fy3DmaC5UON/7u+HCwUlmhaVLYoxd3T/+O23dXRH1/jcLz+cY+/4vOVZp9 Dg60U2R/s2COZKuv1jzvCw5x1xi+Hfd+0exba7lyizBfplWeyGrLFY2iSizFGYmGWsxFxYkA 8Nyi8SwDAAA= X-CMS-MailID: 20210527081709epcas5p3435cb22c0f50ff9bb334f03da6d44899 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-CMS-RootMailID: 20210527031217epcas2p44b9d999edcc55b345dfd0749acefeaec References: <20210527030901.88403-1-jjmin.jeong@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jongmin > -----Original Message----- > From: jongmin jeong > Sent: 27 May 2021 08:39 > To: jejb=40linux.ibm.com; martin.petersen=40oracle.com > Cc: alim.akhtar=40samsung.com; avri.altman=40wdc.com; > cang=40codeaurora.org; beanhuo=40micron.com; adrian.hunter=40intel.com; > linux-scsi=40vger.kernel.org; linux-kernel=40vger.kernel.org; > jjmin.jeong=40samsung.com > Subject: =5BPATCH 0/3=5D Add quirk to support exynos ufshci >=20 > In ExynosAuto(variant of the Exynos for automotive), the UFS Storage need= s > to be accessed from multi-OS. > To increase IO performance and reduce SW complexity, we implemented > UFS-IOV to support storage IO virtualization feature on UFS. >=20 > IO virtualization increases IO performance and reduce SW complexity with > small area cost. And IO virtualization supports virtual machine isolation= for > Security and Safety which are requested by Multi-OS system such as > automotive application. >=20 > Below figure is the conception of UFS-IOV architeture. >=20 > +------+ +------+ > =7C OS=231 =7C =7C OS=232 =7C > +------+ +------+ > =7C =7C > +------------+ +------------+ > =7C Physical =7C =7C Virtual =7C > =7C Host =7C =7C Host =7C > +------------+ +------------+ > =7C =7C =7C <-- UTP_CMD_SAP, UTP_TM_SAP > =7C +-------------------------+ > =7C =7C Function Arbitor =7C > =7C +-------------------------+ > +-------------------------------+ > =7C UTP Layer =7C > +-------------------------------+ > +-------------------------------+ > =7C UIC Layer =7C > +-------------------------------+ >=20 > There are two types of host controllers on the UFS host controller that w= e > designed. > The UFS device has a Function Arbitor that arranges commands of each host= . > When each host transmits a command to the Arbitor, the Arbitor transmits = it > to the UTP layer. > Physical Host(PH) support all UFSHCI functions(all SAPs) same as > conventional UFSHCI. > Virtual Host(VH) support only data transfer function(UTP_CMD_SAP and > UTP_TM_SAP). >=20 > In an environment where multiple OSs are used, the OS that has the > leadership of the system is called System OS. This system OS uses PH and > controls error handling. >=20 > Since VH can only use less functions than PH, it is necessary to send a r= equest > to PH for Detected Error Handling in VH. To interface among PH and VHs, > UFSHCI HW supports mailbox. PH can broadcast mail to other VH at the same > time with arguments and VH can mail to PH with arguments. > PH and VH generate interrupts when mails from PH or VH. >=20 > In this structure, the virtual host can't support some feature and need t= o skip > the some part of ufshcd code by using quirk. > This patchs add quirks so that the UIC command is ignored and the ufshcd = init > process can be skipped for VH. Also, according to our UFS-IOV policy, we > added a quirk to the abort handler or device reset handler to call the ho= st > reset handler. >=20 > jongmin jeong (3): > scsi: ufs: add quirk to handle broken UIC command > scsi: ufs: add quirk to enable host controller without interface > configuration > scsi: ufs: add quirk to support host reset only >=20 > drivers/scsi/ufs/ufshcd.c =7C 13 +++++++++++++ drivers/scsi/ufs/ufshcd.= h =7C > 18 ++++++++++++++++++ > 2 files changed, 31 insertions(+) >=20 We do not encourage adding QUIRKs without having actual code that sets thes= e quirks, so that we understand how these are actually getting used. So better you post the all the changes, not just quirks. > -- > 2.31.1