From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AB9A9A0530 for ; Wed, 12 Feb 2020 11:31:44 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 91DAA2629; Wed, 12 Feb 2020 11:31:44 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2050.outbound.protection.outlook.com [40.107.93.50]) by dpdk.org (Postfix) with ESMTP id 65E3A2629; Wed, 12 Feb 2020 11:31:43 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UCEunGcKt0QneL0GHj1xIaSf3xCkaoT13fJpJZJVjsuYunvi/uj6kDKprnjyB+oiTMmGjKldfgd+DVonnXaX2Eih1k+aq9EwY2y9e1jSD39FyCxU21GIBvVpm0OEDHMTLsPnKXpxbW9Sj+0LTukfM7e0HRePHutevOwkW0U6A5nt+i23Vjti3eo9XkfsKlzyiYx7wQ1JEojkxFQd9O75py56EXaKvtu32KAEIOGEUkVbXvaPDr0p0sFKVixO24y/ynqoCgAd3SUo2KZVXAMImL6KpjhOt8igd1R7v4j8CCs8V+vrX2RFWDXmTqTRbqzAnkvxzx32EJ0nt8cG+6PU3A== 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=GYdnUhc2EZrznO2rhQtKPhugp3z/ZvJaE4ajyWQp4dU=; b=D4oSTGuqwRMGfDp1hl86yxS9FQ9BxA5LEY/RYtIgEpi93je7L7J2SnJSimqt6i7IGXA5lHoqcFrLJeii1+wKOdk6l1Yby3kNWdayMsEsut8dFs6ojvzqqT/TjfIWsoEUFnTSJiacqJRUADZmnZjdARhx+3eRduw0Z1WJ3QuQJf+lYrTq4hzn0JHUA89pNmww8AfFfqPexzaTq5Q8ZTWmGdIN7JValdCyztjk37oq3Wgl5YC6F1GbaofL0A9RY37ulnL0EsHZ+q6eE2LXqpk6RYF/ablBrsBA3HOaLO7SeMCANcb6gvypUx4B9HdcB+Ouz7C0+4MDFMPsdshdRIIX+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GYdnUhc2EZrznO2rhQtKPhugp3z/ZvJaE4ajyWQp4dU=; b=DF0mj7pr7Qdi4xnlprBhyV3c6cQi+EhRy978Nhi6vlhUunNmPSdiDhbmkPIXWhGOzHE3JGlLcUCq4b+4AfQiEmVsNDVuowN8rCrDW50XKwMk4VqlKBx5cNPW9hTGzMhycoit/SD8fEjOMLK9AYZ2XsiWJLxvAK7dOA64R7AN1uU= Received: from MW2PR12MB2570.namprd12.prod.outlook.com (52.132.181.13) by MW2PR12MB2537.namprd12.prod.outlook.com (52.132.179.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.22; Wed, 12 Feb 2020 10:31:40 +0000 Received: from MW2PR12MB2570.namprd12.prod.outlook.com ([fe80::ec36:5d88:cc24:c660]) by MW2PR12MB2570.namprd12.prod.outlook.com ([fe80::ec36:5d88:cc24:c660%3]) with mapi id 15.20.2707.030; Wed, 12 Feb 2020 10:31:40 +0000 From: "Kumar, Ravi1" To: "Somalapuram, Amaranath" , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2] crypto/ccp: enable IOMMU for CCP Thread-Index: AQHV1bbHNsJejJkLEkqn0CM0eQwblqgXdALg Date: Wed, 12 Feb 2020 10:31:40 +0000 Message-ID: References: <20200128083819.32834-1-asomalap@amd.com> In-Reply-To: <20200128083819.32834-1-asomalap@amd.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_76546daa-41b6-470c-bb85-f6f40f044d7f_Enabled=true; MSIP_Label_76546daa-41b6-470c-bb85-f6f40f044d7f_SetDate=2020-02-12T10:33:31Z; MSIP_Label_76546daa-41b6-470c-bb85-f6f40f044d7f_Method=Standard; MSIP_Label_76546daa-41b6-470c-bb85-f6f40f044d7f_Name=Internal Use Only - Unrestricted; MSIP_Label_76546daa-41b6-470c-bb85-f6f40f044d7f_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; MSIP_Label_76546daa-41b6-470c-bb85-f6f40f044d7f_ActionId=f335ee93-dd05-4831-a0ee-000040c61256; MSIP_Label_76546daa-41b6-470c-bb85-f6f40f044d7f_ContentBits=1 msip_label_76546daa-41b6-470c-bb85-f6f40f044d7f_enabled: true msip_label_76546daa-41b6-470c-bb85-f6f40f044d7f_setdate: 2020-02-12T10:33:31Z msip_label_76546daa-41b6-470c-bb85-f6f40f044d7f_method: Standard msip_label_76546daa-41b6-470c-bb85-f6f40f044d7f_name: Internal Use Only - Unrestricted msip_label_76546daa-41b6-470c-bb85-f6f40f044d7f_siteid: 3dd8961f-e488-4e60-8e11-a82d994e183d msip_label_76546daa-41b6-470c-bb85-f6f40f044d7f_actionid: 3ade6a9e-bb45-491c-9dc6-0000a0d4d7c6 msip_label_76546daa-41b6-470c-bb85-f6f40f044d7f_contentbits: 0 authentication-results: spf=none (sender IP is ) smtp.mailfrom=Ravi1.Kumar@amd.com; x-originating-ip: [165.204.157.251] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: f666a1d4-9a22-492d-8b5f-08d7afa6bf72 x-ms-traffictypediagnostic: MW2PR12MB2537:|MW2PR12MB2537: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:353; x-forefront-prvs: 0311124FA9 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(39860400002)(346002)(136003)(366004)(396003)(199004)(189003)(71200400001)(186003)(8676002)(81166006)(81156014)(316002)(33656002)(110136005)(478600001)(6506007)(76116006)(86362001)(2906002)(5660300002)(30864003)(26005)(55016002)(9686003)(450100002)(52536014)(64756008)(4326008)(7696005)(8936002)(66556008)(66946007)(66476007)(66446008)(579004); DIR:OUT; SFP:1101; SCL:1; SRVR:MW2PR12MB2537; H:MW2PR12MB2570.namprd12.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: MVP2W3uBo6HvipT14P87cEuRucxILZ2eZw8s3MyqnikCpEfzdH6JP7O/ry8v0SJ/M/vjzYTSyPGVr5F5D0vIDQUJk0ZoQODRSgB6e+8dY1FbZVHlFUio6CwlSNPZczi1T5DptYzDzCnswpleRSSty5bnucKmWG5Eas5xo99LDpJqyG3q5I2audw8+ext/4VIVZjPyGX0I53ybRHE0LYITJYCUK/zbvDsiPqjrGgt1152mbjwwJgMWRsyEduIGPHpFQz1zGccNGQhOEnB19cbrt16GlkU6GuYYzCKZ2Z7QjtoDkEoBBSIUFiPW5wk1jjTBk3OMO4ce7gGzktoESqBKb5y3u9rjygs7Mhs9HOsQUEG0Lppn2+P9XvIIQ1/dX81+HAceGVkz5MOokyUYrCoxaPlVvgf6p41JN/IUmyzoFhVoEEsGUGSA5WFTEGRk8gF x-ms-exchange-antispam-messagedata: fb03UlYkbcjxX6Kv69T7uRheTNm7XlencmMLW4KJGHxmb7Vh7ftwUmQPN2eCys+WUJlRQvrq9u4VJoc9MZD2sqcGjOCbFxElbQon7r2wUOlK4uIe2JuyP/TR70/FG/zqau/2Rnab5Kn8JonGg0PP1A== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f666a1d4-9a22-492d-8b5f-08d7afa6bf72 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Feb 2020 10:31:40.5432 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: rFEgIYJcg/BXYGhN6eS/q3g8vjYE/bjv3KNN4p6KfRID9fT5rQNBPRGw4dJQmwe4Z+LVg8Y2IfMyV19trvmfxg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR12MB2537 Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v2] crypto/ccp: enable IOMMU for CCP X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" W0FNRCBPZmZpY2lhbCBVc2UgT25seSAtIEludGVybmFsIERpc3RyaWJ1dGlvbiBPbmx5XQ0KDQpB Y2tlZC1ieTogUmF2aSBLdW1hciA8cmF2aTEua3VtYXJAYW1kLmNvbT4NCg0KPg0KPi0tLS0tT3Jp Z2luYWwgTWVzc2FnZS0tLS0tDQo+RnJvbTogZGV2IDxkZXYtYm91bmNlc0BkcGRrLm9yZz4gT24g QmVoYWxmIE9mIGFzb21hbGFwQGFtZC5jb20NCj5TZW50OiBUdWVzZGF5LCBKYW51YXJ5IDI4LCAy MDIwIDI6MDggUE0NCj5UbzogZGV2QGRwZGsub3JnDQo+Q2M6IHN0YWJsZUBkcGRrLm9yZw0KPlN1 YmplY3Q6IFtkcGRrLWRldl0gW1BBVENIIHYyXSBjcnlwdG8vY2N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ZV9tZW1f dmlydDJwaHkoc2Vzcy0+Y2lwaGVyLmtleV9jY3ApOw0KPisgICAgICAgfQ0KPiAgICAgICAgcmV0 dXJuIDA7DQo+IH0NCj4NCj5AQCAtMTU3NSwxMSArMTU5MiwxNiBAQCBjY3BfcGVyZm9ybV9obWFj KHN0cnVjdCBydGVfY3J5cHRvX29wICpvcCwNCj4gICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgb3AtPnN5bS0+YXV0aC5kYXRhLm9mZnNldCk7DQo+ICAgICAgICBh cHBlbmRfcHRyID0gKHZvaWQgKilydGVfcGt0bWJ1Zl9hcHBlbmQob3AtPnN5bS0+bV9zcmMsDQo+ ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2Vzc2lvbi0+ YXV0aC5jdHhfbGVuKTsNCj4tICAgICAgIGRlc3RfYWRkciA9IChwaHlzX2FkZHJfdClydGVfbWVt X3ZpcnQycGh5KGFwcGVuZF9wdHIpOw0KPisgICAgICAgaWYgKGlvbW11X21vZGUgPT0gMikgew0K PisgICAgICAgICAgICAgICBkZXN0X2FkZHIgPSAocGh5c19hZGRyX3QpcnRlX21lbV92aXJ0Mmlv dmEoYXBwZW5kX3B0cik7DQo+KyAgICAgICAgICAgICAgIHBzdC5zcmNfYWRkciA9IChwaHlzX2Fk ZHJfdClydGVfbWVtX3ZpcnQyaW92YSgodm9pZCAqKWFkZHIpOw0KPisgICAgICAgfSBlbHNlIHsN Cj4rICAgICAgICAgICAgICAgZGVzdF9hZGRyID0gKHBoeXNfYWRkcl90KXJ0ZV9tZW1fdmlydDJw aHkoYXBwZW5kX3B0cik7DQo+KyAgICAgICAgICAgICAgIHBzdC5zcmNfYWRkciA9IChwaHlzX2Fk ZHJfdClydGVfbWVtX3ZpcnQycGh5KCh2b2lkICopYWRkcik7DQo+KyAgICAgICB9DQo+ICAgICAg ICBkZXN0X2FkZHJfdCA9IGRlc3RfYWRkcjsNCj4NC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xNSArMTc3MCwx OSBAQCBjY3BfcGVyZm9ybV9zaGEoc3RydWN0IHJ0ZV9jcnlwdG9fb3AgKm9wLA0KPg0KPiAgICAg ICAgc3JjX2FkZHIgPSBydGVfcGt0bWJ1Zl9tdG9waHlzX29mZnNldChvcC0+c3ltLT5tX3NyYywN Cj4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb3AtPnN5bS0+ YXV0aC5kYXRhLm9mZnNldCk7DQo+LQ0KPiAgICAgICAgYXBwZW5kX3B0ciA9ICh2b2lkICopcnRl X3BrdG1idWZfYXBwZW5kKG9wLT5zeW0tPm1fc3JjLA0KPiAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIHNlc3Npb24tPmF1dGguY3R4X2xlbik7DQo+LSAgICAg ICBkZXN0X2FkZHIgPSAocGh5c19hZGRyX3QpcnRlX21lbV92aXJ0MnBoeShhcHBlbmRfcHRyKTsN Cj4rICAgICAgIGlmIChpb21tdV9tb2RlID09IDIpIHsNCj4rICAgICAgICAgICAgICAgZGVzdF9h ZGRyID0gKHBoeXNfYWRkcl90KXJ0ZV9tZW1fdmlydDJpb3ZhKGFwcGVuZF9wdHIpOw0KPisgICAg ICAgICAgICAgICBwc3Quc3JjX2FkZHIgPSAocGh5c19hZGRyX3Qpc2hhX2N0eDsNCj4rICAgICAg IH0gZWxzZSB7DQo+KyAgICAgICAgICAgICAgIGRlc3RfYWRkciA9IChwaHlzX2FkZHJfdClydGVf bWVtX3ZpcnQycGh5KGFwcGVuZF9wdHIpOw0KPisgICAgICAgICAgICAgICBwc3Quc3JjX2FkZHIg PSAocGh5c19hZGRyX3QpcnRlX21lbV92aXJ0MnBoeSgodm9pZCAqKQ0KPisgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2Vzc2lvbi0+YXV0aC5jdHgp Ow0KPisgICAgICAgfQ0KPg0KPiAgICAgICAgLyoqIFBhc3N0aHJ1IHNoYSBjb250ZXh0Ki8NCj4N Cj4tICAgICAgIHBzdC5zcmNfYWRkciA9IChwaHlzX2FkZHJfdClydGVfbWVtX3ZpcnQycGh5KCh2 b2lkICopDQo+LSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICBzZXNzaW9uLT5hdXRoLmN0eCk7DQo+ICAgICAgICBwc3QuZGVzdF9hZGRyID0gKHBoeXNf YWRkcl90KShjbWRfcS0+c2Jfc2hhICogQ0NQX1NCX0JZVEVTKTsNCj4gICAgICAgIHBzdC5sZW4g PSBzZXNzaW9uLT5hdXRoLmN0eF9sZW47DQo+ICAgICAgICBwc3QuZGlyID0gMTsNCj5AQCAtMTg0 MCwxMCArMTg2OSwxNiBAQCBjY3BfcGVyZm9ybV9zaGEzX2htYWMoc3RydWN0IHJ0ZV9jcnlwdG9f b3AgKm9wLA0KPiAgICAgICAgICAgICAgICBDQ1BfTE9HX0VSUigiQ0NQIE1CVUYgYXBwZW5kIGZh aWxlZFxuIik7DQo+ICAgICAgICAgICAgICAgIHJldHVybiAtMTsNCj4gICAgICAgIH0NCj4tICAg ICAgIGRlc3RfYWRkciA9IChwaHlzX2FkZHJfdClydGVfbWVtX3ZpcnQycGh5KCh2b2lkICopYXBw ZW5kX3B0cik7DQo+KyAgICAgICBpZiAoaW9tbXVfbW9kZSA9PSAyKSB7DQo+KyAgICAgICAgICAg ICAgIGRlc3RfYWRkciA9IChwaHlzX2FkZHJfdClydGVfbWVtX3ZpcnQyaW92YSgodm9pZCAqKWFw cGVuZF9wdHIpOw0KPisgICAgICAgICAgICAgICBjdHhfcGFkZHIgPSAocGh5c19hZGRyX3QpcnRl X21lbV92aXJ0MmlvdmEoDQo+KyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IHNlc3Npb24tPmF1dGgucHJlX2NvbXB1dGUpOw0KPisgICAgICAgfSBlbHNlIHsNCj4rICAgICAg ICAgICAgICAgZGVzdF9hZ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AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICBvcC0+c3ltLT5hdXRoLmRhdGEub2Zmc2V0KTsNCj4gICAgICAgIGFwcGVuZF9wdHIg PSAodWludDhfdCAqKXJ0ZV9wa3RtYnVmX2FwcGVuZChvcC0+c3ltLT5tX3NyYywNCj4gICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXNzaW9uLT5hdXRoLmN0 eF9sZW4pOw0KPi0gICAgICAgZGVzdF9hZGRyID0gKHBoeXNfYWRkcl90KXJ0ZV9tZW1fdmlydDJw aHkoKHZvaWQgKilhcHBlbmRfcHRyKTsNCj4rICAgICAgIGlmIChpb21tdV9tb2RlID09IDIpIHsN Cj4rICAgICAgICAgICAgICAga2V5X2FkZHIgPSBydGVfbWVtX3ZpcnQyaW92YShzZXNzaW9uLT5h dXRoLmtleV9jY3ApOw0KPisgICAgICAgICAgICAgICBkZXN0X2FkZHIgPSAocGh5c19hZGRyX3Qp cnRlX21lbV92aXJ0MmlvdmEoKHZvaWQgKilhcHBlbmRfcHRyKTsNCj4rICAgICAgIH0gZWxzZSB7 DQo+KyAgICAgICAgICAgICAgIGtleV9hZGRyID0gcnRlX21lbV92aXJ0MnBoeShzZXNzaW9uLT5h dXRoLmtleV9jY3ApOw0KPisgICAgICAgICAgICAgICBkZXN0X2FkZHIgPSAocGh5c19hZGRyX3Qp cnRlX21lbV92aXJ0MnBoeSgodm9pZCAqKWFwcGVuZF9wdHIpOw0KPisgICAgICAgfQ0KPg0KPiAg ICAgICAgZnVuY3Rpb24ucmF3ID0gMDsNCj4gICAgICAgIENDUF9BRVNfRU5DUllQVCgmZnVuY3Rp b24pID0gQ0NQX0NJUEhFUl9ESVJfRU5DUllQVDsgQEAgLTIwNTYsNyArMjEwMiwxMyBAQCBjY3Bf cGVyZm9ybV9hZXNfY21hYyhzdHJ1Y3QgcnRlX2NyeXB0b19vcCAqb3AsDQo+DQo+ICAgICAgICAg ICAgICAgIGN0eF9hZGRyID0gc2Vzc2lvbi0+YXV0aC5wcmVfY29tcHV0ZTsNCj4gICAgICAgICAg ICAgICAgbWVtc2V0KGN0eF9hZGRyLCAwLCBBRVNfQkxPQ0tfU0laRSk7DQo+LSAgICAgICAgICAg ICAgIHBzdC5zcmNfYWRkciA9IChwaHlzX2FkZHJfdClydGVfbWVtX3ZpcnQycGh5KCh2b2lkICop Y3R4X2FkZHIpOw0KPisgICAgICAgICAgICAgICBpZiAoaW9tbXVfbW9kZSA9PSAyKQ0KPisgICAg ICAgICAgICAgICAgICAgICAgIHBzdC5zcmNfYWRkciA9IChwaHlzX2FkZHJfdClydGVfbWVtX3Zp cnQyaW92YSgNCj4rICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICh2b2lkICopY3R4X2FkZHIpOw0KPisgICAgICAgICAgICAgICBlbHNlDQo+KyAg ICAgICAgICAgICAgICAgICAgICAgcHN0LnNyY19hZGRyID0gKHBoeXNfYWRkcl90KXJ0ZV9tZW1f dmlydDJwaHkoDQo+KyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAodm9pZCANCj4rICopY3R4X2FkZHIpOw0KPisNCj4gICAgICAgICAgICAgICAg cHN0LmRlc3RfYWRkciA9IChwaHlzX2FkZHJfdCkoY21kX3EtPnNiX2l2ICogQ0NQX1NCX0JZVEVT KTsNCj4gICAgICAgICAgICAgICAgcHN0LmxlbiA9IENDUF9TQl9CWVRFUzsNCj4gICAgICAgICAg ICAgICAgcHN0LmRpciA9IDE7DQo+QEAgLTIwOTQsNyArMjE0NiwxMiBAQCBjY3BfcGVyZm9ybV9h ZXNfY21hYyhzdHJ1Y3QgcnRlX2NyeXB0b19vcCAqb3AsDQo+ICAgICAgICB9IGVsc2Ugew0KPiAg ICAgICAgICAgICAgICBjdHhfYWRkciA9IHNlc3Npb24tPmF1dGgucHJlX2NvbXB1dGUgKyBDQ1Bf U0JfQllURVM7DQo+ICAgICAgICAgICAgICAgIG1lbXNldChjdHhfYWRkciwgMCwgQUVTX0JMT0NL X1NJWkUpOw0KPi0gICAgICAgICAgICAgICBwc3Quc3JjX2FkZHIgPSAocGh5c19hZGRyX3QpcnRl X21lbV92aXJ0MnBoeSgodm9pZCAqKWN0eF9hZGRyKTsNCj4rICAgICAgICAgICAgICAgaWYgKGlv bW11X21vZGUgPT0gMikNCj4rICAgICAgICAgICAgICAgICAgICAgICBwc3Quc3JjX2FkZHIgPSAo cGh5c19hZGRyX3QpcnRlX21lbV92aXJ0MmlvdmEoDQo+KyAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAodm9pZCAqKWN0eF9hZGRyKTsNCj4rICAg ICAgICAgICAgICAgZWxzZQ0KPisgICAgICAgICAgICAgICAgICAgICAgIHBzdC5zcmNfYWRkciA9 IChwaHlzX2FkZHJfdClydGVfbWVtX3ZpcnQycGh5KA0KPisgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHZvaWQgDQo+KyAqKWN0eF9hZGRyKTsN Cj4gICAgICAgICAgICAgICAgcHN0LmRlc3RfYWRkciA9IChwaHlzX2FkZHJfdCkoY21kX3EtPnNi X2l2ICogQ0NQX1NCX0JZVEVTKTsNCj4gICAgICAgICAgICAgICAgcHN0LmxlbiA9IENDUF9TQl9C WVRFUzsNCj4gICAgICAgICAgICAgICAgcHN0LmRpciA9IDE7DQo+QEAgLTIyODgsOCArMjM0NSwx MiBAQCBjY3BfcGVyZm9ybV8zZGVzKHN0cnVjdCBydGVfY3J5cHRvX29wICpvcCwNCj4NCj4gICAg ICAgICAgICAgICAgcnRlX21lbWNweShsc2JfYnVmICsgKENDUF9TQl9CWVRFUyAtIHNlc3Npb24t Pml2Lmxlbmd0aCksDQo+ICAgICAgICAgICAgICAgICAgICAgICAgICAgaXYsIHNlc3Npb24tPml2 Lmxlbmd0aCk7DQo+LQ0KPi0gICAgICAgICAgICAgICBwc3Quc3JjX2FkZHIgPSAocGh5c19hZGRy X3QpcnRlX21lbV92aXJ0MnBoeSgodm9pZCAqKSBsc2JfYnVmKTsNCj4rICAgICAgICAgICAgICAg aWYgKGlvbW11X21vZGUgPT0gMikNCj4rICAgICAgICAgICAgICAgICAgICAgICBwc3Quc3JjX2Fk ZHIgPSAocGh5c19hZGRyX3QpcnRlX21lbV92aXJ0MmlvdmEoDQo+KyAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAodm9pZCAqKSBsc2JfYnVmKTsN Cj4rICAgICAgICAgICAgICAgZWxzZQ0KPisgICAgICAgICAgICAgICAgICAgICAgIHBzdC5zcmNf YWRkciA9IChwaHlzX2FkZHJfdClydGVfbWVtX3ZpcnQycGh5KA0KPisgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHZvaWQgKikgDQo+KyBsc2Jf YnVmKTsNCj4gICAgICAgICAgICAgICAgcHN0LmRlc3RfYWRkciA9IChwaHlzX2FkZHJfdCkoY21k X3EtPnNiX2l2ICogQ0NQX1NCX0JZVEVTKTsNCj4gICAgICAgICAgICAgICAgcHN0LmxlbiA9IEND UF9TQl9CWVRFUzsNCj4gICAgICAgICAgICAgICAgcHN0LmRpciA9IDE7DQo+QEAgLTIzMTIsNyAr MjM3MywxMCBAQCBjY3BfcGVyZm9ybV8zZGVzKHN0cnVjdCBydGVfY3J5cHRvX29wICpvcCwNCj4g ICAgICAgIGVsc2UNCj4gICAgICAgICAgICAgICAgZGVzdF9hZGRyID0gc3JjX2FkZHI7DQo+DQo+ LSAgICAgICBrZXlfYWRkciA9IHJ0ZV9tZW1fdmlydDJwaHkoc2Vzc2lvbi0+Y2lwaGVyLmtleV9j Y3ApOw0KPisgICAgICAgaWYgKGlvbW11X21vZGUgPT0gMikNCj4rICAgICAgICAgICAgICAga2V5 X2FkZHI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RklPOw0KPisgICAgICAgZWxzZSBpZiAoaW9tbXVfbW9kZSA9PSAwKQ0K PisgICAgICAgICAgICAgICBwY2ktPmtkcnYgPSBSVEVfS0RSVl9JR0JfVUlPOw0KPisgICAgICAg ZWxzZSBpZiAoaW9tbXVfbW9kZSA9PSAxKQ0KPisgICAgICAgICAgICAgICBwY2ktPmtkcnYgPSBS VEVfS0RSVl9VSU9fR0VORVJJQzsNCj4NCj4tICAgICAgIHVpb19udW0gPSBjY3BfZmluZF91aW9f ZGV2bmFtZShkaXJuYW1lKTsNCj4tICAgICAgIGlmICh1aW9fbnVtIDwgMCkgew0KPi0gICAgICAg ICAgICAgICAvKg0KPi0gICAgICAgICAgICAgICAgKiBJdCBtYXkgdGFrZSB0aW1lIGZvciB1aW8g ZGV2aWNlIHRvIGFwcGVhciwNCj4tICAgICAgICAgICAgICAgICogd2FpdCAgaGVyZSBhbmQgdHJ5 IGFnYWluDQo+LSAgICAgICAgICAgICAgICAqLw0KPi0gICAgICAgICAgICAgICB1c2xlZXAoMTAw MDAwKTsNCj4tICAgICAgICAgICAgICAgdWlvX251bSA9IGNjcF9maW5kX3Vpb19kZXZuYW1lKGRp cm5hbWUpOw0KPi0gICAgICAgICAgICAgICBpZiAodWlvX251bSA8IDApDQo+LSAgICAgICAgICAg ICAgICAgICAgICAgZ290byBmYWlsOw0KPi0gICAgICAgfQ0KPi0gICAgICAgc25wcmludGYodWlv X2Rldm5hbWUsIHNpemVvZih1aW9fZGV2bmFtZSksICIvZGV2L3VpbyV1IiwgdWlvX251bSk7DQo+ LQ0KPi0gICAgICAgdWlvX2ZkID0gb3Blbih1aW9fZGV2bmFtZSwgT19SRFdSIHwgT19OT05CTE9D Syk7DQo+LSAgICAgICBpZiAodWlvX2ZkIDwgMCkNCj4tICAgICAgICAgICAgICAgZ290byBmYWls Ow0KPi0gICAgICAgaWYgKGZsb2NrKHVpb19mZCwgTE9DS19FWCB8IExPQ0tfTkIpKQ0KPi0gICAg ICAgICAgICAgICBnb3RvIGZhaWw7DQo+LQ0KPi0gICAgICAgLyogTWFwIHRoZSBQQ0kgbWVtb3J5 IHJlc291cmNlIG9mIGRldmljZSAqLw0KPi0gICAgICAgZm9yIChpID0gMDsgaSA8IFBDSV9NQVhf UkVTT1VSQ0U7IGkrKykgew0KPi0NCj4tICAgICAgICAgICAgICAgY2hhciBkZXZuYW1lW1BBVEhf TUFYXTsNCj4tICAgICAgICAgICAgICAgaW50IHJlc19mZDsNCj4tDQo+LSAgICAgICAgICAgICAg IGlmIChwY2ktPm1lbV9yZXNvdXJjZVtpXS5waHlzX2FkZHIgPT0gMCkNCj4tICAgICAgICAgICAg ICAgICAgICAgICBjb250aW51ZTsNCj4tICAgICAgICAgICAgICAgc25wcmludGYoZGV2bmFtZSwg c2l6ZW9mKGRldm5hbWUpLCAiJXMvcmVzb3VyY2UlZCIsIGRpcm5hbWUsIGkpOw0KPi0gICAgICAg ICAgICAgICByZXNfZmQgPSBvcGVuKGRldm5hbWUsIE9fUkRXUik7DQo+LSAgICAgICAgICAgICAg IGlmIChyZXNfZmQgPCAwKQ0KPi0gICAgICAgICAgICAgICAgICAgICAgIGdvdG8gZmFpbDsNCj4t ICAgICAgICAgICAgICAgbWFwX2FkZHIgPSBtbWFwKE5VTEwsIHBjaS0+bWVtX3Jlc291cmNlW2ld LmxlbiwNCj4tICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFBST1RfUkVBRCB8IFBST1Rf V1JJVEUsDQo+LSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBNQVBfU0hBUkVELCByZXNf ZmQsIDApOw0KPi0gICAgICAgICAgICAgICBpZiAobWFwX2FkZHIgPT0gTUFQX0ZBSUxFRCkNCj4t ICAgICAgICAgICAgICAgICAgICAgICBnb3RvIGZhaWw7DQo+LQ0KPi0gICAgICAgICAgICAgICBw Y2ktPm1lbV9yZXNvdXJjZVtpXS5hZGRyID0gbWFwX2FkZHI7DQo+LSAgICAgICB9DQo+KyAgICAg ICBydGVfcG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