Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3043386imu; Mon, 19 Nov 2018 09:46:32 -0800 (PST) X-Google-Smtp-Source: AJdET5e0bakp3kiBAXz9j2LUXBq5kZwtQIrat3iOk1r+RCTOC1TpGHoDdIw6QYmBJfwHsHEAXozh X-Received: by 2002:a17:902:bccc:: with SMTP id o12-v6mr23712991pls.281.1542649592401; Mon, 19 Nov 2018 09:46:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542649592; cv=none; d=google.com; s=arc-20160816; b=VX00B9xSeTVcn0Vp83IGiuAYd3u0sYCIOOKcNEmIDbwtVgf5swnQZq61xAz4vJn+V7 j9cNbPENzvmPoPKDLS/tt+6B5680IhW1Mg1mpcSkBAaEZgIDVZHJyTrjBGoAwAm1fOkY eEDd8FOcSEbhDvFZmB1Y4Khs3LtN8IWOCWR2+HefDLb2XvBXcu4Ol7KmRuKfge/R2/Dk o2wlDr0xYpSliiZKtoQ23YJONSqTW6DcWOOAgPEdEQGMXcYoEDVx5959YzLZKuqLv+sO Hn0M2lH2IZGiKM0M2Dqv00JAvUyIi9nWseI2EDeN9PTp5l+hCi3TRE8ZSrOK0CWNyMGR n6kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=AjTwbBP055CqYFoKvpXfyC3UghcCVoAMzF1/tkoFEWM=; b=nZI7IxVfOKzESOUcS6WceyWmiQQDcvT7PMrKvcTzUN/PTu4M1zBJ3kv+rjcVpx/per kCsjd8FVg819n/7lOJ0Et+xRhfyzfP7GBBtZFJA4nM8e+nQ6v6eXHswDGfg+QAOoR1yo PTEiTPNrPOYpoH/oRjumI0osRF8eDgN7yVXgqgU0/4qKpVz/ZcZ5Hzgc8gT2AZhs/P8E jcrXX73RvNiXeR6XuQsZXyZE1DG32GfYWsC/1RUZScoADj/IEcxMMk83KTO9jyYzDgTE aEoqnZS667fJMKQ1kCvzJQwpJ4+EINJwM17DKTAjWW3COdZR+lgGmIaimsHhbp6P91aD QIzw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l123-v6si43024765pfl.200.2018.11.19.09.46.07; Mon, 19 Nov 2018 09:46:32 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388239AbeKTEJO (ORCPT + 99 others); Mon, 19 Nov 2018 23:09:14 -0500 Received: from mga07.intel.com ([134.134.136.100]:57640 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730035AbeKTEJN (ORCPT ); Mon, 19 Nov 2018 23:09:13 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Nov 2018 09:44:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,253,1539673200"; d="scan'208";a="250960116" Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by orsmga004.jf.intel.com with ESMTP; 19 Nov 2018 09:44:43 -0800 Date: Mon, 19 Nov 2018 10:41:27 -0700 From: Keith Busch To: Sinan Kaya Cc: Tyler Baicar , mr.nuke.me@gmail.com, helgaas@google.com, austin_bolen@dell.com, alex_gagniuc@dellteam.com, Shyam_Iyer@dell.com, lukas@wunner.de, bhelgaas@google.com, rjw@rjwysocki.net, lenb@kernel.org, ruscur@russell.cc, sbobroff@linux.ibm.com, oohall@gmail.com, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, Linux Kernel Mailing List , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 0/2] PCI/AER: Consistently use _OSC to determine who owns AER Message-ID: <20181119174127.GE26595@localhost.localdomain> References: <20181115231605.24352-1-mr.nuke.me@gmail.com> <20181119165318.GB26595@localhost.localdomain> <74f2c527-0890-5e14-5e2d-48934a42dae6@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 19, 2018 at 12:42:25PM -0500, Sinan Kaya wrote: > On 11/19/2018 12:32 PM, Sinan Kaya wrote: > > > > > > But?we're?not?using?HEST?as?a?fine?grain?control.?We?disable?native?AER > > > handling?if *any*?device?has?FF?set?in?HEST,?and?that?just?forces?people > > > to?use?pcie_ports=native?to?get?around?that. > > > > > > > I?don't?see *any*?in?the?code.??aer_hest_parse()?does?the?HEST?table?parsing. > > It?switches?to?firmware?first?mode?if?global?flag?in?HEST?is?set.?Otherwise > > for?each?BDF?in?device,?hest_match_pci()?is?used?to?do?a?cross-matching?against > > HEST?table?contents. > > > > Am?I?missing?something? > > I see. I think you are talking about aer_firmware_first, right? > > aer_set_firmware_first() and pcie_aer_get_firmware_first() seem to do the right > thing. Right, but what difference does it make if device specific AER checks do the right thing if pcie_aer_init() doesn't even register it's port driver? > aer_firmware_first is probably getting set because events are all routed to a > single root port and aer_acpi_firmware_first() is used to decide whether AER > should be initialized or not. > > I think I understand what is going on now. > > Still, breaking existing systems that rely on HEST table is not cool. > I'd rather have users specify "pcie_ports=native" to skip FF rather than > having broken systems by default to be honest. The pcie_ports=native work-around ignores FF to potentially unknown results, though.