Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3983238pxf; Mon, 22 Mar 2021 22:39:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKXPZDg8zByv1/v8vDN3XNtltsKLl5YVu1J4JeWIhITD8nwD+ZEILfUNfRwaNrm1Z8ZEh2 X-Received: by 2002:aa7:c957:: with SMTP id h23mr2728973edt.301.1616477947801; Mon, 22 Mar 2021 22:39:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616477947; cv=none; d=google.com; s=arc-20160816; b=siNQtkslUDUyAO2SXZykgDLwpdlEjoeeP1Y8+x3c5rbYiJRGkFMB1reaokFMeqjVAy lLXVQuYkwrm29LGIBJHwmaNXdt7J0/iYfh7DpeJJD2WGvdmW9Ze5vNHRNk20c4SJX1Mz Yd9OG3ZWNyrK9pjJ5HXtijzz9A4UpLLZrW4ZUCz7y13yq81dFxQB6PqE4FjnRLNROKvo 06dCFblGIVW2W1qJGdumCks/Rm3hkJrO+P85AyXxnsWYoR57mgkxdbYq4unIYfNjISXH 9KEicRS/50BBD/PcidBkvPAXOB5rf4NlarVA1TgtopAC1BPkop37GirwHZ1NUHn6ZhQ3 MIxg== 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:cc:to:from :sender:reply-to:subject:mime-version:dkim-signature:dkim-filter; bh=uyzlbgbXw381TKZi8Ui8NC3M6tr5mvhpMRk8Yzi6zI0=; b=ur9gjW/eERjNfyvBKUASxpfq4QYoPioyBQm8+4tdnbIf42J7Ji/ggqyZKglcHOMDqB MP4azp7EzeYUG7CMiK0Sw+7zEtv9/a0wmCnUwDA5lLn2iTfhsivPZb2S6F1ifZeiD7b9 y24Q3MnnUcuZx8eNGUGrXmknXsicO07B8UxsdweD3NqTff9K5od7NM+OeZajg5l8Jyvg Wb2dhMK6vKFfn+MhI1krNrwWLuQuwP2/gT+sgvQKLjyfc/G6BVE6u7BC5bMqnzHQdQYG vKNbOTwUQG3GU6weR9jdQzcQx7KOGL7jXR240cNwrNrC5fpQm0pDyOnmGXXmU8T/Wrj6 t3Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=LQZYcBab; 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 z22si13391484edb.163.2021.03.22.22.38.45; Mon, 22 Mar 2021 22:39:07 -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=LQZYcBab; 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 S229693AbhCWFhq (ORCPT + 99 others); Tue, 23 Mar 2021 01:37:46 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:33277 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229730AbhCWFhh (ORCPT ); Tue, 23 Mar 2021 01:37:37 -0400 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20210323053735epoutp047bf9327f3b1dc20004de6b5820dd0f1f~u4guDlCFG2700227002epoutp04U for ; Tue, 23 Mar 2021 05:37:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20210323053735epoutp047bf9327f3b1dc20004de6b5820dd0f1f~u4guDlCFG2700227002epoutp04U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1616477855; bh=uyzlbgbXw381TKZi8Ui8NC3M6tr5mvhpMRk8Yzi6zI0=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=LQZYcBabaYYiUFSZmc2wU1p+GcRS5/jqJtNhaU1gFA5wFbni3fXR1u2G19aZ95ASw K3jE5CvoFDIbPDopRg60ZDsJDeiAPE32DzeF7d0/xATltNbRm250Gyz4DjQyqKOqBT tXmFbDt5cFPFH7iLdLQ0DfjU0TwZBaeUw4e1at18= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20210323053734epcas2p3abb59e35e5052ef078a7d22f798f5e29~u4gtQZIKp0174801748epcas2p35; Tue, 23 Mar 2021 05:37:34 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.40.183]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4F4KrX17MJz4x9Q7; Tue, 23 Mar 2021 05:37:32 +0000 (GMT) X-AuditID: b6c32a47-b81ff7000000148e-df-60597e9bb388 Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 25.17.05262.B9E79506; Tue, 23 Mar 2021 14:37:32 +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: Can Guo , Bean Huo CC: Daejun Park , Greg KH , "avri.altman@wdc.com" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "asutoshd@codeaurora.org" , "stanley.chu@mediatek.com" , "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: 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: <20210323053731epcms2p70788f357b546e9ca21248175a8884554@epcms2p7> Date: Tue, 23 Mar 2021 14:37:31 +0900 X-CMS-MailID: 20210323053731epcms2p70788f357b546e9ca21248175a8884554 Content-Transfer-Encoding: 7bit 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+NgFnrGJsWRmVeSWpSXmKPExsWy7bCmqe6cusgEg1czmSwezNvGZrG37QS7 xcufV9kspn34yWzxaf0yVouXhzQtdh08yGax6kG4RfPi9WwWc842MFn09m9ls9h8cAOzxeM7 n9ktFt3YxmTR/6+dxWLbZ0GL4yffMVpc3jWHzaL7+g42i+XH/zFZLN16k9Gic/oaFgcxj8tX vD0u9/UyeeycdZfdY8KiA4we++euYfdoObmfxePj01ssHn1bVjF6fN4k59F+oJspgCsqxyYj NTEltUghNS85PyUzL91WyTs43jne1MzAUNfQ0sJcSSEvMTfVVsnFJ0DXLTMH6E0lhbLEnFKg UEBicbGSvp1NUX5pSapCRn5xia1SakFKToGhYYFecWJucWleul5yfq6VoYGBkSlQZUJOxvmr zewF3/grjn5oZ2tgnMPdxcjJISFgItFw5TZbFyMXh5DADkaJnh23mLoYOTh4BQQl/u4QBqkR FvCW+HNhKhuILSSgJLH+4ix2iLiexK2HaxhBbDYBHYnpJ+6zg7SKCNhLrGwKAhnJLPCHTWLp rcdMELt4JWa0P2WBsKUlti/fCtbLKWAnceD/W1aIuIbEj2W9zBC2qMTN1W/ZYez3x+YzQtgi Eq33zkLVCEo8+LkbKi4pcWz3B6hd9RJb7/xiBDlCQqCHUeLwzltQC/QlrnVsBDuCV8BX4v/u T2CDWARUJS72TAH7XULARWLvKX2QMLOAvMT2t3OYQcLMApoS63fpQ1QoSxy5xQLzVcPG3+zo bGYBPomOw3/h4jvmPYG6TE1i3c/1TBMYlWchwnkWkl2zEHYtYGRexSiWWlCcm55abFRgjBy1 mxjBCV7LfQfjjLcf9A4xMnEwHmKU4GBWEuFtCY9IEOJNSaysSi3Kjy8qzUktPsRoCvTkRGYp 0eR8YI7JK4k3NDUyMzOwNLUwNTOyUBLnLTZ4EC8kkJ5YkpqdmlqQWgTTx8TBKdXA1HzEYMHt Tq+vk/c2uxn7mGmtiK+V+1S+JPEK164yVYOTPEHfPZMaIqX+xwTnLRd9sO5R4e1vxy5vXPgj 0b5J7vem6roNujmFV83e6Dd9yKh/FrKF7ejpT3bGTDZWiuske/an8DytZm6Mkin/W3GQY77I 9tp37gd7f/duaKj4Y+NmsOrnhgt3FQ/Lxx3dtaqxZ01QC6dU+aQetr4zNc8mdi9y/2uc1Dnh w4/un66qdbFnNvorXf3wyy337i2JQ219Ike+er230Zed8VLxcl/TwX9P7iqkxE2LX76Ap/Tp 5k2CE3um5bSkRS7nd3ESWrn7qYbC5pcnQ85vEXIIzFH8yRob9E9tsccMB1ORqBNflViKMxIN tZiLihMBCfCDI3kEAAA= DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210322065127epcms2p5021a61416a6b427c62fcaf5d8b660860 References: <20210322065127epcms2p5021a61416a6b427c62fcaf5d8b660860@epcms2p5> <20210322065410epcms2p431f73262f508e9e3e16bd4995db56a4b@epcms2p4> <75df140d2167eadf1089d014f571d711a9aeb6a5.camel@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >On 2021-03-23 12:22, Can Guo wrote: >> On 2021-03-22 17:11, Bean Huo wrote: >>> On Mon, 2021-03-22 at 15:54 +0900, Daejun Park wrote: >>>> + switch (rsp_field->hpb_op) { >>>> >>>> + case HPB_RSP_REQ_REGION_UPDATE: >>>> >>>> + if (data_seg_len != DEV_DATA_SEG_LEN) >>>> >>>> + dev_warn(&hpb->sdev_ufs_lu->sdev_dev, >>>> >>>> + "%s: data seg length is not >>>> same.\n", >>>> >>>> + __func__); >>>> >>>> + ufshpb_rsp_req_region_update(hpb, rsp_field); >>>> >>>> + break; >>>> >>>> + case HPB_RSP_DEV_RESET: >>>> >>>> + dev_warn(&hpb->sdev_ufs_lu->sdev_dev, >>>> >>>> + "UFS device lost HPB information during >>>> PM.\n"); >>>> >>>> + break; >>> >>> Hi Deajun, >>> This series looks good to me. Just here I have one question. You >>> didn't >>> 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? >>> >>> >>> Bean >> >> Same question here - I am still collecting feedbacks from flash vendors >> about >> what is recommanded host behavior on reception of HPB Op code 0x2, >> since it >> is not cleared defined in HPB2.0 specs. >> >> Can Guo. > >I think the question should be asked in the HPB2.0 patch, since in >HPB1.0 device >control mode, a HPB reset in device side does not impact anything in >host side - >host is not writing back any HPB entries to device anyways and HPB Read >cmd with >invalid HPB entries shall be treated as normal Read(10) cmd without any >problems. Yes, UFS device will process read command even the HPB entries are valid or not. So it is warning about read performance drop by dev reset. Thanks, Daejun >Please correct me if I am wrong. >Thanks, >Can Guo. > > >