Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp949412ybt; Wed, 17 Jun 2020 18:47:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIUibyMiYul7kiDd8ImQi5x9gTvexWJGFVYrOPqLjkdOJduLwjW7HFOZctAvRyrEZJW9g6 X-Received: by 2002:a05:6402:549:: with SMTP id i9mr1840069edx.159.1592444869344; Wed, 17 Jun 2020 18:47:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592444869; cv=none; d=google.com; s=arc-20160816; b=U6bXc8KciFDrUa2fyPzxROYjyosMyRXco4PlTVhjeFe8bRYwJVHbDvQs30sfg34iHo T5J0gnmy1zjIWvsB2U2KDiRRjZ2EEieEM27Vd4hzIRirFkPIffuDSM15/QLPB2tmT7zA ahuJX8b06z4l+jyiviry9En9J7/SgECC66T0agwaHrPT13oy4t9e8Zrvcw5fsIYtVCub P4Ao6bFYkG+pQWy16YK6Mwo9NCRythyYytZhbJepH8ySekdySYOMkwHH94PEsF126yQD 63n5HB1NZZUBLcV6O0Dlpl5xcoCoBTWxlOjvsRU+GH1b1GTT5MGkRJspJo4vHt6n2d9t X2tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:content-transfer-encoding:date :message-id:in-reply-to:cc:to:from:reply-to:subject:mime-version :dkim-signature:dkim-filter; bh=LHnFRCa4HDOWm0RYymVWN7YfXGnU6fTOFZfK3I3tHJw=; b=P86v+LB6d9Xw5yXCR6U1JZj1FDiZh7nHw68/XfdiYGXFmGP42GZvfIjYOg4n4yZvt8 06/m7xAfKVsD9th8UAqHFKDBNsZStztTxknxw8BBIXiazRDSY/36oCtBLa4HWPf1yCKy cJ+xrehC2sCYXe922jbWXAMgnWHLvahs+YlSKe8cH5oYJE37IljCNw42U7nomCfPsibU 3/faoir4hJI9Zo3Rv/CJnvhCgUzCaMNQNvf/eEBmITKdqT9ouSrRFICL6EXTUS+j0kbI PmAI3HQzFl4phuROwmleCG+xiJdR4OSqC/uK7Q4qvv98XRUn1L2hUPRb0auftp8NMlwH JNqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=CvHGAf1y; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr16si1272077ejc.320.2020.06.17.18.47.27; Wed, 17 Jun 2020 18:47:49 -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=@samsung.com header.s=mail20170921 header.b=CvHGAf1y; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733145AbgFRBpR (ORCPT + 99 others); Wed, 17 Jun 2020 21:45:17 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:12250 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733132AbgFRBpG (ORCPT ); Wed, 17 Jun 2020 21:45:06 -0400 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20200618014503epoutp0285f3f44baf76dfeb76b60736ea32db56~ZgAU_dE0L1006610066epoutp02B for ; Thu, 18 Jun 2020 01:45:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20200618014503epoutp0285f3f44baf76dfeb76b60736ea32db56~ZgAU_dE0L1006610066epoutp02B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1592444703; bh=LHnFRCa4HDOWm0RYymVWN7YfXGnU6fTOFZfK3I3tHJw=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=CvHGAf1yR63wrrquyBdw2Lpy0+bi+SpSQ1HYg5ZS0b6T2BoMjNAfM1xbn+VSaxZki vCMdtuGTpJzdLIQfQ6IrXQUZEwH4vLsLWFvjZ1+mwdWHWnEEZ2MpTHrqMLFWOCV1+K VVs/vE5aLkZEPXl8yzjSdIqcNv5JwUOMSn+H8IzM= Received: from epcpadp1 (unknown [182.195.40.11]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20200618014502epcas1p456f39db093eac2a257a8b443772238d9~ZgAUS8Bj62175421754epcas1p4e; Thu, 18 Jun 2020 01:45:02 +0000 (GMT) Mime-Version: 1.0 Subject: Re: [RFC PATCH v2 3/5] scsi: ufs: Introduce HPB module Reply-To: daejun7.park@samsung.com From: Daejun Park To: Bean Huo , Daejun Park , Avri Altman , ALIM AKHTAR , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "asutoshd@codeaurora.org" , "beanhuo@micron.com" , "stanley.chu@mediatek.com" , "cang@codeaurora.org" , "bvanassche@acm.org" , "tomas.winkler@intel.com" CC: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Sang-yoon Oh , Sung-Jun Park , yongmyung lee , Jinyoung CHOI , Adel Choi , BoRam Shin X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <3d5748ce4481c789000979f9831a5ae681cd9d34.camel@gmail.com> X-CPGS-Detection: blocking_info_exchange X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <717176949.41592444702525.JavaMail.epsvc@epcpadp1> Date: Thu, 18 Jun 2020 10:06:04 +0900 X-CMS-MailID: 20200618010604epcms2p324800aa16fc9de874116c27b00b07c54 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL X-CPGSPASS: Y X-CPGSPASS: Y X-Hop-Count: 3 X-CMS-RootMailID: 20200615062708epcms2p19a7fbc051bcd5e843c29dcd58fff4210 References: <3d5748ce4481c789000979f9831a5ae681cd9d34.camel@gmail.com> <231786897.01592212081335.JavaMail.epsvc@epcpadp2> <336371513.41592205783606.JavaMail.epsvc@epcpadp2> <231786897.01592205482200.JavaMail.epsvc@epcpadp2> <231786897.01592213402355.JavaMail.epsvc@epcpadp1> <231786897.01592395081831.JavaMail.epsvc@epcpadp2> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > implemented > > > > as a module parameter, so that it can be configurable by the > > > > user. > > > > > > > > To gurantee a minimum memory pool size of 4MB: > > > > $ insmod ufshpb.ko ufshpb_host_map_kbytes=4096 > > > > > > You are going through a lot of troubles to make it a loadable > > > module. > > > What are, in your opinion, the pros and cons of this design > > > decision? > > > > In my opinion... > > > > pros: > > 1. A user can unload an unnecessary module when there is an > > insufficient > > memory situation (HPB case). > > 2. Since each UFS vendor has a different way of implementing UFS > > features, > > it can be supported as a separate module. Otherwise, many quirks must > > be attached to module, which is not desirable way. > > 3. It is possible to distinguish parts that are not necessary for > > essential > > ufs operation. > > 4. It is advantageous to implement the latest functions according to > > the > > development speed of UFS. > > > > cons: > > 1. It is difficult work to be implemented as a module. > > 2. Modifying "ufsfeature.c" is required to implement the feature that > > can > > not supported by the exsiting "ufsf_operation". > > > > Thanks, > > Daejun > > Dear Avri, Daejun, Bart > > It is true that it is very difficult to make everyone happy. > We now have three HPB drivers in the patchwork, but I still didn't see > a final agreement. Please tell me which one do you want to focus on? The HPB driver has been greatly improved in the process of being applied to mobile devices since the release of the first HPB version in openMPDK. We want to contribute to the linux mainline with the knowledge obtained through the experience. I find it difficult to make everyone happy, but I think it is possible that everyone can accept the HPB driver through several revisions. Thanks, Daejun