Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1278487pxj; Fri, 18 Jun 2021 03:42:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQoTQIpZVtqIsSZFrCcY0A64Gd14giTJ47+jScMURfD71LeEzXRSXqIfSNcgJbmtANWSCX X-Received: by 2002:a17:906:b20d:: with SMTP id p13mr7362708ejz.519.1624012943979; Fri, 18 Jun 2021 03:42:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624012943; cv=none; d=google.com; s=arc-20160816; b=b8S4qaAiJcc43z6SJbF7gXZqykDs6S+XO049T/38EmDwtQXL5d9Yk5R6O7LuseLFip n9jaRkcAgMfEnVXlpFKyK0M/g105mOndTYf1dxxPgfjIUHRtmeTaVm8cDycoMkmDHxWT DTYfP2CKH647A+vBZaMfQnX8PwpPjgc2fkriwuyx0YdWC0fmGMq+ZymolZkMO+U5JKuF DbbmvxJEjh12UHJnsoQNPgSHwBwE2IpE+AbcgDQJD7wgDSzNErgdj9PlrS1LXitkmmCa /SXcmWQYUsRtZZOf91feLHpFkm1UM0EP6SqxLZDvDXc1PcXvxeGEm392RGI/babv6KNM LGcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=AseZqmRRFSAWxlkl2H15IzgmyWSQsQrTGUE3obWRyrM=; b=g/uYuZz1J93PtzjwtDy9UZfS8O9LyowbaZe3LGF8c8jMqWJu9JmSl0Ss40qLonq8S+ 2A7j+AuQt0RAg47ZJPGGO4hU5TRZDbXAQQv/WWSht1ZiwzlQYirAMju6msFFj8AKDNyQ tCOGTagByUuRDkZCJVjTTWf7ybew0Ew+PH40TIkgHPzRzzSNsocJu6DclEN4FsrkZ9eV w5HwIHiDSp2C+CmhNJxHnBaCIIBnl3Vl9dlbMRkRU57+Bs4IvFXQiZr6omLHtI7OZTmh 43TFEebkDkoWT1eCWz4JzJrnL0DhVcqkYbQNEphKa8rGwnVqmW74e7f4mhsP0Ll7oGDH Shuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="MgJa/mVt"; 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 u19si2569060edo.143.2021.06.18.03.42.00; Fri, 18 Jun 2021 03:42:23 -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="MgJa/mVt"; 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 S233175AbhFRHXy (ORCPT + 99 others); Fri, 18 Jun 2021 03:23:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231598AbhFRHXx (ORCPT ); Fri, 18 Jun 2021 03:23:53 -0400 Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6871C061574; Fri, 18 Jun 2021 00:21:43 -0700 (PDT) Received: by mail-qv1-xf2c.google.com with SMTP id if15so3090018qvb.2; Fri, 18 Jun 2021 00:21:43 -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=AseZqmRRFSAWxlkl2H15IzgmyWSQsQrTGUE3obWRyrM=; b=MgJa/mVtq6XWZKn0imgyglg6ZDupmBYLsc6nqx+ZO1zknwhEReGKbW0bIN9kjCm914 7E0WAR6WoiSOPVxaB4Sadr237fXQYjs9EIPdgHjw9yI7oCPSKi4s9wk8qO8viYfzO3j3 oX+nQ93PDsxTTWGmQ+zEoHHEzIbrkCpmblgepC5prfbUg/gCfpWMcO/C4y9jHTrhS7J9 aDBO2TOUCs0o7DhFQLYvBcSNaj7d6xtPRM96we9l/KZVn0ibRSkALFFBsZamfIFH6mcS yO9FBRCXYYW6AVbx1b8Fo3NeTpoSHj0kqJzDZ75OBnVurCO3pnFCMY6pcN+WXE9z1ab5 BNWg== 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=AseZqmRRFSAWxlkl2H15IzgmyWSQsQrTGUE3obWRyrM=; b=Ef+MtmPqPoSibr80Jz7KUYPznH43/IAULpfs66YOsPV95ENh9x9R45TxtICvXYKfbg TAZNL5eKxY7UcsIMH0cTjLSvQqZtv7JMVMi3ZhT29WNjJw/84pZKObr4vID1CyNRP+us eLJ3AxTp2FMApZzFQ5PkhSNAq65rvxW2MELMyrkagzX5MQoRW05vV7N6Kq8KwfoOanzY F8h/Dxto8t6FAe7hsQ5RjiT/bCHfdy6OO1jQOQE8cKH/dnbVf1zV0HgnuBu/IkWLzL75 b6/mHP9TmjCkGlXx3FFp2wsqJMZTutobSQEe1xPztSCNEDPszd7UT+k76dghk4cTwuCM cAoA== X-Gm-Message-State: AOAM533fmfuA9dvx0Tt6wV4MJcUE0ghXMGM+Wrc9ruirtwMlECP1gfGQ PTIoi2me11i15Fkf612qpoNxc6u3yEygs/ituAc= X-Received: by 2002:a0c:f982:: with SMTP id t2mr4206794qvn.28.1624000902896; Fri, 18 Jun 2021 00:21:42 -0700 (PDT) MIME-Version: 1.0 References: <20210618060446.7969-1-wesley.sheng@amd.com> In-Reply-To: <20210618060446.7969-1-wesley.sheng@amd.com> From: "Oliver O'Halloran" Date: Fri, 18 Jun 2021 17:21:32 +1000 Message-ID: Subject: Re: [PATCH] Documentation: PCI: pci-error-recovery: rearrange the general sequence To: Wesley Sheng Cc: linasvepstas@gmail.com, Russell Currey , Bjorn Helgaas , Jonathan Corbet , linux-pci , linuxppc-dev , linux-doc@vger.kernel.org, Linux Kernel Mailing List , wesleyshenggit@sina.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 18, 2021 at 4:05 PM Wesley Sheng wrote: > > Reset_link() callback function was called before mmio_enabled() in > pcie_do_recovery() function actually, so rearrange the general > sequence betwen step 2 and step 3 accordingly. I don't think this is true in all cases. If pcie_do_recovery() is called with state==pci_channel_io_normal (i.e. non-fatal AER) the link won't be reset. EEH (ppc PCI error recovery thing) also uses .mmio_enabled() as described.