Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp941113pxb; Thu, 25 Feb 2021 20:57:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOHTdR66ynGNWlNDt43RhHPCApgsao3vZiH3uu2Wg3yvTsgNDeZeb9pUpBcc66pYITcaje X-Received: by 2002:a17:906:22d2:: with SMTP id q18mr81166eja.437.1614315425514; Thu, 25 Feb 2021 20:57:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614315425; cv=none; d=google.com; s=arc-20160816; b=NxqZZRxmrUphIxKmYWxM2IF40IP5cqDAsb/bwdD9vHRsVsnmxCD1FIJTigPCEruWx6 RdccaEz6d0fVCapEd3Y2pduUEXaWeXCKqqqIlfdeTvRgKfyBJ+6i55s5hBTqCgaz3xjU qI3idLjMLu9NRFunPr/QmhKDa8EAhZFxFH60GUHxsYVqTiqxsSSnW6Rj1/JwScdw3xdK 6SEZM/YOU6v9/vAoKLRY42qsewnw/IZMHNDvj7a0kx+LlbGbHyc56yn/qfrFn9pD2QS1 /Fe5nkYA3F7k1Q++xpqhElOAaqLjsMb8jPP+ew2lbXueoc/iu4BNtPxbKoTwErmdQCHA /ttw== 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=pp03IT5nIzsMg+G9CsdDb48hXFNgkdc2RK6xVCNBuTg=; b=hzmVW3tv89yFgN/hMSbRXIq+kloKf+POJZ9Pou4ScswbsUvsBY0tcTcYezuFhwalCD jf7bOfAJxErDJLUr/EFQM/PN527VnKhRK/bd3woiXJprxeCHG7n4mvGJTgOgZDnLRfS3 tbrm7XOXIz7HL3F5QLFlvvlZtRucVk+v2+CDeNubt76KGzoG9kqRaFdUQa2Y6b1sXrod YiG6VJBIcbSz9ebE7hdKTn+UNNUUdt6lWRNxBGXY/D0fR/nNizyEZS6Jz9C6sCPKksTC d/WR3WI1ZWTTHRTIdcq8obDSwLD91r2PYSMTn1Jkgv7SFiw5JZV+GfQUNAWgZCtyMTDT AyAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=YkvEUgf6; 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 du11si5586501ejc.473.2021.02.25.20.56.14; Thu, 25 Feb 2021 20:57:05 -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=YkvEUgf6; 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 S229845AbhBZEya (ORCPT + 99 others); Thu, 25 Feb 2021 23:54:30 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:50300 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbhBZEyW (ORCPT ); Thu, 25 Feb 2021 23:54:22 -0500 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20210226045339epoutp04bed5f18ed50cd8e3870d9d5b05526e9e~nMyOnVj_v1435314353epoutp04y for ; Fri, 26 Feb 2021 04:53:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20210226045339epoutp04bed5f18ed50cd8e3870d9d5b05526e9e~nMyOnVj_v1435314353epoutp04y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1614315219; bh=pp03IT5nIzsMg+G9CsdDb48hXFNgkdc2RK6xVCNBuTg=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=YkvEUgf6/STRSLk9xs48b0tWeI//4M0BkCfZfXYIXreX+2n2WVZMsyvzAEa9M5ZM6 MCcHdSdwBpYfvruKPYri+fHv4hAM6yWULbqQ/EVR05I4uoKOlxn6iN1awnn/Rb9dli Fx8bJqruSkPs7sm647HxMoug3lSfMKJGBO1GqBuA= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20210226045338epcas2p3e231265800700dabfbae471ed9dbc204~nMyNcCmEg0322703227epcas2p36; Fri, 26 Feb 2021 04:53:38 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.40.185]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4Dmy3N3Ph4z4x9Pv; Fri, 26 Feb 2021 04:53:36 +0000 (GMT) X-AuditID: b6c32a47-b81ff7000000148e-52-60387ecfe7b7 Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id C5.FF.05262.FCE78306; Fri, 26 Feb 2021 13:53:35 +0900 (KST) Mime-Version: 1.0 Subject: RE: Re: [PATCH v24 2/4] scsi: ufs: L2P map management for HPB read 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 CC: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , JinHwan Park , Javier Gonzalez , SEUNGUK SHIN , Sung-Jun Park , yongmyung lee , Jinyoung CHOI , BoRam Shin X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <23b7d59df2b83cdac53fdb4567c41c007257b436.camel@gmail.com> 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: <20210226045335epcms2p4beca6dda1e809534ac510926362e913c@epcms2p4> Date: Fri, 26 Feb 2021 13:53:35 +0900 X-CMS-MailID: 20210226045335epcms2p4beca6dda1e809534ac510926362e913c 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: H4sIAAAAAAAAA52TbUxTVxjHd+4tvRe2btfysiMk2F2iASN9oxcPDtQty+hG5liyjQRioJY7 SoDS9baEOaPdcIAo8pINsWEoECQBMoRZKKDAYCAsI5sgqMUJRPjADNIBblKFraVlmn3ct9/5 5/+c5/mfk4fEhT1EIJmuNbB6rSqT5vvw2gfCUPgvx1GK9J6VQTPV7Xx0LX+YQAtrE3w0MPWQ QBX2NRwtt1zyQgv9YahxJgHl1bXwUdWoCUPFJRY+un93hUC1t9sxVLJRwEPjXVV8dPqWlY8a rm9gaOqKD6q33AHo1LlmHqqt6eYd9FeO34xTjp8txpSd5t8IZWltH1D2fttMKE+O9PKUf8zb eMqzVxqBcqUtWFnQdxqL90k0gWiVXq1Jz2FFrFadnZquTYuhP/rw7XBEizTZnCGGTpIhuVgW xYgVUWL53sP7ZFKpnKFFWlUWG0PnhnuqaZFerXO6DSxn0LNq1inpD3IGVRor5lRZnFGbJlZn Z9GiHFWm0VlHS/ZHa1hVKqsXpcwBzfLgIy/dLJHbYy0BJpDvVQS8SUgpoOPWNSf7kELKCuDM r9NYESBJAbUNrlt9XR5fKg7al8oIFwspGrbcMBNuXQxts83AxXxqDzw3PE247vGjHDjsmm3A XAecqsdh07wJd3cTwMqCeZ6bg2BHg2Wz2puKhefnqwm3HgofXyr2+P3hnaZFYouXhi4AN/vB r+6Nejzb4Mxat0ffDoe67ZibT0DLXQdwDQGpMwAOdNo8kSVwsrB1cwgB9R5cddzAXYl51E5Y ZRO4LW/B1dGNTQtO7YAdi1WbFpwKgy1dEhdCKgT+aONtpTK1PiH+yzj1MiwcWP9Xt1bPeSbb Bb9ba8FKQYj52Uubn+tlftbrIsAbQQCr47LSWE6ui3j+o9vA5g7sjrWCykW7uB9gJOgHkMRp P8H3G0yKUJCq+uwoq89O1hszWa4fHHWGLMMD/dXZziXSGpJlkVJ5JBOhiIhgFMz/lhl5ZKQ0 ikFMpBzRrwo46UyykEpTGdgMltWx+q3mGOkdaMLq4tsVo1UBMV8m7FF8ajheIRt794eLoSXv 9OQdwjtODj7s/dreU/7C9ZyA4fgH4cl6SeKxn3PNh6Mdc/kIlpXbrlJ/9pky4j/4KeKCpDGO rFjN6QoqnMvNSNqePmncOzlx5OrN1I/La75pDWMO7HqwYNTknbJ/XvB3SPP65ds1jxKenni/ fipqRDjpMK6G9ZSSl4V1uV5H7PvH9qV3LYM3ExMbiZUv+rPmkxTnf5/OULw01BA7cgZLZsvp T4LLbOuS4Ps7DhwKfS2/olan1mBN5qCxobYSmaayaJl8EruAXl86RuYg+dpO36eLL/411Twx MVjaSTveGOBe4Vumh0cei6ZpHqdRyXbjek71D35EJy/RBAAA DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210224045323epcms2p66cc6a4b73086621e050da37f12f432f0 References: <23b7d59df2b83cdac53fdb4567c41c007257b436.camel@gmail.com> <20210224045323epcms2p66cc6a4b73086621e050da37f12f432f0@epcms2p6> <20210224045437epcms2p7ed0a41233d899337ddbd3525fddeb042@epcms2p7> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > +static int ufshpb_init_mem_wq(void) > > +{ > > + int ret; > > + unsigned int pool_size; > > + > > + ufshpb_mctx_cache = kmem_cache_create("ufshpb_mctx_cache", > > + sizeof(struct > > ufshpb_map_ctx), > > + 0, 0, NULL); > > + if (!ufshpb_mctx_cache) { > > + pr_err("ufshpb: cannot init mctx cache\n"); > > + return -ENOMEM; > > + } > > + > > + pool_size = PAGE_ALIGN(ufshpb_host_map_kbytes * 1024) / > > PAGE_SIZE; > > + pr_info("%s:%d ufshpb_host_map_kbytes %u pool_size %u\n", > > + __func__, __LINE__, ufshpb_host_map_kbytes, > > pool_size); > > + > > I think print function name is not proper while booting. > And one HPB is associated with one HBA, if there are two UFS > controllers, how can I differentiate them? I will use dev_info instead of pr_info. Thanks, Daejun > Bean > > >