Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3289089pxf; Mon, 22 Mar 2021 02:49:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZHEJOhhOf4ZwCmqunSixGmo7CT/nMaJsTjZhOd8xbBkTpR8iOiQPRoByv7bidHHulODmN X-Received: by 2002:a17:906:f953:: with SMTP id ld19mr17697023ejb.164.1616406561084; Mon, 22 Mar 2021 02:49:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616406561; cv=none; d=google.com; s=arc-20160816; b=GxcwJ6dEFwnSLMDdKhLMQo9XalpKPL8+Hu9lp6k6E73byhQnkF+M/++AdZiCFXEPyo CMvbOb5wKLjwU+ArWkGTEFcOjpOdyRUawcpEzid1QZYK7wrHe+xGbEaSEwWiBkBn8tvz 8IgCgzRevmtrLHabNbNmfDlG6P3kh+BBmeuYmnwFP29IaIqbQ0UJ539t8iuZqCaaa7Z8 jrvdax225SvVG05aGaxtUUUFPF+T1xW+qBFCZ5uyoMKHndBzeRXXk/0FGvjn1a+V18N1 DtqaTfq36k7ZV3JjrmbB/uYG/uuOXfxcKc2emdjSWa/xg0Gce0CwvS0xp0rQNGY4mE6q vyQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:date:message-id:in-reply-to:to:from :sender:reply-to:subject:mime-version:dkim-signature:dkim-filter; bh=7dGuIZecdaBruMcYMM8KkjPLba2vJ5qoLGcy5+CwqwI=; b=FVgid0saAU4ge6xf2H3QB8Vt8Bx8Q+tugh09UkiaqYG1Kf8o6BoUTe5xl7rDhd4pDU IlO5v6HPuwE6lCzeWtuCaSMckSjpcmi25etQwLAI7k30AQnp80kNoZJfADFAuJxZ6ntN wBZAsQok3QbYBS+Iq5QuI7dw9PwlRGoZDoqlNnkJYc5bVID8vnQVZXJDKLh5oXIEqAga s6qOzCGbXRWGJak272FIlYmlmd/tlqlTaRo5Hvf0pUg+eQqXOQ4satvfQGyrVjZzVZ2h 0fkySLPoxGbgPWNi01t8WiqHjFoUqRhMHEfz0JxELpngTR1lNK7hnRkrmQkiJrfYn8Uy +nYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=illUY39d; 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 jy27si10568662ejc.748.2021.03.22.02.48.58; Mon, 22 Mar 2021 02:49:20 -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=illUY39d; 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 S229810AbhCVJpr (ORCPT + 99 others); Mon, 22 Mar 2021 05:45:47 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:20637 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229912AbhCVJpl (ORCPT ); Mon, 22 Mar 2021 05:45:41 -0400 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20210322094538epoutp0152bbabfd0025d71429fbcfb3a9cff609~uoQAyP6vK0289402894epoutp01e for ; Mon, 22 Mar 2021 09:45:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20210322094538epoutp0152bbabfd0025d71429fbcfb3a9cff609~uoQAyP6vK0289402894epoutp01e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1616406338; bh=7dGuIZecdaBruMcYMM8KkjPLba2vJ5qoLGcy5+CwqwI=; h=Subject:Reply-To:From:To:In-Reply-To:Date:References:From; b=illUY39ddH1ocboKjAwf+8RaWXQD0uetK7M1CPONK0QU9WN217O3XUCY+6twgJpqR OFQF+XcieXvANtLFxFw/v/BPc0JuQ+i9EgfWMZwES8C9vqp4+bS1u1MapjY6/2YVrW 0oscd5Of0PFX8h/Fw0mBzfZplEsOReDzBiy66oqc= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20210322094537epcas2p16586f412839dc719e4af12d377deb4ce~uoP-8fvai0799307993epcas2p1r; Mon, 22 Mar 2021 09:45:37 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.40.184]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4F3qPC30X7z4x9Q8; Mon, 22 Mar 2021 09:45:35 +0000 (GMT) X-AuditID: b6c32a46-1efff7000000dbf8-6b-6058673fac5b Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 6D.40.56312.F3768506; Mon, 22 Mar 2021 18:45:35 +0900 (KST) Mime-Version: 1.0 Subject: RE: Re: [PATCH v31 2/4] scsi: ufs: L2P map management for HPB read Reply-To: daejun7.park@samsung.com Sender: Daejun Park From: Daejun Park To: Bean Huo , Daejun Park , Greg KH , "avri.altman@wdc.com" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "asutoshd@codeaurora.org" , "stanley.chu@mediatek.com" , "cang@codeaurora.org" , "bvanassche@acm.org" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , ALIM AKHTAR , JinHwan Park , Javier Gonzalez , Sung-Jun Park , Jinyoung CHOI , Dukhyun Kwon , Keoseong Park , Jaemyung Lee , Jieon Seol X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <75df140d2167eadf1089d014f571d711a9aeb6a5.camel@gmail.com> X-CPGS-Detection: blocking_info_exchange X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20210322094534epcms2p5b2c0e5b18307f98a17bb385ee64bdc2c@epcms2p5> Date: Mon, 22 Mar 2021 18:45:34 +0900 X-CMS-MailID: 20210322094534epcms2p5b2c0e5b18307f98a17bb385ee64bdc2c Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL X-CPGSPASS: Y X-CPGSPASS: Y CMS-TYPE: 102P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrALsWRmVeSWpSXmKPExsWy7bCmua59ekSCwfVlwhYP5m1js9jbdoLd 4uXPq2wW0z78ZLb4tH4Zq8XLQ5oWuw4eZLNY9SDconnxejaLOWcbmCx6+7eyWWw+uIHZ4vGd z+wWi25sY7Lo/9fOYrHts6DF8ZPvGC0u75rDZtF9fQebxfLj/5gslm69yWjROX0Ni4OYx+Ur 3h6X+3qZPHbOusvuMWHRAUaP/XPXsHu0nNzP4vHx6S0Wj74tqxg9Pm+S82g/0M0UwBXVwGiT WJSckVmWqpCal5yfkpmXbqsUGuKma6GkkJFfXGKrFG1oYaRnaGmqZ2KpZ2Qea2VoYGBkqqSQ l5ibaqtUoQvVraRQlFwAVF2SWlxSlJqcChQqciguSUxP1StOzC0uzUvXS87PVVIoS8wpBepT 0rezyUhNTEktUkh4wpjRsHYbS8F03oply1axNDB+5exi5OCQEDCRaDgU1sXIxSEksINR4tWd v8wgcV4BQYm/O4S7GDk5hAW8Jf5cmMoGYgsJKEmsvziLHSKuJ3Hr4RpGEJtNQEdi+on77CBz RAROskv8fnufCSQhIcArMaP9KQuELS2xfflWRpD5nALuEg+faEOENSR+LOtlhrBFJW6ufssO Y78/Np8RwhaRaL13FqpGUOLBz91QcUmJY7s/QK2ql9h65xcjyA0SAj2MEod33mKFSOhLXOvY CHYDr4CvRNOy7WALWARUJTb3f4Ua6iKx6tNCMJtZQFti2cLX4HBgFtCUWL9LHxJUyhJHbrHA fNWw8Tc7OptZgE+i4/BfuPiOeU+gTlOTWPdzPRPEGBmJW/MYJzAqzUKE8ywka2chrF3AyLyK USy1oDg3PbXYqMAIOZY3MYJzgZbbDsYpbz/oHWJk4mA8xCjBwawkwtsSHpEgxJuSWFmVWpQf X1Sak1p8iLEK6OGJzFKiyfnAbJRXEm9oZmBkZmpsYmxsamJKtrCpkZmZgaWphamZkYWSOG+x wYN4IYH0xJLU7NTUgtQimOVMHJxSDUxyNWtvCk3WNFS1y1X7EejGrnEwoeaW1LSou7kl/swf t+fXB/eynQiPPepcmnfg2vf9x3eb2W50KljFs3J/2M2wUl6P5er156fNzL/783ucxpyWOx0b Gr0CJWVv88Zn3zmpGVL9VMjE7YsMO2elc9qRsOXWs7vZ2R3Ofjwy2dirtuhop3TLlX1J5ndb tMLlt0W8qXHe/+/h9+5jXVppJaHFiYeOz/SRjj73pPzwzO+cAr/PnK3nexMS0WYrceLf4fDk cEZ+gTt+lWlOrIwalmvZXZWd/hhyfWxUXvafZWHHwk+KTT4bOp/e/3C8oz/+cd/fN1tqL58r /L7wlZjJ8zpRIZO16911Uo5tbiu+rsRSnJFoqMVcVJwIACWzs0LTBAAA DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210322065127epcms2p5021a61416a6b427c62fcaf5d8b660860 References: <75df140d2167eadf1089d014f571d711a9aeb6a5.camel@gmail.com> <20210322065127epcms2p5021a61416a6b427c62fcaf5d8b660860@epcms2p5> <20210322065410epcms2p431f73262f508e9e3e16bd4995db56a4b@epcms2p4> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bean, >On Mon, 2021-03-22 at 15:54 +0900, Daejun Park wrote: >> + switch (rsp_field->hpb_op) =7B >>=20 >> + case HPB_RSP_REQ_REGION_UPDATE: >>=20 >> + if (data_seg_len =21=3D DEV_DATA_SEG_LEN) >>=20 >> + dev_warn(&hpb->sdev_ufs_lu->sdev_dev, >>=20 >> + =22%s: data seg length is not >> same.=5Cn=22, >>=20 >> + __func__); >>=20 >> + ufshpb_rsp_req_region_update(hpb, rsp_field); >>=20 >> + break; >>=20 >> + case HPB_RSP_DEV_RESET: >>=20 >> + dev_warn(&hpb->sdev_ufs_lu->sdev_dev, >>=20 >> + =22UFS device lost HPB information during >> PM.=5Cn=22); >>=20 >> + break; >=20 >Hi Deajun, >This series looks good to me. Just here I have one question. You didn't Thanks. >handle HPB_RSP_DEV_RESET, just a warning. Based on your SS UFS, how to >handle HPB_RSP_DEV_RESET from the host side? Do you think we shoud >reset host side HPB entry as well or what else? In the JEDEC HPB spec, it as follows: When the device is powered off by the host, the device may restore L2P map data upon power up or build from the host=E2=80=99s=20HPB=20READ=20command.= =0D=0A=0D=0ASo=20I=20think=20there=20is=20nothing=20to=20do,=20because=20UF= S=20can=20build=20from=20host's=0D=0Acommand.=20Moreover,=20in=20the=20case= =20of=20the=20HPB=20read=20with=20invalid=20information=20by=0D=0Adev=20res= et,=20it=20just=20processed=20as=20normal=20read.=0D=0A=0D=0AThanks,=0D=0AD= aejun=0D=0A>=20=0D=0A>=20=0D=0A>Bean=0D=0A>=20=0D=0A>=20=0D=0A>=20=0D=0A>= =20=20