Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp835815ybz; Wed, 29 Apr 2020 10:13:24 -0700 (PDT) X-Google-Smtp-Source: APiQypIU0+9xdp4tUs2PPJdLheCaC2oB5P19nLpM+mE9ke2aCjBBdhDw1VECxdgkDsFLksuq9XZ8 X-Received: by 2002:a50:e8c1:: with SMTP id l1mr3540561edn.81.1588180404726; Wed, 29 Apr 2020 10:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588180404; cv=none; d=google.com; s=arc-20160816; b=jIbLKJOoS8m8mv8jOAV0KiWYBNolbRMHM5DqTHZGzMAKGNNn0QYtjJQF0eq3xKUZXG 2Z2YWEg+jZ7z7TDOaH+C/b/eqvL/uDetQDZs2SxnLQenBap0OAIOGUNK0eRbU3jG/ZZI q0lu2mB9EieqA8vIFQ57sx9832wNKnTc/miiPeJP1ta9KceT5gREVfx463XPcdZhA/ln 1cYkBpTPDykJC1ykrdqrB+jzT5FtOOp6aOqAkkMRjn7mXr6SoEcpQ9pHqnzkKYawWAv3 oGfcG8DhdNpUj6iqkGD36fRqvMWSB9EMawmv4/HWn/SVOOfEnHkTFcDip0iV5Wq0h2uO KQ3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=PpNWKw6Oz0wBUZYJZQBlAtT7brU04hVrM0wNRRWxxN4=; b=VdabBBu5rMoT5yWcZQPEklWaO3IHc0sp6ij4rp4y4RiOOoA+2TizmTFG5j8d/w4Myo tXuQAXWwvXArXyopVzfgf0bEZeZs0unrdPuzi1FWcc0yuFIDgtupz39vti5ot3scmQuc qPrU9sA2KlWMz7rQzSTPyIdkSS+JYAhkJ1536nxDRuOATJPzcbTROxNPMqK3wVpx1me6 9TjoFdSMkKghWF12XZxyrEaEXHDXZoo+P26z14msm6XHWo7Mxu1oiFjIzeB2dEsyTz0/ 0SxYqeCpJN9JaB9dmitiPU4r7n8M1Plo/3M6DWCPu5akg369PIWn8IjpL2Vk4gyKdCWA UMTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="i3/Vf9ub"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lw9si4090619ejb.175.2020.04.29.10.13.00; Wed, 29 Apr 2020 10:13:24 -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=@kernel.org header.s=default header.b="i3/Vf9ub"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726951AbgD2RKg (ORCPT + 99 others); Wed, 29 Apr 2020 13:10:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:51736 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726530AbgD2RKf (ORCPT ); Wed, 29 Apr 2020 13:10:35 -0400 Received: from localhost (mobile-166-175-184-168.mycingular.net [166.175.184.168]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 825DE2083B; Wed, 29 Apr 2020 17:10:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588180234; bh=2xgcMioH3CWsTJf+X/wvX2WrB+R7RzkvMl/X2y3wgaA=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=i3/Vf9ubdb8TMxpehNHGGBNTu5jT80uie8MpBKJJKGqwjGAJpOpRtM9HlGRX9MgKJ +yChP6v6VYC73cG+BVGxSHvKVtE2WKj+CUZW9uFv9HVf4bfs9/+cEdFkyPMHFwek76 WwgRcx8JRM3FGXCoAreRGtA3anRIhgQZXjgnneCs= Date: Wed, 29 Apr 2020 12:10:32 -0500 From: Bjorn Helgaas To: Austin.Bolen@dell.com Cc: sathyanarayanan.kuppuswamy@linux.intel.com, Mario.Limonciello@dell.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, ashok.raj@intel.com, jonathan.derrick@intel.com, mr.nuke.me@gmail.com, rjw@rjwysocki.net Subject: Re: [PATCH v1 1/1] PCI/AER: Use _OSC negotiation to determine AER ownership Message-ID: <20200429171032.GA30596@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 29, 2020 at 03:24:41PM +0000, Austin.Bolen@dell.com wrote: > On 4/28/2020 3:37 PM, Bjorn Helgaas wrote: > > [EXTERNAL EMAIL] > > > > [+to Mario, Austin, Rafael; Dell folks, I suspect this commit will > > break Dell servers but I'd like your opinion] > > > > > Thanks Bjorn, for the heads up. I checked with our server BIOS team and > they say that only checking _OSC for AER should work on our servers. We > always configure_OSC and the HEST FIRMWARE_FIRST flag to retain firmware > control of AER so either could be checked. > > > I *really* want the patch because the current mix of using both _OSC > > and FIRMWARE_FIRST to determine AER capability ownership is a mess and > > getting worse, but I'm more and more doubtful. > > > > My contention is that if firmware doesn't want the OS to use the AER > > capability it should simply decline to grant control via _OSC. > > I agree per spec that _OSC should be used and this was confirmed by the > ACPI working group. Alex had submitted a patch for us [2] to switch to > using _OSC to determine AER ownership following the decision in the ACPI > working group. Perfect, thank you! I had forgotten that Alex posted that. We should add credit to him and a link to that discussion. Thanks again! > [2] https://lkml.org/lkml/2018/11/16/202 > > > But things like 0584396157ad ("PCI: PCIe AER: honor ACPI HEST FIRMWARE > > FIRST mode") [1] suggest that some machines grant AER control to the > > OS via _OSC, but still expect the OS to leave AER alone for certain > > devices. > > AFAIK, no Dell server, including the 11G servers mentioned in that > patch, have granted control of AER via _OSC and set HEST FIRMWARE_FIRST > for some devices. I don't think this model is even support by the > ACPI/PCIe standards. Yes, you can set the bits that way, but there is > no text I've found that says how the OS/firmware should behave in that > scenario. In order to be interoperable, I think someone would need to > standardized how the OS/firmware would could co-ordinate in such a model. I agree and I want to get Linux out of the current muddle where we try to make sense out of it. > > I think the FIRMWARE_FIRST language in the ACPI spec is really too > > vague to tell the OS not to use the AER Capability, but it seems like > > that's what commits like [1] rely on. > > > > The current _OSC definition (PCI Firmware r3.2) applies only to > > PNP0A03/PNP0A08 devices, but it's conceivable that it could be > > extended to other devices if we need per-device AER Capability > > ownership. > > > > [1] https://git.kernel.org/linus/0584396157ad