Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2513567rdb; Wed, 4 Oct 2023 03:47:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF6wv8K0KjEDuSITmUGL5EJ35wBWG6jfJO4/nrtSevp744qvRQclqI+yNIPyS9koQLast2L X-Received: by 2002:a05:6870:638b:b0:1d6:5561:ea7a with SMTP id t11-20020a056870638b00b001d65561ea7amr2264285oap.18.1696416432550; Wed, 04 Oct 2023 03:47:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696416432; cv=none; d=google.com; s=arc-20160816; b=LckoaATEsmliKJw2cayB1qKMpuzfogJTRxbzjvIZD7uEbX/hvIPeQhTkJpcaqvmMat GIO7Ajp24eQsAqYpKdJq9klUgOwYGtpYSt83mXeL653nc5ds4TRDVhIetmUVrfvcV+97 c2/SywPVQ2ArlpwtVqkUbg9ePI96jKOnLinbFXO+8DZkRCGtmizzD7+3ZZbn27aYsO/O ttN+gb6XDgB/TKK6XmBWGmoTMHR2j4kSvFhLvcz5nXOkH6OKnP5/LgAUBS3azTWarTNX Gh+Y/7mFMbOSYoBkRUFMX55LIyNazTRBuyS0Uq8lZ2QqwUDfSDBpZLA+J4qUWuhvX1Hg 2+3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=TV/xcuPEKKHvdC2TDkpxifWrlD/iEo8VWu/rt/uinwY=; fh=ENcYWKrMx8COMCXcHAp3vUfibLGAFAMmRlfKzylVI8Y=; b=NITzW/TuqGTLzKniZhG9LSJPjARp7ZQ1SxUUgsP9ie7HwZ97fUVunGouziVl5m/0+8 Ug6cJ5r2h2TRfRqxvlOR7MOi7JVnPwiB0FXeqGLsZgh/c5KHzFWSrxC3S1zQV76h5dwI 1VzdBvz4HU1Y0BtMgqC23exSTwuMgPHfRrfE3uOlVRGVSpRpTZau1yl5BivXAc+m7ii5 xMG2b1GGJzCYTvoqpNMPWEg02YcPajCLPE2uTveFsD7oNtDJ28nWWPcXCQL07AUPjOwW xaOONR19h1E5NTRasQ13fbbJMxvmF2jucuYua2F9ogBlZ4WWPjc1Q2QtAfYVZRyqjrzV a2zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MaHJdgkR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id i13-20020aa78d8d000000b00690fec2f3bbsi3292948pfr.85.2023.10.04.03.47.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 03:47:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MaHJdgkR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 7069D833CE2F; Wed, 4 Oct 2023 03:47:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233001AbjJDKrK (ORCPT + 99 others); Wed, 4 Oct 2023 06:47:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232840AbjJDKrJ (ORCPT ); Wed, 4 Oct 2023 06:47:09 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29033A1; Wed, 4 Oct 2023 03:47:06 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 394AEqD8011480; Wed, 4 Oct 2023 10:46:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=TV/xcuPEKKHvdC2TDkpxifWrlD/iEo8VWu/rt/uinwY=; b=MaHJdgkRzByyM8OoHLi2fF87hJdjUAtrKvbZ8ZHcUFLx64XDtl8bTBT7SlhdO3adg9d/ VNfjZeIoKRd20C0CQsYX2TGujB/3Ns2iJBO7p7Hnq1eYFY+MY3TpnyJwsqYhxJg3RA/l gV1KARHm15CARiUYO5GnOyiSVKgbffyjAhBaftKLgcv43fxVYO/EBf0BOC896YNBbsG3 gpDRskEXCCK72vrqUdDHUX8OnyYhEII6NiOW26HUoQPCUnPWhrGjgwtniCGqo8PGfpBQ 34hWUcaN5eu2b+Q55NFK5KYnP9jKMQKEzoEW+4Bbalb9X0XdOEGuU6YESystg9Ot/zEq ig== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3th2gq0gg1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Oct 2023 10:46:11 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 394AkARh011675 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 4 Oct 2023 10:46:10 GMT Received: from [10.217.218.207] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Wed, 4 Oct 2023 03:46:05 -0700 Message-ID: <1e9b2d55-09cf-422e-a3f5-2f6084e675c3@quicinc.com> Date: Wed, 4 Oct 2023 16:15:44 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V1] mmc: core: Add partial initialization support To: Wenchao Chen CC: Ulf Hansson , "Kamasali Satyanarayan (Consultant) (QUIC)" , "avri.altman@wdc.com" , "linus.walleij@linaro.org" , "shawn.lin@rock-chips.com" , "merez@codeaurora.org" , "s.shtylyov@omp.ru" , "huijin.park@samsung.com" , "briannorris@chromium.org" , "digetx@gmail.com" , "linux-mmc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Veerabhadrarao Badiganti" , Shaik Sajida Bhanu References: <1650963852-4173-1-git-send-email-quic_spathi@quicinc.com> Content-Language: en-US From: Sarthak Garg In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Oq17tu6_89Zz-8aGtRVvGK3-INOlrcR- X-Proofpoint-ORIG-GUID: Oq17tu6_89Zz-8aGtRVvGK3-INOlrcR- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-04_01,2023-10-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 lowpriorityscore=0 phishscore=0 mlxlogscore=999 mlxscore=0 impostorscore=0 malwarescore=0 suspectscore=0 clxscore=1011 bulkscore=0 adultscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310040078 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 04 Oct 2023 03:47:11 -0700 (PDT) On 9/28/2023 8:50 AM, Wenchao Chen wrote: > On Tue, 26 Sept 2023 at 18:41, Sarthak Garg wrote: >> >> On 6/16/2022 4:18 AM, Ulf Hansson wrote: >>> On Tue, 24 May 2022 at 07:37, Sarthak Garg (QUIC) >>> wrote: >>>> Hi Ulf, >>>> >>>> Please find the gains seen on micron and kingston eMMC parts below with partial initialization feature (These are the averaged numbers) : >>>> >>>> 1) Micron eMMC (ManfID 0x13) >>>> >>>> Partial init Full Init >>>> >>>> a) _mmc_resume: _mmc_resume : >>>> >>>> Total time : 62ms Total time : 84ms >>>> (Decrease % from full init = ~26%) >>> Alright, so we gained around 22ms. Not too bad. >>> >>>> Breakup : >>>> mmc_claim_host_time: 0.2ms mmc_claim_host_time: 0.1ms >>>> mmc_power_up_time: 33ms mmc_power_up_time: 33ms >>>> mmc_sleepawake_time: 28ms mmc_init_card_time: 50ms >>>> mmc_partial_init_time: 1ms >>>> >>>> b) _mmc_suspend: _mmc_suspend: >>>> >>>> Total time: 5ms Total time: 7.5ms >>>> mmc_claim_host_time: 0.5ms mmc_claim_host_time: 1ms >>>> mmc_flush_cache_time : 1.5 ms mmc_flush_cache_time : 2.5 ms >>>> mmc_sleep_time: 1.5ms mmc_sleep_time: 2ms >>>> mmc_power_off_time: 1.5ms mmc_power_off_time: 1.5ms >>> The suspend time shouldn't really differ. Or is there a reason for this? >> >> I think this could be due to run to run variation as we can see >> mmc_claim_host and mmc_flush_cache itself taking some extra 1ms. >> >> > Hi Sarthak > > I have a question. > 1.What is the difference between Partial init and Full Init on SOC > power consumption? > 2.Partial init and Full init improve IO performance? > 3.Could you share the test methods if you want? No difference in SOC power consumption between the two .. it just improves the resume latency as mentioned in commit text. Partial init and Full init only improves the resume latency and no IO performance impact. We don't have any such test methods instead just evaluated the resume delays using ftraces. Thanks, Sarthak > >>>> 2) Kingston eMMC (ManfID 0x70) >>>> >>>> Partial init Full Init >>>> >>>> a) _mmc_resume: _mmc_resume : >>>> Total time : 46ms Total time : 62ms >>>> (Decrease % from full init = ~25%) >>>> >>>> Breakup : >>>> mmc_claim_host_time: 0.2ms mmc_claim_host_time: 0.2ms >>>> mmc_power_up_time: 30ms mmc_power_up_time: 30ms >>>> mmc_sleepawake_time: 14ms mmc_init_card_time: 31ms >>>> mmc_partial_init_time: 2ms >>>> >>>> >>>> b) _mmc_suspend: _mmc_suspend: >>>> Total time : 5ms Total: 5ms >>>> >>>> Breakup : >>>> mmc_claim_host_time: 0.5ms mmc_claim_host_time: 0.5ms >>>> mmc_flush_cache_time : 1.5 ms mmc_flush_cache_time : 1.5 ms >>>> mmc_sleep_time: 1.5ms mmc_sleep_time: 1ms >>>> mmc_power_off_time: 1.5ms mmc_power_off_time: 1.5ms >>>> >>>> Did some minor modifications as well to this patchset as per avri's comment which I'll post as V2. >>>> Please let me know your inputs about these numbers. >>> Thanks for posting these numbers, much appreciated! Please try to >>> include some of the data as part of the commit message as I think it's >>> valuable information. >>> >>> When it comes to reviewing the code, I am awaiting your v2 then. >>> >>> [...] >>> >>> Kind regards >>> Uffe >> Sure will add this data to the commit text in V2. >> >>