Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3184287yba; Sun, 28 Apr 2019 19:40:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxP/9y5Rh1M+V2e8fGQBLaIUBuqbacTYjNwoKUM57b74FPmisggNCKxUKb8gkjKk1+0cSvU X-Received: by 2002:a63:d016:: with SMTP id z22mr2727948pgf.116.1556505602510; Sun, 28 Apr 2019 19:40:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556505602; cv=none; d=google.com; s=arc-20160816; b=LFOfqvBr7w7/r7t7FkVjwMAJQw1lsevgfTU1wZmK3U7pvS3xOfrMFfx89+jhdpu1w/ BDz6oscEjZqU1/440E5gVlzbtu70nKhE5vNwze8PG+dNn5UqzRN4dauvQKK7rsxzX3by wBgQnw83a7RU7Cg86zbEIIcZWezjO4WdKXnt4AcIUpBT8K2JQsBjCkCxFN0RtpPvLZSS wvcWGkhPSrABGUMTWIy52CJnhJibOuAg+U/+1a4Fsn3MD5PFNqaPLJLxP/xMdsfiSoH7 MfqcRm/SkyNCjQbTajTYnQsQkoDMNkMpefhmaObnTdNwRJu0qEYzD4zasj7V5ya0XUBy Rljw== 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:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=8MazRWtMmIDXXZKNak57DKoafdXaKYHaWhJGKCFxwKU=; b=KLN+8vhqhUWz6Rp1NWx0QVjlJv8Lfeeu9ojVJQulC8AXKS6HNd2T4WQ9SSpzc+dF1+ DAq74BuXyzDMtMmSFGcEeLfeKqLz3LoeZ4dO74j92vWiDRvFN4OQDliF+K26hUbI34cm gja5XtbaaJTqCK+6gPf8xijPDRdB15IyO9KVPg7418ymt/aVE5mTzmWS7LUS1QSafFCf mOcvNett8+/0kAu7TvKrtxVaYH8aQWGPxrQDIeXob8MDqHKgvSjYTnJr1Xp7gsufiHob dR7r9Ucgdl3wJ9urjn1tCo5p4ypT5N5AoLql/XE+0tGZY0jyg/eRX6aV52YB2QkJ0AfH lBhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=MN4ir2D9; 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 i9si6980775pgs.402.2019.04.28.19.39.45; Sun, 28 Apr 2019 19:40:02 -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=MN4ir2D9; 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 S1727120AbfD2Cix (ORCPT + 99 others); Sun, 28 Apr 2019 22:38:53 -0400 Received: from mail-eopbgr70052.outbound.protection.outlook.com ([40.107.7.52]:51742 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726819AbfD2Cix (ORCPT ); Sun, 28 Apr 2019 22:38:53 -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=8MazRWtMmIDXXZKNak57DKoafdXaKYHaWhJGKCFxwKU=; b=MN4ir2D97ctsel/YV1uj9WJUjvuj2RD55VBm/J5dQ/fawhhZpEIm322Lcqmjobt1pK622HIx8uiEq0xYBuaRb+IjmdHFJhtZNmrn6GzR7Khml4rmi/7ngu/paDJtKVqKVr2Fqht2/2phY2K+cW+TO0zJnDLaWEei3te97ZKKDy8= Received: from AM5PR04MB3299.eurprd04.prod.outlook.com (10.173.255.158) by AM5PR04MB2962.eurprd04.prod.outlook.com (10.173.254.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1835.13; Mon, 29 Apr 2019 02:38:37 +0000 Received: from AM5PR04MB3299.eurprd04.prod.outlook.com ([fe80::7405:508b:e792:307d]) by AM5PR04MB3299.eurprd04.prod.outlook.com ([fe80::7405:508b:e792:307d%3]) with mapi id 15.20.1835.018; Mon, 29 Apr 2019 02:38:37 +0000 From: Xiaowei Bao To: Lorenzo Pieralisi CC: "bhelgaas@google.com" , "Z.q. Hou" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , Leo Li , "kishon@ti.com" , "gregkh@linuxfoundation.org" , "l.subrahmanya@mobiveil.co.in" , "arnd@arndb.de" , "M.h. Lian" , "linux-pci@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [EXT] Re: [PATCH 1/6] PCI: mobiveil: Add the EP mode support Thread-Topic: [EXT] Re: [PATCH 1/6] PCI: mobiveil: Add the EP mode support Thread-Index: AQHUx2+3DnIqhcKED0awzdzidSt8lqZNJiKAgAWy3cA= Date: Mon, 29 Apr 2019 02:38:36 +0000 Message-ID: References: <20190218094643.2692-1-xiaowei.bao@nxp.com> <20190425113203.GD10833@e121166-lin.cambridge.arm.com> In-Reply-To: <20190425113203.GD10833@e121166-lin.cambridge.arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=xiaowei.bao@nxp.com; x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4e431d1a-98fe-4aee-3245-08d6cc4bc812 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:AM5PR04MB2962; x-ms-traffictypediagnostic: AM5PR04MB2962: x-ms-exchange-purlcount: 4 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 0022134A87 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(396003)(346002)(366004)(376002)(136003)(199004)(189003)(13464003)(478600001)(6506007)(66066001)(53546011)(52536014)(30864003)(6436002)(76176011)(6116002)(8676002)(102836004)(25786009)(81166006)(81156014)(3846002)(55016002)(86362001)(4326008)(68736007)(6246003)(229853002)(9686003)(5660300002)(6306002)(53936002)(53946003)(8936002)(7696005)(73956011)(71190400001)(71200400001)(6916009)(76116006)(45080400002)(66556008)(256004)(54906003)(14444005)(66946007)(33656002)(14454004)(64756008)(66446008)(316002)(66476007)(305945005)(97736004)(74316002)(7736002)(44832011)(476003)(7416002)(446003)(11346002)(186003)(99286004)(26005)(486006)(2906002)(966005)(461764006)(559001)(579004)(569006);DIR:OUT;SFP:1101;SCL:1;SRVR:AM5PR04MB2962;H:AM5PR04MB3299.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: cetx2/gmCPG3LhcxYntd6MViwxYmAe6efvYnIE2YULfIcbQx9ZvwtLmkJdhbfkM1mLW9Xr4kTgqd9355vK9J6Rge6UjQat7L6cn2/Qn8tGZU3dQaFxv8z63b/A7u2ijSXI7sSlKo7vjurVnFhgzGQafdQ+2WJ16hYYUyNjl9gKkKVpzIdDW2fjPHXsX6dQgOC/Q3Y4fi/EBoDHNd67SMUaa2QYb3h9Jfsny5DsOHrOxeWIShTJKf3rnVcWoDVNliQ2qamOB7XjLYeBju1vRQhLXY+3dgvesdL79KK39Vtwtlaho94RvP713KUMdaygOyXF3gshrUwv4x3oUa91sOD21z6gNbL6QaMZ1V3EORU2zVKN8QOLh3H5rk2ecr5XFtFO1KVKDCiMtnac//g5zxhs8bQrW74MLqu3eDslRAJP4= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4e431d1a-98fe-4aee-3245-08d6cc4bc812 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Apr 2019 02:38:36.8881 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR04MB2962 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgTG9yZW56bywNCg0KVGhhbmtzIGEgbG90IGZvciB5b3VyIGNvbW1lbnRzLCBJIGFtIHdhaXRp bmcgZm9yIHRoaXMgcGF0Y2hlcyBhcHByb3ZlIG9mIGh0dHA6Ly9wYXRjaHdvcmsub3psYWJzLm9y Zy9wcm9qZWN0L2xpbnV4LXBjaS9saXN0Lz9zZXJpZXM9MTAyMzc4LCBhbmQgb25jZSB0aGVzZSBw YXRjaGVzIGFwcHJvdmVkLCBJIHdpbGwgcmVzZW50IHRoZSBwYXRjaGVzIGJhc2Ugb24gdGhlIGxh dGVzdCBiYXNlLg0KDQpCZXN0IHJlZ2FyZHMNClhpYW93ZWkNCg0KLS0tLS1PcmlnaW5hbCBNZXNz YWdlLS0tLS0NCkZyb206IExvcmV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gbW9iaXZlaWxfcGNpZV9l cF9yZXNldF9iYXIoc3RydWN0IG1vYml2ZWlsX3BjaWUgKnBjaWUsDQo+ICsgICAgICAgICAgICAg ICAgICAgICAgICAgICAgIGVudW0gcGNpX2Jhcm5vIGJhcikgew0KPiArICAgICBfX21vYml2ZWls X3BjaWVfZXBfcmVzZXRfYmFyKHBjaWUsIGJhcik7IH0NCj4gKw0KPiArc3RhdGljIHU4IF9fbW9i aXZlaWxfcGNpZV9lcF9maW5kX25leHRfY2FwKHN0cnVjdCBtb2JpdmVpbF9wY2llICpwY2llLA0K PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHU4IGNhcF9wdHIsIHU4 IGNhcCkgew0KPiArICAgICB1OCBjYXBfaWQsIG5leHRfY2FwX3B0cjsNCj4gKyAgICAgdTE2IHJl ZzsNCj4gKw0KPiArICAgICByZWcgPSBjc3JfcmVhZHcocGNpZSwgY2FwX3B0cik7DQo+ICsgICAg IG5leHRfY2FwX3B0ciA9IChyZWcgJiAweGZmMDApID4+IDg7DQo+ICsgICAgIGNhcF9pZCA9IChy ZWcgJiAweDAwZmYpOw0KPiArDQo+ICsgICAgIGlmIChjYXBfaWQgPT0gY2FwKQ0KPiArICAgICAg ICAgICAgIHJldHVybiBjYXBfcHRyOw0KPiArDQo+ICsgICAgIGlmICghbmV4dF9jYXBfcHRyIHx8 IGNhcF9pZCA+IFBDSV9DQVBfSURfTUFYKQ0KPiArICAgICAgICAgICAgIHJldHVybiAwOw0KPiAr DQo+ICsgICAgIHJldHVybiBfX21vYml2ZWlsX3BjaWVfZXBfZmluZF9uZXh0X2NhcChwY2llLCBu ZXh0X2NhcF9wdHIsIA0KPiArY2FwKTsgfQ0KPiArDQo+ICtzdGF0aWMgdTggbW9iaXZlaWxfcGNp ZV9lcF9maW5kX2NhcGFiaWxpdHkoc3RydWN0IG1vYml2ZWlsX3BjaWUgKnBjaWUsDQo+ICsgICAg ICAgICAgICAgICAgICAgICAgICAgICAg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MgaW50IG1vYml2ZWlsX3BjaWVfZXBfb3V0Ym91bmRfYXR1KHN0cnVjdCBtb2Jp dmVpbF9wY2llX2VwICplcCwNCj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgcGh5c19hZGRyX3QgcGh5c19hZGRyLA0KPiArICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICB1NjQgcGNpX2FkZHIsIHU4IGZ1bmNfbm8sDQo+ICsgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIHNpemVfdCBzaXplKSB7DQo+ICsgICAgIGludCByZXQ7DQo+ ICsgICAgIHUzMiBmcmVlX3dpbjsNCj4gKyAgICAgc3RydWN0IG1vYml2ZWlsX3BjaWUgKnBjaWUg PSB0b19tb2JpdmVpbF9wY2llX2Zyb21fZXAoZXApOw0KPiArDQo+ICsgICAgIGZyZWVfd2luID0g ZmluZF9maXJzdF96ZXJvX2JpdChlcC0+b2Jfd2luZG93X21hcCwgZXAtPm51bV9vYl93aW5kb3dz KTsNCj4gKyAgICAgaWYgKGZyZWVfd2luID49IGVwLT5udW1fb2Jfd2luZG93cykgew0KPiArICAg ICAgICAgICAgIGRldl9lcnIoJnBjaWUtPnBkZXYtPmRldiwgIk5vIGZyZWUgb3V0Ym91bmQgd2lu ZG93XG4iKTsNCj4gKyAgICAgICAgICAgICByZXR1cm4gLUVJTlZBTDsNCj4gKyAgICAgfQ0KPiAr DQo+ICsgICAgIHJldCA9IHByb2dyYW1fb2Jfd2luZG93c19lcChwY2llLCBmcmVlX3dpbiwgTUVN X1dJTkRPV19UWVBFLA0KPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGh5c19h ZGRyLCBwY2lfYWRkciwgZnVuY19ubywgc2l6ZSk7DQo+ICsgICAgIGlmIChyZXQgPCAwKSB7DQo+ ICsgICAgICAgICAgICAgZGV2X2VycigmcGNpZS0+cGRldi0+ZGV2LCAiRmFpbGVkIHRvIHByb2dy YW0gSU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JhcihzdHJ1Y3QgcGNpX2VwYyAqZXBjLCB1OCBmdW5j X25vLA0KPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RydWN0IHBjaV9lcGZf YmFyICplcGZfYmFyKSB7DQo+ICsgICAgIGludCByZXQ7DQo+ICsgICAgIHN0cnVjdCBtb2JpdmVp bF9wY2llX2VwICplcCA9IGVwY19nZXRfZHJ2ZGF0YShlcGMpOw0KPiArICAgICBzdHJ1Y3QgbW9i aXZlaWxfcGNpZSAqcGNpZSA9IHRvX21vYml2ZWlsX3BjaWVfZnJvbV9lcChlcCk7DQo+ICsgICAg IGVudW0gcGNpX2Jhcm5vIGJhciA9IGVwZl9iYXItPmJhcm5vOw0KPiArICAgICBzaXplX3Qgc2l6 ZSA9IGVwZl9iYXItPnNpemU7DQo+ICsNCj4gKyAgICAgaWYgKGJhciA8IGVwLT5iYXJfbnVtKSB7 DQo+ICsgICAgICAgICAgICAgcmV0ID0gbW9iaXZlaWxfcGNpZV9lcF9pbmJvdW5kX2F0dShlcCwg ZnVuY19ubywgYmFyLA0KPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgZXBmX2Jhci0+cGh5c19hZGRyKTsNCj4gKyAgICAgICAgICAgICBpZiAocmV0KQ0K PiArICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHJldDsNCj4gKw0KPiArICAgICAgICAgICAg IGNzcl93cml0ZWwocGNpZSwgZnVuY19ubyAqIGVwLT5iYXJfbnVtICsgYmFyLA0KPiArICAgICAg ICAgICAgICAgICAgICAgICAgR1BFWF9CQVJfU0VMRUNUKTsNCj4gKyAgICAgICAgICAgICBjc3Jf d3JpdGVsKHBjaWUsIGxvd2VyXzMyX2JpdHMofihzaXplIC0gMSkpLA0KPiArICAgICAgICAgICAg ICAgICAgICAgICAgR1BFWF9CQVJfU0laRV9MRFcpOw0KPiArICAgICAgICAgICAgIGNzcl93cml0 ZWwocGNpZSwgdXBwZXJfMzJfYml0cyh+KHNpemUgLSAxKSksDQo+ICsgICAgICAgICAgICAgICAg ICAgICAgICBHUEVYX0JBUl9TSVpFX1VEVyk7DQo+ICsgICAgIH0NCj4gKw0KPiArICAgICByZXR1 cm4gMDsNCj4gK30NCj4gKw0KPiArc3RhdGljIGludCBtb2JpdmVpbF9wY2llX2ZpbmRfaW5kZXgo c3RydWN0IG1vYml2ZWlsX3BjaWVfZXAgKmVwLA0KPiArICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgcGh5c19hZGRyX3QgYWRkciwNCj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIHUzMiAqYXR1X2luZGV4KSB7DQo+ICsgICAgIHUzMiBpbmRleDsNCj4gKw0KPiArICAg ICBmb3IgKGluZGV4ID0gMDsgaW5kZXggPCBlcC0+bnVtX29iX3dpbmRvd3M7IGluZGV4KyspIHsN Cj4gKyAgICAgICAgICAgICBpZiAoZXAtPm91dGJvdW5kX2FkZHJbaW5kZXhdICE9IGFkZHIpDQo+ ICsgICAgICAgICAgICAgICAgICAgICBjb250aW51ZTsNCj4gKyAgICAgICAgICAgICAqYXR1X2lu ZGV4ID0gaW5kZXg7DQo+ICsgICAgICAgICAgICAgcmV0dXJuIDA7DQo+ICsgICAgIH0NCj4gKw0K PiArICAgICByZXR1cm4gLUVJTlZBTDsNCj4gK30NCj4gKw0KPiArc3RhdGljIHZvaWQgbW9iaXZl aWxfcGNpZV9lcF91bm1hcF9hZGRyKHN0cnVjdCBwY2lfZXBjICplcGMsIHU4IGZ1bmNfbm8sDQo+ ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGh5c19hZGRyX3QgYWRkcikg ew0KPiArICAgICBpbnQgcmV0Ow0KPiArICAgICB1MzIgYXR1X2luZGV4Ow0KPiArICAgICBzdHJ1 Y3QgbW9iaXZlaWxfcGNpZV9lcCAqZXAgPSBlcGNfZ2V0X2RydmRhdGEoZXBjKTsNCj4gKyAgICAg c3RydWN0IG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ChwY2llLCBQQUJf Q1RSTCk7DQo+ICsgICAgIGZ1bmNfbnVtICY9IH4oRlVOQ19TRUxfTUFTSyA8PCBGVU5DX1NFTF9T SElGVCk7DQo+ICsgICAgIGZ1bmNfbnVtIHw9IChmdW5jX25vICYgRlVOQ19TRUxfTUFTSykgPDwg RlVOQ19TRUxfU0hJRlQ7DQo+ICsgICAgIGNzcl93cml0ZWwocGNpZSwgZnVuY19udW0sIFBBQl9D VFJMKTsNCj4gKw0KPiArICAgICBtc2dfYWRkcl9sb3dlciA9IGNzcl9yZWFkbChwY2llLCBQQUJf TVNJWF9UQUJMRV9QQkFfQUNDRVNTICsNCj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgUENJX01TSVhfRU5UUllfTE9XRVJfQUREUiArDQo+ICsgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIChpbnRlcnJ1cHRfbnVtIC0gMSkgKiBQQ0lfTVNJWF9FTlRSWV9TSVpFKTsNCj4g KyAgICAgbXNnX2FkZHJfdXBwZXIgPSBjc3JfcmVhZGwocGNpZSwgUEFCX01TSVhfVEFCTEVfUEJB X0FDQ0VTUyArDQo+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFBDSV9NU0lYX0VO VFJZX1VQUEVSX0FERFIgKw0KPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoaW50 ZXJydXB0X251bSAtIDEpICogUENJX01TSVhfRU5UUllfU0laRSk7DQo+ICsgICAgIG1zZ19hZGRy ID0gKCh1NjQpIG1zZ19hZGRyX3VwcGVyKSA8PCAzMiB8IG1zZ19hZGRyX2xvd2VyOw0KPiArICAg ICBtc2dfZGF0YSA9IGNzcl9yZWFkbChwY2llLCBQQUJfTVNJWF9UQUJMRV9QQkFfQUNDRVNTICsN Cj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgUENJX01TSVhfRU5UUllfREFUQSArDQo+ICsg ICAgICAgICAgICAgICAgICAgICAgICAgIChpbnRlcnJ1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Qo+ICsgICAgIGlmIChlcC0+bnVtX29iX3dpbmRvd3MgPiBNQVhfSUFU VV9PVVQpIHsNCj4gKyAgICAgICAgICAgICBkZXZfZXJyKGRldiwgIkludmFsaWQgKm51bS1vYi13 aW5kb3dzKlxuIik7DQo+ICsgICAgICAgICAgICAgcmV0dXJuIC1FSU5WQUw7DQo+ICsgICAgIH0N Cj4gKyAgICAgZXAtPm9iX3dpbmRvd19tYXAgPSBkZXZtX2tjYWxsb2MoZGV2LA0KPiArICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBCSVRTX1RPX0xPTkdTKGVwLT5udW1fb2Jf d2luZG93cyksDQo+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNpemVv Zihsb25nKSwNCj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgR0ZQX0tF Uk5FTCk7DQo+ICsgICAgIGlmICghZXAtPm9iX3dpbmRvd19tYXApDQo+ICsgICAgICAgICAgICAg cmV0dXJuIC1FTk9NRU07DQo+ICsNCj4gKyAgICAgYWRkciA9IGRldm1fa2NhbGxvYyhkZXYsIGVw LT5udW1fb2Jfd2luZG93cywgc2l6ZW9mKHBoeXNfYWRkcl90KSwNCj4gKyAgICAgICAgICAgICAg ICAgICAgICAgICBHRlBfS0VSTkVMKTsNCj4gKyAgICAgaWYgKCFhZGRyKQ0KPiArICAgICAgICAg ICAgIHJldHVybiAtRU5PTUVNOw0KPiArICAgICBlcC0+b3V0Ym91bmRfYWRkciA9IGFkZHI7DQo+ ICsNCj4gKyAgICAgbW9iaXZlaWxfcGNpZV9lbmFibGVfYnJpZGdlX3BpbyhwY2llKTsNCj4gKyAg ICAgbW9iaXZlaWxfcGNpZV9lbmFibGVfZW5naW5lX2FwaW8ocGNpZSk7DQo+ICsgICAgIG1vYml2 ZWlsX3BjaWVfZW5hYmxlX2VuZ2luZV9wcGlvKHBjaWUpOw0KPiArICAgICBtb2JpdmVpbF9wY2ll X2V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