Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp2567792pxu; Fri, 9 Oct 2020 23:24:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3SyrVIAcXjPGmC4PU6iweUCjEArG5IqTS75lMF8CStM1rTlXxsmxJPoDDXctIhI3lBFjv X-Received: by 2002:a17:906:4d1:: with SMTP id g17mr3730251eja.38.1602311079871; Fri, 09 Oct 2020 23:24:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1602311079; cv=pass; d=google.com; s=arc-20160816; b=TQgmqSVHrpqyDWtf04FkGLIb9udqYJ2TL8UFr7YWpRrw4BgFwMzfUqOOeSmcgUESvz j6C3sZjISWVUBmY43dBSpTXlpRtID3mhbkrYQoiu0R0fuG10prCPkcEky9TDye8jC28V 1J4WvNZeCJvc4zf2DiLugbS4ptwzZdVFQRSD+Fx8JkKdSPfwCx75k3BWQnEgpB5DKpKw Q7+NAgzTV1/59VEQ1smQMk2ko8avaVwbghQU+uvVM/BD98y5E9VOEu5CnqRDRFYxO5Fa vuHkKHRYBL1Onz6i6qJqOAmtiAFwkzxd+z29Ci6wqyQWTcK0mnkT4JqOhzfCmaOH8Xti HrwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:reply-to :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:dkim-signature:ironport-sdr:ironport-sdr; bh=bPYp3M1Kd0MM5FGPo6Gfb1k9IjvLBvJzABd/N3oT0SE=; b=kG/KCskZw2/NZOJKFsy1Q8mBvTlfnakFDe2b8MPi8Dqey44wemN8GvTnPS5rI7PGDr F+5v3tPP66PNa8fPCHSlCpT0XHBW6Uise0otMRtXiyXnDebzNIIeSqPJKR1OOzl268CV IqVOT0+kyNfWSEF4cUCasTjR0GUtj8M3tsRI7Cidu4urjV13Y11U9zljawv8LzEHfAbc kEJ/x9YPrYruTyntQs+s4qiZ8gqjEfhz1xReEg3fP8m++cwrA0BzB7Tu2LoLQrGQtc+D jlF99Xjy5EzEjr36drHrZ5jSbB/5WzdEhOCsHV9xHa2Oo2DCZAr5CbVjwL1v2hG86Vzs R3KA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=LqJbzUjx; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ng7si7575018ejb.699.2020.10.09.23.24.15; Fri, 09 Oct 2020 23:24:39 -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=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=LqJbzUjx; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727481AbgJIX4j (ORCPT + 99 others); Fri, 9 Oct 2020 19:56:39 -0400 Received: from mga07.intel.com ([134.134.136.100]:11052 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728431AbgJIXxe (ORCPT ); Fri, 9 Oct 2020 19:53:34 -0400 IronPort-SDR: wQavk3zFgWuRf8IVRA+j9iQYm7iDKTWYCmFKDiBLMpRc6dwIXLfmiuJQgDe6biTwH3nC3abdPH 3p2ROCJExzsw== X-IronPort-AV: E=McAfee;i="6000,8403,9769"; a="229732996" X-IronPort-AV: E=Sophos;i="5.77,356,1596524400"; d="scan'208";a="229732996" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2020 16:51:54 -0700 IronPort-SDR: 6ldq2pWp3ZvvDzOb4InihEnUcSDaTWfWuFrF53BIGjNxGx5XbABAx36lusU0zAKMyIUaNugH1D 1bZbfxjHevbQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,356,1596524400"; d="scan'208";a="298592742" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by fmsmga008.fm.intel.com with ESMTP; 09 Oct 2020 16:51:53 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 9 Oct 2020 16:51:46 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Fri, 9 Oct 2020 16:51:46 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.168) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Fri, 9 Oct 2020 16:51:45 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SQODH7UnUMeR/D0/oos4M8izxOOmeyvd9xxfGUW17LIWMfxglFeae3+GzxOMW4ZVky8KQuofflPMzUanPHtQ0x82SJNZqqqeN6vxBNX1zLBfmZHhiYM9+J3popDZKOkkOL2/Oe0cMj/Sl4nS33ErvHRzqst8wMRFV8K4s8RidVRH2GeHCNv1lbefhqu1xSKhQf6+LOyWgnXlFTbIxKb3CV5qcOh4jyjGJuwueNGkCk3tl+gLF5BXsNwFybv897+OQPJF1+ONo/hE6PfuRR5m1nNId7G1hbSKjOsXuGKKdbw8Ivd8PIQTGrGwnqkC3eFswXZ4pbl8wZkABqUm2oE2rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bPYp3M1Kd0MM5FGPo6Gfb1k9IjvLBvJzABd/N3oT0SE=; b=OKiy8xlDSsbzUPnTinQOOgxQuABDPg67nKOnGVCZ7VA3SSTg4gUNeDcU/Or0Hu65hP/71GojQIGWTGdnN/BOdY32qfewku79Qzzp9k9Uqt172pQMHIdFiPHrjrgmQn+nWhwdw0iEKZPzwM6PeeF2b7kI2EeFo3pnc432tXkcbZxeIi/hIJERYU11bkc6+WncxBVJGbtltCNg0ojMNl3U4mkeBB3ndb4thOC1e2xunfSdx8yGRWvSuwWE3x9QK48ftHONA46w6DeTK9C/r9M5yWbWwSufvxQVjP32JHrnXXlelm5lw8HM5PO73+MljoxJ0uZYgv9ME7GZQXOp0sIliw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bPYp3M1Kd0MM5FGPo6Gfb1k9IjvLBvJzABd/N3oT0SE=; b=LqJbzUjxeHq1MJ2y/HL6utoxsslTP+oGBdtbmSDDtJPOBvuS/LcDx3RtGcNGFY1klGwBtTE/8Tav335LOWXKDWVmQUy3WCSOuI/hkKsbHg2ms9VehLwqv2gcQb8A+K+x9ch3PNnKz6YhG148E9f2DvGnkhEFDGbriXmlNrllIlQ= Received: from MW3PR11MB4699.namprd11.prod.outlook.com (2603:10b6:303:54::13) by MWHPR11MB1293.namprd11.prod.outlook.com (2603:10b6:300:1e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.23; Fri, 9 Oct 2020 23:51:39 +0000 Received: from MW3PR11MB4699.namprd11.prod.outlook.com ([fe80::7cac:24ae:6d36:aa90]) by MW3PR11MB4699.namprd11.prod.outlook.com ([fe80::7cac:24ae:6d36:aa90%4]) with mapi id 15.20.3455.028; Fri, 9 Oct 2020 23:51:39 +0000 From: "Kelley, Sean V" To: "helgaas@kernel.org" CC: "Zhuo, Qiuxu" , "Jonathan.Cameron@huawei.com" , "Kuppuswamy, Sathyanarayanan" , "Raj, Ashok" , "linux-kernel@vger.kernel.org" , "Luck, Tony" , "Wysocki, Rafael J" , "linux-pci@vger.kernel.org" , "seanvk.dev@oregontracks.org" , "bhelgaas@google.com" Subject: Re: [PATCH v8 11/14] PCI/RCEC: Add RCiEP's linked RCEC to AER/ERR Thread-Topic: [PATCH v8 11/14] PCI/RCEC: Add RCiEP's linked RCEC to AER/ERR Thread-Index: AQHWnmW4aqtbxhl8YU2ALieyuO2d2KmPyfCAgAAKXwCAABz+AA== Date: Fri, 9 Oct 2020 23:51:39 +0000 Message-ID: <96d2cf35723265ce189ba2053fe4c347a816e9a4.camel@intel.com> References: <20201009213011.GA3504871@bjorn-Precision-5520> <56145784-8C7B-4206-B172-997F8D8C97D5@intel.com> In-Reply-To: <56145784-8C7B-4206-B172-997F8D8C97D5@intel.com> Reply-To: "Kelley, Sean V" Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.36.5 authentication-results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=intel.com; x-originating-ip: [2601:1c0:6a00:1804:88d3:6720:250a:6d10] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d5463ca5-7bb2-4e4c-06a6-08d86cae444c x-ms-traffictypediagnostic: MWHPR11MB1293: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: f7Rm4BmCEMncqZFilhP9jodvR7nUSRWCNPAcCcLqaiWNcD7DYJZHI/i05TtU9gOh+JVJQBlxyN4aw19HW1OU4HcpYKyetcHy+xxF5hJHOhdrTom6lLfs26UuARRSif6yipC4O0u6pHlRQXddXZ7NQn5Cl99wLUOL/OmdV2ugdUJWNeufeYubjRSt+bSyHeTm0BCoia4GCz9IjyL2VD6twbcqloYqOs2CGKG5S8dahtACAsKTG5EPMzsdvlH4VrvocgIirGBw3uwvxrg6Ph3PSOgGbe2mCauS3PNc0HFz9HmGN7s1CguDRAPWXBotyyzLJMHUgScsP9CYyTmxW4l5HA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW3PR11MB4699.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(376002)(346002)(396003)(136003)(39860400002)(66476007)(53546011)(6506007)(6512007)(2906002)(6486002)(30864003)(83380400001)(76116006)(3450700001)(66946007)(5660300002)(71200400001)(64756008)(66446008)(478600001)(316002)(2616005)(186003)(86362001)(54906003)(66556008)(36756003)(4326008)(8676002)(6916009)(8936002)(579004);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: 33KtLYhKwULl0kSIvlR4pfzaYEC5A6ZvpEHjPHg9uLHOY6FUDRfha2i4fA/YnBYyR89jE2o7/vZMGEVFnkuXQNNU6E4CuM8j2XePiqfX6e0irs82VY8KK7rm/KDotZxIuUOs4OuNiVdeU7nTXANcwHt0TVVuibouQpk8f1R1ved4Xg89W2n11IKdQHN593xGLaeqk4pbE1Kr9iPdG4qlWtfVE14AQr3QqkrFX8lkCrQ3tDoAudAZv8eXso+8Z3G15EIP7bi4AIrJITj85Z60ulgyvlgtmq6dRbXaqY0lylMAqZlxf1nN8yHO7AeKb55LEbrHayVK+MV1MYMKtDCiSv3VoWt8mq0o5XeDhMl5wxdG32zh6YmBn4raAXSBDWhpLZnBzDiTiuo7QqEWcyiB3JACWnYdmvOdvHbh8zsSvrDzNoex/MynuBnno3ILwmkeWoCqk7z3m7Oy1u0F8V8xomVIymCBoOUcE6/Ymd4PIUDOaEFcKPqwJHUrL9j8gK5pjVjylUO1axhVeOEcQYKJ5iD8g5mtJLMpyxCsPFI8f1LEihMrdYAA5u7GIfXCTsDepLDosRYESmRbED0J3+3rx1jH5NstRvYKyC5tiQ+oYDWG6yt6KfXndoxaadLFyw/0ep2ncp6vyduxsZiTeQYs3rj02oAzkx5t0hYw0KUfu/+IYZ3jJcNglKzBm/VzxnZxIMTEbAefoR2OB35mpH0pXg== Content-Type: text/plain; charset="utf-8" Content-ID: <44D257A6AF261A4FA9B1719AF3400FB6@namprd11.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW3PR11MB4699.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d5463ca5-7bb2-4e4c-06a6-08d86cae444c X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Oct 2020 23:51:39.6288 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: coCph+REZo1wSnNgpRlPWFjZd+NlFqOKIKCaflALVvotPPMnEeYRvZYvIvXswsk9Luda1ggyzQmCmUTyJZt1fA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1293 X-OriginatorOrg: intel.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gRnJpLCAyMDIwLTEwLTA5IGF0IDE1OjA3IC0wNzAwLCBTZWFuIFYgS2VsbGV5IHdyb3RlOg0K PiBPbiA5IE9jdCAyMDIwLCBhdCAxNDozMCwgQmpvcm4gSGVsZ2FhcyB3cm90ZToNCj4gDQo+ID4g T24gRnJpLCBPY3QgMDksIDIwMjAgYXQgMTI6NTc6NDVQTSAtMDUwMCwgQmpvcm4gSGVsZ2FhcyB3 cm90ZToNCj4gPiA+IE9uIEZyaSwgT2N0IDAyLCAyMDIwIGF0IDExOjQ3OjMyQU0gLTA3MDAsIFNl YW4gViBLZWxsZXkgd3JvdGU6DQo+ID4gPiA+IEZyb206IFFpdXh1IFpodW8gPHFpdXh1LnpodW9A aW50ZWwuY29tPg0KPiA+ID4gPiANCj4gPiA+ID4gV2hlbiBhdHRlbXB0aW5nIGVycm9yIHJlY292 ZXJ5IGZvciBhbiBSQ2lFUCBhc3NvY2lhdGVkIHdpdGggYW4NCj4gPiA+ID4gUkNFQyANCj4gPiA+ ID4gZGV2aWNlLA0KPiA+ID4gPiB0aGVyZSBuZWVkcyB0byBiZSBhIHdheSB0byB1cGRhdGUgdGhl IFJvb3QgRXJyb3IgU3RhdHVzLCB0aGUgDQo+ID4gPiA+IFVuY29ycmVjdGFibGUNCj4gPiA+ID4g RXJyb3IgU3RhdHVzIGFuZCB0aGUgVW5jb3JyZWN0YWJsZSBFcnJvciBTZXZlcml0eSBvZiB0aGUN Cj4gPiA+ID4gcGFyZW50IA0KPiA+ID4gPiBSQ0VDLg0KPiA+ID4gPiBJbiBzb21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KKyAgICAgICBpZiAocGNpX3BjaWVfdHlwZShk ZXYpID09IFBDSV9FWFBfVFlQRV9SQ19FTkQpIHsNCisgICAgICAgICAgICAgICAvKg0KKyAgICAg ICAgICAgICAgICAqIFRoZSByZXNldCBzaG91bGQgb25seSBjbGVhciB0aGUgUm9vdCBFcnJvciBT dGF0dXMNCisgICAgICAgICAgICAgICAgKiBvZiB0aGUgUkNFQy4gT25seSBwZXJmb3JtIHRoaXMg Zm9yIHRoZQ0KKyAgICAgICAgICAgICAgICAqIG5hdGl2ZSBjYXNlLCBpLmUuLCBhbiBSQ0VDIGlz IHByZXNlbnQuDQorICAgICAgICAgICAgICAgICovDQorICAgICAgICAgICAgICAgaWYgKCEoZGV2 LT5yY2VjKSkNCisgICAgICAgICAgICAgICAgICAgICAgIGdvdG8gbm9uX25hdGl2ZTsNCisgICAg ICAgICAgICAgICBlbHNlDQorICAgICAgICAgICAgICAgICAgICAgICByb290ID0gZGV2LT5yY2Vj Ow0KKyAgICAgICB9DQorDQogICAgICAgIC8qIERpc2FibGUgUm9vdCdzIGludGVycnVwdCBpbiBy ZXNwb25zZSB0byBlcnJvciBtZXNzYWdlcyAqLw0KLSAgICAgICBwY2lfcmVhZF9jb25maWdfZHdv cmQoZGV2LCBhZXIgKyBQQ0lfRVJSX1JPT1RfQ09NTUFORCwgJnJlZzMyKTsNCisgICAgICAgcGNp X3JlYWRfY29uZmlnX2R3b3JkKHJvb3QsIGFlciArIFBDSV9FUlJfUk9PVF9DT01NQU5ELA0KJnJl ZzMyKTsNCiAgICAgICAgcmVnMzIgJj0gflJPT1RfUE9SVF9JTlRSX09OX01FU0dfTUFTSzsNCi0g ICAgICAgcGNpX3dyaXRlX2NvbmZpZ19kd29yZChkZXYsIGFlciArIFBDSV9FUlJfUk9PVF9DT01N QU5ELCByZWczMik7DQotDQotICAgICAgIGlmIChwY2lfcGNpZV90eXBlKGRldikgIT0gUENJX0VY UF9UWVBFX1JDX0VDKSB7DQotICAgICAgICAgICAgICAgcmMgPSBwY2lfYnVzX2Vycm9yX3Jlc2V0 KGRldik7DQotICAgICAgICAgICAgICAgcGNpX2luZm8oZGV2LCAiUm9vdCBQb3J0IGxpbmsgaGFz IGJlZW4gcmVzZXRcbiIpOw0KLSAgICAgICB9DQorICAgICAgIHBjaV93cml0ZV9jb25maWdfZHdv cmQocm9vdCwgYWVyICsgUENJX0VSUl9ST09UX0NPTU1BTkQsDQpyZWczMik7DQogDQogICAgICAg IC8qIENsZWFyIFJvb3QgRXJyb3IgU3RhdHVzICovDQotICAgICAgIHBjaV9yZWFkX2NvbmZpZ19k d29yZChkZXYsIGFlciArIFBDSV9FUlJfUk9PVF9TVEFUVVMsICZyZWczMik7DQotICAgICAgIHBj aV93cml0ZV9jb25maWdfZHdvcmQoZGV2LCBhZXIgKyBQQ0lfRVJSX1JPT1RfU1RBVFVTLCByZWcz Mik7DQorICAgICAgIHBjaV9yZWFkX2NvbmZpZ19kd29yZChyb290LCBhZXIgKyBQQ0lfRVJSX1JP T1RfU1RBVFVTLCAmcmVnMzIpOw0KKyAgICAgICBwY2lfd3JpdGVfY29uZmlnX2R3b3JkKHJvb3Qs IGFlciArIFBDSV9FUlJfUk9PVF9TVEFUVVMsIHJlZzMyKTsNCiANCiAgICAgICAgLyogRW5hYmxl IFJvb3QgUG9ydCdzIGludGVycnVwdCBpbiByZXNwb25zZSB0byBlcnJvciBtZXNzYWdlcw0KKi8N Ci0gICAgICAgcGNpX3JlYWRfY29uZmlnX2R3b3JkKGRldiwgYWVyICsgUENJX0VSUl9ST09UX0NP TU1BTkQsICZyZWczMik7DQorICAgICAgIHBjaV9yZWFkX2NvbmZpZ19kd29yZChyb290LCBhZXIg KyBQQ0lfRVJSX1JPT1RfQ09NTUFORCwNCiZyZWczMik7DQogICAgICAgIHJlZzMyIHw9IFJPT1Rf UE9SVF9JTlRSX09OX01FU0dfTUFTSzsNCi0gICAgICAgcGNpX3dyaXRlX2NvbmZpZ19kd29yZChk ZXYsIGFlciArIFBDSV9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ICAgICAgICAgLyoNCi0gICAgICAgICAgICAgICAgICAgICAgICAqIFRoZSBjYWxsYmFjayBvbmx5 IGNsZWFycyB0aGUgUm9vdCBFcnJvcg0KU3RhdHVzDQotICAgICAgICAgICAgICAgICAgICAgICAg KiBvZiB0aGUgUkNFQyAoc2VlIGFlci5jKS4gT25seSBwZXJmb3JtIHRoaXMNCmZvciB0aGUNCi0g ICAgICAgICAgICAgICAgICAgICAgICAqIG5hdGl2ZSBjYXNlLCBpLmUuLCBhbiBSQ0VDIGlzIHBy ZXNlbnQuDQotICAgICAgICAgICAgICAgICAgICAgICAgKi8NCi0gICAgICAgICAgICAgICAgICAg ICAgIGlmIChicmlkZ2UpDQotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlc2V0X3N1 Ym9yZGluYXRlX2RldmljZXMoYnJpZGdlKTsNCi0NCi0gICAgICAgICAgICAgICAgICAgICAgIHN0 YXR1cyA9IGZscl9vbl9yY2llcChkZXYpOw0KLSAgICAgICAgICAgICAgICAgICAgICAgaWYgKHN0 YXR1cyAhPSBQQ0lfRVJTX1JFU1VMVF9SRUNPVkVSRUQpIHsNCi0gICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgcGNpX3dhcm4oZGV2LCAiZnVuY3Rpb24gbGV2ZWwgcmVzZXQNCmZhaWxlZFxu Iik7DQotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdvdG8gZmFpbGVkOw0KLSAgICAg ICAgICAgICAgICAgICAgICAgfQ0KLSAgICAgICAgICAgICAgIH0gZWxzZSB7DQotICAgICAgICAg ICAgICAgICAgICAgICBzdGF0dXMgPSByZXNldF9zdWJvcmRpbmF0ZV9kZXZpY2VzKGJyaWRnZSk7 DQotICAgICAgICAgICAgICAgICAgICAgICBpZiAoc3RhdHVzICE9IFBDSV9FUlNfUkVTVUxUX1JF Q09WRVJFRCkgew0KLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwY2lfd2FybihkZXYs ICJzdWJvcmRpbmF0ZSBkZXZpY2UgcmVzZXQNCmZhaWxlZFxuIik7DQotICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgIGdvdG8gZmFpbGVkOw0KLSAgICAgICAgICAgICAgICAgICAgICAgfQ0K KyAgICAgICAgICAgICAgIHBjaV93YWxrX2JyaWRnZShicmlkZ2UsIHJlcG9ydF9mcm96ZW5fZGV0 ZWN0ZWQsDQomc3RhdHVzKTsNCisgICAgICAgICAgICAgICBzdGF0dXMgPSByZXNldF9zdWJvcmRp bmF0ZV9kZXZpY2VzKGJyaWRnZSk7DQorICAgICAgICAgICAgICAgaWYgKHN0YXR1cyAhPSBQQ0lf RVJTX1JFU1VMVF9SRUNPVkVSRUQpIHsNCisgICAgICAgICAgICAgICAgICAgICAgIHBjaV93YXJu KGRldiwgInN1Ym9yZGluYXRlIGRldmljZSByZXNldA0KZmFpbGVkXG4iKTsNCisgICAgICAgICAg ICAgICAgICAgICAgIGdvdG8gZmFpbGVkOw0KICAgICAgICAgICAgICAgIH0NCisNCiAgICAgICAg fSBlbHNlIHsNCi0gICAgICAgICAgICAgICBwY2lfd2Fsa19icmlkZ2UoYnJpZGdlLCBkZXYsIHJl cG9ydF9ub3JtYWxfZGV0ZWN0ZWQsDQomc3RhdHVzKTsNCisgICAgICAgICAgICAgICBwY2lfd2Fs a19icmlkZ2UoYnJpZGdlLCByZXBvcnRfbm9ybWFsX2RldGVjdGVkLA0KJnN0YXR1cyk7DQogICAg ICAgIH0NCiANCiAgICAgICAgaWYgKHN0YXR1cyA9PSBQQ0lfRVJTX1JFU1VMVF9DQU5fUkVDT1ZF Uikgew0KICAgICAgICAgICAgICAgIHN0YXR1cyA9IFBDSV9FUlNfUkVTVUxUX1JFQ09WRVJFRDsN CiAgICAgICAgICAgICAgICBwY2lfZGJnKGRldiwgImJyb2FkY2FzdCBtbWlvX2VuYWJsZWQgbWVz c2FnZVxuIik7DQotICAgICAgICAgICAgICAgcGNpX3dhbGtfYnJpZGdlKGJyaWRnZSwgZG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