Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp946572iog; Wed, 15 Jun 2022 16:25:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uREwUpD9br1l+jGnFpA7yGOgMUL54O127TeyRnId94YudhJT7WYRiKgG5lRds95f0pHhAK X-Received: by 2002:a17:906:1018:b0:718:dd3f:f28c with SMTP id 24-20020a170906101800b00718dd3ff28cmr2060881ejm.55.1655335547290; Wed, 15 Jun 2022 16:25:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655335547; cv=none; d=google.com; s=arc-20160816; b=0tc1WQerMbWbv2NifnE/D5XCNIMZ8sJig9waLcuHkirPgpE2yKr9a9GJxWXc186zC3 rhH01Ej/28tPVnW9vg9qiaE7Y60BBuQ/NH0J+sReBmkMy+B3bB4oX2WZbxwtad+5pPpc 0Uo8VC6LmfpszBVYfdOqFGTXKvHxD4Hlb4JnQ0BSsC4hjgzyMqXAsEL4Eo00sdM/s2At LdA9OpqYLg8l+YRPpavT3gR1qtvwhq6Sj/uHwoxGPXfLOKGPsg4IusPTYCUY2uvegm3s FvawxuPyX/WdpfdHRRuBGLk4rp92b9N00rZhaILweIcO2JtWatP0proIPsTCuxU0Ft6Q vC0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=42g8IFLodr5G+mXemIufY8nNh/UNIcbK1ku75HLKQ5w=; b=jNUI1j89nrB5+I+mmQTS6P+pV4/mDNajx4jqSSsnK/+Lv92COumJfIIc12qtyyAxU1 WyuPBUF5eejlDawxiulkNONGhSeZEm/5Dpcj7HVEkQ4cdMpsPjzFXxn6S9r98KfcYxtN psdG16I+vWTUTB4O8e7fH8H2YQw49btpkngcQGnjBuCdAwntXImhxaljqftY0WHA63MQ MLPD1m/9/oE4ISnyHN0MbFPxIoFUCE84yXkaWSYNWJt/2W9c5i25WNwCC4mXak236aoR gH9tX17sU2J9ayz8uDMWVtqcwzktXQzJD2Yw7LuzkK3mC3DRo4dgHtmOEzzzjw1Q5s53 XsYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y5JDp07C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cz6-20020a0564021ca600b0042be24f2db2si548093edb.215.2022.06.15.16.25.21; Wed, 15 Jun 2022 16:25:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y5JDp07C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242689AbiFOWsp (ORCPT + 99 others); Wed, 15 Jun 2022 18:48:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239594AbiFOWsn (ORCPT ); Wed, 15 Jun 2022 18:48:43 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89BEA3EA96 for ; Wed, 15 Jun 2022 15:48:42 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id y32so21088997lfa.6 for ; Wed, 15 Jun 2022 15:48:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=42g8IFLodr5G+mXemIufY8nNh/UNIcbK1ku75HLKQ5w=; b=Y5JDp07Ctph2K+sXWBkHvHDnuGFyqUKKVfCLxfsNUpapcMCl5HkiDnX0abyAs2EWZE IcKHu7tHLMIo5FavjMglrapQAAkAEqz+cEU1oh4RmtDN6hrHnuin1gOdVYc4y3BFKHfT jJ7wXv8nOSG5LP8+3L6NxcMB8fqHRNDEItteTIFWyZiLjXFg7pDpHVJCK7Rf/2IA+1Ob vaJYpbAY2MPrVPo+HR/yOwLYFsHI/W6n9kWvPGZxJqjQ02kg9J2IoANbR6IQThvGglkK Fef6eHZihjT7ornSp/mG9yuv2auQ7xjbttB6NDrrr+xUvONrnCDxOTpidYEV1lqOtZBb CYEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=42g8IFLodr5G+mXemIufY8nNh/UNIcbK1ku75HLKQ5w=; b=mtS+9nc9EE60dHIQ6D3zjoSL2J6/Cvsz38WHBZE/rlwQ2t120BkB+6I7WfaIhxZ/2Q 6C+FirsnK9STObgoMgtUmvY0OOjPBm3ts7qNPY7y3PMNvTIYIKNwcmuJzE6crPB/gdwP dfcbmWxu5UIJax+aBOey+zjKnXFFXTUX7q2izvXTR6SZG5SZb+D57CLNiH+5yjQD87mD QPLzoBqA8IPI+3WvMEi2GysfP7a2jIvMAxQ8KlSpyYJ+rT/JzVxNfcRSrezR6M/sSXFV KSyFcN3GowvdCLcVlFdqKr1aXmU4xq1OzEqLaWA3picZv8M0XkjTJGa8t6ory+sNtFNG Xmvw== X-Gm-Message-State: AJIora9R5fU2f+kQLCzhl0UsxSvUdMTu73tPrFktEtzGqmhhVa/UKX0+ SFTZ7Cw1rmryS2mBkVo6cxDifY3PIn8WExBNSMcSeQ== X-Received: by 2002:a05:6512:303:b0:479:1baf:7e5b with SMTP id t3-20020a056512030300b004791baf7e5bmr992290lfp.184.1655333320836; Wed, 15 Jun 2022 15:48:40 -0700 (PDT) MIME-Version: 1.0 References: <1650963852-4173-1-git-send-email-quic_spathi@quicinc.com> In-Reply-To: From: Ulf Hansson Date: Wed, 15 Jun 2022 15:48:03 -0700 Message-ID: Subject: Re: [PATCH V1] mmc: core: Add partial initialization support To: "Sarthak Garg (QUIC)" Cc: "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 , "quic_spathi@quicinc.com" Content-Type: text/plain; charset="UTF-8" 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_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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? > > > 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