Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1884106pxb; Fri, 5 Feb 2021 04:02:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmxxiV81BghBSqbQ2hRBZhhk4q+/KS5DKgI+UEJgyzIr+4Fuq0MdHOcBhyYuhQy9UsTN+j X-Received: by 2002:a17:906:19c3:: with SMTP id h3mr3660052ejd.429.1612526526572; Fri, 05 Feb 2021 04:02:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612526526; cv=none; d=google.com; s=arc-20160816; b=PkOYVNIU6rnkplEwL3lKc+1fk/I7bu6k/9QoXpC8t0x9YhJihcyR8EbCAngigbFaei ebUubdZ6bzcwsI73Tm+LV0NAmBoxLLq1nQlKpeIwP91xamvJZLT0tVRWfXKZxc7PhBIb NHxOcrxd9eZdggjDEpd08vCdi1L9nCFlVtyU/vADrt8+29nD0yMWkd6efnjLityoTeRX Hbyy4l8V/FJpySCDiKiIMmozC17PuN9Nq6ZJbjgoJ083xMbe83OH8JCCEp+MlHlQErMX drJQqplJWJ/uYgE2eAMoR46sq15n83FQbhGK1a6KHI+boaED3Z7d5NBHdX8TJHlfJrws 1ssA== 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 :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=Pca7yULDBNu4TLScGZnnvR4Eqjg+DgmKbpOuQ5aWZ0s=; b=rgkIv5qNRr3n+dvuVWvPmKpQjJ7IJZcbtWFHLOz67GxyPRF1fVBYlspa5rwbUXVqiN ExeSQoezpsE8MqX6IyKeP8s8xZiK7840C11j0/ShoIqRD/g5q4gKUOCqhGBKMS4tna94 1Vl2lfr9msuL/2ow55B8mqpxIq3KF6TdXk/NMBrG9NrurjucqzwXup/NnkAxDIMa3aTN 1kUE88kbSemlof/W1dQkZQO1MEzPlhzTZBZEcd+l1VwTHrAdOprwBkbpTK7DB7jFFcdR LBkq9IdZlUZfh6I2Yst0qzvtxiKay7A/DT1nwO6AJxmyW+fUAI9L+A0Y4Oke6fjRt6a6 TQCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NqXIXDXe; 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 g23si4928250ejf.749.2021.02.05.04.01.39; Fri, 05 Feb 2021 04:02:06 -0800 (PST) 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=NqXIXDXe; 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 S232108AbhBEL6e (ORCPT + 99 others); Fri, 5 Feb 2021 06:58:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232004AbhBELy7 (ORCPT ); Fri, 5 Feb 2021 06:54:59 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F136C0613D6; Fri, 5 Feb 2021 03:54:18 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id b9so11443118ejy.12; Fri, 05 Feb 2021 03:54:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=Pca7yULDBNu4TLScGZnnvR4Eqjg+DgmKbpOuQ5aWZ0s=; b=NqXIXDXe2cfYtChuO9cMWpHpKARL9W/EaCpZLvWv335UJ2i1QuRBJ4PpNn94Ub4jIA A1sA67Jru17CM2nMD0gQbpz/vgmw0IuLUCqhP/JqR0RZt308DQTCge30dAT8B8Mq7Ruy 154+7aYtk9FkquyezgNOFvA42mFI4g+Tlc5IFJrKBnjkErGQnFY4i5NIjORW6SUEBZ+L ZGFXdfhxrFnsJ8Q1BIgo0lj3QQbf7WxIV7QoBZwx5Ig+9D+OuUSR3GvagPfAX8a9vEK0 zIGlQsScU7gT+DzHU92GecJhvQ4zFEL8yURZb85SEFI035oY9g5Y3MmZBBoL0B28Hiv9 oNTg== 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:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=Pca7yULDBNu4TLScGZnnvR4Eqjg+DgmKbpOuQ5aWZ0s=; b=dNaJs4WqEHMRtrCPFAz7yeoHxu6ntUgD2H2yEiEw6a2BZ+sOASPQO2/QSqJevVoW4T MFWYprCefZGjNIIW2G36aoIQX3D89rF+DTpZ4FCwU4j9a4eRviANY3O6+vLQ2Mhiocxb KTjkFS9HW6jLyBXuCVjr/Lkc8WquJnTBAlOu/hiJm65pmLqxodNkbHZmY01ArlvSj4Br JQhb7mmfgwvHs0i1folvcmXPNgwnXRqEzua6s3EyEDqJ0UjCauDVgO1ZhknGDdSvjiJF k2VXsWWnlCv5lPjs1hDbeNuikSg++55WklN7ohnS4aYNkJgC9JL+X7iNdcpBeDETuyOi XSmw== X-Gm-Message-State: AOAM533cYSQ3CsEtz5aw9aPWL/VQADbm48JlagyyHsn18++aXboqhEW3 H1Ba34AE7K/nmOT2oe1/UBM= X-Received: by 2002:a17:906:805:: with SMTP id e5mr3663996ejd.104.1612526056991; Fri, 05 Feb 2021 03:54:16 -0800 (PST) Received: from ubuntu-laptop (ip5f5bee1b.dynamic.kabel-deutschland.de. [95.91.238.27]) by smtp.googlemail.com with ESMTPSA id p2sm3770951ejg.45.2021.02.05.03.54.15 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Feb 2021 03:54:16 -0800 (PST) Message-ID: <527b4233f6118cf7e9d90eb726394d85fe1bb26d.camel@gmail.com> Subject: Re: [PATCH v19 2/3] scsi: ufs: L2P map management for HPB read From: Bean Huo To: Avri Altman , "daejun7.park@samsung.com" , Greg KH , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "asutoshd@codeaurora.org" , "stanley.chu@mediatek.com" , "cang@codeaurora.org" , "bvanassche@acm.org" , ALIM AKHTAR Cc: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Sung-Jun Park , yongmyung lee , Jinyoung CHOI , BoRam Shin , SEUNGUK SHIN Date: Fri, 05 Feb 2021 12:54:14 +0100 In-Reply-To: References: <20210129052848epcms2p6e5797efd94e6282b76ad9ae6c99e3ab5@epcms2p6> <20210129053005epcms2p323338fbb83459d2786fc0ef92701b147@epcms2p3> <218be362c71a9cdb8312f6d8156a0935985aae04.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2021-02-05 at 11:42 +0000, Avri Altman wrote: > > "If the requested field of the HPB Region or HPB Sub-Region is out > > of > > range, then the device shall terminate the command by sending > > RESPONSE > > UPIU with CHECK CONDITION status, with the SENSE KEY set to ILLEGAL > > REQUEST, and the additional sense code set to INVALID FIELD IN CDB" > > You don't need to worry about setting invalid ppn to HPB-READ command > - > you'll never get a read request for those LBAs. > > Say all subregions are 16MB and the last subregion of the last region > is 10MB. > Keep all sizes the same - 16MB, and the ppn of the last subregion > contain some invalid data. > But you'll never get a read request for those LBAs anyway - they > don't exist, > so you'll never get to use those invalid ppns. > > Thanks, > Avri Hi Avri ah, I don't know if your above comments are inline with Spec. Spec: "A HPB Region is divided into HPB Sub-Regions. HPB Sub-Region size is specified by the bHPBSubRegionSize parameter of Geometry Descriptor. HPB Sub-Regions are equally sized except for the last one which is smaller if the last HPB Region is not an interger multiple of bHPBSubRegionSize." It is not invalidate ppn concern, it is illegal request issue in sense key. Kind regards, Bean