Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1093254pxb; Wed, 6 Apr 2022 08:33:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaomTToP4xgLEFk/a26AbFYRaXZErCTGpiAWDWFGrVJZ98LvynHh3KYFzvzLkVNvlCecbZ X-Received: by 2002:a05:6a00:2493:b0:4fd:e18e:58aa with SMTP id c19-20020a056a00249300b004fde18e58aamr9666994pfv.47.1649259207499; Wed, 06 Apr 2022 08:33:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1649259207; cv=pass; d=google.com; s=arc-20160816; b=B7uOd3H5K9Ri327eqnYbHVHl+oNnGO04W8xIJIA2dW0Xd2aVM1gtGjSQq3dfA7bTon Cew0Fv1W9IwwSi12jCdcV5lTgINx7HnWxxVfrMgTRJhuVBLehABohaNOusl3WuX2WO9t N7KYMm6zc3jt1vhv2QgOZ6sa/UEpVjbbNN8tdANz+QNrHyFvlHDgeQIUuL/ZIFjedmEK jo8USwISXMYTUNn9dRe4z+mIWaECsaUjlflvwD9GuG0tPYxEAqTFxcMKX22dgJE/I7Rt dKKeIRNM0SckkL4mdqcFQEc8L4dX+AbrhnHlS5wbkDU7vMXHv0yOHHQvnZhHULFXfIDD VbHQ== 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-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=GpGUaXHt/qad7uqaHdjouwUUUWTeDYC/o+sfB5CD5RQ=; b=gl5X0f5VnJ1rmQb7Z886oXDGsIoXjnFgBNT4Uh2w5cMTSW2wH1hpU/jNwOtj22HBGr wIuxRpTJMtG07x6exsH0w8CvUw2G1AeQV9suFjxesMvT+scNwomKQwq0mFzizWzV5O+9 kZBgv4RvDJqB0W4R+43gj+zr6WgDSB4nU3EzOU0Em41TQipkxwNRTG3x6r24SLkesogV lh+j0CclATucDIrN9TTD9G+6L/S79lNY91tR26aX8HTFPQ/njKtkaXhnoxhKAZbGBU9R cam5IrzmXrYommLz13wcZk3LN8VzQVjhgxR9lZ6ds8eUJfRHX7pmok4wU01UVprVUu4i uzFg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="JUxfJ/IZ"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k14-20020a63f00e000000b00382274f6ae9si16245457pgh.589.2022.04.06.08.33.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 08:33:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="JUxfJ/IZ"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 29CA51F761F; Wed, 6 Apr 2022 06:45:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233425AbiDFNq7 (ORCPT + 99 others); Wed, 6 Apr 2022 09:46:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233753AbiDFNqm (ORCPT ); Wed, 6 Apr 2022 09:46:42 -0400 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150077.outbound.protection.outlook.com [40.107.15.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DAFB5AD5DD; Wed, 6 Apr 2022 03:58:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lrLF8pvYw0+fdRNXBfJ4uuewkrwGDDRMoNNvQ/076m4spncpOgHRlAlnRN4ZT9nVhXdcu4TQtxIY0lyMCTGxXjotj6VmCTxOhHWS188suHgWUarZRizKlTyNfpTCYLPUrJEjt8wVw7o0vcaU34v0lslFFb2HmdnnbxUxoOhnqiTrERYT9THS2+KWSpUTu+232aybksXtg/XNs+48VPC6/xoBTszxnobdCWK2YHar6RjNyIeFBfmiVqUUcJAbPANcKbHZccOrqxbf8t8qeaMS+6mTM/s4L7CI1abEi8Fb/NuP2IYMRnkZ/zoUXBMiwiLmbiIaxXVFfKKj0I+jK/RM1Q== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GpGUaXHt/qad7uqaHdjouwUUUWTeDYC/o+sfB5CD5RQ=; b=mkk8uy2yCrA5r5ge2IW70pxij8+6DOZ2b0ZV/h0z0tBJPLRq79oCOLz4za4JSexbbFN3fMW+VOy92EdZZjjwdQB7EEhcKWQvVEoqhRDTVFv2SFCPVdK1+JzQk7xDdu5UHx1sBJiX3X90nYtQCDpED55b/T1ZYEIFGzCS2jbGrDMjYiAJ4xzmuAGLCuv2tLWdgn5VqPbvpYrI9YRRoYzskBoD+r417Lcrd/xyJcCyopcTYPppdtHlLkx59QoSckF9DvgiG/QFsfup6dEyo8oMJEdQGGm4G+IUNJqVX4C0OEkwwKOyGh/BGHA4AhKOAQIAe/aNx2GpVGz/WrfTD4BWxg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GpGUaXHt/qad7uqaHdjouwUUUWTeDYC/o+sfB5CD5RQ=; b=JUxfJ/IZciK1jzPlit6cSOIDEr2CqERlta2FMlj1WETO+5lnGivb/4sNW+aYF1yFWQs/qHlNstBY3UUJXnSwYcnerza3WBk+5wT8YFSBV/lYR2fSW8WNH7ZsCUcDFZlqRorH9K6WfpLVbRG0C0PnKibaciqegmPBtR8xCj4bXfg= Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM6PR04MB5717.eurprd04.prod.outlook.com (2603:10a6:20b:a6::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.19; Wed, 6 Apr 2022 10:58:42 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::389f:e6eb:a7a2:61b6]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::389f:e6eb:a7a2:61b6%7]) with mapi id 15.20.5123.031; Wed, 6 Apr 2022 10:58:42 +0000 From: Peng Fan To: Daniel Baluta , "Peng Fan (OSS)" CC: "bjorn.andersson@linaro.org" , Mathieu Poirier , Shawn Guo , Sascha Hauer , "S.J. Wang" , "linux-remoteproc@vger.kernel.org" , Linux Kernel Mailing List , Pengutronix Kernel Team , Fabio Estevam , dl-linux-imx , linux-arm-kernel Subject: RE: [PATCH 2/2] remoteproc: imx_dsp_rproc: use common rproc_elf_load_segments Thread-Topic: [PATCH 2/2] remoteproc: imx_dsp_rproc: use common rproc_elf_load_segments Thread-Index: AQHYPoHwmvqKFapWfUij09mR4uCn46zivpwAgAAOdHA= Date: Wed, 6 Apr 2022 10:58:42 +0000 Message-ID: References: <20220323064944.1351923-1-peng.fan@oss.nxp.com> <20220323064944.1351923-3-peng.fan@oss.nxp.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e3e7a78c-3d4f-4832-428a-08da17bc69e3 x-ms-traffictypediagnostic: AM6PR04MB5717:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FGNp34nfupI29LWdM+eohbvE1XmZecu4++2dO5jpOIvhpaTl/9DWkolkCovYadqHZWJKY246wdpdfTyFIv/oAp9FYW+HRrAXH/dH1HQ+azTs/r/7YpsaiaqpTyPeI0s++5V8bTzVueYL38Z6lSOqzEhawT1QUmlH2LlGqt2s9oy1xAIjGL+Ow2YiGa7iQQWUFwm4QAGxzXCyCJblpewmTpfks1wLPxb2H4Dkp1ZEu8OjYHR/9SSz/ERyLx4SO0epLKjitBwki1QuCPQrkAhQfmGfbi+tSVmNMWIo7uweOZYpcwYuBMXuzCVlBooe+pNzZbTaedkBDXsCZ+lhpnfuct1iVkV8ueNUbePXCQst958UAQ5MxU4WgiCWHj7L+6KxV6Pmr4CcQ7Co9S7nldXC+XeWdq8wGl8epYNwkPRZC2uynLbX+GyPSm5M7i0cl4PEkw7oYkUoWAlBgzv58HIz8ydp72eD7jEJZ3bw+btK7bItdwvPBCW9z2DUQbYT4DzihISEbZf6D+5mncYNpgL2lH8CRPfJ2AEFlrhQWZw/MOqcFcRcgdONUyVIpRUBMrO0IFfhynKfLawakpYPf0/I0Eb6Q2rSsdjC4LD9bmphHtwYVZAZGB5giYLvO3LYfTx5FdhpUiXM1N5d1jf512SomouJtEhOcxRa1EgshRk+Mj/ZrskN3Kdh6/6bXWDaGs4Fr6e7BVmwFw4u+i6fWIK2bA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(33656002)(2906002)(5660300002)(53546011)(6506007)(52536014)(7416002)(86362001)(8936002)(44832011)(55016003)(7696005)(186003)(508600001)(26005)(83380400001)(9686003)(38100700002)(64756008)(122000001)(54906003)(8676002)(316002)(110136005)(66476007)(66946007)(66556008)(71200400001)(66446008)(76116006)(4326008)(38070700005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?elgzanhiRkZmSEM5Vkg1UDh5WHZkWWc5ZStJT1lwZ1BjL1psOElxZWlYbUgy?= =?utf-8?B?VlRRODlvSk00aFJVOVowZVBFSVMwWnIzVE9XZFhwcGx6ckdjV0lVTFhNZmJo?= =?utf-8?B?aGZmVjcwclVaM1RqQ2xuNmx6YmV4blZXTmhwdkNUTE1obHNIV3dYN1F6a3Rs?= =?utf-8?B?Si92RmJ0ci9lbzhxQ2k4cnVMbXNIclN0WGNNZ1lKRkFXb0lrUUZ6OFJKWWxW?= =?utf-8?B?K3RPZVR0Y3NFTkV3VHVtOWJNa25Ic3dtbHVWSXFlZjh3K0Y1ZCtSU2FBcUFG?= =?utf-8?B?RVp0WFhibW91YWpEK09pSXowYmd1VXlFMVBsRHl6Z3F6cEJtcG50OG1nMk5l?= =?utf-8?B?bTlrM3MxMS9uUXZ4Vy9yVzF0OXNlN2dKYVRZOTNBMVd0Wk1LWENyOE1BTGxr?= =?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1UUFIcG0xRFpxNFljNUZQYXlockJO?= =?utf-8?B?elZJU2lmVjdRZldmMVc2elVIc2pDS3RYb0wzYTZsZUJ6MUM1TjNYZWJmSTNl?= =?utf-8?B?TlN3WElJYVg3T3E5aXhjZG9GbFVKN2w3cWxMMDZONTRKa1h5ZUo5dz09?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e3e7a78c-3d4f-4832-428a-08da17bc69e3 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Apr 2022 10:58:42.3201 (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-CrossTenant-userprincipalname: IHF5nr+XWim8iifWKGcTkjxa64z3SkqFbgCsYthcXXNesbeeWhJI1XIFxctSuOSFR1PuQrjOxqMftCcRX8UdTA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB5717 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBTdWJqZWN0OiBSZTogW1BBVENIIDIvMl0gcmVtb3RlcHJvYzogaW14X2RzcF9ycHJvYzogdXNl IGNvbW1vbg0KPiBycHJvY19lbGZfbG9hZF9zZWdtZW50cw0KPiANC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fcF9tZW1zeihjbGFzcywgcGhkcik7DQo+ID4gLSAg ICAgICAgICAgICAgIHU2NCBmaWxlc3ogPSBlbGZfcGhkcl9nZXRfcF9maWxlc3ooY2xhc3MsIHBo ZHIpOw0KPiA+IC0gICAgICAgICAgICAgICB1NjQgb2Zmc2V0ID0gZWxmX3BoZHJfZ2V0X3Bfb2Zm c2V0KGNsYXNzLCBwaGRyKTsNCj4gPiAtICAgICAgICAgICAgICAgdTMyIHR5cGUgPSBlbGZfcGhk cl9nZXRfcF90eXBlKGNsYXNzLCBwaGRyKTsNCj4gPiAtICAgICAgICAgICAgICAgdm9pZCAqcHRy Ow0KPiA+IC0NCj4gPiAtICAgICAgICAgICAgICAgLyoNCj4gPiAtICAgICAgICAgICAgICAgICog IFRoZXJlIGlzIGEgY2FzZSB0aGF0IHdpdGggUFRfTE9BRCB0eXBlLCB0aGUNCj4gPiAtICAgICAg ICAgICAgICAgICogIGZpbGVzeiA9IG1lbXN6ID0gMC4gSWYgbWVtc3ogPSAwLCBycHJvY19kYV90 b192YQ0KPiA+IC0gICAgICAgICAgICAgICAgKiAgc2hvdWxkIHJldHVybiBOVUxMIHB0ciwgdGhl biBlcnJvciBpcyByZXR1cm5lZC4NCj4gPiAtICAgICAgICAgICAgICAgICogIFNvIHRoaXMgY2Fz ZSBzaG91bGQgYmUgc2tpcHBlZCBmcm9tIHRoZSBsb29wLg0KPiA+IC0gICAgICAgICAgICAgICAg KiAgQWRkICFtZW1zeiBjaGVja2luZyBoZXJlLg0KPiA+IC0gICAgICAgICAgICAgICAgKi8NCj4g PiAtICAgICAgICAgICAgICAgaWYgKHR5cGUgIT0gUFRfTE9BRCB8fCAhbWVtc3opDQo+ID4gLSAg ICAgICAgICAgICAgICAgICAgICAgY29udGludWU7DQo+ID4gLQ0KPiA+IC0gICAgICAgICAgICAg ICBkZXZfZGJnKGRldiwgInBoZHI6IHR5cGUgJWQgZGEgMHglbGx4IG1lbXN6IDB4JWxseA0KPiBm aWxlc3ogMHglbGx4XG4iLA0KPiA+IC0gICAgICAgICAgICAgICAgICAgICAgIHR5cGUsIGRhLCBt ZW1zeiwgZmlsZXN6KTsNCj4gPiAtDQo+ID4gLSAgICAgICAgICAgICAgIGlmIChmaWxlc3ogPiBt ZW1zeikgew0KPiA+IC0gICAgICAgICAgICAgICAgICAgICAgIGRldl9lcnIoZGV2LCAiYmFkIHBo ZHIgZmlsZXN6IDB4JWxseCBtZW1zeg0KPiAweCVsbHhcbiIsDQo+ID4gLSAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICBmaWxlc3osIG1lbXN6KTsNCj4gPiAtICAgICAgICAgICAgICAgICAg ICAgICByZXQgPSAtRUlOVkFMOw0KPiA+IC0gICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOw0K PiA+IC0gICAgICAgICAgICAgICB9DQo+ID4gLQ0KPiA+IC0gICAgICAgICAgICAgICBpZiAob2Zm c2V0ICsgZmlsZXN6ID4gZnctPnNpemUpIHsNCj4gPiAtICAgICAgICAgICAgICAgICAgICAgICBk ZXZfZXJyKGRldiwgInRydW5jYXRlZCBmdzogbmVlZCAweCVsbHggYXZhaWwNCj4gMHglenhcbiIs DQo+ID4gLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvZmZzZXQgKyBmaWxlc3osIGZ3 LT5zaXplKTsNCj4gPiAtICAgICAgICAgICAgICAgICAgICAgICByZXQgPSAtRUlOVkFMOw0KPiA+ IC0gICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOw0KPiA+IC0gICAgICAgICAgICAgICB9DQo+ ID4gLQ0KPiA+IC0gICAgICAgICAgICAgICBpZiAoIXJwcm9jX3U2NF9maXRfaW5fc2l6ZV90KG1l bXN6KSkgew0KPiA+IC0gICAgICAgICAgICAgICAgICAgICAgIGRldl9lcnIoZGV2LCAic2l6ZSAo JWxseCkgZG9lcyBub3QgZml0IGluIHNpemVfdA0KPiB0eXBlXG4iLA0KPiA+IC0gICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgbWVtc3opOw0KPiA+IC0gICAgICAgICAgICAgICAgICAgICAg IHJldCA9IC1FT1ZFUkZMT1c7DQo+ID4gLSAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7DQo+ ID4gLSAgICAgICAgICAgICAgIH0NCj4gPiAtDQo+ID4gLSAgICAgICAgICAgICAgIC8qIGdyYWIg dGhlIGtlcm5lbCBhZGRyZXNzIGZvciB0aGlzIGRldmljZSBhZGRyZXNzICovDQo+ID4gLSAgICAg ICAgICAgICAgIHB0ciA9IHJwcm9jX2RhX3RvX3ZhKHJwcm9jLCBkYSwgbWVtc3osIE5VTEwpOw0K PiA+IC0gICAgICAgICAgICAgICBpZiAoIXB0cikgew0KPiA+IC0gICAgICAgICAgICAgICAgICAg ICAgIGRldl9lcnIoZGV2LCAiYmFkIHBoZHIgZGEgMHglbGx4IG1lbQ0KPiAweCVsbHhcbiIsIGRh LA0KPiA+IC0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWVtc3opOw0KPiA+IC0gICAg ICAgICAgICAgICAgICAgICAgIHJldCA9IC1FSU5WQUw7DQo+ID4gLSAgICAgICAgICAgICAgICAg ICAgICAgYnJlYWs7DQo+ID4gLSAgICAgICAgICAgICAgIH0NCj4gPiAtDQo+ID4gLSAgICAgICAg ICAgICAgIC8qIHB1dCB0aGUgc2VnbWVudCB3aGVyZSB0aGUgcmVtb3RlIHByb2Nlc3NvciBleHBl Y3RzDQo+IGl0ICovDQo+ID4gLSAgICAgICAgICAgICAgIGlmIChmaWxlc3opDQo+ID4gLSAgICAg ICAgICAgICAgICAgICAgICAgbWVtY3B5KHB0ciwgZWxmX2RhdGEgKyBvZmZzZXQsIGZpbGVzeik7 DQo+ID4gLQ0KPiA+IC0gICAgICAgICAgICAgICAvKg0KPiA+IC0gICAgICAgICAgICAgICAgKiBa ZXJvIG91dCByZW1haW5pbmcgbWVtb3J5IGZvciB0aGlzIHNlZ21lbnQuDQo+ID4gLSAgICAgICAg ICAgICAgICAqDQo+ID4gLSAgICAgICAgICAgICAgICAqIFRoaXMgaXNuJ3Qgc3RyaWN0bHkgcmVx dWlyZWQgc2luY2UgZG1hX2FsbG9jX2NvaGVyZW50DQo+IGFscmVhZHkNCj4gPiAtICAgICAgICAg ICAgICAgICogZGlkIHRoaXMgZm9yIHVzLiBhbGJlaXQgaGFybWxlc3MsIHdlIG1heSBjb25zaWRl cg0KPiByZW1vdmluZw0KPiA+IC0gICAgICAgICAgICAgICAgKiB0aGlzLg0KPiA+IC0gICAgICAg ICAgICAgICAgKi8NCj4gPiAtICAgICAgICAgICAgICAgaWYgKG1lbXN6ID4gZmlsZXN6KQ0KPiA+ IC0gICAgICAgICAgICAgICAgICAgICAgIG1lbXNldChwdHIgKyBmaWxlc3osIDAsIG1lbXN6IC0g ZmlsZXN6KTsNCj4gPiAtICAgICAgIH0NCj4gPiAtDQo+ID4gLSAgICAgICByZXR1cm4gcmV0Ow0K PiA+IC19DQo+ID4gLQ0KPiA+ICAvKiBQcmVwYXJlIGZ1bmN0aW9uIGZvciBycHJvY19vcHMgKi8N Cj4gPiAgc3RhdGljIGludCBpbXhfZHNwX3Jwcm9jX3ByZXBhcmUoc3RydWN0IHJwcm9jICpycHJv YykgIHsgQEAgLTgwOCw3DQo+ID4gKzcxNSw3IEBAIHN0YXRpYyBjb25zdCBzdHJ1Y3QgcnByb2Nf b3BzIGlteF9kc3BfcnByb2Nfb3BzID0gew0KPiA+ICAgICAgICAgLnN0YXJ0ICAgICAgICAgID0g aW14X2RzcF9ycHJvY19zdGFydCwNCj4gPiAgICAgICAgIC5zdG9wICAgICAgICAgICA9IGlteF9k c3BfcnByb2Nfc3RvcCwNCj4gPiAgICAgICAgIC5raWNrICAgICAgICAgICA9IGlteF9kc3BfcnBy b2Nfa2ljaywNCj4gPiAtICAgICAgIC5sb2FkICAgICAgICAgICA9IGlteF9kc3BfcnByb2NfZWxm X2xvYWRfc2VnbWVudHMsDQo+ID4gKyAgICAgICAubG9hZCAgICAgICAgICAgPSByc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