Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3140058imu; Mon, 19 Nov 2018 11:14:18 -0800 (PST) X-Google-Smtp-Source: AJdET5dDeaggE67V5jstI9iU63hJ+rvgy1BhoZ3he6ide47WJFx9GFotIcnMj55DXFVu+stKVEMI X-Received: by 2002:a63:181c:: with SMTP id y28mr20640932pgl.75.1542654857951; Mon, 19 Nov 2018 11:14:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542654857; cv=none; d=google.com; s=arc-20160816; b=X7NgCUU15QV1vuMw/MuzkJqcRbC7WD32r5UgFw8y7Y1SXm020/UA+WKXkHj+OQt5gE fuYg7Us5uk7vcXNW7+xphTcQmHLo3eXJWGtlv1HbqLRwEL075X+wWWv32S8TRGEHjGQK Hi+iFMfNhoH1lieS/PFfAYkrC5DWWYx1JnjHEVZta5bZyPmpjCM8rhh8zYUd21mC2zDm ukybj42n/NQVK70Fwkthc5JziCeUaFXkLY+PTF5H8lUN0uf8TwCThvRpioTtZQ0p0V3m hUEk/Gc+tALycMbwAhN28cg+GhnZwqVo258k5dGXvOPuVoNEEQoDgf++rz0r+bpy0LQs mZrQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=798Y91enXE4kDi8T02D0jxp54tLLl+SmkeKec8c0lgM=; b=fKhmOZN0EzEqy4MNrMT51LThGQfRxZJKVQSy2Moc/CyH2FsPXpvHPs7/VqUXjkH7E0 NC7oiIXnO5miNckFt7hHy6lb06numDbuUxedTATnn/v0O2tb2X84zp8Q+HkBSLjsD7ka O/sXlwSACgyQRCcWNUqxvW54JbDUXcKJxKrlBxWCLDkqxCtx3vfUxwR0qZokNEENL6zq IONGaDmwRPhklLrQ8Saa8aDErc8AJDC9xfnXnke6QyS58dJMuldSK0zv4obohCLqWjGE ABDfqXR1bqbbVueo0cOZLxx8mSS//+mlbSW8/Aye8AxYfj8wU4e2j+hObdHXm77SeSH5 j/lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pe2nRtkd; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r68-v6si39049469pfa.69.2018.11.19.11.14.02; Mon, 19 Nov 2018 11:14:17 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pe2nRtkd; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730219AbeKTFhB (ORCPT + 99 others); Tue, 20 Nov 2018 00:37:01 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:39029 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbeKTFhB (ORCPT ); Tue, 20 Nov 2018 00:37:01 -0500 Received: by mail-oi1-f193.google.com with SMTP id 192-v6so26184948oii.6; Mon, 19 Nov 2018 11:12:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=798Y91enXE4kDi8T02D0jxp54tLLl+SmkeKec8c0lgM=; b=pe2nRtkd02iRqUe2Cmpyfjoo7s8vp6JfGQnlyx+yl3JbDJ/UEd0A1CrsLZr6sHI678 7KHkn8Yd0z6z8mNh9A+LnbBc6QDDcDU25ERDmZygniAQ2jntZ6aavxRbUVKjvogquzYe crQ8s0mI9DlKhx6sPeCroqgh625mD+H8WdReCDY7fJvK8LsnIqxGaYG9vUYk41xjNW4W P5EZnnccDc88P2wUA2EJlU8h3xyqLCvwbmvjTvXl8OL8NW/xxjyhGl9/lUSvmkXEy/OL N2WblqYO+hRQ41xnTAJMjJIViGn2k+KGwhraxzXbsvCcIGHQVgr+15/0c7thD0fjiW+v OKug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=798Y91enXE4kDi8T02D0jxp54tLLl+SmkeKec8c0lgM=; b=N92ygD+7qRkIOkEOd3gtYlTCHb/b4zGNPcIg0KtlEbMMg4wutCKT2QGF6AX6wz49Y+ yA0tpLUck4IugO3fPHtgJzv2iUvHQ40SHAJtAe/OhL3uJoo8GOR396K8QKilLlXZWAUu +OXZDY0+VJ/OqcgxjShUqN77uiJOchV7YRZz50zXfKZBCNsvxhcaze9FpYO/KpvKJwcF NuOAcHmX/l9k1L6KGi2YbOEgc2UyuhFe8GzZ41dJJqCgFSXvDEzdeujTH0BV9mNv3/Q4 s6dxoHhXjKLtFn6jferlCvBb6zk5E2+8dPyMTF7pruEzSyu5yn1znQyKG06KsU+HxKzs XjYA== X-Gm-Message-State: AGRZ1gLlh2pAXoQ14I/2ZHAs0Nw2LDWcXV3juyYmYadkwal9WjQd66nW YE8Fnr2n2aaRZNvxmJxwSPk= X-Received: by 2002:aca:5681:: with SMTP id k123mr5607738oib.106.1542654722259; Mon, 19 Nov 2018 11:12:02 -0800 (PST) Received: from nuclearis2-1.gtech (c-98-195-139-126.hsd1.tx.comcast.net. [98.195.139.126]) by smtp.gmail.com with ESMTPSA id u136sm9202283oie.38.2018.11.19.11.12.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 11:12:01 -0800 (PST) Subject: Re: [PATCH 0/2] PCI/AER: Consistently use _OSC to determine who owns AER To: Sinan Kaya , Keith Busch Cc: Tyler Baicar , 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 References: <20181115231605.24352-1-mr.nuke.me@gmail.com> <20181119165318.GB26595@localhost.localdomain> <74f2c527-0890-5e14-5e2d-48934a42dae6@kernel.org> <20181119174127.GE26595@localhost.localdomain> <20181119181051.GA26707@localhost.localdomain> From: "Alex G." Message-ID: <3f923367-2cc1-c0d6-bca6-bf9a03d1b9ca@gmail.com> Date: Mon, 19 Nov 2018 13:11:59 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/19/2018 12:24 PM, Sinan Kaya wrote: > On 11/19/2018 1:10 PM, Keith Busch wrote: >>> We can't really turn off firmware first in the kernel without asking >>> help >>> from the firmware. >> The _OSC method this patch utilizes is the ACPI spec defined way for >> the kernel to wrest control from firmware. BIOS specific menu settings >> shouldn't be our only recourse when we have a spec authority defining >> generic OS interfaces to accomplish the same thing. >> >> Unless there is a disagreement on the _OSC interpreation, we'd have to >> accept that platforms breaking from this patch are non-compliant. >> > > It depends on which spec you look :) > > UEFI HEST table specification also claims that it should be the ultimate > table for when PCI firmware-first should be disabled/enabled. IIRC, EFI absorbed ACPI before FFS was a thing. Could you point me to the UEFI chapter that says HEST is authoritative? (not being a smartie, just that my free software PDF readers can't search within a file that large) > I think somebody needs to fix these. I saw an email from Harb Abdulhamid > sent to aswg this morning. > > That's why I suggested circulating this idea in UEFI forums first. > Let's see what everybody thinks. We can go from there. However you look at it, we have a glaring inconsistency in how we handle AER control in linux. I'm surprised we didn't see huge issues because of mixing HEST/_OSC. What systems rely on the HEST definition as opposed to _OSC? It doesn't make sense to me that you could have a system with mixed FFS and native AER on the same root port. The granularity of HEST shouldn't matter here because of how AER works. I'd like see how exactly we break one of those elusive systems with _OSC. I suspect _OSC and HEST end up having the same information, and that's why we didn't see any real-life issue with mixing the approaches. Alex P.S. (SARCASM ALERT) Isn't UEFI is a pile of stuff that didn't stick to the wall? P.P.S I remember someone asking why we don't disable FFS in the BIOS. I think it would be next to impossible to get certain platform vendors to relinquish FFS control, unless the specs required things to be that way -- and had a "standard" way to do so. Then getting the specs to change in that direction is also a battle.