From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 20 Sep 2022 09:42:50 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oaXu6-00AIoM-Rn for lore@lore.pengutronix.de; Tue, 20 Sep 2022 09:42:50 +0200 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oaXu5-0004e5-NJ for lore@pengutronix.de; Tue, 20 Sep 2022 09:42:50 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=tSuqDz5P624cAIJt0NLlYzO6/nP8mr2XwUu6rLcFPAU=; b=NI+OFQuWMgfpo7E92zYFKEGl/B z6BcihX4rCiwLqf69rP6AOKo8MRLPaQjTEgJmoLgc5Rc5xUGWXu3ur9mWDkbKBUmfU3y1wXQqAx7t HzGY4d11RKcesZVNxTjaiZFnIdHBXj8eLuUQ5Vjv0tawcFuDfrZfjtUsG99DK51mSPyzhJYukbAsz XJnpr362+ehgKeGmW0GwOKBI/N4Awidjeq53+NfEV2LTjQtpdWveycSTbV1KRbb7JlI9SJ72rPbET jtrnJPkE8Y5rHYrouJJWm0Hfig0cr1+u9RZqa9zwqheI4vDuzJNMq5c+JwfTLidg3/oqmTH/7351j ATZVHgWg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaXsn-001ReH-00; Tue, 20 Sep 2022 07:41:29 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaXsh-001Rco-Ij for barebox@lists.infradead.org; Tue, 20 Sep 2022 07:41:25 +0000 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oaXsf-0004Ol-2U; Tue, 20 Sep 2022 09:41:21 +0200 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1oaXse-0006Tp-NI; Tue, 20 Sep 2022 09:41:20 +0200 Date: Tue, 20 Sep 2022 09:41:20 +0200 From: Sascha Hauer To: Trent Piepho Cc: Barebox List Message-ID: <20220920074120.GF6477@pengutronix.de> References: <20220916124942.3751131-1-s.hauer@pengutronix.de> <20220916131606.GZ6477@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220920_004123_633064_CFE64CCB X-CRM114-Status: GOOD ( 25.65 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-4.7 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Subject: Re: [PATCH] net: Bring up all interfaces before going interactive X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.ext.pengutronix.de) On Mon, Sep 19, 2022 at 10:20:53AM -0700, Trent Piepho wrote: > On Fri, Sep 16, 2022 at 6:16 AM Sascha Hauer wrote: > > > > On Fri, Sep 16, 2022 at 02:49:42PM +0200, Sascha Hauer wrote: > > > So far we only bring up network interfaces when we actually need them. > > > This means we could be idling in the shell for long and once the user > > > decides to do networking he has to wait for the link to be established. > > > > We could make the user experience even a bit better by doing this call > > before waiting for the autoboot timeout which then speeds up netboot a > > bit. > > The Linux phy driver almost invariably does not bother to avoid > resetting the network phy when not necessary. So if network > auto-negotiation is started in barebox, it will be reset and then > restarted shortly after in Linux. The link auto-negotiation impacts > the LAN's spanning tree if that is in use. > > So there is a drawback, besides the small added boot time to > initialize the network hardware, to adding an unneeded network restart > in Barebox in the case where interactive mode is not entered and > network boot is not used. So is this a vote to only do the autonegotiaton when going interactive in barebox, or a vote to do autonegotiation only when the network is being used in barebox? Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |