Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp443066pxb; Thu, 25 Feb 2021 06:40:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwY699FgGELm45rETwpICCukHTr6989GVFPjZY7/Wxh1MdkKO9U9/vEMtCz+WnwQkfJjxw6 X-Received: by 2002:a05:6402:499:: with SMTP id k25mr3258356edv.294.1614264043025; Thu, 25 Feb 2021 06:40:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614264043; cv=none; d=google.com; s=arc-20160816; b=FRIYWNTMrdl2oTRRpoa+d9EySpy99ZR3SzaefmEAROBTtHU0vD6SVYgY33knaIFPkg oGH0HgmSNUSFt6T6xE7A8WgcAw2kJ+NinkhqnhDia4zsXwge/MwJrSV0TB2kTfADLFga U7vIZECn3FY0Xu7WxwdLGP9taBIRhmwRwVFNxieNbvl1DOzz0PmAXeYOYeJcrXruNJFS LqVe9+FdwtZJZoEcSuh8KSiHS3eKtspbwNcsX76wC8uMtQGUQ68Wwln70IHAmlZZs8Tu q6XEAkCjgOpcDdeu5vAKXE+4Kb/NSQcvjkcCbf+l8Hn+X5eV1ZYYs8M18WeKCW57QYMv DSgA== 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=AGEE2575c0gJxe/ojj9iv1qzlHIKXvtl4Fpc/Q6GFGY=; b=bPrGHywHPD8PgNzQ6CL+vIfeX51/e76uHQGGa2cM+gzk/L7Vdv/O9rr5vLIgvy+WYS 1VGxL2BDedWIk8LA1UVwJP07wxD3tIvLLgHmyUT+3EOB+ivLVggqAq7D9gJm+c47ZI3d 8mJCQV97LS6zqkPqo2z1hKRBQcd4adGsRtx42Xk1tMLVIchGzpSLwCO9ZN8w9iD/vULb C7D3VC5Bfz1lO8afjYwJ+OMUgNODVuNDDOsfwFu6I2V5xuIn1317/OzyRGWl8WckGFm6 RqRgfk8mc5d1+165mPsEO6H2RjDZnYQsGXlVCJvSaR7/QvsjrvtDsuVNbFrcpYL6nJNl 6Bmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=csrT8Uvq; 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 u4si3547165ejy.135.2021.02.25.06.40.20; Thu, 25 Feb 2021 06:40:43 -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=csrT8Uvq; 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 S232588AbhBYOi7 (ORCPT + 99 others); Thu, 25 Feb 2021 09:38:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231815AbhBYOi5 (ORCPT ); Thu, 25 Feb 2021 09:38:57 -0500 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF218C061574; Thu, 25 Feb 2021 06:38:16 -0800 (PST) Received: by mail-ej1-x62b.google.com with SMTP id n20so9259719ejb.5; Thu, 25 Feb 2021 06:38:16 -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=AGEE2575c0gJxe/ojj9iv1qzlHIKXvtl4Fpc/Q6GFGY=; b=csrT8UvqNhfkzlrzmOgHLKaLKSvXagdgJkSte1UVBKonkXeMB2RG7FJ8cDx954OVCa bUuq/IZruM+qx4qEz1aVilOUN5wKd/yICoW2ZOWv6oUIVXbOJ7iTiRzJHY010p1F1tfa 6bwDFy9tjYshwHnLmYhBJWtjM3UAQyfEoOOrTpGv4sQY0LiceSqhprTi17//WZN3EuDV ep3r3KmBns3mPosJUzUerYD84lwZ0Y2aDZIxn/wi/M8a/PM5VIYRJ67y7+i88ikV6SmC wmk2iJwtZ9qQAPUqUpjF/MgXVBCYNessl3DJ7ngMlHOf8z4YI2yIcT3xp3VqNw5dakXw Y/hA== 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=AGEE2575c0gJxe/ojj9iv1qzlHIKXvtl4Fpc/Q6GFGY=; b=KW/9NKqmf8YguFckH2wxm5X+8dr5eV5le1DMIdMXNBxfK6TeP2Odtce3WScTFNQLvt u5TD+4KikuM4txqd98VjRVGH+RaNeyqZucItR5mlNhxF8oFhehLDOab2QxmRlEYKDSgo rY0ID/zjRB5ZGGIH/s4l0ey6597k5szJvnoheLJliW8hBOnsuPHAqQNORK8YAF526A5M z1BrONBL5Kytu3JQwdbJHtEUGvmtqlbgdlNVhYGl/SZy374YBsPfawHzH4muJXvTgZO3 cbyldCl8uwGlc5bnee8KXy6JSf2bUlWs5pIXeBjiCP8GiXrJB0MgvX4+PRf/ji62PCU1 cwtg== X-Gm-Message-State: AOAM532F/ulwsa7Gorsh/0DQruoxdmmsWYK9y8Ez7RDzTdTfZNimiHKZ 7ZExVi2g6Bc0qbbRMtO2iZs= X-Received: by 2002:a17:907:9688:: with SMTP id hd8mr2829798ejc.528.1614263895497; Thu, 25 Feb 2021 06:38:15 -0800 (PST) Received: from ubuntu-laptop (ip5f5bec1d.dynamic.kabel-deutschland.de. [95.91.236.29]) by smtp.googlemail.com with ESMTPSA id r4sm3420879edv.27.2021.02.25.06.38.13 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Feb 2021 06:38:15 -0800 (PST) Message-ID: <50f8a0963e887542a467e690b6d406675279a4e5.camel@gmail.com> Subject: Re: [PATCH v24 1/4] scsi: ufs: Introduce HPB feature 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:38:12 +0100 In-Reply-To: <20210224045405epcms2p2d05f8563b1f121d2c2cc79b343e5af77@epcms2p2> References: <20210224045323epcms2p66cc6a4b73086621e050da37f12f432f0@epcms2p6> <20210224045405epcms2p2d05f8563b1f121d2c2cc79b343e5af77@epcms2p2> 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: > > +void ufshpb_init(struct ufs_hba *hba) > +{ > + struct ufshpb_dev_info *hpb_dev_info = &hba->ufshpb_dev; > + int try; > + int ret; > + > + if (!ufshpb_is_allowed(hba)) > + return; > + Here it is better to check "dev_info->hpb_enable", if HPB is not enabled from UFS device level, doesn't need to create mempool and take other memory resource. Bean