Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3236739pxk; Tue, 15 Sep 2020 13:47:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyz+dNfGEpCVQOXVIdoPLr+nQczMAGPZVnxwFoA0BfSAUaHvoPdu6a2RHjCnm5Iz6iBEof X-Received: by 2002:aa7:d144:: with SMTP id r4mr24496521edo.303.1600202875248; Tue, 15 Sep 2020 13:47:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600202875; cv=none; d=google.com; s=arc-20160816; b=Wv0SVcoBX2kJv0b1oXKwkpgQPnQAm74C37ZKWFDgQvoXyl863eyCulQNOsytu/mfVp 2Pc5zg9mhD/wN3lEpPlgEi/hIAq4K9s4wgXOU7uP8TF/QzT7wN7RBSkFgE9en9W5sAOH aYtoe7mf/ijzoSrLprf0Vs+iaB1XQ8162XO+IVuJ4NkmiL3rjLI1wEx1wq1GKaJZHCxl sjhycmABpCgsSDOT+oefy/lmQ2oPq1L+zVMsdWUhDLVz+6rTeXTIsy+5fLSDJsc/gxb0 T2k4JJkrpyisUgAIuxgCPI1c0W7jMmgDZhD71gSDQG8KsHE+LE86fsGjslhmyLef+jlJ uatw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=CDji8BEi4KAxQUHQZ1U79wd9CMrt8ssjl0Ti7+d8TWA=; b=TtLPJheyrOcdNBHJLPt5bt3J4xPKeUQ9MFjbfHBU/05nID4KYh3HXrMam469bvggbN jOIs3b39OdjUyR+mLjJEJGkGBaekwIoavHlQJOULCtRQIf0os22R+ZgIoO3PhPvism9+ nJc5JUw72UgPiukSsGpT3o9r0PWk4tSMCnprFtLwSzSVwnYuJmntQGJKITsYpsWZv+3v MGZ8Dr9RrIBVrlQtk5bcSksBg7oBUgq5cDuinPrfkEGfrDSKaH7Ycf92NJDv5dJacXyH P9chSrlVBsGXf8hMcclTSWjYIv0QMEY2Njew7mzDWlmXyW42AeM7WzwLWPvTlDHlCTs6 Qo+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QXXRhIgO; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m4si4693197ejn.597.2020.09.15.13.47.32; Tue, 15 Sep 2020 13:47:55 -0700 (PDT) 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=@kernel.org header.s=default header.b=QXXRhIgO; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728079AbgIOUqq (ORCPT + 99 others); Tue, 15 Sep 2020 16:46:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:38264 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727934AbgIOUie (ORCPT ); Tue, 15 Sep 2020 16:38:34 -0400 Received: from localhost (52.sub-72-107-123.myvzw.com [72.107.123.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E009D20771; Tue, 15 Sep 2020 20:38:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600202313; bh=6OFcjc8AUBZdK+9plPG89k0p2JtR+uS0BbwxGz9pmZ0=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=QXXRhIgOj6M/8UA44zC7096rO6fmBPjFGKYGx5rC92qDU9yhVJwOyj7ijajWVAp/C Vn2Xu/NNBm4oJToVKv0TlqBZ2StQJOnD7EzAW9SYRanhY2zfXB5N4xIRuE33tqHK3X d2wSC1qMoX5zFDweF8Qq6/h8k0WKCew4U88uIAHE= Date: Tue, 15 Sep 2020 15:38:31 -0500 From: Bjorn Helgaas To: Huacai Chen Cc: Tiezhu Yang , Bjorn Helgaas , linux-pci , linux-kernel , "Rafael J. Wysocki" , Konstantin Khlebnikov , Khalid Aziz , Vivek Goyal , Lukas Wunner , Oliver O'Halloran , Jiaxun Yang , Xuefeng Li , zhouyanjie , git Subject: Re: [RFC PATCH v3] PCI/portdrv: Only disable Bus Master on kexec reboot and connected PCI devices Message-ID: <20200915203831.GA1426995@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 15, 2020 at 09:36:13AM +0800, Huacai Chen wrote: > Hi, Tiezhu, > > On Mon, Sep 14, 2020 at 7:25 PM Tiezhu Yang wrote: > > > > On 09/14/2020 05:46 PM, Huacai Chen wrote: > > > Hi, Tiezhu, > > > > > > On Mon, Sep 14, 2020 at 5:30 PM Tiezhu Yang wrote: > > >> On 09/14/2020 04:52 PM, Huacai Chen wrote: > > >>> Hi, Tiezhu, > > >>> > > >>> How do you test kexec? kexec -e or systemctl kexec? Or both? > > >> kexec -l vmlinux --append="root=/dev/sda2 console=ttyS0,115200" > > >> kexec -e > > > So you haven't tested "systemctl kexec"? > > > > Yes, the distro I used is Loongnix which has not kexec service now. > > Is there any problem when use systemctl kexec? If you have more details, > > please let me know. > If you use systemctl kexec, the first part of kexec is the same as a > normal reboot/poweroff. So, there is no reason that reboot/poweroff is > bad but kexec is good. > Then, Bjorn, what is the best solution now? It seems like my first > version is OK (commit messages should be improved, of course). Sorry, there are too many conversations going on for me to keep track of what first version you're referring to. Please include a specific lore.kernel.org URL. Bjorn