Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp717373imm; Wed, 23 May 2018 04:33:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoVlIGGP6jpZO6OzdZGLSzw9pAlyCeXuW/iWADs4b3R0mMFUojSnjLly2V5NMzj3yOhoneP X-Received: by 2002:a17:902:125:: with SMTP id 34-v6mr2670469plb.42.1527075184949; Wed, 23 May 2018 04:33:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527075184; cv=none; d=google.com; s=arc-20160816; b=lBxcjbkt3IeCsDVck5Gg3Vgkmie+P+j5Mq8X5e8yRrj5LP61QZTihHt0C0GWz5fcD0 dHHl1vqKWIF4VLyVblhl4BDJ0A7vlpZ0rSIDpnmbaEoRGUBSejsM3XxaGEEiaifr6pVZ WDhNwFyO9z5Bb7CMkHdBBvqNnIp6/NiXkbwrFy+TCE//Fi20pKozoosB0QaiVv5t5IfH 9tuGME3kLritRobmZKpcWOYB92euAQKz6KPURMEhLFApGvDViY5IJ+dB/hL8QoFpC0bH tn7xm6WgyaA3BFVEBlaMs1sxrW2godR2bO7QS4StEj/g7uh5PEav0sOKq8qRRp975W9k 0Viw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=fwRF/96S5/3HcYTk7kTeRQU4f0sbW2JV/WGIATnJl+I=; b=pF8x/k/aZMhNtbBTlFh2H7GkawjdHfCOTbvuGzioq1eBr5iI6VR49rA4MRNUkIN9T2 U8hfsX1Q/RQN3MnSEXaweuaGtQg55meChsku3JuVEdN53mYFkSFcosz1qVWzo/SnnLKQ dzvIGqHqbjNqQ8D8gEfCKEpkjEUC/Sdc2C8rFnC5GdewWM5YLU8mRi2DsuGTPkgX4Fb0 AG9hIEKQzEoY2I5cJgE+NkMko9ldxEvOlAnLZc+pC0TYLrX7LjRAV7nZf7WCpri8GvIT qP3WOzV8SLBu8fSgARXQh80rvl5eBDC6xPqVvlGi6Py5HxjHuCfisc6XkmysvHs2QzZf n11A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=MsDuEvoi; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si19383543pla.38.2018.05.23.04.32.50; Wed, 23 May 2018 04:33:04 -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; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=MsDuEvoi; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932630AbeEWLce (ORCPT + 99 others); Wed, 23 May 2018 07:32:34 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:48480 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932528AbeEWLcb (ORCPT ); Wed, 23 May 2018 07:32:31 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w4NBVDAo169802; Wed, 23 May 2018 11:32:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : references : in-reply-to : from : date : message-id : subject : to : cc : content-type; s=corp-2017-10-26; bh=fwRF/96S5/3HcYTk7kTeRQU4f0sbW2JV/WGIATnJl+I=; b=MsDuEvoiNsbDti4M9aAGVL4dDY2MEylPe85C/qDYIs01CqVuFyhtkjRaRpnz0Q/LCTkt WdrcdaSHc8MkTDDFNYx4qdD+h5rqXEyZG5Ftdu/gUieS6XnfTpLaPpZT/QTMEfCkBlw4 9FbPDlOhr+BbRHN6IWoEnJJ7xwSrOZtp3WFlMiC/QUKJsHhRicPJMPB9ChvEkoVTROOK Dg3cpVsv3mXs97+w3MW6MOUf5jjZgqPMg09l0lfptrj+Q3m7Qgxa27cFRYj6qsw+xBIZ vuSiN1NpJJN+esv6PTiieD0/jT376Lb9RYxmAAS3r6dKH7IOl3zhW9RkxYRK+zScTXFp 6A== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2120.oracle.com with ESMTP id 2j4nh7uk0n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 May 2018 11:32:30 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w4NBWT41008886 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 May 2018 11:32:29 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w4NBWTrE010335; Wed, 23 May 2018 11:32:29 GMT Received: from mail-ot0-f178.google.com (/74.125.82.178) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 23 May 2018 04:32:29 -0700 Received: by mail-ot0-f178.google.com with SMTP id l22-v6so24786044otj.0; Wed, 23 May 2018 04:32:29 -0700 (PDT) X-Gm-Message-State: ALKqPwd4BA9KmiDBmE2dAOz+rAFaGDSi00smT7yFN7S5gZ+aofgXSL9K lTpMIsVs2potAdErg3Z/8O3s1Xy9Ej3AFrsX1jk= X-Received: by 2002:a9d:4318:: with SMTP id s24-v6mr1554508ote.345.1527075148534; Wed, 23 May 2018 04:32:28 -0700 (PDT) MIME-Version: 1.0 References: <20180505154040.28614-1-pasha.tatashin@oracle.com> <20180505154040.28614-2-pasha.tatashin@oracle.com> <20180523104029.GC15312@amd> In-Reply-To: <20180523104029.GC15312@amd> From: Pavel Tatashin Date: Wed, 23 May 2018 07:31:52 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/1] drivers core: multi-threading device shutdown To: pavel@ucw.cz Cc: Steven Sistare , Daniel Jordan , LKML , jeffrey.t.kirsher@intel.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, gregkh@linuxfoundation.org, Alexander Duyck , tobin@apporbit.com Content-Type: text/plain; charset="UTF-8" X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8901 signatures=668700 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=734 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805230117 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pavel, Thank you for looking at this patch. BTW, the version 5 is out. The latest thread is anchered here: http://lkml.kernel.org/r/20180516024004.28977-1-pasha.tatashin@oracle.com > 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"? True to what you said, but the same path is used for both regular reboot, and kexec reboot. In the later case we want to make sure that devices are quieced and do not send any interrupts, do not do any DMA activity, and basically in the same state as when system was first cold booted, so the driver initializing functions can pick and bring the devices up. My understanding is that because we do not want to diverge the regular reboot and kexec reboot, we do it for both cases.