Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3270874pxf; Mon, 22 Mar 2021 02:13:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgb1AZ7bqqrTFoUYxjZblqN8vfprhz+R/qIjzr2cVytFLvUWotF+Z+UyOzGiD328G4FVN1 X-Received: by 2002:aa7:cdcf:: with SMTP id h15mr24254096edw.28.1616404427054; Mon, 22 Mar 2021 02:13:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616404427; cv=none; d=google.com; s=arc-20160816; b=t/NvAVYHb6Q762ZwJNzkNmLBhdZTpuaM8YeByewMspewlZ8tmYwulfkAqgHFTg5iQO 4/8LQPnPraBrFKo7yq6fFY02yrRb3OXjNksOZ14zo+NTutcV0qGV9uL6Onhlolp4UMtH bl9wTfmVfJOpYcbQ/AFzpk2WYAeC2pFfiZXRtT+vg/Af+yrwSLeTe+IqoPLCtQtXb73D UdC0rZKpp7pUwCqIzEYCs0p22R5BM9HUikPhaIHvWNN8YBSGkBfXC32EcX49ezGr9jAR vgTxp5I1GPIzqGD7AN/ZOMbd+PLvcT8wb3UeqfsqiA9mICtYZogLAoti4nECGzipCrFw GyRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:to:from:subject:message-id :dkim-signature; bh=rt8sUmmGg6DRuuy6vkqqcgcTqYqiVw67z58kK2mPk5k=; b=vAxD43aRczQKTK1OiZRCJnWQynWMBEYtwhFw7w51u1auKxGlpsJWQ3gShVPU8FsiaJ ybfirPpQnTbirhxk6IYQIrDo677m0+AuVG99dJkTYUA8Qg9HNoMoB7b2P8IlALOJkNZ4 kGZ300dHORt2280jQdriQPl4UwJ4UYMylxE/Ib17FjDsqoZHv79m9hw6rvId4k1AavN8 QrDXTgwUbcQ5wefZqxmtFhq0lzqDOv+cPXj2zEaOQ8jvO9zjGgFczC/NM6kQPOPoPBbM FNNlDPynBf/eM4Gjt/5ptpTVXqiqnWu3SYnbQ8qKlNt0nUJarEzvIWl8aGeIxdwma8ql xJCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="OatXRRt/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si11585036ejb.254.2021.03.22.02.13.23; Mon, 22 Mar 2021 02:13:47 -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=@gmail.com header.s=20161025 header.b="OatXRRt/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229703AbhCVJL4 (ORCPT + 99 others); Mon, 22 Mar 2021 05:11:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbhCVJLv (ORCPT ); Mon, 22 Mar 2021 05:11:51 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FDCAC061574; Mon, 22 Mar 2021 02:11:51 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id l18so10148811edc.9; Mon, 22 Mar 2021 02:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=rt8sUmmGg6DRuuy6vkqqcgcTqYqiVw67z58kK2mPk5k=; b=OatXRRt/5h2y97MmXC+3D/inte/KkcWSBr6mitISgSZTerBDbKFrna0w3LK3+9je9m SN/aekaNnGmfoiNCW/u5OtsBccwoZN5m9snV8cIXVqvOigyJk5ut6BDlXr7SsgRr1okY Upnp6Lheh8GNI/qBiL7z/4HZYxaKTZZHEEp6Bd3mh1k0+3HqMg3Hb5ijJ+Rq+7uGeAzZ tA0zb2eHD2QDPLFixOk3qk/rCDSZms7q4MvCHMjPVVkW1L//T5mQ8rjj7/Ov3FFmw7px X21pgC6rh8Cwowi3zrz3GYn9YkaAXYi6mq/0BxMAxo5KMqQYZMsq4dQrj7H2FRjfbI1l oR5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=rt8sUmmGg6DRuuy6vkqqcgcTqYqiVw67z58kK2mPk5k=; b=pcvQN2v6j7HdFCgB3eYl9sbokHdv4GRoHQaCLwhp9k00j54fLW5eAKx8+Ez1Y5k0IL ODjGbRsXnDKdJ0cPdnhL0beKohCeTYBntSiwFkUBktXKYX7lYMDa5C8N+YIdy+APVIDp tMBijRzKMW45u1xj0TKv+UNv0eOxyRbWI9/rSmbBqPS4JW520PT1d9Q4uB0wyxN0iqjc hiTAq38YyZEEMgtU8W6gS8r6aBzYKC6ier0VGTErfKOjyYHnGhrdzai5TtQmhyQ3p3MJ uZjAN4G9vqOefeYIbm1n/dVjokeJtFt2GFYSNzajS/XkFEImAQ8M5UVcFA7ar/cKOwgP GnNQ== X-Gm-Message-State: AOAM533i4bpcWdKVsQa3S3PeVUJRkyueJYP+ioywdavQLgpALqA7q9VJ n+4DBsrdseQBFOCLh1shDIo= X-Received: by 2002:a05:6402:484:: with SMTP id k4mr24154841edv.321.1616404309849; Mon, 22 Mar 2021 02:11:49 -0700 (PDT) Received: from ubuntu-laptop (ip5f5bec5d.dynamic.kabel-deutschland.de. [95.91.236.93]) by smtp.googlemail.com with ESMTPSA id cb17sm11095458edb.10.2021.03.22.02.11.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Mar 2021 02:11:49 -0700 (PDT) Message-ID: <75df140d2167eadf1089d014f571d711a9aeb6a5.camel@gmail.com> Subject: Re: [PATCH v31 2/4] scsi: ufs: L2P map management for HPB read From: Bean Huo To: daejun7.park@samsung.com, 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 Date: Mon, 22 Mar 2021 10:11:47 +0100 In-Reply-To: <20210322065410epcms2p431f73262f508e9e3e16bd4995db56a4b@epcms2p4> References: <20210322065127epcms2p5021a61416a6b427c62fcaf5d8b660860@epcms2p5> <20210322065410epcms2p431f73262f508e9e3e16bd4995db56a4b@epcms2p4> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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