Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp958457pxb; Wed, 3 Mar 2021 22:31:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzzdNlnin2OWpuidmrMgG/20Q0sBB/Pe216mvgprsvEsLWzRSAnjxlXsG2F3Vv9RCtPRL+D X-Received: by 2002:a05:6402:22bb:: with SMTP id cx27mr2693217edb.148.1614839512188; Wed, 03 Mar 2021 22:31:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614839512; cv=none; d=google.com; s=arc-20160816; b=I9NYNU0rCA6sbFwHh70Y0MW8aJq0Zp/iB5KxCC06Ypz5SHvgryHFEApKA7R4bDnWbX XuxQkWOrSPbjp2eGQAMyn5k5rW/jjBX4CiNQ3mu33k9RGOy8ylAoOqvpvDH5aTxXe7WI LgIcCGvnLQ4i5C4lA57wXdETvZQ4pS8Z5dqQgYZwVBO9dWPMA8hI0mJ0PCbsyDe7HcKL ln9MOgOajM9soQFu3lNf8zlSl10ZdOyiSUfCVO1Hwlb0ybvwwH2X9ZxlJuD1PZygG0ZN y6Nkh6FZqaiy4th+qJ8l6VmDs4QJ37KSNe7HX7eVnG0e88NjPgo+mdkRzLHw/5YJnQwm O2vQ== 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=PJEEKD0ZqT1c9UTQN+/5T3c6Vm2BFnBI5jKv2Cyez3c=; b=c5efkUhAFjYnccHsg/qmwqcDXn7fdo/qD0w2vxeluELMqrlwdmFQVhvlDWc0Lfa2ny aqb1dG55HZzBDEy1Ijxgmu26FD6X4q3IMD2CwVTFQIY7FMZX8khuJnGlbs1hgITSt9Ue vXg8TYmPEgMrHi3FJah+WhDeYdwCExF4vPokwqAwmNg1SbEqTSpEnfCXAt45JSZz2iAw Uen2bKVTe7ZDMERZBTOp/lZj8urDWiQyVGEwVjUPIAbN0+D3t0ebCR4d1riLprzMTwcu kAxVkwtlHJ8sErz/2qbNYRdJcfjAQz6UrwXV4/wJH2JbZ6NsIacb3OtfO+hQa4EfRyK9 yEOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r7z6GR1P; 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 u7si3469067edo.259.2021.03.03.22.31.30; Wed, 03 Mar 2021 22:31:52 -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=r7z6GR1P; 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 S1579473AbhCBQ56 (ORCPT + 99 others); Tue, 2 Mar 2021 11:57:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381966AbhCBO16 (ORCPT ); Tue, 2 Mar 2021 09:27:58 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77BDDC06178A; Tue, 2 Mar 2021 06:27:09 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id mm21so35294699ejb.12; Tue, 02 Mar 2021 06:27:09 -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=PJEEKD0ZqT1c9UTQN+/5T3c6Vm2BFnBI5jKv2Cyez3c=; b=r7z6GR1P02KelMOnsQBVVnGnNaKtaeGhwwNn1XWKDajbceLrR0tBRQHm0qwfJh/lm3 zlOHG4CH16E/ALRPxxWXqAo5tJ04IL6jIvxFoDgEzseJ9d//kQBKCMGqqn14NRxqPESj Z6U68O21ySBf5Zm1F/8R1JgyG995N57jaO9tPw7sm/12Cd+4S6N23/Z6GCCpwZ0xK8kd RRVdagSjEyYU6w64ucK1bILxyRKyx9mOs4Hvyv0+LuFteuPOjk3I4lO/vguUKK23tGh+ c14OZ/yg65vVZn0eRmhKVr0d+KddQ/aES4TvOV8jBWUVs1uXEcra4Kqsmnq6dNe356Y3 6rJw== 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=PJEEKD0ZqT1c9UTQN+/5T3c6Vm2BFnBI5jKv2Cyez3c=; b=NThSdo7gM+WAxIqLs+ER1+d5iEYTOzJKrhx7nJeMB0nXG24EbUxS+I1uIFowGMfBxR gkftlfMeWoC10LuAc5g5NG7manrWd8RUU320vi3GuAAXaTJ69Mko1FIp/h77vNv68EdB QIChsRBrjCWPvkvROHB7Q4qxL+psDewd1WqpB+VJUWZSPeGySqSr7SGzvGvRXG99a6Ff PoduvHu6XxuZ0v6GtRu0EYEKXE2i04qYt1O4TDI1AooVJb1aFDEMS3TcfTYjVqdBktqG XrePyGYdxGbawur4hg9wa1q5oNwocLbkYDRSylR9Ct0cNNvmNacqWOD8/wS5WdRj84m4 Xbpg== X-Gm-Message-State: AOAM532KbXWCwFOHHPp28iQAu6ymE6CkVNXqUGL0QaCN/1/HwcHmA25l cwjV36j4JbrbzRcwcA2P5+k= X-Received: by 2002:a17:906:63c2:: with SMTP id u2mr20708201ejk.346.1614695228198; Tue, 02 Mar 2021 06:27:08 -0800 (PST) Received: from ubuntu-laptop (ip5f5bec5d.dynamic.kabel-deutschland.de. [95.91.236.93]) by smtp.googlemail.com with ESMTPSA id i17sm20170143ejo.25.2021.03.02.06.27.02 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Mar 2021 06:27:07 -0800 (PST) Message-ID: Subject: Re: [PATCH v25 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, 02 Mar 2021 15:27:01 +0100 In-Reply-To: <20210226073525epcms2p5e7ddd6e92b2f76b2b3dcded49f8ff256@epcms2p5> References: <20210226073233epcms2p80fca2dffabea03143a9414838f757633@epcms2p8> <20210226073525epcms2p5e7ddd6e92b2f76b2b3dcded49f8ff256@epcms2p5> 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-26 at 16:35 +0900, Daejun Park wrote: > + > +/* > + * In this driver, WRITE_BUFFER CMD support 36KB (len=9) ~ 512KB > (len=128) as > + * default. It is possible to change range of transfer_len through > sysfs. > + */ > +static inline bool ufshpb_is_required_wb(struct ufshpb_lu *hpb, int > len) > +{ > + return (len >= hpb->pre_req_min_tr_len && Here is wrong, should be : len > hpb->pre_req_min_tr_len. Bean > + len <= hpb->pre_req_max_tr_len); > }