Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1494834pxb; Thu, 4 Mar 2021 12:52:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxG85ARl7HhUdw9JmzSOXPUwJcxa1oy0wfsPJ7y2kjzrCB6WwyyRSd4ftVJLmeKWujJKVcE X-Received: by 2002:a50:f314:: with SMTP id p20mr6454106edm.236.1614891123467; Thu, 04 Mar 2021 12:52:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614891123; cv=none; d=google.com; s=arc-20160816; b=mH1a0DdzH6H9QNd48bJ3ZceuB+YZjfZfOg/q/3oyatNJeHAFQxL/RmnfVg6zO/Sf2y SM8NRDljG36eVPvm24bz4PnsO8KLE8JMYfUQ+sX/U85YamxEheKisAo3qDjqHI6lTeK/ 8H2Azalbixh6KuH3eFvvsK7WvQ6+UTQOEFYgX92i78SPfAZwW26SCrTLR41rZnjYqMR6 VcmXC7T9nl8XYDI3uZ4tb04XzWhELciK5IAt/ZV/x4KS6/Z4/h+YUgNlwRRZmXVXKAp2 VjtCPwRjr75kUV7xOM551Uas/dm7JKzTZBQrPfBS4YEVv4ttfE7KSvXLs34AfRln26h4 vORQ== 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=i3E2/xKVUq7q+TKnA0ChUWF73Ydf8977NkXsMuAKG1M=; b=QiY+72DlJbwOPzhw6OAOPBT4uelGkY9RXF5LJedTL8NTGqhRT3hHdum0KAU6+n7/wN pU1KK6j+4URXlY7XMp5aex1jHm8rDu3IExaUSDwEHL0FmKcY9M1/tqdk6/NwflzszMAo XpoTUpUGW+FSXs7bmRhlml19WX/7FFplcv+Tij7w8ANWZPI8oigA0gzCUKU0zf8Z7s6h tB/5FdcpvkAEF63/ygxge6B2aXUyOU6Y5CD58jcP0RAQ6pn0HmwDIQ3sKTBfJM9k+M6J VcJgK29jOZjoeAylmE9flBDTdZoCI+pbZmN/ZqwdTlfmLxXCPKqIl0K7SB3guo9BtBft Hw6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=dhRVu28h; 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 s3si409479edx.251.2021.03.04.12.51.35; Thu, 04 Mar 2021 12:52:03 -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=@samsung.com header.s=mail20170921 header.b=dhRVu28h; 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 S233585AbhCCLYw (ORCPT + 99 others); Wed, 3 Mar 2021 06:24:52 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:28990 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232171AbhCCC7D (ORCPT ); Tue, 2 Mar 2021 21:59:03 -0500 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20210303023229epoutp04741cc31718ba468ca37d8c3ba53292ee~otFZSrMaY0357203572epoutp04Z for ; Wed, 3 Mar 2021 02:32:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20210303023229epoutp04741cc31718ba468ca37d8c3ba53292ee~otFZSrMaY0357203572epoutp04Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1614738749; bh=i3E2/xKVUq7q+TKnA0ChUWF73Ydf8977NkXsMuAKG1M=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=dhRVu28h/7km9VRct0JH4ljkk9DBBn3UKPwQdcvPBWl7QQGOwLmb/da+DjIFo/0LY xF2F1aOf95olxggaeVhtrM03/6dD21LAc61sZabxMsiWyie0sJEGdRSbufKkZxEzjJ iRzEi1Va8jZEY/qXhCgiLtMgVbwqnH5+d+WlOJ2g= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20210303023228epcas2p213d6724cf19532c9b582994130826eb0~otFYZ4eDW3238732387epcas2p2x; Wed, 3 Mar 2021 02:32:28 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.40.187]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4DqyhC1QR4z4x9Pt; Wed, 3 Mar 2021 02:32:27 +0000 (GMT) X-AuditID: b6c32a46-1d9ff7000000dbf8-ee-603ef53b5ec3 Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 88.2A.56312.B35FE306; Wed, 3 Mar 2021 11:32:27 +0900 (KST) Mime-Version: 1.0 Subject: RE: Re: [PATCH v25 4/4] scsi: ufs: Add HPB 2.0 support Reply-To: daejun7.park@samsung.com Sender: Daejun Park From: Daejun Park To: Bean Huo , Daejun Park , 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 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: <20210303023226epcms2p4b7a87abe2993806df0a1957628a5fba6@epcms2p4> Date: Wed, 03 Mar 2021 11:32:26 +0900 X-CMS-MailID: 20210303023226epcms2p4b7a87abe2993806df0a1957628a5fba6 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+NgFnrMJsWRmVeSWpSXmKPExsWy7bCmua71V7sEg4Uz2SwezNvGZrG37QS7 xcufV9ksDt9+x24x7cNPZotP65exWrw8pGmx6kG4RfPi9WwWc842MFn09m9ls3h85zO7xaIb 25gs+v+1s1hc3jWHzaL7+g42i+XH/zFZ3N7CZbF0601Gi87pa1gsFi3czeIg6nH5irfH5b5e Jo+ds+6ye0xYdIDRY//cNeweLSf3s3h8fHqLxaNvyypGj8+b5DzaD3QzBXBF5dhkpCampBYp pOYl56dk5qXbKnkHxzvHm5oZGOoaWlqYKynkJeam2iq5+AToumXmAH2opFCWmFMKFApILC5W 0rezKcovLUlVyMgvLrFVSi1IySkwNCzQK07MLS7NS9dLzs+1MjQwMDIFqkzIyXjy6gxLwT7m ir4Ja9gaGM8xdTFyckgImEg8u9jG1sXIxSEksINRYuGHY8xdjBwcvAKCEn93CIPUCAvYS3w8 288IYgsJKEmsvziLHSKuJ3Hr4RqwOJuAjsT0E/fZQeaICCxlkZhyfBkziMMs8ItJ4sTjD4wQ 23glZrQ/ZYGwpSW2L98KFucUcJc4+/oHO0RcQ+LHsl5mCFtU4ubqt+ww9vtj86HmiEi03jsL VSMo8eDnbqi4pMSx3R+gPquX2HrnFyPIERICPYwSh3feYoVI6Etc69gIdgSvgK/E06/LmUA+ ZhFQlXhwTxqixEViza8DYPOZBeQltr+dAw4UZgFNifW79EFMCQFliSO3WGC+atj4mx2dzSzA J9Fx+C9cfMe8J1CXqUms+7meaQKj8ixESM9CsmsWwq4FjMyrGMVSC4pz01OLjQqMkCN3EyM4 tWu57WCc8vaD3iFGJg7GQ4wSHMxKIrziL20ThHhTEiurUovy44tKc1KLDzGaAj05kVlKNDkf mF3ySuINTY3MzAwsTS1MzYwslMR5iw0exAsJpCeWpGanphakFsH0MXFwSjUwxeaduHB1tU7F H27m8m9dDhc/BS56w7Lk313Lab9fs/Bwfjj4I/V26dx5FkHarhuCIxZHdscp/TVi/cx+p89h fdbvpzeWWrGof73GsHrmV+8VM8KXvJjBZu5ou+t8b/LR/qA/GndnXj2s5dknPOtkof8rAQ5f uRP7rzHyCxqx+u/WvnNY45mkcf3p/5xf955lvWjufE5/8/dzJ/kZ8szMF/67tm/B3zdPg/8H i7W7cK9R7zvytTNI1Xyf0PM2a40p8q9VxQ31k6/PWVD+aVvKzfTkt/9E9i//0fN90nPXvOuJ uic/NF+19nkwcV33xWfNMX4tf4xffz9mrPzrv9PC6xxnjJuts4/MyOCqdeX/e0qJpTgj0VCL uag4EQCDcB0kdgQAAA== DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210226073233epcms2p80fca2dffabea03143a9414838f757633 References: <20210226073233epcms2p80fca2dffabea03143a9414838f757633@epcms2p8> <20210226073525epcms2p5e7ddd6e92b2f76b2b3dcded49f8ff256@epcms2p5> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > + > > +/* > > + * 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. OK, Done. Thanks, Daejun