Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp129111pxk; Tue, 15 Sep 2020 23:21:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjjq8irDD3qW/aFa7UBkaxv7duadvYGMVOttoFKcSavF+sSDaL4kM0paLDi/+eIYe6Jc5h X-Received: by 2002:a17:906:7c82:: with SMTP id w2mr23371133ejo.87.1600237289458; Tue, 15 Sep 2020 23:21:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600237289; cv=none; d=google.com; s=arc-20160816; b=KwWGjCL+m0aPIbaW2ydBSQBK7/6UDXGBC/W6B7t8sqk30RHCc1/6FToxIP1tChBA+8 KGLgIPSBCYMngTPT6KZuJC6zespYlrOVx3g66AumFiz4BgJF4Ocb8PesJdJ6h+qxfb/K SsRPMBq2oL5Xnzy5EIPSwhQt0A+h10eLBVeqBxX0T/7nvoaRCbkulH62o0BEqMt6J08Y SJJe9pPUPpFDHO7GvN4rEW5yYjArT/X0Yd9qF/B1y2LXipImr3P/NVF+ibdzzogS+jFM 0I1B23cy/vlyECYdug4J1KsaJwE5aEfXinr4X3RoAZBgH1N/zZ5C7VDgRQhaf/rlHDyl LtdQ== 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; bh=BQU4Vp5hkd72K0GyoRL03/6xjT4XAFXExo8+j37YSQY=; b=UgmQUb66JzidiE2qxkQyFQO8G+EcFBIaceZv1A12SvVCptv+PVRUHg2QknvK6obekv M2oBdobz9+42lyr8xHAqdJt74zGwDNLxCLJIAwf0L5tJvRYYc3G3eYQ27Mg80RqTGOzS tYllhhgIUOpfCLbIZ8dV4TezP3GYfJiCGuoHZ8SwZO6OhGwZaz1upIhOhquRIILW6PGA r+pi0hW6HW3hKamas7ZEfNnLF+32uDPQTFF7U0yYxFsuG2cXCbWj0TIOs38obWAV4gEe frliC8Bb8S20QslGFh5OF5Pjt7zg64UwP/NcRSf7/3GMYsj3CNfhbgoDVqxfTE9g0aQS o0CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Emg+QmhT; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r21si10747969ejs.399.2020.09.15.23.21.06; Tue, 15 Sep 2020 23:21:29 -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=@gmail.com header.s=20161025 header.b=Emg+QmhT; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726403AbgIPGT4 (ORCPT + 99 others); Wed, 16 Sep 2020 02:19:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726273AbgIPGTr (ORCPT ); Wed, 16 Sep 2020 02:19:47 -0400 Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADF74C06174A; Tue, 15 Sep 2020 23:19:45 -0700 (PDT) Received: by mail-io1-xd43.google.com with SMTP id h4so7029878ioe.5; Tue, 15 Sep 2020 23:19:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BQU4Vp5hkd72K0GyoRL03/6xjT4XAFXExo8+j37YSQY=; b=Emg+QmhTNMGGm2Yi4tpkGItYJUUePIBz2tdkxU8bs5Wt8dZcpWrB30CmPAIAuy4jXL LUGCbWYagicgR9MxLlzt4mcbULxHbQrGXV5yJSGmZN7ziABoN7mqxaI8h8vAoGb6zGi8 sJCQwNE039cWLxHl1cEUGcya5XSNB2eqh1k6Ct6J+Z01iwefgb948qLGwvJw2ut+v2H8 d6J5PsNNR0Id9Zv3kQxYeMEj07RQM4cJ9ZMCzCexW4ylpGDm895x8xKEKWeeIxpWTfSk mnzMZNy/ftKg1mWqVcmbPNhbHAJzRBOeXbklo65GM9UXektQbYuxvsNnp/LOZUvZLTDy 3bYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BQU4Vp5hkd72K0GyoRL03/6xjT4XAFXExo8+j37YSQY=; b=fXwazVLXYeQmyYqYE3sO9vdSJpJd1jpgW7BA6VCU3zNEEPu7WFzqFDBKJMiQFzCDyd JrrhW9ecMuvJjSC5c9sKosnHgq2FOlVvLwPmy6GT7vKIwpaopndU5QFAGjpDLb/k6RgG Mr+kf8YRdYnrUhUqIVS7o7aSEjqeYsldT7AwZQywtdVDnp/A98UuSlZAHne57irTJLk0 B/MnG3TTp+oq/oNHyXxLx3duo5ZL8PjjlhT4pFtLDcQh5chOUf2uLw+LOHD24TaETVvn J3Q1/x57VCJQ4KgpeKxd4NtiRSWzKDXicVvIIr/a4XpCziAVYR1SR855s49DWjO0cWmQ qYDw== X-Gm-Message-State: AOAM5321r558Z1mYDr6aGuuh2Nb/GU7XcFPIRQXKHSAYqy/WoIkngRFx OvC/xzJ9VNOPzUzSZuGLTn4BSI8hgO16+7E7Phs= X-Received: by 2002:a05:6638:250d:: with SMTP id v13mr16460879jat.50.1600237185081; Tue, 15 Sep 2020 23:19:45 -0700 (PDT) MIME-Version: 1.0 References: <20200915203831.GA1426995@bjorn-Precision-5520> In-Reply-To: <20200915203831.GA1426995@bjorn-Precision-5520> From: Huacai Chen Date: Wed, 16 Sep 2020 02:19:27 -0400 Message-ID: Subject: Re: [RFC PATCH v3] PCI/portdrv: Only disable Bus Master on kexec reboot and connected PCI devices To: Bjorn Helgaas 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Bjorn, On Tue, Sep 15, 2020 at 4:38 PM Bjorn Helgaas wrote: > > 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. My first version means this one: https://patchwork.kernel.org/patch/11695929/ Thanks, Huacai > > Bjorn