Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3226362imu; Mon, 19 Nov 2018 12:35:01 -0800 (PST) X-Google-Smtp-Source: AJdET5espoZ66ZpWZ9JZQ9z6lmlxAosgvUh43YzFnVCo75LI43ZWM4xcOdNmMNFOoNEzlFF4qu7C X-Received: by 2002:a63:4926:: with SMTP id w38mr20680847pga.353.1542659701296; Mon, 19 Nov 2018 12:35:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542659701; cv=none; d=google.com; s=arc-20160816; b=0PEWKNGu9vyOmwfzEe0pm31OoKWrOGpyYyjBd2okYpmE4I476BmpdBduRojq2GQ0Ey 0VYtCMzmubygMBWagrfEh2WcfbsjPD6lwJT4xVsG0ncmn403r9zKrAVBJ2pxjT5AV3Nd pTjKa847GhY35Am8PfqKCH6YP31dQCfvqYrme0+4L1ftQno98wBDnUWufWiGq/n++w5L aZlcNbzYik+nBEuWKSCBuwNeCdH8PTodUhYL9T2q0e0gPc0GCByxc/j8IDKmRk8Uc8tD bcUuBjjqwj5cHsmAtmqSvaopACf2GIinB/ZMo3zkU2sakIF7Q1j33JD6PghMYmemQJjp 4JBw== 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=G0BC97q6m0pwqZru4xnMLoF/PTY5LswDKytxUgYNo6A=; b=WdLi2wByc3/zpY+wMa0Pp3Kf2JrGlET8L+QagmJOza24bGVtPJUFt7LG5PrbNNJU8T JdtGxQJoEGjOu0dNvpND0vVjjO7LT3UlQSDEd26ryuigZX8rSqtl/1sKcKLkUp9Y4YJh lrP/87IOK83OgCgUw1o6fvbBjsWembOvhW8P8ZLuJIcxAcTrPVRoS1ONS677qebnIS1j jKvJaF88eLPGfVpxRhqpiZOa3Kq+IUu/bRrCF0hHufiEb96S9MPu7jc1wYxNVWtHKC5N iqQFxgTCcSX4YeARc6PEmFKNp+MpBFFcWlfr2xcRGjlNafLsqNGn3/By9PJF34hNZHv3 idfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Kvf8Z2I0; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q128si29538043pfc.179.2018.11.19.12.34.46; Mon, 19 Nov 2018 12:35:01 -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=@kernel.org header.s=default header.b=Kvf8Z2I0; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730771AbeKTG7Q (ORCPT + 99 others); Tue, 20 Nov 2018 01:59:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:48526 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728938AbeKTG7P (ORCPT ); Tue, 20 Nov 2018 01:59:15 -0500 Received: from [10.80.45.159] (unknown [71.69.156.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 00FD120851; Mon, 19 Nov 2018 20:33:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542659635; bh=3uKhecW8K14uBnBMOtnnZLwY/FmqbriVrVCRteZ99aE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Kvf8Z2I02HiExO7+Lci5/WYHgwa/6oGk3SsuNK93xAzRxdm47m8OS5ecrnIeU+ve7 qEZFRRrODATU1m1iLbt7yW4QAgJw+znhcP+yVn5Emb5hnYB0jBPfJe0JuYfFhJjS9K G75nldkt9mtUyhq1m5dNmFOG/KifGdqV56GpIup0= Subject: Re: [PATCH 0/2] PCI/AER: Consistently use _OSC to determine who owns AER To: Alex_Gagniuc@Dellteam.com, mr.nuke.me@gmail.com, keith.busch@intel.com Cc: baicar.tyler@gmail.com, Austin.Bolen@dell.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@vger.kernel.org, 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> <3f923367-2cc1-c0d6-bca6-bf9a03d1b9ca@gmail.com> From: Sinan Kaya Message-ID: <84013a8a-287d-d700-6710-91cc35f507c8@kernel.org> Date: Mon, 19 Nov 2018 15:33:52 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.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 3:16 PM, Alex_Gagniuc@Dellteam.com wrote: > On 11/19/2018 01:32 PM, Sinan Kaya wrote: >> ACPI 6.2: >> >> 18.3.2.4 PCI Express Root Port AER Structure >> >> Flags: >> >> Bit [0] - FIRMWARE_FIRST: If set, this bit indicates to the OSPM that system >> firmware will handle errors from this source first. >> Bit [1] - GLOBAL: If set, indicates that the settings contained in this >> structure apply globally to all PCI Express Devices. >> All other bits must be set to zero. >> >> It doesn't say shall, may or might. It says will. > > It says "system firmware will handle errors". It does not say "system > firmware owns AER registers". In absence on any descriptor text on the > meaning of these tables, this really looks to me like it should be > interpreted as a descriptor of APEI error sources, not a mutex on who > writes to certain bits-- AER in this case. True. I was trying to get it out in a rush. I omitted words. However; table assumes governance about for which entities firmware first should be enabled. There is no cross reference to _OSC or permission negotiation like _OST. > > I don't think that is contradictory or inconsistent. > I also wasn't able to find any reference to HEST in UEFI 2.7, only in > ACPI spec. You are right. It was a confusion on my side. The right place to look is ACPI specification. I was involved in this a couple of years ago. Some pieces were in UEFI spec. Other pieces were in ACPI. I guess they got unified now. > >> I think It depends on your PCI topology. >> >> For other topologies with multiple PCI root complexes, I can see this being >> used per root complex flag to indicate which root complex needs firmware first >> and which one doesn't. > > _OSC is per root bus, so it's already granular enough, right? Why would > it depend on PCI topology? > I was speculating. I don't have the full background on this. Need to consult the spec developers. >> As I said in my previous email, the right place to talk about this is UEFI >> forum. > > The way I would present the problem to he spec writers is that, although > the spec appears to be consistent, we've seen firmware vendors that made > the wrong assumptions about HEST/_OSC. Instead of describing AER > ownership with _OSC, they attempted to do it with HEST. So we should add > an implementation note, or clarification about this. I agree. > > Alex >