Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3167715imd; Mon, 29 Oct 2018 02:52:47 -0700 (PDT) X-Google-Smtp-Source: AJdET5cDJYzzOF6sFXuaA77MWm6oEck1aIaE6ohrq8sKsxK7NCNHYqLPc/T/j1HK+gosZgTFAA5k X-Received: by 2002:a17:902:7802:: with SMTP id p2-v6mr13432612pll.170.1540806767687; Mon, 29 Oct 2018 02:52:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540806767; cv=none; d=google.com; s=arc-20160816; b=Y3PenilEVqxkVnRK3cgQJCeCa7rCYeYVJ5ZoZ4xSwXh7eVnSzd/3Yjh2+amIXjY7il NApLR7xA2xsC2BC2+AvS7wi4orbUG8Uw6/QQBfk5PZss5E6MKIILyp0OCqmF+dMOyG1Y QQ+Nw3sAuUygAmaoNHnul/GfBzaRYMZbNDbDBUNKlbGFSkoG1qrdy9R7jjjwSbnID7pN SGKyj0yqV1IGIvQ/NLor7+NRjWuno8RucNfRxiiQZcse79sLINtKPeK5EmKwa91qKH/8 aV3k5lVAypkfUJpI8c2+pLFtGmI22LPBSoYdvSyMuvnR2CVtNVwO7rNKz13DuiK5FV58 Z+nA== 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 :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=i1Hf8VvlLUKjWk6zZup4CicO4LNcsigAy2NBn/REFEI=; b=A43JdyuzxBjKB38Hfdhkv4uyF43KdDpt8lDh1juk/MuBPVk8LsDN8eyrtTxDlCs0dG bil5e/R6U6N+IDADhR8PKa9RXh377QjlYh/cDTUciaPTfvLsZUMZL8sDWAp+hnKqBzJp 9uxrtecNUyaF1kYFGbRaDfMu4O+7P6JuuP6Ep3Wh3+SCtNs9xCfXK6+oCp6SmbGLvcVU Lc3wuDGWirgz6Pp2rsqMbuH15nNDLheNBdBQUOTc+EtKceiDWN14UFCN31ZyLbBa46Lc JvrUHjhJ+PyrHSKZiTHTqxrOBFqvfB6zIoyn0i39/UvgoZTp5TibtPENgJouxJrDBvyj Bjkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=Ss3keIJN; 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e193-v6si20087190pfc.131.2018.10.29.02.52.32; Mon, 29 Oct 2018 02:52:47 -0700 (PDT) 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=@nxp.com header.s=selector1 header.b=Ss3keIJN; 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729822AbeJ2Sjg (ORCPT + 99 others); Mon, 29 Oct 2018 14:39:36 -0400 Received: from mail-eopbgr40050.outbound.protection.outlook.com ([40.107.4.50]:34848 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729636AbeJ2Sjf (ORCPT ); Mon, 29 Oct 2018 14:39:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i1Hf8VvlLUKjWk6zZup4CicO4LNcsigAy2NBn/REFEI=; b=Ss3keIJNthUFsTlEKnwWWU4HOkDTciSGkfEyaynobcM0zUqawt2jYy6X6w3yvaA1Cp/7Z7tXXRZlUM+UyqiLfWIylpOq8NJH4uQptd2T1RstNoVBSjWoM0f8HJCY49kc6+HE7thvlAGF2BlPPpdwseLSg20aG5tjH29qJje4wzM= Received: from VI1PR04MB4431.eurprd04.prod.outlook.com (20.177.55.159) by VI1PR04MB4253.eurprd04.prod.outlook.com (52.134.31.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1273.21; Mon, 29 Oct 2018 09:51:24 +0000 Received: from VI1PR04MB4431.eurprd04.prod.outlook.com ([fe80::bc71:2968:1365:a789]) by VI1PR04MB4431.eurprd04.prod.outlook.com ([fe80::bc71:2968:1365:a789%5]) with mapi id 15.20.1273.027; Mon, 29 Oct 2018 09:51:24 +0000 From: Peng Ma To: Leo Li CC: Vinod , Rob Herring , Mark Rutland , Shawn Guo , Dan Williams , "dmaengine@vger.kernel.org" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , lkml , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linuxppc-dev , Wen He , Jiaheng Fan Subject: RE: [PATCH 3/7] dmaengine: fsl-qdma: Add qDMA controller driver for Layerscape SoCs Thread-Topic: [PATCH 3/7] dmaengine: fsl-qdma: Add qDMA controller driver for Layerscape SoCs Thread-Index: AQHUbRI6Xx/T793P+EOR58GXAPorFKUyAC2AgAP8QnA= Date: Mon, 29 Oct 2018 09:51:24 +0000 Message-ID: References: <20181026095240.33668-1-peng.ma@nxp.com> <20181026095240.33668-3-peng.ma@nxp.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.ma@nxp.com; x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR04MB4253;6:J6gWaM1m8u5aM6AOslJvX9kN8yknAE4MoKT8UAFPlkWO6bUfclVGgx1GFFH8G+bIAQ4kV+nCDE8RfYc6K/WhQH4KyS8RJg0EjR61WN8o+Yv7aTRZE2utGyW3+OAZgUmPi5OJ7zSamoCAbgG9qHUJ/JVUvQnsp271XFeaOiKExKRNugweedbmfUTr2NRNZH10+gG4NCRCHHTPB2dXVeV1T+k/6dJRUNDJRgTrOI7CTTamFoYMiWwiNa4fWZGGVCFKehiu3Clyq4HjIwgXNn021C6VEnssNNn0OdeVH7gaGJFjsZaRy7ZZdLG+N323qkueSZxRckIZ84dofaFeWgT7Ce9AcNiRuFEhhAjhTa6AJYtAMwcwM/4e1Fn/8rtiI5uFGCaU2MneQHds1KgUjtR42rxCz0vLuB4TXSxowqUd07Muf4Ls0Hr99EGyH1xnEeMMK7Bi90LhhXbknqRPKg0JMg==;5:6Y7PiVnzwFyS5mylMr7rF1ZAgIxWBwxkKUf+B8Yx/toXt8JgJzGganMMmXptKmUfYzq00TZ9EpUY687XXljHKI1dcxdYwi8z0yhDlLqCiHfAlOCYtD5hN82qA1QDCjcF64Ftb0OJZ2jNHLoYU107eEyIirmbVM5mXFVQW2kBG+c=;7:1Szomo4368CTuH5OmXrgzAogqwhOVKGfsNQHWpT/0aCOlNX5B7pl/UKd1TlFZFq8zlJ5RQVE2M4iIMYssBn4bfoHZ0B7XQIYoVXb/U+Xm5F9ra6B0DgI+Sn8wqYrMIMQ2TeWb3sdeCS4NKHrYAj+oQ== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: c3f61450-ab3b-4852-b9da-08d63d841692 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB4253; x-ms-traffictypediagnostic: VI1PR04MB4253: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(185117386973197)(180628864354917)(228905959029699)(258649278758335)(65623756079841); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231382)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:VI1PR04MB4253;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB4253; x-forefront-prvs: 084080FC15 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6029001)(346002)(136003)(376002)(396003)(39860400002)(366004)(13464003)(189003)(199004)(25786009)(4326008)(2900100001)(6862004)(256004)(14444005)(97736004)(316002)(44832011)(186003)(54906003)(14454004)(486006)(446003)(11346002)(476003)(478600001)(71190400001)(66066001)(4744004)(71200400001)(76176011)(6636002)(86362001)(9686003)(55016002)(106356001)(81166006)(3846002)(6116002)(8936002)(68736007)(53936002)(26005)(53946003)(6506007)(7416002)(102836004)(105586002)(575784001)(99286004)(6246003)(74316002)(229853002)(2906002)(5250100002)(33656002)(7736002)(7696005)(6436002)(305945005)(5660300001)(551934003)(8676002)(81156014)(569006);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB4253;H:VI1PR04MB4431.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 8KwO3C+MDt1NxenqY/s4JliRYiX/1G9jyvTvjpzx+G5+Hfb0ypDTCRyYW8OuMmiGCb6JWWVCfazaE95YLi0A755eqtc24s8nDIdNM/9rdNiVK1EBdc3++ueb3cpvEBM8RI6StzTpWIC/HpwXD1LPct2uOO1wU9pIe4Njq4l+tKcVeF01udVlkk2+UJeB6kCZ06nVzWUOYkpRCXV/DDimiwPnf6oe2zF5RH7OfToAwsWg/h/AxUh84MLC+Q5tjfU4dtyXFvkFHmrMrQt7RWL2UDbQnVODn6igzKzpaD6Q2CGbpSkMsRLt6dtJuYi6WkJ6VqKGpYJEORK3ojivnzIKLQ6006DhJmilANGY34Ojw38= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c3f61450-ab3b-4852-b9da-08d63d841692 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Oct 2018 09:51:24.1404 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4253 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4tLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPkZyb206IExpIFlhbmcgPGxlb3lhbmcu bGlAbnhwLmNvbT4NCj5TZW50OiAyMDE45bm0MTDmnIgyN+aXpSA0OjQ4DQo+VG86IFBlbmcgTWEg PHBlbmcubWFAbnhwLmNvbT4NCj5DYzogVmlub2QgPHZrb3VsQGtlcm5lbC5vcmc+OyBSb2IgSGVy cmluZyA8cm9iaCtkdEBrZXJuZWwub3JnPjsgTWFyaw0KPlJ1dGxhbmQgPG1hcmsucnV0bGFuZEBh cm0uY29tPjsgU2hhd24gR3VvIDxzaGF3bmd1b0BrZXJuZWwub3JnPjsgRGFuDQo+V2lsbGlhbXMg PGRhbi5qLndpbGxpYW1zQGludGVsLmNvbT47IGRtYWVuZ2luZUB2Z2VyLmtlcm5lbC5vcmc7IG9w ZW4NCj5saXN0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ArI2RlZmluZSBGU0xf UURNQV9CQ1FTUih4KSAgICAgICAgICAgICAgKDB4YzQgKyAweDEwMCAqICh4KSkNCj4+ICsjZGVm aW5lIEZTTF9RRE1BX0JDUUVEUEFfU0FERFIoeCkgICAgICAoMHhjOCArIDB4MTAwICogKHgpKQ0K Pj4gKyNkZWZpbmUgRlNMX1FETUFfQkNRRFBBX1NBRERSKHgpICAgICAgICgweGNjICsgMHgxMDAg KiAoeCkpDQo+PiArI2RlZmluZSBGU0xfUURNQV9CQ1FFRVBBX1NBRERSKHgpICAgICAgKDB4ZDAg KyAweDEwMCAqICh4KSkNCj4+ICsjZGVmaW5lIEZTTF9RRE1BX0JDUUVQQV9TQUREUih4KSAgICAg ICAoMHhkNCArIDB4MTAwICogKHgpKQ0KPj4gKyNkZWZpbmUgRlNMX1FETUFfQkNRSUVSKHgpICAg ICAgICAgICAgICgweGUwICsgMHgxMDAgKiAoeCkpDQo+PiArI2RlZmluZSBGU0xfUURNQV9CQ1FJ RFIoeCkgICAgICAgICAgICAgKDB4ZTQgKyAweDEwMCAqICh4KSkNCj4+ICsNCj4+ICsjZGVmaW5l IEZTTF9RRE1BX1NRRFBBUiAgICAgICAgICAgICAgICAgICAgICAgIDB4ODBjDQo+PiArI2RlZmlu ZSBGU0xfUURNQV9TUUVQQVIgICAgICAgICAgICAgICAgICAgICAgICAweDgxNA0KPj4gKyNkZWZp bmUgRlNMX1FETUFfQlNRTVIgICAgICAgICAgICAgICAgIDB4ODAwDQo+PiArI2RlZmluZSBGU0xf UURNQV9CU1FTUiAgICAgICAgICAgICAgICAgMHg4MDQNCj4+ICsjZGVmaW5lIEZTTF9RRE1BX0JT UUlDUiAgICAgICAgICAgICAgICAgICAgICAgIDB4ODI4DQo+PiArI2RlZmluZSBGU0xfUURNQV9D UU1SICAgICAgICAgICAgICAgICAgMHhhMDANCj4+ICsjZGVmaW5lIEZTTF9RRE1BX0NRRFNDUjEg ICAgICAgICAgICAgICAweGEwOA0KPj4gKyNkZWZ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gICAgICBDb21tYW5kIHN0YXR1cyBhbmQgZW5xdWV1ZSBzdGF0dXMNCj5u b3RpZmljYXRpb24uDQo+PiArICogQGNmZzogICAgICAgICAgICAgICAgICAgRnJhbWUgb2Zmc2V0 IGFuZCBmcmFtZSBmb3JtYXQuDQo+PiArICogQGFkZHJfbG86ICAgICAgICAgICAgICAgSG9sZGlu ZyB0aGUgY29tcG91bmQgZGVzY3JpcHRvciBvZiB0aGUNCj5sb3dlcg0KPj4gKyAqICAgICAgICAg ICAgICAgICAgICAgICAgIDMyLWJpdHMgYWRkcmVzcyBpbiBtZW1vcnkgNDAtYml0IGFkZHJlc3Mu DQo+PiArICogQGFkZHJfaGk6ICAgICAgICAgICAgICAgU2FtZSBhcyBhYm92ZSBtZW1iZXIsIGJ1 dCBwb2ludCBoaWdoDQo+OC1iaXRzIGluDQo+PiArICogICAgICAgICAgICAgICAgICAgICAgICAg bWVtb3J5IDQwLWJpdCBhZGRyZXNzLg0KPj4gKyAqIEBfX3Jlc2VydmVkMTogICAgICAgICAgIFJl c2VydmVkIGZpZWxkLg0KPj4gKyAqIEBjZmc4Yl93MTogICAgICAgICAgICAgIENvbXBvdW5kIGRl c2NyaXB0b3IgY29tbWFuZCBxdWV1ZQ0KPm9yaWdpbiBwcm9kdWNlZA0KPj4gKyAqICAgICAgICAg ICAgICAgICAgICAgICAgIGJ5IHFETUEgYW5kIGR5bmFtaWMgZGVidWcgZmllbGQuDQo+PiArICog QGRhdGEgICAgICAgICAgICAgICAgICAgUG9pbnRlciB0byB0aGUgbWVtb3J5IDQwLWJpdCBhZGRy ZXNzLA0KPmRlc2NyaWJlcyBETUENCj4+ICsgKiAgICAgICAgICAgICAgICAgICAgICAgICBzb3Vy Y2UgaW5mb3JtYXRpb24gYW5kIERNQSBkZXN0aW5hdGlvbg0KPmluZm9ybWF0aW9uLg0KPj4gKyAq Lw0KPj4gK3N0cnVjdCBmc2xfcWRtYV9mb3JtYXQgew0KPj4gKyAgICAgICBfX2xlMzIg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XQg ICpkZXNjX3ZpcnRfYWRkcjsNCj4+ICsgICAgICAgc3RydWN0IGZzbF9xZG1hX2NoYW4gICAgKnFj aGFuOw0KPj4gKyAgICAgICBzdHJ1Y3QgdmlydF9kbWFfZGVzYyAgICB2ZGVzYzsNCj4+ICsgICAg ICAgc3RydWN0IGxpc3RfaGVhZCAgICAgICAgbGlzdDsNCj4+ICt9Ow0KPj4gKw0KPj4gK3N0cnVj dCBmc2xfcWRtYV9lbmdpbmUgew0KPj4gKyAgICAgICBzdHJ1Y3QgZG1hX2RldmljZSAgICAgICBk bWFfZGV2Ow0KPj4gKyAgICAgICB2b2lkIF9faW9tZW0gICAgICAgICAgICAqY3RybF9iYXNlOw0K Pj4gKyAgICAgICB2b2lkIF9faW9tZW0gICAgICAgICAgICAqc3RhdHVzX2Jhc2U7DQo+PiArICAg ICAgIHZvaWQgX19pb21lbSAgICAgICAgICAgICpibG9ja19iYXNlOw0KPj4gKyAgICAgICB1MzIg ICAgICAgICAgICAgICAgICAgICBuX2NoYW5zOw0KPj4gKyAgICAgICB1MzIgICAgICAgICAgICAg ICAgICAgICBuX3F1ZXVlczsNCj4+ICsgICAgICAgc3RydWN0IG11dGV4ICAgICAgICAgICAgZnNs X3FkbWFfbXV0ZXg7DQo+PiArICAgICAgIGludCAgICAgICAgICAgICAgICAgICAgIGVycm9yX2ly cTsNCj4+ICsgICAgICAgaW50ICAgICAgICAgICAgICAgICAgICAgKnF1ZXVlX2lycTsNCj4+ICsg ICAgICAgdTMyICAgICAgICAgICAgICAgICAgICAgZmVhdHVyZTsNCj4+ICsgICAgICAgc3RydWN0 IGZzbF9xZG1hX3F1ZXVlICAgKnF1ZXVlOw0KPj4gKyAgICAgICBzdHJ1Y3QgZnNsX3FkbWFfcXVl dWUgICAqKnN0YXR1czsNCj4+ICsgICAgICAgc3RydWN0IGZzbF9xZG1hX2NoYW4gICAgKmNoYW5z Ow0KPj4gKyAgICAgICBpbnQgICAgICAgICAgICAgICAgICAgICBibG9ja19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yAgICAgICBsaXN0X2Zvcl9lYWNoX2VudHJ5X3NhZmUoY29tcF90ZW1wLCBfY29tcF90ZW1wLA0K Pj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJmZzbF9xdWV1ZS0+Y29tcF91c2Vk LCBsaXN0KSB7DQo+PiArICAgICAgICAgICAgICAgZG1hX3Bvb2xfZnJlZShmc2xfcXVldWUtPmNv bXBfcG9vbCwNCj4+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbXBfdGVtcC0+dmly dF9hZGRyLA0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29tcF90ZW1wLT5idXNf YWRkcik7DQo+PiArICAgICAgICAgICAgICAgZG1hX3Bvb2xfZnJlZShmc2xfcXVldWUtPmRlc2Nf cG9vbCwNCj4+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbXBfdGVtcC0+ZGVzY192 aXJ0X2FkZHIsDQo+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb21wX3RlbXAtPmRl c2NfYnVzX2FkZHIpOw0KPj4gKyAgICAgICAgICAgICAgIGxpc3RfZGVsKCZjb21wX3RlbXAtPmxp c3QpOw0KPj4gKyAgICAgICAgICAgICAgIGtmcmVlKGNvbXBfdGVtcCk7DQo+PiArICAgICAgIH0N Cj4+ICsNCj4+ICsgICAgICAgbGlzdF9mb3JfZWFjaF9lbnRyeV9zYWZlKGNvbXBfdGVtcCwgX2Nv bXBfdGVtcCwNCj4+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICZmc2xfcXVldWUt PmNvbXBfZnJlZSwgbGlzdCkgew0KPj4gKyAgICAgICAgICAgICAgIGRtYV9wb29sX2ZyZWUoZnNs X3F1ZXVlLT5jb21wX3Bvb2wsDQo+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb21w X3RlbXAtPnZpcnRfYWRkciwNCj4+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbXBf d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NvbXBfdGVtcDsNCj4+ICsgICAgICAgaW50IHRpbWVvdXQgPSBGU0xfUURN QV9DT01QX1RJTUVPVVQ7DQo+PiArICAgICAgIHN0cnVjdCBmc2xfcWRtYV9xdWV1ZSAqcXVldWUg PSBmc2xfY2hhbi0+cXVldWU7DQo+PiArDQo+PiArICAgICAgIHdoaWxlICh0aW1lb3V0LS0pIHsN Cj4+ICsgICAgICAgICAgICAgICBzcGluX2xvY2tfaXJxc2F2ZSgmcXVldWUtPnF1ZXVlX2xvY2ss IGZsYWdzKTsNCj4+ICsgICAgICAgICAgICAgICBpZiAoIWxpc3RfZW1wdHkoJnF1ZXVlLT5jb21w X2ZyZWUpKSB7DQo+PiArICAgICAgICAgICAgICAgICAgICAgICBjb21wX3RlbXAgPQ0KPmxpc3Rf Zmlyc3RfZW50cnkoJnF1ZXVlLT5jb21wX2ZyZWUsDQo+PiArICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cnVjdA0KPmZzbF9xZG1hX2NvbXAsDQo+ PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxp c3QpOw0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgbGlzdF9kZWwoJmNvbXBfdGVtcC0+bGlz dCk7DQo+PiArDQo+PiArICAgICAgICAgICAgICAgICAgICAgICBzcGluX3VubG9ja19pcnFyZXN0 b3JlKCZxdWV1ZS0+cXVldWVfbG9jaywNCj5mbGFncyk7DQo+PiArICAgICAgICAgICAgICAgICAg ICAgICBjb21wX3RlbXAtPnFjaGFuID0gZnNsX2NoYW47DQo+PiArICAgICAgICAgICAgICAgICAg ICAgICByZXR1cm4gY29tcF90ZW1wOw0KPj4gKyAgICAgICAgICAgICAgIH0NCj4+ICsgICAgICAg ICAgICAgICBzcGluX3VubG9ja19pcnFyZXN0b3JlKCZxdWV1ZS0+cXVldWVfbG9jaywgZmxhZ3Mp Ow0KPj4gKyAgICAg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gICAgICAgICAgICAgcmV0dXJu IE5VTEw7DQo+PiArDQo+PiArICAgICAgIHJldCA9IGRldmljZV9wcm9wZXJ0eV9yZWFkX3UzMl9h cnJheSgmcGRldi0+ZGV2LCAicXVldWUtc2l6ZXMiLA0KPj4gKyAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgcXVldWVfc2l6ZSwNCj5xdWV1ZV9udW0pOw0KPj4gKyAg ICAgICBpZiAocmV0KSB7DQo+PiArICAgICAgICAgICAgICAgZGV2X2VycigmcGRldi0+ZGV2LCAi Q2FuJ3QgZ2V0IHF1ZXVlLXNpemVzLlxuIik7DQo+PiArICAgICAgICAgICAgICAgcmV0dXJuIE5V TEw7DQo+PiArICAgICAgIH0NCj4+ICsgICAgICAgZm9yIChqID0gMDsgaiA8IGJsb2NrX251bWJl cjsgaisrKSB7DQo+PiArICAgICAgICAgICAgICAgZm9yIChpID0gMDsgaSA8IHF1ZXVlX251bTsg aSsrKSB7DQo+PiArICAgICAgICAgICAgICAgICAgICAgICBpZiAocXVldWVfc2l6ZVtpXSA+DQo+ RlNMX1FETUFfQ0lSQ1VMQVJfREVTQ19TSVpFX01BWCB8fA0KPj4gKyAgICAgICAgICAgICAgICAg ICAgICAgICAgIHF1ZXVlX3NpemVbaV0gPA0KPkZTTF9RRE1BX0NJUkNVTEFSX0RFU0NfU0laRV9N SU4pIHsNCj4+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGV2X2VycigmcGRldi0+ ZGV2LA0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJHZXQgd3Jv bmcNCj5xdWV1ZS1zaXplcy5cbiIpOw0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICByZXR1cm4gTlVMTDsNCj4+ICsgICAgICAgICAgICAgICAgICAgICAgIH0NCj4+ICsgICAgICAg ICAgICAgICAgICAgICAgIHF1ZXVlX3RlbXAgPSBxdWV1ZV9oZWFkICsgaSArIChqICoNCj5xdWV1 ZV9udW0pOw0KPj4gKw0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgcXVldWVfdGVtcC0+Y3Eg PQ0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgZG1hX2FsbG9jX2NvaGVyZW50KCZwZGV2LT5k ZXYsDQo+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2l6ZW9m KHN0cnVjdA0KPmZzbF9xZG1hX2Zvcm1hdCkgKg0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIHF1ZXVlX3NpemVbaV0sDQo+PiArDQo+JnF1ZXVlX3RlbXAtPmJ1 c19hZGRyLA0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEdG UF9LRVJORUwpOw0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgaWYgKCFxdWV1ZV90ZW1wLT5j cSkNCj4+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIE5VTEw7DQo+PiAr ICAgICAgICAgICAgICAgICAgICAgICBxdWV1ZV90ZW1wLT5ibG9ja19iYXNlID0NCj5mc2xfcWRt YS0+YmxvY2tfYmFzZSArDQo+PiArDQo+RlNMX1FETUFfQkxPQ0tfQkFTRV9PRkZTRVQoZnNsX3Fk bWEsIGopOw0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgcXVldWVfdGVtcC0+bl9jcSA9IHF1 ZXVlX3NpemVbaV07DQo+PiArICAgICAgICAgICAgICAgICAgICAgICBxdWV1ZV90ZW1wLT5pZCA9 IGk7DQo+PiArICAgICAgICAgICAgICAgICAgICAgICBxdWV1ZV90ZW1wLT52aXJ0X2hlYWQgPSBx dWV1ZV90ZW1wLT5jcTsNCj4+ICsgICAgICAgICAgICAgICAgICAgICAgIHF1ZXVlX3RlbXAtPnZp cnRfdGFpbCA9IHF1ZXVlX3RlbXAtPmNxOw0KPj4gKyAgIC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gICAgICBpZiAoc3RhdHVzX3NpemUgPiBGU0xfUURNQV9DSVJDVUxBUl9ERVNDX1NJWkVf TUFYIHx8DQo+PiArICAgICAgICAgICBzdGF0dXNfc2l6ZSA8IEZTTF9RRE1BX0NJUkNVTEFSX0RF U0NfU0laRV9NSU4pIHsNCj4+ICsgICAgICAgICAgICAgICBkZXZfZXJyKCZwZGV2LT5kZXYsICJH ZXQgd3Jvbmcgc3RhdHVzX3NpemUuXG4iKTsNCj4+ICsgICAgICAgICAgICAgICByZXR1cm4gTlVM TDsNCj4+ICsgICAgICAgfQ0KPj4gKyAgICAgICBzdGF0dXNfaGVhZCA9IGRldm1fa3phbGxvYygm cGRldi0+ZGV2LA0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzaXplb2Yo KnN0YXR1c19oZWFkKSwNCj5HRlBfS0VSTkVMKTsNCj4+ICsgICAgICAgaWYgKCFzdGF0dXNfaGVh ZCkNCj4+ICsgICAgICAgICAgICAgICByZXR1cm4gTlVMTDsNCj4+ICsNCj4+ICsgICAgICAgLyoN Cj4+ICsgICAgICAgICogQnVmZmVyIGZvciBxdWV1ZSBjb21tYW5kDQo+PiArICAgICAgICAqLw0K Pj4gKyAgICAgICBzdGF0dXNfaGVhZC0+Y3EgPSBkbWFfYWxsb2NfY29oZXJlbnQoJnBkZXYtPmRl diwNCj4+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNpemVv ZihzdHJ1Y3QNCj5mc2xfcWRtYV9mb3JtYXQpICoNCj4+ICsgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIHN0YXR1c19zaXplLA0KPj4gKw0KPiZzdGF0dXNfaGVhZC0+ YnVzX2FkZHIsDQo+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICBHRlBfS0VSTkVMKTsNCj4+ICsgICAgICAgaWYgKCFzdGF0dXNfaGVhZC0+Y3EpIHsN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Bmc2xfcWRtYS0+YmxvY2tfbnVtYmVyOyBqKyspIHsNCj4+ICsgICAgICAg ICAgICAgICBibG9jayA9IGZzbF9xZG1hLT5ibG9ja19iYXNlICsNCj4+ICsgICAgICAgICAgICAg ICAgICAgICAgIEZTTF9RRE1BX0JMT0NLX0JBU0VfT0ZGU0VUKGZzbF9xZG1hLCBqKTsNCj4+ICsg ICAgICAgICAgICAgICBmb3IgKGkgPSAwOyBpIDwgRlNMX1FETUFfUVVFVUVfTlVNX01BWDsgaSsr KQ0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgcWRtYV93cml0ZWwoZnNsX3FkbWEsIDAsIGJs b2NrICsNCj5GU0xfUURNQV9CQ1FNUihpKSk7DQo+PiArICAgICAgIH0NCj4+ICsgICAgICAgd2hp bGUgKDEpIHsNCj4+ICsgICAgICAgICAgICAgICByZWcgPSBxZG1hX3JlYWRsKGZzbF9xZG1hLCBj dHJsICsgRlNMX1FETUFfRFNSKTsNCj4+ICsgICAgICAgICAgICAgICBpZiAoIShyZWcgJiBGU0xf UURNQV9EU1JfREIpKQ0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7DQo+PiArICAg ICAgICAgICAgICAgaWYgKGNvdW50LS0gPCAwKQ0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAg cmV0dXJuIC1FQlVTWTsNCj4+ICsgICAgICAgICAgICAgICB1ZGVsYXkoMTAwKTsNCj4+ICsgICAg ICAgfQ0KPj4gKw0KPj4gKyAgICAgICBmb3IgKGogPSAwOyBqIDwgZnNsX3FkbWEtPmJsb2NrX251 bWJlcjsgaisrKSB7DQo+PiArICAgICAgICAgICAgICAgYmxvY2sgPSBmc2xfcWRtYS0+YmxvY2tf YmFzZSArDQo+PiArICAgICAgICAgICAgICAgICAgICAgICBGU0xfUURNQV9CTE9DS19CQVNFX09G RlNFVChmc2xfcWRtYSwgaik7DQo+PiArDQo+PiArICAgICAgICAgICAgICAgLyogRGlzYWJsZSBz dGF0dXMgcXVldWUuICovDQo+PiArICAgICAgICAgICAgICAgcWRtYV93cml0ZWwoZnNsX3FkbWEs IDAsIGJsb2NrICsgRlNMX1FETUFfQlNRTVIpOw0KPj4gKw0KPj4gKyAgICAgICAgICAgICAgIC8q DQo+PiArICAgICAgICAgICAgICAgICogY2xlYXIgdGhlIGNvbW1hbmQgcXVldWUgaW50ZXJydXB0 IGRldGVjdCByZWdpc3RlciBmb3INCj4+ICsgICAgICAgICAgICAgICAgKiBhbGwgcXVldWVzLg0K Pj4gKyAgICAgICAgICAgICAgICAqLw0KPj4gKyAgICAgICAgICAgICAgIHFkbWFfd3JpdGVsKGZz bF9xZG1hLCBGU0xfUURNQV9CQ1FJRFJfQ0xFQVIsDQo+PiArICAgICAgICAgICAgICAgICAgICAg ICAgICAgYmxvY2sgKyBGU0xfUURNQV9CQ1FJRFIoMCkpOw0KPj4gKyAgICAgICB9DQo+PiArDQo+ PiArICAgICAgIHJldHVybiAwOw0KPj4gK30NCj4+ICsNCj4+ICtzdGF0aWMgaW50DQo+PiArZnNs X3FkbWFfcXVldWVfdHJhbnNmZXJfY29tcGxldGUoc3RydWN0IGZzbF9xZG1hX2VuZ2luZSAqZnNs X3FkbWEsDQo+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2b2lkICpibG9jaywN Cj4+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGludCBpZCkNCj4+ICt7DQo+PiAr ICAgICAgIGJvb2wgZHVwbGljYXRlOw0KPj4gKyAgICAgICB1MzIgcmVnLCBpLCBjb3VudDsNCj4+ ICsgICAgICAgc3RydWN0IGZzbF9xZG1hX3F1ZXVlICp0ZW1wX3F1ZXVlOw0KPj4gKyAgICAgICBz dHJ1Y3QgZnNsX3FkbWFfZm9ybWF0ICpzdGF0dXNfYWRkcjsNCj4+ICsgICAgICAgc3RydWN0IGZz bF9xZG1hX2NvbXAgKmZzbF9jb21wID0gTlVMTDsNCj4+ICsgICAgICAgc3RydWN0IGZzbF9xZG1h X3F1ZXVlICpmc2xfcXVldWUgPSBmc2xfcWRtYS0+cXVldWU7DQo+PiArICAgICAgIHN0cnVjdCBm c2xfcWRtYV9xdWV1ZSAqZnNsX3N0YXR1cyA9IGZzbF9xZG1hLT5zdGF0dXNbaWRdOw0KPj4gKw0K Pj4gKyAgICAgICBjb3VudCA9IEZTTF9RRE1BX01BWF9TSVpFOw0KPj4gKw0KPj4gKyAgICAgICB3 aGlsZSAoY291bnQtLSkgew0KPj4gKyAgICAgICAgICAgICAgIGR1cGxpY2F0ZSA9IDA7DQo+PiAr ICAgICAgICAgICAgICAgcmVnID0gcWRtYV9yZWFkbChmc2xfcWRtYSwgYmxvY2sgKyBGU0xfUURN QV9CU1FTUik7DQo+PiArICAgICAgICAgICAgICAgaWYgKHJlZyAmIEZTTF9RRE1BX0JTUVNSX1FF KQ0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDA7DQo+PiArDQo+PiArICAgICAg ICAgICAgICAgc3RhdHVzX2FkZHIgPSBmc2xfc3RhdHVzLT52aXJ0X2hlYWQ7DQo+PiArDQo+PiAr ICAgICAgICAgICAgICAgaWYgKHFkbWFfY2NkZl9nZXRfcXVldWUoc3RhdHVzX2FkZHIpID09DQo+ PiArICAgICAgICAgICAgICAgICAgX190aGlzX2NwdV9yZWFkKHByZS5xdWV1ZSkgJiYNCj4+ICsg ICAgICAgICAgICAgICAgICAgICAgIHFkbWFfY2NkZl9hZGRyX2dldDY0KHN0YXR1c19hZGRyKSA9 PQ0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgX190aGlzX2NwdV9yZWFkKHByZS5hZGRyKSkN Cj4+ICsgICAgICAgICAgICAgICAgICAgICAgIGR1cGxpY2F0ZSA9IDE7DQo+PiArICAgICAgICAg ICAgICAgaSA9IHFkbWFfY2NkZl9nZXRfcXVldWUoc3RhdHVzX2FkZHIpICsNCj4+ICsgICAgICAg ICAgICAgICAgICAgICAgIGlkICogZnNsX3FkbWEtPm5fcXVldWVzOw0KPj4gKyAgICAgICAgICAg ICAgIF9fdGhpc19jcHVfd3JpdGUocHJlLmFkZHIsDQo+cWRtYV9jY2RmX2FkZHJfZ2V0NjQoc3Rh dHVzX2FkZHIpKTsNCj4+ICsgICAgICAgICAgICAgICBfX3RoaXNfY3B1X3dyaXRlKHByZS5xdWV1 ZSwNCj5xZG1hX2NjZGZfZ2V0X3F1ZXVlKHN0YXR1c19hZGRyKSk7DQo+PiArICAgICAgICAgICAg ICAgdGVtcF9xdWV1ZSA9IGZzbF9xdWV1ZSArIGk7DQo+PiArDQo+PiArICAgICAgICAgICAgICAg c3Bpbl9sb2NrKCZ0ZW1wX3F1ZXVlLT5xdWV1ZV9sb2NrKTsNCj4+ICsgICAgICAgICAgICAgICBp ZiAobGlzdF9lbXB0eSgmdGVtcF9xdWV1ZS0+Y29tcF91c2VkKSkgew0KPj4gKyAgICAgICAgICAg ICAgICAgICAgICAgaWYgKCFkdXBsaWNhdGUpIHsNCj4+ICsNCj5zcGluX3VubG9jaygmdGVtcF9x dWV1ZS0+cXVldWVfbG9jayk7DQo+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJl dHVybiAtRUFHQUlOOw0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgfQ0KPj4gKyAgICAgICAg ICAgICAgIH0gZWxzZSB7DQo+PiArICAgICAgICAgICAgICAgICAgICAgICBmc2xfY29tcCA9DQo+ bGlzdF9maXJzdF9lbnRyeSgmdGVtcF9xdWV1ZS0+Y29tcF91c2VkLA0KPj4gKyAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cnVjdA0KPmZzbF9xZG1h X2NvbXAsIGxpc3QpOw0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgaWYgKGZzbF9jb21wLT5i dXNfYWRkciArIDE2ICE9DQo+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9fdGhp c19jcHVfcmVhZChwcmUuYWRkcikpIHsNCj4+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgaWYgKCFkdXBsaWNhdGUpIHsNCj4+ICsNCj5zcGluX3VubG9jaygmdGVtcF9xdWV1ZS0+cXVl dWVfbG9jayk7DQo+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0 dXJuIC1FQUdBSU47DQo+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0NCj4+ICsg ICAgICAgICAgICAgICAgICAgICAgIH0NCj4+ICsgICAgICAgICAgICAgICB9DQo+PiArDQo+PiAr ICAgICAgICAgICAgICAgaWYgKGR1cGxpY2F0ZSkgew0KPj4gKyAgICAgICAgICAgICAgICAgICAg ICAgcmVnID0gcWRtYV9yZWFkbChmc2xfcWRtYSwgYmxvY2sgKw0KPkZTTF9RRE1BX0JTUU1SKTsN Cj4+ICsgICAgICAgICAgICAgICAgICAgICAgIHJlZyB8PSBGU0xfUURNQV9CU1FNUl9ESTsNCj4+ ICsgICAgICAgICAgICAgICAgICAgICAgIHFkbWFfZGVzY19hZGRyX3NldDY0KHN0YXR1c19hZGRy LCAweDApOw0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgZnNsX3N0YXR1cy0+dmlydF9oZWFk Kys7DQo+PiArICAgICAgICAgICAgICAgICAgICAgICBpZiAoZnNsX3N0YXR1cy0+dmlydF9oZWFk ID09IGZzbF9zdGF0dXMtPmNxDQo+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICArDQo+ZnNsX3N0YXR1cy0+bl9jcSkNCj4+ICsgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgZnNsX3N0YXR1cy0+dmlydF9oZWFkID0NCj5mc2xfc3RhdHVzLT5j cTsNCj4+ICsgICAgICAgICAgICAgICAgICAgICAgIHFkbWFfd3JpdGVsKGZzbF9xZG1hLCByZWcs IGJsb2NrICsNCj5GU0xfUURNQV9CU1FNUik7DQo+PiArICAgICAgICAgICAgICAgICAgICAgICBz cGluX3VubG9jaygmdGVtcF9xdWV1ZS0+cXVldWVfbG9jayk7DQo+PiArICAgICAgICAgICAgICAg ICAgICAgICBjb250aW51ZTsNCj4+ICsgICAgICAgICAgICAgICB9DQo+PiArICAgICAgICAgICAg ICAgbGlzdF9kZWwoJmZzbF9jb21wLT5saXN0KTsNCj4+ICsNCj4+ICsgICAgICAgICAgICAgICBy ZWcgPSBxZG1hX3JlYWRsKGZzbF9xZG1hLCBibG9jayArDQo+RlNMX1FETUFfQlNRTVIpOw0KPj4g KyAgICAgICAgICAgICAgIHJlZyB8PSBGU0xfUURNQV9CU1FNUl9ESTsNCj4+ICsgICAgICAgICAg ICAgICBxZG1hX2Rlc2NfYWRkcl9zZXQ2NChzdGF0dXNfYWRkciwgMHgwKTsNCj4+ICsgICAgICAg ICAgICAgICBmc2xfc3RhdHVzLT52aXJ0X2hlYWQrKzsNCj4+ICsgICAgICAgICAgICAgICBpZiAo ZnNsX3N0YXR1cy0+dmlydF9oZWFkID09IGZzbF9zdGF0dXMtPmNxICsNCj5mc2xfc3RhdHVzLT5u X2NxKQ0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgZnNsX3N0YXR1cy0+dmlydF9oZWFkID0g ZnNsX3N0YXR1cy0+Y3E7DQo+PiArICAgICAgICAgICAgICAgcWRtYV93cml0ZWwoZnNsX3FkbWEs IHJlZywgYmxvY2sgKw0KPkZTTF9RRE1BX0JTUU1SKTsNCj4+ICsgICAgICAgICAgICAgICBzcGlu X3VubG9jaygmdGVtcF9xdWV1ZS0+cXVldWVfbG9jayk7DQo+PiArDQo+PiArICAgICAgICAgICAg ICAgc3Bpbl9sb2NrKCZmc2xfY29tcC0+cWNoYW4tPnZjaGFuLmxvY2spOw0KPj4gKyAgICAgICAg ICAgICAgIHZjaGFuX2Nvb2tpZV9jb21wbGV0ZSgmZnNsX2NvbXAtPnZkZXNjKTsNCj4+ICsgICAg ICAgICAgICAgICBmc2xfY29tcC0+cWNoYW4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ZShwZGV2LA0KPmlycV9uYW1lKTsNCj4+ICsNCj4+ICsgICAgICAgICAg ICAgICBpZiAoZnNsX3FkbWEtPnF1ZXVlX2lycVtpXSA8IDApIHsNCj4+ICsgICAgICAgICAgICAg ICAgICAgICAgIGRldl9lcnIoJnBkZXYtPmRldiwNCj4+ICsgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIkNhbid0IGdldCBxZG1hIHF1ZXVlICVkIGlycS5cbiIsIGkpOw0KPj4gKyAgICAg ICAgICAgICAgICAgICAgICAgcmV0dXJuIGZzbF9xZG1hLT5xdWV1ZV9pcnFbaV07DQo+PiArICAg ICAgICAgICAgICAgfQ0KPj4gKw0KPj4gKyAgICAgICAgICAgICAgIHJldCA9IGRldm1fcmVxdWVz dF9pcnEoJnBkZXYtPmRldiwNCj4+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIGZzbF9xZG1hLT5xdWV1ZV9pcnFbaV0sDQo+PiArICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICBmc2xfcWRtYV9xdWV1ZV9oYW5kbGVyLA0KPj4gKyAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgMCwNCj4+ICsgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICJxRE1BIHF1ZXVlIiwNCj4+ICsgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIGZzbF9xZG1hKTsNCj4+ICsgICAgICAgICAgICAgICBpZiAocmV0KSB7DQo+ PiArICAgICAgICAgICAgICAgICAgICAgICBkZXZfZXJyKCZwZGV2LT5kZXYsDQo+PiArICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICJDYW4ndCByZWdpc3RlciBxRE1BIHF1ZXVlDQo+SVJR LlxuIik7DQo+PiArICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gIHJldDsNCj4+ICsgICAg ICAgICAgICAgICB9DQo+PiArDQo+PiArICAgICAgICAgICAgICAgY3B1ID0gaSAlIG51bV9vbmxp bmVfY3B1cygpOw0KPj4gKyAgICAgICAgICAgICAgIHJldCA9IGlycV9zZXRfYWZmaW5pdHlfaGlu dChmc2xfcWRtYS0+cXVldWVfaXJxW2ldLA0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICBnZXRfY3B1X21hc2soY3B1KSk7DQo+PiArICAgICAgICAgICAgICAg aWYgKHJldCkgew0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgZGV2X2VycigmcGRldi0+ZGV2 LA0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQ2FuJ3Qgc2V0IGNwdSAlZCBh ZmZpbml0eSB0bw0KPklSUSAlZC5cbiIsDQo+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIGNwdSwNCj4+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZnNsX3FkbWEtPnF1 ZXVlX2lycVtpXSk7DQo+PiArICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gIHJldDsNCj4+ ICsgICAgICAgICAgICAgICB9DQo+PiArICAgICAgIH0NCj4+ICsNCj4+ICsgICAgICAgcmV0dXJu IDA7DQo+PiArfQ0KPj4gKw0KPj4gK3N0YXRpYyB2b2lkIGZzbF9xZG1hX2lycV9leGl0KHN0cnVj dCBwbGF0Zm9ybV9kZXZpY2UgKnBkZXYsDQo+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAg ICBzdHJ1Y3QgZnNsX3FkbWFfZW5naW5lICpmc2xfcWRtYSkNCj4+ICt7DQo+PiArICAgICAgIGlu dCBpOw0KPj4gKw0KPj4gKyAgICAgICBkZXZtX2ZyZWVfaXJxKCZwZGV2LT5kZXYsIGZzbF9xZG1h LT5lcnJvcl9pcnEsIGZzbF9xZG1hKTsNCj4+ICsgICAgICAgZm9yIChpID0gMDsgaSA8IGZzbF9x ZG1hLT5ibG9ja19udW1iZXI7IGkrKykNCj4+ICsgICAgICA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W50ZXJydXB0 IGRldGVjdCByZWdpc3Rlcg0KPmZvcg0KPj4gKyAgICAgICAgICAgICAgICAqIGFsbCBxdWV1ZXMu DQo+PiArICAgICAgICAgICAgICAgICovDQo+PiArDQo+PiArICAgICAgICAgICAgICAgYmxvY2sg PSBmc2xfcWRtYS0+YmxvY2tfYmFzZSArDQo+PiArICAgICAgICAgICAgICAgICAgICAgICBGU0xf UURNQV9CTE9DS19CQVNFX09GRlNFVChmc2xfcWRtYSwgaSk7DQo+PiArICAgICAgICAgICAgICAg cWRtYV93cml0ZWwoZnNsX3FkbWEsIEZTTF9RRE1BX0JDUUlEUl9DTEVBUiwNCj4+ICsgICAgICAg ICAgICAgICAgICAgICAgICAgICBibG9jayArIEZTTF9RRE1BX0JDUUlEUigwKSk7DQo+PiArICAg ICAgIH0NCj4+ICsNCj4+ICsgICAgICAgZm9yIChqID0gMDsgaiA8IGZzbF9xZG1hLT5ibG9ja19u dW1iZXI7IGorKykgew0KPj4gKyAgICAgICAgICAgICAgIGJsb2NrID0gZnNsX3FkbWEtPmJsb2Nr X2Jhc2UgKw0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgRlNMX1FETUFfQkxPQ0tfQkFTRV9P RkZTRVQoZnNsX3FkbWEsIGopOw0KPj4gKyAgICAgICAgICAgICAgIGZvciAoaSA9IDA7IGkgPCBm c2xfcWRtYS0+bl9xdWV1ZXM7IGkrKykgew0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgdGVt cCA9IGZzbF9xdWV1ZSArIGkgKyAoaiAqDQo+ZnNsX3FkbWEtPm5fcXVldWVzKTsNCj4+ICsgICAg ICAgICAgICAgICAgICAgICAgIC8qDQo+PiArICAgICAgICAgICAgICAgICAgICAgICAgKiBJbml0 aWFsaXplIENvbW1hbmQgUXVldWUgcmVnaXN0ZXJzIHRvDQo+PiArICAgICAgICAgICAgICAgICAg ICAgICAgKiBwb2ludCB0byB0aGUgZmlyc3QNCj4+ICsgICAgICAgICAgICAgICAgICAgICAgICAq IGNvbW1hbmQgZGVzY3JpcHRvciBpbiBtZW1vcnkuDQo+PiArICAgICAgICAgICAgICAgICAgICAg ICAgKiBEZXF1ZXVlIFBvaW50ZXIgQWRkcmVzcyBSZWdpc3RlcnMNCj4+ICsgICAgICAgICAgICAg ICAgICAgICAgICAqIEVucXVldWUgUG9pbnRlciBBZGRyZXNzIFJlZ2lzdGVycw0KPj4gKyAgICAg ICAgICAgICAgICAgICAgICAgICovDQo+PiArDQo+PiArICAgICAgICAgICAgICAgICAgICAgICBx ZG1hX3dyaXRlbChmc2xfcWRtYSwgdGVtcC0+YnVzX2FkZHIsDQo+PiArICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICBibG9jayArDQo+RlNMX1FETUFfQkNRRFBBX1NBRERSKGkpKTsN Cj4+ICsgICAgICAgICAgICAgICAgICAgICAgIHFkbWFfd3JpdGVsKGZzbF9xZG1hLCB0ZW1wLT5i dXNfYWRkciwNCj4+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJsb2NrICsN Cj5GU0xfUURNQV9CQ1FFUEFfU0FERFIoaSkpOw0KPj4gKw0KPj4gKyAgICAgICAgICAgICAgICAg ICAgICAgLyogSW5pdGlhbGl6ZSB0aGUgcXVldWUgbW9kZS4gKi8NCj4+ICsgICAgICAgICAgICAg ICAgICAgICAgIHJlZyA9IEZTTF9RRE1BX0JDUU1SX0VOOw0KPj4gKyAgICAgICAgICAgICAgICAg ICAgICAgcmVnIHw9DQo+RlNMX1FETUFfQkNRTVJfQ0RfVEhMRChpbG9nMih0ZW1wLT5uX2NxKSAt IDQpOw0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgcmVnIHw9DQo+RlNMX1FETUFfQkNRTVJf Q1FfU0laRShpbG9nMih0ZW1wLT5uX2NxKSAtIDYpOw0KPj4gKyAgICAgICAgICAgICAgICAgICAg ICAgcWRtYV93cml0ZWwoZnNsX3FkbWEsIHJlZywgYmxvY2sgKw0KPkZTTF9RRE1BX0JDUU1SKGkp KTsNCj4+ICsgICAgICAgICAgICAgICB9DQo+PiArDQo+PiArICAgICAgICAgICAgICAgLyoNCj4+ ICsgICAgICAgICAgICAgICAgKiBXb3JrYXJvdW5kIGZvciBlcnJhdHVtOiBFUlIwMTA4MTIuDQo+ PiArICAgICAgICAgICAgICAgICogV2UgbXVzdCBlbmFibGUgWE9GRiB0byBhdm9pZCB0aGUgZW5x dWV1ZSByZWplY3Rpb24NCj5vY2N1cnMuDQo+PiArICAgICAgICAgICAgICAgICogU2V0dGluZyBT UUNDTVIgRU5URVJfV00gdG8gMHgyMC4NCj4+ICsgICAgICAgICAgICAgICAgKi8NCj4+ICsNCj4+ ICsgICAgICAgICAgICAgICBxZG1hX3dyaXRlbChmc2xfcWRtYSwNCj5GU0xfUURNQV9TUUNDTVJf RU5URVJfV00sDQo+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgYmxvY2sgKyBGU0xfUURN QV9TUUNDTVIpOw0KPj4gKw0KPj4gKyAgICAgICAgICAgICAgIC8qDQo+PiArICAgICAgICAgICAg ICAgICogSW5pdGlhbGl6ZSBzdGF0dXMgcXVldWUgcmVnaXN0ZXJzIHRvIHBvaW50IHRvIHRoZSBm aXJzdA0KPj4gKyAgICAgICAgICAgICAgICAqIGNvbW1hbmQgZGVzY3JpcHRvciBpbiBtZW1vcnku DQo+PiArICAgICAgICAgICAgICAgICogRGVxdWV1ZSBQb2ludGVyIEFkZHJlc3MgUmVnaXN0ZXJz DQo+PiArICAgICAgICAgICAgICAgICogRW5xdWV1ZSBQb2ludGVyIEFkZHJlc3MgUmVnaXN0ZXJz DQo+PiArICAgICAgICAgICAgICAgICovDQo+PiArDQo+PiArICAgICAgICAgICAgICAgcWRtYV93 cml0ZWwoZnNsX3FkbWEsIGZzbF9xZG1hLT5zdGF0dXNbal0tPmJ1c19hZGRyLA0KPj4gKyAgICAg ICAgICAgICAgICAgICAgICAgICAgIGJsb2NrICsgRlNMX1FETUFfU1FFUEFSKTsNCj4+ICsgICAg ICAgICAgICAgICBxZG1hX3dyaXRlbChmc2xfcWRtYSwgZnNsX3FkbWEtPnN0YXR1c1tqXS0+YnVz X2FkZHIsDQo+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgYmxvY2sgKyBGU0xfUURNQV9T UURQQVIpOw0KPj4gKyAgICAgICAgICAgICAgIC8qIEluaXRpYWxpemUgc3RhdHVzIHF1ZXVlIGlu dGVycnVwdC4gKi8NCj4+ICsgICAgICAgICAgICAgICBxZG1hX3dyaXRlbChmc2xfcWRtYSwgRlNM X1FETUFfQkNRSUVSX0NRVElFLA0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgIGJsb2Nr ICsgRlNMX1FETUFfQkNRSUVSKDApKTsNCj4+ICsgICAgICAgICAgICAgICBxZG1hX3dyaXRlbChm c2xfcWRtYSwgRlNMX1FETUFfQlNRSUNSX0lDRU4gfA0KPj4gKyAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICBGU0xfUURNQV9CU1FJQ1JfSUNTVCg1KSB8DQo+MHg4MDAwLA0KPj4gKyAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBibG9jayArIEZTTF9RRE1BX0JTUUlDUik7 DQo+PiArICAgICAgICAgICAgICAgcWRtYV93cml0ZWwoZnNsX3FkbWEsIEZTTF9RRE1BX0NRSUVS X01FSUUgfA0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBGU0xfUURNQV9D UUlFUl9URUlFLA0KPj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBibG9jayAr IEZTTF9RRE1BX0NRSUVSKTsNCj4+ICsNCj4+ICsgICAgICAgICAgICAgICAvKiBJbml0aWFsaXpl IHRoZSBzdGF0dXMgcXVldWUgbW9kZS4gKi8NCj4+ICsgICAgICAgICAgICAgICByZWcgPSBGU0xf UURNQV9CU1FNUl9FTjsNCj4+ICsgICAgICAgICAgICAgICByZWcgfD0gRlNMX1FETUFfQlNRTVJ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pY2Vfbm9k ZSAqbnAgPSBwZGV2LT5kZXYub2Zfbm9kZTsNCj4+ICsNCj4+ICsgICAgICAgcmV0ID0gb2ZfcHJv cGVydHlfcmVhZF91MzIobnAsICJkbWEtY2hhbm5lbHMiLCAmY2hhbnMpOw0KPj4gKyAgICAgICBp ZiAocmV0KSB7DQo+PiArICAgICAgICAgICAgICAgZGV2X2VycigmcGRldi0+ZGV2LCAiQ2FuJ3Qg Z2V0IGRtYS1jaGFubmVscy5cbiIpOw0KPj4gKyAgICAgICAgICAgICAgIHJldHVybiByZXQ7DQo+ PiArICAgICAgIH0NCj4+ICsNCj4+ICsgICAgICAgcmV0ID0gb2ZfcHJvcGVydHlfcmVhZF91MzIo bnAsICJibG9jay1vZmZzZXQiLCAmYmxrX29mZik7DQo+PiArICAgICAgIGlmIChyZXQpIHsNCj4+ ICsgICAgICAgICAgICAgICBkZXZfZXJyKCZwZGV2LT5kZXYsICJDYW4ndCBnZXQgYmxvY2stb2Zm c2V0LlxuIik7DQo+PiArICAgICAgICAgICAgICAgcmV0dXJuIHJldDsNCj4+ICsgICAgICAgfQ0K Pj4gKw0KPj4gKyAgICAgICByZXQgPSBvZl9wcm9wZXJ0eV9yZWFkX3UzMihucCwgImJsb2NrLW51 bWJlciIsICZibGtfbnVtKTsNCj4+ICsgICAgICAgaWYgKHJldCkgew0KPj4gKyAgICAgICAgICAg ICAgIGRldl9lcnIoJnBkZXYtPmRldiwgIkNhbid0IGdldCBibG9jay1udW1iZXIuXG4iKTsNCj4+ ICsgICAgICAgICAgICAgICByZXR1cm4gcmV0Ow0KPj4gKyAgICAgICB9DQo+PiArDQo+PiArICAg ICAgIGJsa19udW0gPSBtaW5fdChpbnQsIGJsa19udW0sIG51bV9vbmxpbmVfY3B1cygpKTsNCj4+ ICsNCj4+ICsgICAgICAgbGVuID0gc2l6ZW9mKCpmc2xfcWRtYSk7DQo+PiArICAgICAgIGZzbF9x ZG1hID0gZGV2bV9remFsbG9jKCZwZGV2LT5kZXY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