Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp5626ybj; Fri, 8 May 2020 05:17:51 -0700 (PDT) X-Google-Smtp-Source: APiQypIa/ypYeIberXtiTHcqmKTp1N3KT8NItEk2PHA1+HBZOzrAfnSf4ECb+8sLLyEIAwj0swIW X-Received: by 2002:a05:6402:1a33:: with SMTP id be19mr1962212edb.214.1588940271460; Fri, 08 May 2020 05:17:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588940271; cv=none; d=google.com; s=arc-20160816; b=AtRdnac6jXea4LXDbezq0MoeDN6V7enRplTyBdpdEHadxKi3M9EfjbUOTMiDf4yev7 0l9tKvYKKrgGVHAbT+BXRCfWMlSiQVpys/t70aepxGZV8vn7UuInHOXnkF3s1tmRUPYK yFPR0w/yIIe6x15GaBKWn4VpG07+iUk8YXlqwLGalwQVcBx5g/e92BPM54oG79PnRO9r /jr529LlREVoJcAcq5gmjq+ALL79jeLpzG/FuiFok1F6aT9L/wSHgAwES+zEXk8JRhdY KQMFA5gka3BRIPQ7wKWRl2mDgoL7MwqeqLsExjDMIn2CxziNvMoWcaeuRmMx8F31nhGf bN+Q== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=p022wi7eOZ/mGn1ToBo+V56FcvhDPdcFh/MpymQ6w34=; b=Ea/qiU4Yb53V5Dz5Y12W3DkdKKVEizAM0hPCOGvsOZc9owPcnpNXFrjIkPVq/24gJy T8GV+K/7Fp6YEG/d+igR0Fln4/dXNsKsHUlK55dcy7L5glJI2p+62zWJY78T4BtOcFp/ CucrAas91+cSdYN3/zMnDX4si58tX07NAQmSDBIreD8sMAItYY+/hoI6ZMG9hk7zMpWJ 8vVCbynB2yBEgQMOHdeqcIbCFR8lilFnCq6WN1PYNw2GjYu8uVA1MH9wtxQrzOENc2Om yIG6LyqXHoQDXBENbcgU9KpvXN/ReGJGTueD965xkHE1FDmAz4sIf+aG3JC4487f7jwP DhKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vdy5gWLv; 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 cy28si776315edb.249.2020.05.08.05.17.27; Fri, 08 May 2020 05:17:51 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vdy5gWLv; 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 S1726906AbgEHMQE (ORCPT + 99 others); Fri, 8 May 2020 08:16:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726627AbgEHMQD (ORCPT ); Fri, 8 May 2020 08:16:03 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8EDAC05BD43; Fri, 8 May 2020 05:16:01 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id j5so1604839wrq.2; Fri, 08 May 2020 05:16:01 -0700 (PDT) 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=p022wi7eOZ/mGn1ToBo+V56FcvhDPdcFh/MpymQ6w34=; b=vdy5gWLvmv4WW60B+MSjZYY0aEofZ1J9SFJ2Zl3QjbUu0gGnVQyJ31nDFWiM9PPRtQ MlSTkL2AZ0qfIZEolIG6QsQwfKPm2k5CnCs+WvwzBmI+3W4NE2PKX0NtZw15J7rB5bjo dXmUh7EW1n7vTefA/bv+SKmac0NXb96aZ3fu0jD8ciE+xUuyFGZdnkOyoxX59evb6Eax boX9OhA/WzJ0UuJsPdAegkG4JzL6nBmxmlRK2D99p32UpZNUzbE+E3Xp+9PmN4p//agV lTUuTrcvTAFeemOZtQ4FkuTZ4iDSCoNJs3EcOkkGc+Umd24P6LfPz0CRFkYhR/Cmbc5Y Nj8w== 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=p022wi7eOZ/mGn1ToBo+V56FcvhDPdcFh/MpymQ6w34=; b=Lg6Gpbpq8krDdP5FRJWJGY1DH3JJMrSCGA79epMfEb/VHGBdbvbdGKiYRUa0bNfFle lqZkiFTBonJTaQVi83qmAFl/sW077VeMclcdXtngcRaHn0Jqg9qoG9/Z54lSQiSvJHap 8uZXUKg/KF+UVGhjc0dcmeeoksqzan8ycxzPoVWaHVuuORrhxtwzkZaUP1pZ90V2hUaP zfH5EdsmYTQ1deKAPspc3EOruPSPZKJeL9buw8+ytRgklNWl1OjIwK/QK9/afWgJYAJ+ Ncl+qobwxd8gdvDFZgAlWj/aGmpAWpJb62DbzMDpeWyKN8OfsXB/KZuxBuFvai+0fHME 44QQ== X-Gm-Message-State: AGi0PuanU6IE1dr3ZZdPOtEs63pICSfXmo/aUNqvX9ZbQvY4njm5TYl7 Fj50hjVDU0CJroJyZIoF7loPWLxXhZ8= X-Received: by 2002:adf:fe90:: with SMTP id l16mr2647798wrr.222.1588940160456; Fri, 08 May 2020 05:16:00 -0700 (PDT) Received: from ubuntu-G3 (ip5f5bfcc8.dynamic.kabel-deutschland.de. [95.91.252.200]) by smtp.googlemail.com with ESMTPSA id r20sm12168431wmh.26.2020.05.08.05.15.59 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 May 2020 05:16:00 -0700 (PDT) Message-ID: <12cf335dc86f6eafa1f090dc0b150796532da3e1.camel@gmail.com> Subject: Re: [RESENT PATCH RFC v3 5/5] scsi: ufs: UFS Host Performance Booster(HPB) driver From: Bean Huo To: Avri Altman , "alim.akhtar@samsung.com" , "asutoshd@codeaurora.org" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "stanley.chu@mediatek.com" , "beanhuo@micron.com" , "bvanassche@acm.org" , "tomas.winkler@intel.com" , "cang@codeaurora.org" , "rdunlap@infradead.org" Cc: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "hch@infradead.org" Date: Fri, 08 May 2020 14:15:58 +0200 In-Reply-To: References: <20200504142032.16619-1-beanhuo@micron.com> <20200504142032.16619-6-beanhuo@micron.com> 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2020-05-08 at 11:38 +0000, Avri Altman wrote: > Hi Bean, > This patch is ~3,000 lines long. > Is it possible to divide it into a series of a smaller, more > reviewable patches? > E.g. it can be something like: > 1) Init part I - Read HPB config > 2) Init part II - prepare for L2P cache management (introduce here > all the new data structures, memory allocation, etc.) > 3) L2P cache management - activation / inactivation / eviction > handlers > 4) Add response API > 5) Add prep_fn handler - the flows that contruct HPB-READ command. > Or any other division that makes sense to you. > > Also, Is there a way to avoid all those #ifdefs everywhere? > > Thanks, > Avri > Hi, Avri Thanks. I will split it in the next version based on each different funcitonality. thanks, Bean