Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1250344imu; Tue, 20 Nov 2018 14:19:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/XkxSlKyffKq6VqrHbu4YHGSt4S3lvUF4vebBbjSuf5/O5JfvjPWOv/Q0T97LpOokSq5BpT X-Received: by 2002:a63:5122:: with SMTP id f34mr3452276pgb.218.1542752388073; Tue, 20 Nov 2018 14:19:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542752388; cv=none; d=google.com; s=arc-20160816; b=nXnmhq3GFkk+Z46lbM7cCky07Zs9mDu6CmUn9Jx+/si3clJ3YTFRzZ0kNX6mCFBcCo UO3Pl0B1fP744fi7cUc02smw6dqMKpic7nNToFQCQlDJAWa1pLsDYX8ysdK43T/zUTV5 p+7Xgqy9pfyz/L8L9/u2gH9qp1K+zGHvLETW3LVSu8gMMSvterNfWxXIrn6RgyLGrlNy Y4IlO3qUHxCh5mU+DnFYMwG4OQm38Dd+9sG2xYpPyUF3mArCTjpeSdH4bYlCH0G1mGzx SqTz/UU7XGY/o7P0XMoNbVELioM0v1PmkCvMRDwUozKfAEn3xUvaGcO6bBrB4x8Mw1XG vp8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:to:from:cc:dkim-signature; bh=NxDqcW+6s36/h5xsrSfWYBfU0rTEH85UnU3xKU8f0yc=; b=wSoq21uosvcdA73l60iZS4xgh0SWB6qdu0Ql/aho46+UxiTzLMnp3jm9JGZd5Mc31H LOO3MjF4FYvJnNwpzlPNFgh/3PAN0NCQfpxOx4BxALzRBrUqsydPNhRAoyvAffs6N2aw LskYJLxwsLhMZlV1ZkcDOezCiA2JhxFbkYkl7TuYgYF201Tt4baqJ1zXKqQa5MAVnoKf s0cUTbaEPx7mgGxQVLlADy01KiZZkviv0EOrUG4KW5BZ+39rgmGO9nNmiEIvj5EKo4pn cRnxcQ4zWcRr/qD98dWTNDHVOiV2wiSILprZFCE/iSaRR1MmSx5o7kdf4ydMGARtnsDv NKXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@dellteam.com header.s=smtpout header.b=0KqtUWHA; 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 31-v6si46830259plc.140.2018.11.20.14.19.33; Tue, 20 Nov 2018 14:19:48 -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=fail header.i=@dellteam.com header.s=smtpout header.b=0KqtUWHA; 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 S1726115AbeKUIRh (ORCPT + 99 others); Wed, 21 Nov 2018 03:17:37 -0500 Received: from esa8.dell-outbound.iphmx.com ([68.232.149.218]:60491 "EHLO esa8.dell-outbound.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbeKUIRg (ORCPT ); Wed, 21 Nov 2018 03:17:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dellteam.com; i=@dellteam.com; q=dns/txt; s=smtpout; t=1542750381; x=1574286381; h=cc:from:to:subject:date:message-id:references: content-transfer-encoding:mime-version; bh=E8Cv1jVOYyVT9xK6rqBcVwMN7EPVaji1/ATmt84YejA=; b=0KqtUWHAlUc8usLXZKev0aqUuCdjs4soT4CkZTnhgapu2CaF/A+8nMiP KkC1JeuzU+/X03hrSGxw/JALXjMsmWsJ7NvlX418hRH5n7dtvF/TNVBrf nNNH3OElWqdJt2zUOT8/8o7JMAg175J1TixQaEPI9x1o0V+4oEFLc3sWp 8=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2EkAABmf/RbhiWd50NaChwBAQEEAQE?= =?us-ascii?q?HBAEBgVIGAQELAQGDaicKjGWNK5c3gXoLAQGEbIN4IjUIDQEDAQECAQECAQE?= =?us-ascii?q?CEAEBAQoJCwgpL0IBEAGBYiKCZQEBAQECARIoPwULAgEIGB4QVwIEARIIGoJ?= =?us-ascii?q?/gXoIngkCgRCJWAEBAYIdiieMBYIWgRGDEoRTK4VbAosNlGoJBZEdIJEBLJd?= =?us-ascii?q?UAgQCBAUCFIFIAYILcIM8gicOCY4cQAExggmKeYEfAQE?= X-IPAS-Result: =?us-ascii?q?A2EkAABmf/RbhiWd50NaChwBAQEEAQEHBAEBgVIGAQELA?= =?us-ascii?q?QGDaicKjGWNK5c3gXoLAQGEbIN4IjUIDQEDAQECAQECAQECEAEBAQoJCwgpL?= =?us-ascii?q?0IBEAGBYiKCZQEBAQECARIoPwULAgEIGB4QVwIEARIIGoJ/gXoIngkCgRCJW?= =?us-ascii?q?AEBAYIdiieMBYIWgRGDEoRTK4VbAosNlGoJBZEdIJEBLJdUAgQCBAUCFIFIA?= =?us-ascii?q?YILcIM8gicOCY4cQAExggmKeYEfAQE?= Received: from mx0b-00154901.pphosted.com ([67.231.157.37]) by esa8.dell-outbound.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Nov 2018 15:46:20 -0600 Received: from pps.filterd (m0134318.ppops.net [127.0.0.1]) by mx0a-00154901.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wAKLh4VY173928; Tue, 20 Nov 2018 16:46:20 -0500 Received: from esa1.dell-outbound2.iphmx.com (esa1.dell-outbound2.iphmx.com [68.232.153.201]) by mx0a-00154901.pphosted.com with ESMTP id 2ntegghycm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 20 Nov 2018 16:46:20 -0500 Cc: , , , , , , , , , , , , , Received: from ausc60ps301.us.dell.com ([143.166.148.206]) by esa1.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA256; 21 Nov 2018 03:45:41 +0600 X-LoopCount0: from 10.166.134.85 X-IronPort-AV: E=Sophos;i="5.56,258,1539666000"; d="scan'208";a="1228364035" From: To: , , 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: AQHUfTk2X+FUHiVWnkuZssuLn5DqDg== Date: Tue, 20 Nov 2018 21:46:13 +0000 Message-ID: <4728316eb84446358e0a07bbf1e42b57@ausx13mps321.AMER.DELL.COM> 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> <84013a8a-287d-d700-6710-91cc35f507c8@kernel.org> <9c9531c7efb846438f03f744b9afc466@ausx13mps321.AMER.DELL.COM> <3b18a9fa-7bdd-0fb4-285d-4efb454be50a@kernel.org> <314e59da-48e1-545b-3ee9-6e5056b90fd9@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.178.128.193] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-11-20_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1811200190 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/20/2018 03:02 PM, Sinan Kaya wrote:=0A= > On 11/20/2018 3:44 PM, Alex_Gagniuc@Dellteam.com wrote:=0A= >> I'd prefer "sure" instead of "think". "I think it breaks some system I'm= =0A= >> not telling you about" doesn't help much in figuring out how not to=0A= >> break said system(s).:)=0A= > =0A= > Sorry, I thought I mentioned why it would break but let me repeat.=0A= =0A= Why, yes, but bets are still being placed on the systems allegedly =0A= suffering from this.=0A= =0A= =0A= > The systems I have seen rely on the HEST table presence as an indicator= =0A= > to the OS that firmware first is enabled. If you go look at the _OSC bits= =0A= > on such systems, it still says OS owns the AER service.=0A= > =0A= > The assumption here is that HEST table has precedence over the _OSC bits.= =0A= > That's what needs to be clarified in the UEFI forum.=0A= > =0A= > If this code is to go in and ignore the HEST table presence, then firmwar= e=0A= > will think that it owns AER service and OS will think that it owns AER=0A= > service too.=0A= =0A= So this seems like exactly the scenario we were hypothesizing.=0A= =0A= * System boots up with FFS enabled. Everything is fine so far.=0A= * OSPM requests control of AER (set bit 3 in _OSC)=0A= * FW grants OS control of AER (set bit 3 in _OSC reply)=0A= =0A= That's how things are designed to work.=0A= =0A= =0A= Now, let's assume, for the sake of argument, that the firmware on those =0A= system's is broken, and it didn't intend to give the OS control of AER. =0A= OSPM checking HEST instead of _OSC is still wrong, according to the =0A= spec. Two wrongs don't make a right, they just don't crash.=0A= =0A= I think the correct way is to identify those broken systems, and add =0A= quirks for them. Continuing to have inconsistent and over-complicated =0A= logic that is not spec compliant is not any better.=0A= =0A= Alex=0A=