Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3623485pxb; Sun, 31 Jan 2021 23:32:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuGeDX/ZxH0IJsEHfFs0nJv0EYl62T+GiZZOVTSYQGx94/nFk7CEs/7qQrcKGjVlakJKYx X-Received: by 2002:aa7:d5c5:: with SMTP id d5mr4261740eds.139.1612164776686; Sun, 31 Jan 2021 23:32:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612164776; cv=none; d=google.com; s=arc-20160816; b=nuhdq4WSEhaLMxYY7Km/hfe1fNLiQ775ighgUFTrSxqoQSBnNM7ZQuSdCYcYiQiJuB xZKWZMA5Jb8mu3W7jK8LVvFb/F6wAf16uo+R83S1TGCPkjVLUVVQrImwcLj2x24Y696S NTRjYyo006Dou+i5Zo/zTHWZNAesQgndnCfkAJTOpdP1fHKJrznDNdQRrKEZ5cN6QkeE gaHeMAfGIgGPXGy7XVugeyO6UUGJN5wTOT0lLGuw6kyQjJ6eFndXAB/SiGIlRk5x2KfB eBFjFl9uKIm9aZI6tr2oTbhmGw50Ri5kQ2ZUMhr8Qp8HUkBXas7QCvTPHx56wmNQcv3U cA/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=D62vvRmGaPZcpBFTWi3LIs5384BWF0N3E7NyVsiVAz4=; b=QtyNgX4zdZfkqgyGQV9piFear9dy74otyO0FWg6VvPPtrApXgQruyyXgW2mj6GxOsU GL9b66vXylR/iB4wScBE2bPiWBM/LLZTFD74Bf0s/U1pCKMelN7k/GzeVZ31YWcd1G8P xtA7AK8xc2eNK559MloDkZSCiOoTw2REDRh80WNHF2ZCCKUGUg6tehZdXPCgaALHcDVc fn2BgBbSy5C8/600VBBmYUfVjqy9xQPzRXyq2pFQkplgjxB7cM2PYTNuOi+GFzYpJE5Q j5ROdL4m6BNMFOV+rJGvtWEDb7Mz2LlJS20axJ6ekklWi1b3nwl0+dUmBZ1UyQ8Tjbcx jtTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=M5GVHysd; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds8si9440320ejc.713.2021.01.31.23.32.32; Sun, 31 Jan 2021 23:32:56 -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=@linuxfoundation.org header.s=korg header.b=M5GVHysd; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232032AbhBAHbi (ORCPT + 99 others); Mon, 1 Feb 2021 02:31:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:39214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230264AbhBAHbf (ORCPT ); Mon, 1 Feb 2021 02:31:35 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8995264DD8; Mon, 1 Feb 2021 07:30:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612164655; bh=N57ktDJC3aGWz+f41E6ISG/c9UMTTQ0q+tcDH7dDLAg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=M5GVHysd7D7mUYdyRUpUhpyt1Gq4BrIofppQRKTJkFKbysDNuq03c+6CP6C2RU2KY yJ2k2Zd171U0rWzsH3e6dYNjVVS3qxkvOpUpU0kcN7hynwiVek5nfRSYgo4g6wScvv SjTwg7T4Mo/pk5guWTTepGtVuqDbLg1QP8W1uA0M= Date: Mon, 1 Feb 2021 08:30:51 +0100 From: "gregkh@linuxfoundation.org" To: Avri Altman Cc: "daejun7.park@samsung.com" , "James E . J . Bottomley" , "Martin K . Petersen" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Bart Van Assche , yongmyung lee , ALIM AKHTAR , "asutoshd@codeaurora.org" , Zang Leigang , Avi Shchislowski , Bean Huo , "cang@codeaurora.org" , "stanley.chu@mediatek.com" Subject: Re: [PATCH 3/8] scsi: ufshpb: Add region's reads counter Message-ID: References: <20210127151217.24760-4-avri.altman@wdc.com> <20210127151217.24760-1-avri.altman@wdc.com> <1891546521.01612153501819.JavaMail.epsvc@epcpadp3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 01, 2021 at 07:12:53AM +0000, Avri Altman wrote: > > > +#define WORK_PENDING 0 > > > +#define ACTIVATION_THRSHLD 4 /* 4 IOs */ > > Rather than fixing it with macro, how about using sysfs and make it > > configurable? > Yes. > I will add a patch making all the logic configurable. > As all those are hpb-related parameters, I think module parameters are more adequate. No, this is not the 1990's, please never add new module parameters to drivers. If not for the basic problem of they do not work on a per-device basis, but on a per-driver basis, which is what you almost never want. But why would you want to change this value, why can't the driver "just work" and not need manual intervention? thanks, greg k-h