Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2227554pxb; Tue, 23 Feb 2021 01:34:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/TT643wFtUh0FFwV2GwoGZLNVGSLDqqTxHHSMhwpLM8B3Wms/kdosfmIj4UHmYXO9OIj5 X-Received: by 2002:a50:cd8c:: with SMTP id p12mr27228741edi.114.1614072860135; Tue, 23 Feb 2021 01:34:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614072860; cv=none; d=google.com; s=arc-20160816; b=TmdicjIpecBDNNCkT2gf8Nx4GcruOyVDfuZtPTgZGWfNLw43n09z4zi6nWTaycrD6c VdgSZN4zdGcwjhqSCa9pr4ahMpraQy4Fnte6jbHx/qZK8c7JBtYfKTtXYzvGC6ePr0sz U+844Z6615+iUN+Tsy7mRhg5iw7MqZH5fHM/JKnNzx84A2Qb5Spm6mYGCdcEsFOdT+qD bq2txg7mGQj9dIo5Bo04F8bmxwrrOketftjCwTyFBng8mxW7+VnaHqOU9A6p21lU3tRH dbaFN+wa/mlkWGbEaCLSgyX4VnxE63KSkeWYrRYI4uIV1DgQf+xwnmXz1UjJBc2JGcV6 cETg== 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=oUeNxPejcwjb4n/U2d5bG02E83g99iYwUvLJIxb+5oc=; b=cnclHjFULC6hlZ9Qp31KwMcud8ounLfBBpY4qYDK7ocq+8RTB4CaOl+enqYx4zQt/E xJuAZvCp7FuwSSzVM55o33OFGKmYCeVFGSd/lLQb+05qz9FsHog47lL9wJru8AOguFVI RU9sfcZemDJUbxxqkv7az0sA3+VmhJp0DZIGDOdxTKI26lHB4GN6Hq0B67V+d/FNv3Tt 9BjQz2IboiNaCG9M0AX8K22CPsHQXg01sgfxj8EnzJq0NdIYwfNxtUWMDUqgJafK8uda a9zfW5jT3WHuJ1bbsDthMk8lDf/4R6v7VTSwxvEIUcWPVdc90ZBhVbyXesTQvmliowv9 U7Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pUKfY99i; 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 j1si14041650edt.398.2021.02.23.01.33.57; Tue, 23 Feb 2021 01:34:20 -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=pUKfY99i; 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 S232288AbhBWJ0u (ORCPT + 99 others); Tue, 23 Feb 2021 04:26:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231394AbhBWJ0a (ORCPT ); Tue, 23 Feb 2021 04:26:30 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F749C061574; Tue, 23 Feb 2021 01:25:50 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id hs11so33538829ejc.1; Tue, 23 Feb 2021 01:25:50 -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=oUeNxPejcwjb4n/U2d5bG02E83g99iYwUvLJIxb+5oc=; b=pUKfY99ijdQixF+dp0MdVO1AAJHWKhBI7ar7mBc0Im9Pz20HEUCe1flLy9AW8b6uEM h81edap9zaUv2iymLgXLzePqh4woAwuUo23+cRZ6bsfYOtq6wqafgjFvnJU7rbgGXhKz 3mXqIkIAqFTwNTJXEztAwckCuQgRA1d7u94oFCnT2L0+S5/Ne7frOaJBKaS7HU7EWmeN xJF+anuZsRZo71ptAl6E/Icn/a2l4xeI2k2lma2vhbtjFI3Bk7X951TVPqCTmNyLJeJi T29LE0Yk19tSyOzy1phtdzm9rwXCu4+2GwDEOaAYQQCuWRMSB4ZTxPtFjex++TeykPy0 LgXA== 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=oUeNxPejcwjb4n/U2d5bG02E83g99iYwUvLJIxb+5oc=; b=LKGJNQeMlOcRoIXa5XlM7npGirWt3le+bZCJzpRpratPzRlzQecgoycDoaZUE1adL/ PvUZjhb7nY2n99FyiiOB9BhAFUbi2Ezey9PuprN4J5Zj3TMj/BHyYqTvWA17GGKYT5dT OFPxzZxhwpSXtStQPlNvOunmjHKSmQ8EkQwxrL4ySPS+bGRUbj6HbF9RPvtd2M1CCvAS ahMiWtLkpDh+0UIEj9jZLwsaUSPyLKIZdjHBiwul1vKfb18LTEhNkLQlK35C8+o79p5J aKCuvrPnBaOd4Oll+mZ+9Pd3cZzR7llxhakh9jQ55AMXcis7nMRNtBS/01aRXM0EV2am SeXg== X-Gm-Message-State: AOAM530ONwwdAQCUcvLeGJlFnGW1hiYwSakUf3jpLnitxqzVz9ouys+1 bgKg6eeMSAsVXFDYmgqNHYQ= X-Received: by 2002:a17:906:c82e:: with SMTP id dd14mr13635439ejb.102.1614072348981; Tue, 23 Feb 2021 01:25:48 -0800 (PST) Received: from ubuntu-laptop (ip5f5bec1d.dynamic.kabel-deutschland.de. [95.91.236.29]) by smtp.googlemail.com with ESMTPSA id q16sm12085425ejd.39.2021.02.23.01.25.47 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Feb 2021 01:25:48 -0800 (PST) Message-ID: Subject: Re: [PATCH v22 4/4] scsi: ufs: Add HPB 2.0 support 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" , ALIM AKHTAR , Javier Gonzalez Cc: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , JinHwan Park , SEUNGUK SHIN , Sung-Jun Park , yongmyung lee , Jinyoung CHOI , BoRam Shin Date: Tue, 23 Feb 2021 10:25:47 +0100 In-Reply-To: <20210222093150epcms2p155352e2255e6bfd8f8d71c737ed05e76@epcms2p1> References: <20210222092957epcms2p728b0c563f3cfbecbf8692d7e86f9afed@epcms2p7> <20210222092907epcms2p307f3c4116349ebde6eed05c767287449@epcms2p3> <20210222093150epcms2p155352e2255e6bfd8f8d71c737ed05e76@epcms2p1> 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 Mon, 2021-02-22 at 18:31 +0900, Daejun Park wrote: > } > } > @@ -532,8 +870,8 @@ static int ufshpb_execute_map_req(struct > ufshpb_lu *hpb, > if (unlikely(last)) > mem_size = hpb->last_srgn_entries * HPB_ENTRY_SIZE; > > - ufshpb_set_read_buf_cmd(rq->cmd, map_req->rgn_idx, > - map_req->srgn_idx, mem_size); > + ufshpb_set_read_buf_cmd(rq->cmd, map_req->rb.rgn_idx, > + map_req->rb.srgn_idx, hpb- > >srgn_mem_size); Are you sure here it is hpb->srgn_mem_size, not mem_size??? if not mem_size, why you kept mem_size?? Bean