Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp413798imu; Fri, 16 Nov 2018 04:39:07 -0800 (PST) X-Google-Smtp-Source: AJdET5c6uFvluUZu3ydB7i2SMosjfsRBheO6gtEoukINLN3jKu/WEhepTl2eZxrEr0nCkXDtzjeO X-Received: by 2002:a62:704a:: with SMTP id l71-v6mr10853287pfc.68.1542371947677; Fri, 16 Nov 2018 04:39:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542371947; cv=none; d=google.com; s=arc-20160816; b=ZKUxfCwWTaouH1exEghaR2Yym/AeCuyuvlqlEPIbjdnAYvb1NpvsJISLzltUah1IV6 Nobk33HQAXy6vZbvnTR7ETw0jL4u9odtwTPK2jTG4uMfopwmy5jk8Jpz6kZxBOb9s6iT F14BnSU6CEjGQxNsrudo+MWfBbKFGZqNlu3g3BHHmLIIVQy9bpdo7wconD9KeU6QonEd 7ZZL90rObO7dckZLAhWp47o+1hYyiU7geeg/oaPZKgyGNVBMstWpJXE1X+0Smikf+xva XMC7kfuzpD8oZfMCyEUGHredBvR9H0tyQIqa3o4CbMGjt4XWiJMZ9LLaUtAHEDLzV6Ug DW7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=bYKpo8zfW0CmxBawhWpeE0Rpo+xRT1ySqS5c8z03y4g=; b=b25A83CRrY/3ZO92ndet+GSqG58k+OwNZ2TpEMpE2QSM3GGrwfWTuArj+NpmC0mocZ k1mC+5H0EeZ1aeLbo+XTxlta9f/69+3dZG3YGv5M+edNVM+AnGCwyRU6Hjm1S0uMXPYt 9OxPOTTwgcbryiCIVd7BI77+IMC3cj2f5Ytk7Ea8qcr3a/e1k4V7+uLVyMGo+ELfR82Y k1q3Ekvclyl5b0mwGFwpxUNG3HgKy2uyeX354FgstyYaTAt7v4lOGXU0HMI6vaG/nZ9d 0c9OcQCgdJECvAZANn5u/nT1nuu/bu25RkVdywG5TDqoKByuQW+PFGwk4JEjWuMs1m9u 1Vkg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 30-v6si31088084plb.342.2018.11.16.04.38.52; Fri, 16 Nov 2018 04:39:07 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389700AbeKPWtJ convert rfc822-to-8bit (ORCPT + 99 others); Fri, 16 Nov 2018 17:49:09 -0500 Received: from eu-smtp-delivery-151.mimecast.com ([207.82.80.151]:31777 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389685AbeKPWtI (ORCPT ); Fri, 16 Nov 2018 17:49:08 -0500 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-110-sHBmeO1DNEmY3fg_B1RTqw-1; Fri, 16 Nov 2018 12:36:54 +0000 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b::d117) by AcuMS.aculab.com (fd9f:af1c:a25b::d117) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 16 Nov 2018 12:37:00 +0000 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Fri, 16 Nov 2018 12:37:00 +0000 From: David Laight To: 'Alexandru Gagniuc' , "helgaas@google.com" CC: "austin_bolen@dell.com" , "alex_gagniuc@dellteam.com" , "keith.busch@intel.com" , "Shyam_Iyer@Dell.com" , "lukas@wunner.de" , Bjorn Helgaas , "Rafael J. Wysocki" , Len Brown , Russell Currey , Sam Bobroff , Oliver O'Halloran , "linux-pci@vger.kernel.org" , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" Subject: RE: [PATCH 0/2] PCI/AER: Consistently use _OSC to determine who owns AER Thread-Topic: [PATCH 0/2] PCI/AER: Consistently use _OSC to determine who owns AER Thread-Index: AQHUfTk7lFmreXBXOEO6S+wDoXDgXaVSVjAw Date: Fri, 16 Nov 2018 12:37:00 +0000 Message-ID: References: <20181115231605.24352-1-mr.nuke.me@gmail.com> In-Reply-To: <20181115231605.24352-1-mr.nuke.me@gmail.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-MC-Unique: sHBmeO1DNEmY3fg_B1RTqw-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexandru Gagniuc > Sent: 15 November 2018 23:16 ... > I've asked around a few people at Dell and they unanimously agree that > _OSC is the correct way to determine ownership of AER. This is all very well, but we have systems (they might be Dell ones) where failure of a PCIe link (even when all the drivers are removed) causes an NMI - and crashes the kernel. There are other systems which have AER registers available for some of the PCIe devices, but the BIOS ignores them and _OSC doesn't let the kernel take control. In this case the AER registers can contain useful information after a read returns ~0u. It would be useful to be able to get this information without having to grovel through all the PCIe config space. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)