Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp667798imm; Wed, 23 May 2018 03:41:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoDN5y8POwDnqh5KbDtmFXDKeLqGppMkILjQm6V7OErivoSjX5CNZb10JWsG3WJYyOTB/Dd X-Received: by 2002:a63:b007:: with SMTP id h7-v6mr1888898pgf.448.1527072067895; Wed, 23 May 2018 03:41:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527072067; cv=none; d=google.com; s=arc-20160816; b=JgkTXAhL3G1DFKyRtYz4mvwVjf4Q9CXgqcWzeDZIsq0c73U8+P/hr/PuD4BCWWgEXD ZGHEwQRP9DGPJSmNLaetkomV3Vn1yMcU+eIamHQ6xLvKiBMRmrfBf/i+00RYCvpRD97d 6DZMR2H4gk1bUeWttBYCVEE4ppDFy4doTTJDXk+g9XGx30Np4a15bujb1REYztdiwtpT diaGoDL/zIL2JBf762EjzEEYmdafg3ddsComGFYyzvPI7Sl0g+Ye6q8xabYPep2F/mrM VUdY9yhjNxWsyKAVnBzIhgPl9lwxlLx/dX77bnT20Kzxw8WCol2Se+rfKEePFh1dNv/K 0q9g== 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=HzuwocWQ6ENYxUL9tTRncm9PInQFEFh4ooLfFgFU4kk=; b=NyfHyB71XNoU6PZt1pdk/pRXakcA3fxVtXX0ddi/l7+MU4iLLtKKanS59gKGO2BsfT EsJ/QExUIiG729wEZjRRSqOWvqK2twTaPgG3PEimfDQ0Taufaq1wqW4igKmxpXLYp2+K 7vrMbFKjp8lcdzrvcDZC5Fdq5DHNr5ORM2IAUBdsI+NmVeXeVIR5qCb3n3ZDjx3mREBn JPANAZ0B8aU/ZUaZjIPQ8qIrpLg+1maK63vlwMN4VA55GAYStL0Jdy64RT0ZR6pqgNqE 2290OAD9m7OuYqZIs2bUPoHKS1EkgRVwYIesonqMv9UITr+ptYSQot0nUso5ItyqtX9w R+VA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s14-v6si1228550pgo.462.2018.05.23.03.40.53; Wed, 23 May 2018 03:41:07 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932495AbeEWKkf (ORCPT + 99 others); Wed, 23 May 2018 06:40:35 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:37497 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932350AbeEWKkc (ORCPT ); Wed, 23 May 2018 06:40:32 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 7DAE48054B; Wed, 23 May 2018 12:40:30 +0200 (CEST) Date: Wed, 23 May 2018 12:40:29 +0200 From: Pavel Machek To: Pavel Tatashin Cc: steven.sistare@oracle.com, daniel.m.jordan@oracle.com, linux-kernel@vger.kernel.org, jeffrey.t.kirsher@intel.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, gregkh@linuxfoundation.org, alexander.duyck@gmail.com, tobin@apporbit.com Subject: Re: [PATCH v2 1/1] drivers core: multi-threading device shutdown Message-ID: <20180523104029.GC15312@amd> References: <20180505154040.28614-1-pasha.tatashin@oracle.com> <20180505154040.28614-2-pasha.tatashin@oracle.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+xNpyl7Qekk2NvDX" Content-Disposition: inline In-Reply-To: <20180505154040.28614-2-pasha.tatashin@oracle.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --+xNpyl7Qekk2NvDX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > When system is rebooted, halted or kexeced device_shutdown() is > called. >=20 > This function shuts down every single device by calling either: >=20 > dev->bus->shutdown(dev) > dev->driver->shutdown(dev) =2E.. > Finally, with ixgbe_shutdown() it takes 0.37 for each device, but that ti= me > is spread all over the place, with bigger offenders: >=20 > ixgbe_shutdown > __ixgbe_shutdown > ixgbe_close_suspend > ixgbe_down > ixgbe_init_hw_generic > ixgbe_reset_hw_X540 > msleep(100); 0.104483472 > ixgbe_get_san_mac_addr_generic 0.048414851 > ixgbe_get_wwn_prefix_generic 0.048409893 > ixgbe_start_hw_X540 > ixgbe_start_hw_generic > ixgbe_clear_hw_cntrs_generic 0.048581502 > ixgbe_setup_fc_generic 0.024225800 ixgbe is network card, right? So ... it does not have any persistent state and no moving parts, and there's no reason we could not "just power it down"? > /* --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --+xNpyl7Qekk2NvDX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlsFRR0ACgkQMOfwapXb+vLi5ACghu7XPMOFEDfbMhAS5WGr5bgI hfIAoKI3dPA3N005lBvY/4K3irEQODZ2 =S3tw -----END PGP SIGNATURE----- --+xNpyl7Qekk2NvDX--