Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2597773ybg; Thu, 24 Oct 2019 12:08:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwyZW2e7WjV0I6/SGFQ2okQuIPYzqnxiNCyu4uIoznk1Diw/2DNLt6azFP+gLJ2ccdG36Zo X-Received: by 2002:a50:af45:: with SMTP id g63mr44384924edd.21.1571944120549; Thu, 24 Oct 2019 12:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571944120; cv=none; d=google.com; s=arc-20160816; b=tWsQk3BoL4sktthsT6e2WZxwDXTbgH1l6eD0WLJff16Vcbq8S1SQlR9ELkAoTS93vt ngKdDuW6a5tKPHwvJ5Rkl27H4l28f1Udgq7lLC/n8M7XIv6p2987bZ8v3NPSS8w3KrEr 3AWPAvNVryqCrg9jySIUOs31RfJGFqekpGPlNW8ZPaAJRYLxaaG6Y46VREP1lgC486rW +cseGDQq7fE5P5OeBIrX0wwE3NB8+86+hh8s835IjfYHgi0CndSSSuVRTGCakyQG2mXA Q9byjnVmubM1gtWZjZLaEjIH96nMbmKW99XfY5yuUUJx2Fg18MriBf3UbyabmBEcESnp Zsfw== 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=mD92XtRViE3fuwX27/t4J88Vliq5/m5DxH+E0QdDcfY=; b=d8t4JPt00LrKwY4NhVo34lBzMdui6KtYoer5z4lrFtp+e5jysOWezmR/urHNE7EDEg +sQdwDJcj/S7DPMh7tjg7MtYqNgC51Gsvu9qUZVW5L86JvipKH7LwPNpaDmbA9Zm5p0v bi+kqYwhnkGzxH7G3dG0VKf+64NQt5CiUSbnntLAveX0l38J2OUgWGgfmIQFpTmKwp5Y QQpg4ZDExyfZTWb3tiJLbEes3B4B7R0+zHzmCDo36PsD/D1Usy8TG8MFeLb+8EgN96hd dt/IEAFn7224MWZJTdabyiTONZk3BuWLhY+yH7asKqSAIYS/V+xdqWnSZ5wXwteTg5dq 1zYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=np4oLXeE; 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 d51si4271345ede.168.2019.10.24.12.08.16; Thu, 24 Oct 2019 12:08:40 -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=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=np4oLXeE; 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 S2406569AbfJXDpN (ORCPT + 99 others); Wed, 23 Oct 2019 23:45:13 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:36478 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392947AbfJXDpM (ORCPT ); Wed, 23 Oct 2019 23:45:12 -0400 Received: by mail-io1-f65.google.com with SMTP id c16so7865293ioc.3 for ; Wed, 23 Oct 2019 20:45:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mD92XtRViE3fuwX27/t4J88Vliq5/m5DxH+E0QdDcfY=; b=np4oLXeE8XD06z6WLNxROOXayg/7ADY4dvhHQRnY2EXH3D4wrZ4uvVBzCLMBAl1YKs X3kjp8uzPDq4VFJgPdRFGu+FIl4wDfiqtU7w6PZp+88i4oloYYBmdlOIiElf/8JWsI1Z Asi6bKnndFHWV2XnQ7GtzdTCxFqXBosXW6SW7BTP4mM/aa8KaGla/jn36tffYO0Wt5WZ v07XyDQEpncMj1ATg9d8591dV5+amUkJ8XZE3wwTs15BAh2IP3CMjZNWG3jRNsPU2znN nUG3QgiKea3A6gmmbuQUPKoqxBCEyOdOKc4JWkScnPgEO4NAoOElT2mBNY1hnetWB3TF uPIQ== 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=mD92XtRViE3fuwX27/t4J88Vliq5/m5DxH+E0QdDcfY=; b=uODv6eqvs1rOozSekyVWCSK6+WZfgiLMyN7n4Fw5Gkk2snjfUE5uVWco+1voYrmmLI l7K91Fc6eGUFXekGjCkjzs4ENOyffjC2xGjebaSKIvfZhDqzBwcuv8mzV7YqA8kP9fe2 lZR8RyPDQ7vt8BKC6nuQRXdTWkoTa1P8wwRuwu3zN9jpAVA1obMgtXyM5z8Kg0F0NuEy CMZ/SswrTQXa3TWYykgtbszrZkidDgkSaOOeEmIWhD1bVne5V7uriqq68UHJchGmyZfc pEguuWdrDPj2B0OF45OEHJ+pQ0Gkc3XzeSMpT82xbOAhBpd3KfOMxEZEl9/+PSGrfJNj n8HA== X-Gm-Message-State: APjAAAVdnEurQHU56QLKIrBfshI4oojKK2XxHkxhdu+NIBPStoQXFGAR uP+qkTBl1kEFc8Z77V1Z9qNjIJBouSXcDJaqL2ur/g== X-Received: by 2002:a5d:87ce:: with SMTP id q14mr985334ios.278.1571888711746; Wed, 23 Oct 2019 20:45:11 -0700 (PDT) MIME-Version: 1.0 References: <20191023192205.97024-1-olof@lixom.net> <20191024023704.GA3152@redsun51.ssa.fujisawa.hgst.com> In-Reply-To: <20191024023704.GA3152@redsun51.ssa.fujisawa.hgst.com> From: Olof Johansson Date: Wed, 23 Oct 2019 20:45:00 -0700 Message-ID: Subject: Re: [PATCH] PCI/DPC: Add pcie_ports=dpc-native parameter to bring back old behavior To: Keith Busch Cc: Bjorn Helgaas , Keith Busch , linux-pci@vger.kernel.org, Linux Kernel Mailing List 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 On Wed, Oct 23, 2019 at 7:37 PM Keith Busch wrote: > > On Wed, Oct 23, 2019 at 12:22:05PM -0700, Olof Johansson wrote: > > In commit eed85ff4c0da7 ("PCI/DPC: Enable DPC only if AER is available"), > > the behavior was changed such that native (kernel) handling of DPC > > got tied to whether the kernel also handled AER. While this is what > > the standard recommends, there are BIOSes out there that lack the DPC > > handling since it was never required in the past. > > > > To make DPC still work on said platforms the same way they did before, > > add a "pcie_ports=dpc-native" kernel parameter that can be passed in > > if needed, while keeping defaults unchanged. > > If platform firmware wants to handle AER events, but the kernel enables > the DPC capability, the ports will be trapping events that firmware is > expecting to handle. Not that that's a bad thing: firmware is generally > worse at handling these errors. Right, and in particular (and what I'm looking for here): It brings back the older behavior that some platforms rely on. :-/ > > +/* > > + * If the user specified "pcie_ports=dpc-native", use the PCIe services > > + * for DPC, but cuse platform defaults for the others. > > s/cuse/use Thanks > > @@ -1534,9 +1534,11 @@ static inline int pci_irqd_intx_xlate(struct irq_domain *d, > > #ifdef CONFIG_PCIEPORTBUS > > extern bool pcie_ports_disabled; > > extern bool pcie_ports_native; > > +extern bool pcie_ports_dpc_native; > > #else > > #define pcie_ports_disabled true > > #define pcie_ports_native false > > +#define pcie_ports_dpc_native false > > #endif > > You do not have any references to pcie_ports_dpc_native outside of files that > require CONFIG_PCIEPORTBUS, so no need to define a default. If these are the only comments, maybe Bjorn can fixup when applying. Bjorn; let me know if you prefer that or if you want a fresh version. Either is fine with me. -Olof