Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4092952ooa; Tue, 14 Aug 2018 00:36:26 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwUhikhl3Mu7KJoGyz0MGDtxl0CKCH+V721SSjcBINZvTpNW7uJhAXhuIofSUaH4Ta1JTK/ X-Received: by 2002:a62:d1b:: with SMTP id v27-v6mr22436499pfi.87.1534232186698; Tue, 14 Aug 2018 00:36:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534232186; cv=none; d=google.com; s=arc-20160816; b=0wrLHpPaRGin+ZTSdTWeay6t2ECPj+QoDJfkoDPxMRyGy43/vtIkx64RvYty/KHHZt 65s+2N04Raygzxb3gPxYnKczDI7h2psBPM1mwX0g5BuoxISqOVzdyzgV5Db3M2evCfmy GEe9SZidMInPX4+syP5gP2YecUXiCauxXc1HoO6EPw4wxGfy+3WigsfITwm8UPCq0gFn TRLclfHoOrDqi4IPIFNf+pSSppZGWAs7pD3BH7D/3u6m7VCBv1VbXiKodrczOu4SUnHw QNrUV8IiNOyRlqJs0gemRydt/Um5TaxF5rzk9uZ/OuQxGsqmUvCFJj7nEqb1llDGyc85 9HlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=SABF5Z82e01saNhv5t0r8FRuoTfu2mKY8dtPP3XN1O4=; b=0yZ18aZewaYJiRplXd7Bss65S5zTbtlnQIhjYaoTO5/0XMVW2pnnufAPP3WfqS0qhy VG/s/d3u4rGG2D/Qx9y6zBq1kENYRofCEtUDnomvr12ZW8BVApuo55MZpM6RKYM2WXEf j1Pfbu990btAeKLWacxxcbhYX5zHS8+sKjGGCjWNYr9q4KBXgHo6szVMEkhTs4tdwXvT 1Wv+d9VnFSk6khr7qQC2VM+90Ziu4XIQz5wd7QgEoSGSMbqeBpUL3rOjgtFqhVhfFY1t v5AmwuUPJRVttxDJLzHh/FcTofbQ0Kz8d2QjQZHvj+wltRFSt/sJ0cJJR1VEIH7o0kYV QM9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3-v6si18969454pgl.579.2018.08.14.00.36.11; Tue, 14 Aug 2018 00:36:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732169AbeHNKUS (ORCPT + 99 others); Tue, 14 Aug 2018 06:20:18 -0400 Received: from mga07.intel.com ([134.134.136.100]:54770 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731125AbeHNKUS (ORCPT ); Tue, 14 Aug 2018 06:20:18 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Aug 2018 00:34:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,237,1531810800"; d="scan'208";a="253906208" Received: from shbuild888.sh.intel.com (HELO localhost) ([10.239.146.239]) by fmsmga005.fm.intel.com with ESMTP; 14 Aug 2018 00:34:14 -0700 Date: Tue, 14 Aug 2018 15:38:10 +0800 From: Feng Tang To: Greg Kroah-Hartman Cc: Ulf Hansson , Linux Kernel Mailing List , "linux-mmc@vger.kernel.org" , Adrian Hunter , arjan@linux.intel.com, Alan Cox Subject: Re: [PATCH] mmc: Move the mmc driver init earlier Message-ID: <20180814073810.m7ewuyvuhptgsm22@shbuild888> References: <20180608095154.22413-1-feng.tang@intel.com> <20180612084234.gjzq66xsqblryrkm@shbuild888> <20180802091539.m5k7cdoad6hfkdfy@shbuild888> <20180814063959.45bddz42ytz3e4jb@shbuild888> <20180814071834.GB24616@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180814071834.GB24616@kroah.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On Tue, Aug 14, 2018 at 09:18:34AM +0200, Greg Kroah-Hartman wrote: > On Tue, Aug 14, 2018 at 02:39:59PM +0800, Feng Tang wrote: > > Hi Greg, Ulf > > > > Could you help to review this? many thanks! > > Review what? I see no patch here. And why would I need to review a mmc > patch in the middle of the merge window? > > totally confused, Sorry for the confusion! I didn't noticed the 4.19 merge window. The patch was originally posted in June, and has gone through some review discussions with mmc maintainers, my last mail was trying to keep some discussion info. Thanks, Feng The original patch is: ----- From 1514c7d56e887ace37466dded09bc43f2a4c9a4a Mon Sep 17 00:00:00 2001 From: Feng Tang Date: Fri, 8 Jun 2018 17:10:30 +0800 Subject: [PATCH] mmc: Move the mmc driver init earlier When doing some boot time optimization for an eMMC rootfs NUCs, we found the rootfs may spend around 100 microseconds waiting for eMMC card to be initialized, then the rootfs could be mounted. [ 1.216561] Waiting for root device /dev/mmcblk1p1... [ 1.289262] mmc1: new HS400 MMC card at address 0001 [ 1.289667] mmcblk1: mmc1:0001 R1J56L 14.7 GiB [ 1.289772] mmcblk1boot0: mmc1:0001 R1J56L partition 1 8.00 MiB [ 1.289869] mmcblk1boot1: mmc1:0001 R1J56L partition 2 8.00 MiB [ 1.289967] mmcblk1rpmb: mmc1:0001 R1J56L partition 3 4.00 MiB [ 1.292798] mmcblk1: p1 p2 p3 [ 1.300576] EXT4-fs (mmcblk1p1): couldn't mount as ext3 due to feature incompatibilities [ 1.300912] EXT4-fs (mmcblk1p1): couldn't mount as ext2 due to feature incompatibilities And this is a common problem for smartphones, tablets, embedded devices and automotive products. This patch will make the eMMC/SD card start initializing earlier, by changing its order in drivers/Makefile. On our platform, the waiting for eMMC card is almost eliminated with the patch, which is critical to boot time. And it should benefit other non-x86 platforms which see the similar waiting for emmc rootfs. Signed-off-by: Feng Tang --- drivers/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/Makefile b/drivers/Makefile index 24cd47014657..c473afd3c688 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -50,6 +50,9 @@ obj-$(CONFIG_REGULATOR) += regulator/ # reset controllers early, since gpu drivers might rely on them to initialize obj-$(CONFIG_RESET_CONTROLLER) += reset/ +# put mmc early as many morden devices use emm/sd card as rootfs storage +obj-y += mmc/ + # tty/ comes before char/ so that the VT console is the boot-time # default. obj-y += tty/ @@ -128,7 +131,6 @@ obj-$(CONFIG_EISA) += eisa/ obj-$(CONFIG_PM_OPP) += opp/ obj-$(CONFIG_CPU_FREQ) += cpufreq/ obj-$(CONFIG_CPU_IDLE) += cpuidle/ -obj-y += mmc/ obj-$(CONFIG_MEMSTICK) += memstick/ obj-$(CONFIG_NEW_LEDS) += leds/ obj-$(CONFIG_INFINIBAND) += infiniband/ -- 2.14.1