Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3029092imu; Mon, 19 Nov 2018 09:34:13 -0800 (PST) X-Google-Smtp-Source: AJdET5dE62bgQ3dInBfP3LcE37VnJ4T47KY2/4Wy3otPtBXvifl5zH9eTRTlSRU5JZk4iIeNLmMF X-Received: by 2002:a62:1bd7:: with SMTP id b206mr23826189pfb.213.1542648853169; Mon, 19 Nov 2018 09:34:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542648853; cv=none; d=google.com; s=arc-20160816; b=wDjD+chW53Mtpj1GZzLpIGfO5QMr0vCZSbqKjf/7HBnn9mzdgfqNhT++2ou3EPOvVj Ojkkl1M9xPujj2YJOdSnJNBgynRNXm+OAGRxMV+/iz5WAFADD62QyhM6SedZETE6Kywo asU16ZkkwTlfGA43mxt3NA1+P/59I54KLl7s9f2Xabcu7j54dwa220+Q/9IPCfWgS2HJ m/SkOIFPgywHnMgjANqHGLaUolqiNYTVlcxdqYQS6ULK8/CO53HX6ZTCnAKMcxlK4xgD aQJXegJS6GNIjKPM+90mkm8SALXFy5un/6+EOPCHeGy/JOo8fkUHHzwjVOl2KJWZy1+Y u/ew== 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=7VBzENp0sEiXKsLQ9VNdKi1mOMET8E8YRQ9Ze5gyo68=; b=fAd2vR5fo8yHICRa1niobziJfYI314HHlwcMW2oYgjSj4QB6/glgzYs8Pa/XTdRUbQ Hwl8fdfYvDRwmyBWP6JG1G8iC03dJzFOKsswk1XtIAYXvuPGFQ665d/KRUtr5FTn6pOy mVDsr7kJH0oOGLWdJF5FOkvmBKLYFrR76k+12I0cFgtehdKkkS1lTY7Hr8ftoHNvjvf0 N+QNH7Sa7gJrRRCOcy0dYhXdMrfM20CFNgIQ7Mj8Kzr7tYCtHFTm9nT8WZoqT7+ihVYd e/XNam807e7GKVs2v+aEuPdeCJq/8UiF+DSNU8jtxlejf3w7XKAIoHb+FK8F6Ym98Qo9 U0sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JlBb8Ms9; 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 w22-v6si40458095plp.110.2018.11.19.09.33.51; Mon, 19 Nov 2018 09:34:13 -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=JlBb8Ms9; 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 S2391008AbeKTD5K (ORCPT + 99 others); Mon, 19 Nov 2018 22:57:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:56894 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390242AbeKTD5K (ORCPT ); Mon, 19 Nov 2018 22:57:10 -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 DB4F8213A2; Mon, 19 Nov 2018 17:32:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542648764; bh=f5jXAEtHIW0yHUGhIlpB1DKM3MCKC1MibrxuM8Dd4ic=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=JlBb8Ms9VxyBOyewAMmc5qnS7DgUfZBgNld6DhG+rEJ+V8UnX6dCABPA3KMsqqfDW zGtnyl6CDzb3Hae01ad9WzxZmIQo6nqPXRckLbraUfmEAeMlwWiq5gasMJDg+ffYwU zeFR52OBnRyCQmFb0NniC9n4NC2NFfwajjFzgFO0= Subject: Re: [PATCH 0/2] PCI/AER: Consistently use _OSC to determine who owns AER To: Keith Busch , Tyler Baicar Cc: 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 References: <20181115231605.24352-1-mr.nuke.me@gmail.com> <20181119165318.GB26595@localhost.localdomain> From: Sinan Kaya Message-ID: <74f2c527-0890-5e14-5e2d-48934a42dae6@kernel.org> Date: Mon, 19 Nov 2018 12:32:42 -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: <20181119165318.GB26595@localhost.localdomain> 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 11:53 AM, Keith Busch wrote: > On Mon, Nov 19, 2018 at 11:53:05AM -0500, Tyler Baicar wrote: >> On Thu, Nov 15, 2018 at 8:49 PM Sinan Kaya wrote: >>> >>> On 11/15/2018 3:16 PM, Alexandru Gagniuc wrote: >>>> I've asked around a few people at Dell and they unanimously agree that >>>> _OSC is the correct way to determine ownership of AER. In linux, we >>>> use the result of _OSC to enable AER services, but we use HEST to >>>> determine AER ownership. That's inconsistent. This series drops the >>>> use of HEST in favor of _OSC. >>>> >>>> [1]https://lkml.org/lkml/2018/11/15/62 >>> >>> This change breaks the existing systems that rely on the HEST table >>> telling the operating system about firmware first presence. >>> >>> Besides, HEST table has much more granularity about which PCI component >>> needs firmware such as global/device/switch. >>> >>> You should probably circulate these ideas for wider consumption in UEFI >>> forum as UEFI owns the HEST table definition. >> >> I agree with Sinan, this will break existing systems, and the granularity of the >> HEST definition is more useful than the single bit in _OSC. > > 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?