Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp460166pxb; Thu, 25 Feb 2021 07:04:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJx33Io0PFImcUI8/h3oXYyWOjoHo2Uv1E88GNvQ/NGzv97sOWdKI6Pbz0r5sPwREoa1nPaC X-Received: by 2002:a17:906:398c:: with SMTP id h12mr3056060eje.469.1614265440124; Thu, 25 Feb 2021 07:04:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614265440; cv=none; d=google.com; s=arc-20160816; b=QLSmAZ0abuijE8KQEJnWuM6F2EVBl5WV5UuKrMpj7BWgQdN4n2cAFC49XxhSK28KtA uLeUZSiamZTYAe7OKUk57pSPv004T58qCsufDwNN0DFTHkrYk8cTMbhnA1HLsdVIOPXs stsPKKoa1Q8gxaVyIfWQxhN5sOXmb7virxYalvSRB3ZoQ/XWndO9M6XKEQlMB+abhmh6 pe+M6HI45YrhjQEEgI6sg2JiWItMI+67XwSYeQKNHW5cI3fUiWLgHMtahplSAJW6V6pT hs05rJsS2zTElILYF++nq+xbFXjtlKXCxZsdLjji96dahzNf/9o1raTa6EPTsK/haPGp WcPQ== 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=KdvCOoGwc01pWj3zqit8lvG+zKUB7O20UVPK03THNP4=; b=B1OcUAxATQaHt9xXHguaMffvkd4cv6WmG/5lGhTQM7NZ79RSGzvSwnCRHUXb/drCyZ GaynqVZqXmW7RqSv2UXwvyh7iUlzeUB4Y2Ha6moO6dAXVUHq7X9iXO+tybBL6fhV/pqj B06LLIcM5kX4wCb+xAXgcrpbYINDpUjLGZAU3SzgvqCYoFxcTafmjOk2eSlyrPoMRUdK X9dLAIHyu0bxmUG21idLcvS+nTyX3gXJg0RSirlnn3u//UC6GRod134YxweyI3XfBWV4 KsuYAazrA0LRtpQD8evBULh5qIIJqmcLdaRDdWDJ+FLEfz/CcAGC4+fXQZpYSeXgwMdL X4mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aiB780fq; 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 w15si3523623edx.158.2021.02.25.07.03.37; Thu, 25 Feb 2021 07:04:00 -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=aiB780fq; 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 S231843AbhBYPAC (ORCPT + 99 others); Thu, 25 Feb 2021 10:00:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229961AbhBYO7z (ORCPT ); Thu, 25 Feb 2021 09:59:55 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2D8FC06174A; Thu, 25 Feb 2021 06:59:39 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id mm21so9076891ejb.12; Thu, 25 Feb 2021 06:59:39 -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=KdvCOoGwc01pWj3zqit8lvG+zKUB7O20UVPK03THNP4=; b=aiB780fqG+lMV0qHVrbZKuWfDRwQ555saLIEqG9xmXTWW3j5ZH4bsrNLh2Ri8oKLqV h1BSGhj53+kXfUuxLmHzE4aSeYBfbU1JTBC7VAesQM3d/wTaL302bwm6PMwH9Cfx8k8M XnFSAJJ0RwsS/omDxOXcrcfO2DM/GhuUXsBdlpzszutJtBc9bwQ+hEglG+hj5d9hEjty 2ZgvEkJCJ21szGtlotNGWpGjy66gzWrnWBno4Wh/Ry087KSlSgGO0JbJS0iGT4sdxFD2 ajeuFBd48Bj/joqs9Ogzn7Zs/UcV+qLA8MoSz8E3R+q5Ylnbd71So7r20yWiTpuxiyHO yXpg== 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=KdvCOoGwc01pWj3zqit8lvG+zKUB7O20UVPK03THNP4=; b=dQGtF6Ps0EqJK9ALFjZ8dyE49x0TTYSjzdtWRXmcH5bN1582FqD+NkhLhyLD/jjaqb JFDZrSOqYXrgpdPoLItM1xfpaL9t/KNxiuV3daO0w2ZdYWCgGUyWj129MENrEDJJmxdg XhvUstw7SE5Mqt3ksMpFuSRF2vAIgNmtyvzpnkm1gMQkUc6SNzG/waafzTdBCJ3RmW00 US27xxaDBwevAVg1R7Gv6a5vXopy5RwFqdtxdq1CMPzKTubFmZE3iIw7yqa6jyolLir+ tN1xJrzrAXQgVbiLp0LU9TWQsTscLz+qYzJHVqDbxbX3g7iz84w9pjeKKICtxbbnW1ou ArrA== X-Gm-Message-State: AOAM530z/cqymxlDs5fa13kcuJQHNLBK9lBQKV/NB1YzkkjKmpiFff6z NXjpVCmsJ6mU5Ms7a2Rln74= X-Received: by 2002:a17:906:6047:: with SMTP id p7mr3011865ejj.400.1614265178501; Thu, 25 Feb 2021 06:59:38 -0800 (PST) Received: from ubuntu-laptop (ip5f5bec1d.dynamic.kabel-deutschland.de. [95.91.236.29]) by smtp.googlemail.com with ESMTPSA id r5sm3141799ejx.96.2021.02.25.06.59.36 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Feb 2021 06:59:38 -0800 (PST) Message-ID: <23b7d59df2b83cdac53fdb4567c41c007257b436.camel@gmail.com> Subject: Re: [PATCH v24 2/4] scsi: ufs: L2P map management for HPB read 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 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 Date: Thu, 25 Feb 2021 15:59:35 +0100 In-Reply-To: <20210224045437epcms2p7ed0a41233d899337ddbd3525fddeb042@epcms2p7> References: <20210224045323epcms2p66cc6a4b73086621e050da37f12f432f0@epcms2p6> <20210224045437epcms2p7ed0a41233d899337ddbd3525fddeb042@epcms2p7> 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 Wed, 2021-02-24 at 13:54 +0900, Daejun Park wrote: > +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? Bean