Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp235006pxb; Mon, 8 Nov 2021 12:45:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJySiY7Of8o2r5YKTqJu06ADYiAi401fISgzTFBR/jgqLuwWobKxyDpDhsnROPX+LRkDaFaC X-Received: by 2002:a05:6638:1489:: with SMTP id j9mr1545580jak.18.1636404326824; Mon, 08 Nov 2021 12:45:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636404326; cv=none; d=google.com; s=arc-20160816; b=BWFQJp+LrJEZADE2Rn8Vz7HjBYG56mmuUuThhPOfjatbTaROzwzUSGBfAJpxd1mo/T bRt/HLSLI1qHydwydCNVFcr4HRE4X6+bN02A9zNlHD9klwJAlQANQfVBc2FP2ZQU8hcA grHRBhYHBD+ITi19X0krKBNW47IkMQq6H8PGIBFMozZx/7HnOnobhp9BOj74yr2Wrbh8 SphF72Y4QJa12fXT53LeuNYUwJUJxzadPGthHlqeDpvdQKFiIEclkIaHRB3of4kJNNe5 tdNgBoXVFNFz2E/w1brZx83J9btmhXBQ3kian2ZlOFkKgtwAbedrUqKdgtu6VSWsehee swQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=68r1lgwXM3RG0RRJc0xxy8x2Y9oUDOK8ImS4lcfjZPI=; b=sb1JrZWe2fouDPHz0Ix0ClnAPv8vjECqNO63Z3ONbgoy75uVc9r0APtZY98K2kYBf9 dAZobujprwO0iUWUZFhwy+L/sRvO1HKrB5KcQ7ysnah2U5IUyxilX2LcIYBH6IEP0taZ Jq4Hg+mbdC8TWE4I78LqNbXY0lDIDTUmqqrErEbovr+Hv4gzBbrfPuLBXYXn86sPNC9M ZYHCj0Aj+S+Qnzce4viRPWb/wt+a9RNK21xmBPphAbRQ5TfCv/2vsnbPHWpZqPi2MsAi gXd+xghnwQMAUIWMyko5IIJmmUeT8mVn1RLarvbJF9/6IYB71SNm/krjHrhayLevxndr c3Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=U2nd9MHW; 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 v33si33682286jal.78.2021.11.08.12.44.48; Mon, 08 Nov 2021 12:45:26 -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=@gmail.com header.s=20210112 header.b=U2nd9MHW; 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 S240504AbhKHOcW (ORCPT + 99 others); Mon, 8 Nov 2021 09:32:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240482AbhKHOcE (ORCPT ); Mon, 8 Nov 2021 09:32:04 -0500 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18AD0C061746; Mon, 8 Nov 2021 06:29:20 -0800 (PST) Received: by mail-oi1-x231.google.com with SMTP id q124so27826788oig.3; Mon, 08 Nov 2021 06:29:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=68r1lgwXM3RG0RRJc0xxy8x2Y9oUDOK8ImS4lcfjZPI=; b=U2nd9MHWQlajh8UZYZKwbQoxDazN+Sbi8zVp10acdFOt1qqkVCuoLJ+1z6tvfcz01v DrPvPUxsQFbRMNOWvRN9FfnBGHKh7T9/trfcZjVYj7mhRyiFCb1cnzzhg3R+3dlhgMTM Y5WE0QwMlR6rSd6LTSHb6qs71E1fKIhADfYc+ur24qLbZ62yNo7k98axBlYW/G8pCdFZ 5UtkTvLbXDsaSjEUTvQhb8KY6P4OTcWIMSDUOaQ1wsaa4VglkZYPeTyWuPXJ0D/Hhbgi 6JIJU5MZQ/EMU0/SdoIk894bywXIBlKP0AfDLmCYwINgwMlGmxW6ctOK8FkKvDpYBZY4 DZTg== 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:content-transfer-encoding; bh=68r1lgwXM3RG0RRJc0xxy8x2Y9oUDOK8ImS4lcfjZPI=; b=307fHy1T/QHos5gBOhWf1zM33VuPkfEBiwrHgTxSxjKcYKrZbUy+apwgN8GG3nnFXl WBFalsdHfBbaw1pMyAZ8NK0SChvRiXJWnc+2TyLby32IsZSpDwhKRtOFn3/2dg93U6Xm KmmOwyorIjvs0fubpU4MtA0cM/Pc3/Lp2YEYPMiC632mGX1cJW8YZwKKy3cFAWn+B3HM m4iYntlTXFhMGi30jbO55VkhWKUerBQU8gidTCp62Qcl4qADD5oX2qApEopqODiz4ei/ 3LKWgHWoyK/8UgtxuODX9CktcZya8i4YvfzMm0Rg8es3V7Rd1aXd7P6OnLmVEjTXQiqL 3Bxg== X-Gm-Message-State: AOAM531yifLJUcTHr78hTP0ft82eroTzyo6bBTBDt1CjMaoQzQ7j0Dyt JrMu2lcIzONe7ro5hFwIplIENnDjDuViH+3ir8w8vOIGDis= X-Received: by 2002:a05:6808:f09:: with SMTP id m9mr37656930oiw.68.1636381759469; Mon, 08 Nov 2021 06:29:19 -0800 (PST) MIME-Version: 1.0 References: <20211104063231.2115-1-huijin.park@samsung.com> <20211104063231.2115-3-huijin.park@samsung.com> In-Reply-To: From: Huijin Park Date: Mon, 8 Nov 2021 23:29:07 +0900 Message-ID: Subject: Re: [PATCH v2 2/2] mmc: core: adjust polling interval for CMD1 To: Avri Altman Cc: Huijin Park , Ulf Hansson , "linux-mmc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2021=EB=85=84 11=EC=9B=94 4=EC=9D=BC (=EB=AA=A9) =EC=98=A4=ED=9B=84 4:27, A= vri Altman =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > > > In mmc_send_op_cond(), loops are continuously performed at the same > > interval of 10 ms. However the behaviour is not good for some eMMC whi= ch > > can be out from a busy state earlier than 10 ms if normal. > > > > Rather than fixing about the interval time in mmc_send_op_cond(), let's > > instead convert into using the common __mmc_poll_for_busy(). > > > > The reason for adjusting the interval time is that it is important to r= educe the > > eMMC initialization time, especially in devices that use eMMC as rootfs= . > That's an impressive improvement. > Can you share some of the use-cases in which 10ms reduction in boot time = is required? It can be used as one of the improvements and tuning items that can make rootfs preparation faster for cold booting. (e.g. if it is delayed, it outputs "Waiting for root device.." log.) Above all, I think it is not desirable to delay even though mmc initialization is done. Thanks, > > Thanks, > Avri