Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp31872ybk; Fri, 8 May 2020 13:13:36 -0700 (PDT) X-Google-Smtp-Source: APiQypI+J8dV2bOnkjHZg4lWY1EW2kem+UEYVwKLzqFr+GvJM7IIYvoV5WsAo25Vgw/wjmmTo4r5 X-Received: by 2002:a17:906:7f13:: with SMTP id d19mr3451033ejr.57.1588968816583; Fri, 08 May 2020 13:13:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588968816; cv=none; d=google.com; s=arc-20160816; b=i9aMSzSf1nY2D0JqxC3jiar22aqoSuE8eFpAVPh0670MyDXL5t3555YGHXxNTQwmrV 8bLbmehIEO6/S92fUZf9bqX/SpYimfCwo8xxYvwkzlyWD6Edl9zkb5rd2+Kzkv7kRxB/ HxjeuBgbX0cii+Bf/hEvkl7lkLfHkOO7v16N5cE/FS1LytVf5K3o43h677QhmOB54z2+ kymuJ8ahiiYq16gm3z+8L07mFf9Cxhf2grncpouJ9WDWSoTIpBcd9SKloknNFbF3s03d a31IlnhhzGwosDg32BXwMl98DOQTI/YeyVDSLOZuiS5rCG6jKnEcajHeh0MuDOpfCfbE TdCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=M0td/tVQrd6JWU+Nqfok36GqNdC8dDzRs4sSNx11odc=; b=jleQmQXXu2KQhCBaJVE5h8eWd9VEG1LenaLY3YciBRgWTM/OIEaFw5dCXJYHG/6MUF qPrJAUGxBZknJGlIb6sdHAgdIP9ENZSWkatyp9iseBvWt7WrDl698Ybk07F/2A+N6mi2 X9sAEaYdVu+cFulvWNKbI75DRIfduNWmx1NzUcNJN3ZEB4C9gxtGkpKhybKkWUSe3IGx Ry+N9IXfHj57bQVLIsfhchDYtVLYbWBZ8xZ4/FVDDew8z1CWlvPWm427QV6792/qFxWU IIMJN8h1nIiP/siVuVqndOZ7pAEZcICEOGqL0E8Ztv/MgjQEzeohZTtgLxkNHaFs0kWr NpTg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h5si1692950edn.236.2020.05.08.13.13.11; Fri, 08 May 2020 13:13:36 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727113AbgEHULm (ORCPT + 99 others); Fri, 8 May 2020 16:11:42 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:33444 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726797AbgEHULm (ORCPT ); Fri, 8 May 2020 16:11:42 -0400 Received: by mail-pg1-f195.google.com with SMTP id a4so1363403pgc.0; Fri, 08 May 2020 13:11:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=M0td/tVQrd6JWU+Nqfok36GqNdC8dDzRs4sSNx11odc=; b=Oe3ZoViFiDif47K1+IE90XRud+/MAWzK4VsqgMOWRZplrifsNVbS5rCCXBcvrNX1eZ j9wK9iYH3Ui0pVA/uHfHN09eZ9raTEESFkkIfO+vh2AHF9xicMBOVKZ6DX56Rg3EO17l K49DbEu+xTSJNZSBWpOCpunwm8fR8Bpc1V75Z15CRAJRKlxTx12vlxi0aVdZvPnbAT5P HbD/sDWNULxsQ0XwpQ8Y5pxRD/37ykwUmjkrrPbEMGZkiNXlKuiTvo1JQEXb6T/BZV0o sBqpwoUG092M8KIjsvFgXL/xAHg18F3TLsgXmwvvtnreQ6afupUzu09N/J2ZdiVA3KvW Duxw== X-Gm-Message-State: AGi0PubkqVNQQaAX0C3nur1uoQyWXkBVqYucX4pB63KcF4b+F3+Fmmf1 ae9i+fWu3WeCpUT+k/w4i2UJ6Vkd4pk= X-Received: by 2002:a63:180a:: with SMTP id y10mr3815182pgl.204.1588968701422; Fri, 08 May 2020 13:11:41 -0700 (PDT) Received: from ?IPv6:2601:647:4000:d7:89ed:1db3:8c60:ba90? ([2601:647:4000:d7:89ed:1db3:8c60:ba90]) by smtp.gmail.com with ESMTPSA id q14sm1973399pgq.60.2020.05.08.13.11.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 May 2020 13:11:40 -0700 (PDT) Subject: Re: [RESENT PATCH RFC v3 5/5] scsi: ufs: UFS Host Performance Booster(HPB) driver To: Bean Huo , alim.akhtar@samsung.com, avri.altman@wdc.com, asutoshd@codeaurora.org, jejb@linux.ibm.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, beanhuo@micron.com, tomas.winkler@intel.com, cang@codeaurora.org, rdunlap@infradead.org Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, hch@infradead.org References: <20200504142032.16619-1-beanhuo@micron.com> <20200504142032.16619-6-beanhuo@micron.com> <7b3e127f-a25f-e821-6704-2680ea619c6d@acm.org> <1edda80d569a53e0af28fbe30a367d84f099f8fe.camel@gmail.com> From: Bart Van Assche Autocrypt: addr=bvanassche@acm.org; prefer-encrypt=mutual; keydata= mQENBFSOu4oBCADcRWxVUvkkvRmmwTwIjIJvZOu6wNm+dz5AF4z0FHW2KNZL3oheO3P8UZWr LQOrCfRcK8e/sIs2Y2D3Lg/SL7qqbMehGEYcJptu6mKkywB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ECLkAEQEAAYkBHwQYAQIACQUCVI67igIbDAAK CRBxXD01xc4QCZ4dB/0QrnEasxjM0PGeXK5hcZMT9Eo998alUfn5XU0RQDYdwp6/kMEXMdmT oH0F0xB3SQ8WVSXA9rrc4EBvZruWQ+5/zjVrhhfUAx12CzL4oQ9Ro2k45daYaonKTANYG22y //x8dLe2Fv1By4SKGhmzwH87uXxbTJAUxiWIi1np0z3/RDnoVyfmfbbL1DY7zf2hYXLLzsJR mSsED/1nlJ9Oq5fALdNEPgDyPUerqHxcmIub+pF0AzJoYHK5punqpqfGmqPbjxrJLPJfHVKy goMj5DlBMoYqEgpbwdUYkH6QdizJJCur4icy8GUNbisFYABeoJ91pnD4IGei3MTdvINSZI5e Message-ID: Date: Fri, 8 May 2020 13:11:38 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <1edda80d569a53e0af28fbe30a367d84f099f8fe.camel@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-05-08 07:44, Bean Huo wrote: > 1: driver module parameter, while system booting, specify maximum HPB > cache size in kernel boot Parameters: > > static int max_hpb_mem = 128; > module_param(max_hpb_mem,int,0444); > > but this paramter is added in the ufshcd.c since the ufshpb.c is not a > independent module. looks not very natural. > [ ... ] > If you prefer to convert current HPB driver to be a kernel module > driver, I prefer first apporach. Hi Bean, A kernel module parameter sounds good to me. Thanks, Bart.