Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp809852pxf; Thu, 11 Mar 2021 15:50:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMct6nZXdLQ6nZYle6arXxTo/EIfiM9jOzFvqgBCuEGOupwMQ5Ob/qyQQGQXNvIvxldJxG X-Received: by 2002:a17:906:3b99:: with SMTP id u25mr5547735ejf.277.1615506607886; Thu, 11 Mar 2021 15:50:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1615506607; cv=pass; d=google.com; s=arc-20160816; b=f5iKOlzcM8a/ykzGpYujHCRUVv6vbNILcaORRAe/VVIlFU8kpC7hQQ0rYCa9TGCyKD mz3cbYiPk/5fqVTq2uYZz4IueN+UT5KQOsGJHBTJTVZR7K0T+9XzsoyZfJ4X2tMLsCTf i0Vq+cx3PU+4tLnAXnlzuOAK4e0KNXWsT01ZTLl9o5ij6t0NQ3+NizXhqeCxsyn5SFkl mCor9O5QR56SvwhbgCWPlex6uxzU0iJGjERzy8BAj8HErX/B56KxhbWf+Au/42x/80FW 2Ny8gphwUYSXIEgk6Wt5DtNQY9Pe9cQZSCGIFrv9pdOnjBn9zSCKpd/zbDNto1cu4QWX cKpw== 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:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=sLyupBhsKYO/xNPUrEAfOM1xR2M5F3PviRYyOrjCf2c=; b=NLEhftxUrX0ON2i2jq8rWIX1o5ySL5pRFjCZTG6Ty9TxhT8u1qOEdxB1gS6Hw/7lC5 5OLFSUdTAMxl5sF7TtQuBwoMd+DqUbXRfh9q5LVLrPvmZ+ToiKE+54sIdSUJEKeBIbNQ bWSm33AIuR/WC1FlsMUl5Bg8Jo4y2YeQJ17qLvRtyPNYdEvaYFxeiQgd0S2bmQNl2sOu cSMYdX2Ldda9onaht7yqo3F9Xl8AAInhYcSTR43w+Rp/o1H+zw19Osg+cpvr5499FGgC HkiSatpdPYX1fT6rccm81IN45iqSvYVtABmLljmEP+EyisJvlVKjFl+GRhg2VRRW9nsX O0uw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=NQkss+ji; arc=pass (i=1 spf=pass spfdomain=xilinx.com dkim=pass dkdomain=xilinx.com dmarc=pass fromdomain=xilinx.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=xilinx.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a17si2723887eju.485.2021.03.11.15.48.53; Thu, 11 Mar 2021 15:50:07 -0800 (PST) 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=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=NQkss+ji; arc=pass (i=1 spf=pass spfdomain=xilinx.com dkim=pass dkdomain=xilinx.com dmarc=pass fromdomain=xilinx.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=xilinx.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229667AbhCKXrt (ORCPT + 99 others); Thu, 11 Mar 2021 18:47:49 -0500 Received: from mail-dm6nam11on2081.outbound.protection.outlook.com ([40.107.223.81]:42592 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229470AbhCKXrS (ORCPT ); Thu, 11 Mar 2021 18:47:18 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LgWNa0LnkVeaVn7utJwiVxwFdMgmCvao125jf7JhQ4SBNwmCfdwsm2sD5Lyfa+HCp6kGEaN76AwBuf1GYGipq0nxy+NAborB2OKB4vsKGYqqThn1+AXbJFiHXUhYRzBh487y1weaGDw6z3N9ILaqdftNXw5JIgwu90O3FzxSCyuhdPhoOweRK9JJUmREwbWOB24KW+lOS2iOVxrJo2xRwDEmfzA3UmJgeIqzAMpgFkV46bzvcYRj3plHlcP+VhGJmxSWWQA1BkJt3xFlTwrZCWKVtodTjc4tzt2PlVY9pGpxI3fykmAD4FM7GRdapihZ2lcA8bvgfbd4K2ygK5ZcSQ== 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=sLyupBhsKYO/xNPUrEAfOM1xR2M5F3PviRYyOrjCf2c=; b=W/fAwCjMVgmNXxYyxMCv3BSHJ+/C1lggUamS1aqpHJ4xjpe4OArcJwIh/B7XB6p+PvUvyUAsUFGzOaojoA2HXxCmj049b0gNWAvhSTXpp9qUN3pSUacR4hCDAHRvBU8MafmPhYr8gUa3827XQ33NSnXat2vLsUq6ZA/gs4BKvkDys3NOl9dG3J/YMrkVgVaw5LlyCByO+TGJvgHU5s/Jgu2I+UTy88BxZxNKtTCu0YhuIvQZ31YUk83ftgk2vqKhPjuXlghwc/7ouD7q9/Nc5OKonmcq9nPZj56r56vXAxUlhN9ewquMtxZlq3y/AbIPfwlIyHgGMVaq+nKPDAyW3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=xilinx.com; dmarc=pass action=none header.from=xilinx.com; dkim=pass header.d=xilinx.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sLyupBhsKYO/xNPUrEAfOM1xR2M5F3PviRYyOrjCf2c=; b=NQkss+jiZImV67VLBhTENRjky8faHc3Y6LNIEJ1fZh0CkGu1jP69ZLjuO3mij24U7xXNHmux4blda7anE2guE1f1kLNBsOduAQcjfmx4LgplX0MWT9Qla+hvbqn4lwPPr8IjL7G/G5AXlOVmwbium+/hV0o3eX41Q4ROuYGgx/U= Received: from BYAPR02MB4407.namprd02.prod.outlook.com (2603:10b6:a03:55::31) by SJ0PR02MB7151.namprd02.prod.outlook.com (2603:10b6:a03:290::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.19; Thu, 11 Mar 2021 23:47:15 +0000 Received: from BYAPR02MB4407.namprd02.prod.outlook.com ([fe80::2cf3:79d2:d169:7fdb]) by BYAPR02MB4407.namprd02.prod.outlook.com ([fe80::2cf3:79d2:d169:7fdb%3]) with mapi id 15.20.3890.041; Thu, 11 Mar 2021 23:47:15 +0000 From: Ben Levinsky To: Mathieu Poirier CC: "devicetree@vger.kernel.org" , "linux-remoteproc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" , Michal Simek , "Ed T. Mooring" Subject: Re: [PATCH v26 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver Thread-Topic: [PATCH v26 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver Thread-Index: AQHXCfsr2E1q1mchlUeHFfIK6xXzWap6hroAgASA7YA= Date: Thu, 11 Mar 2021 23:47:15 +0000 Message-ID: References: <20210223154447.13247-1-ben.levinsky@xilinx.com> <20210223154447.13247-6-ben.levinsky@xilinx.com> <20210308190046.GA3983426@xps15> In-Reply-To: <20210308190046.GA3983426@xps15> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/16.46.21021202 authentication-results: linaro.org; dkim=none (message not signed) header.d=none;linaro.org; dmarc=none action=none header.from=xilinx.com; x-originating-ip: [149.199.62.133] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 604d2e84-f221-4be8-7dff-08d8e4e7ffee x-ms-traffictypediagnostic: SJ0PR02MB7151: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1247; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: MDKo+tcrPGZmRd5OmxjXXheYobETnpBiys3k7BkXR4I3PXf0LO7KPmY+fz+V6QiKkBtFNOiT1FxC6DKJgU4GfM3Z2leU0My2YfeT1YMFp+GmLWOM+LdO0dCrhzkAcZrJYCUAJngYpGvqGm2tC7Vjl5ChAfzsvBQFm1LirpZYLMPYcJorcSUdjzNdh/lsXCPIEM+zX0TGv/7kKvdLDyV98OfsEUXtOzi8Hm83Izc0bBVDPgDNOh9XVAhndilXLsLbb1QNluM7DT1neUoEMllvC8Py7Dmanz8jBOgIpYVcWn2yMZx756OUTsOy9CNvY8YGodifZwyJUlVxj6QhM0dAjJGN80C31sVnauUi+LN+2tk8eZRmMZU7rMYBzwxG3iB0Ap8E0vgrFW+gKBux3SVEr92Y4kU7FN2ENTdMxiotmTwqPMN5plRHdL5fGbhk8nhm4WDLGV8bSJIBZ0U4u/DksTSU7dKR96NzhLuk8GBr3xq1SjUndVCv34UvnJ53pUt0tHfwy8A4y8DqmMeO8OYS+hKveP3ZrJMAVqE7fmJ0PTvLOwhcY3QlRFEtheBHg5eYWj2NsBawRAWbHIN5z8YAyQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR02MB4407.namprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(136003)(376002)(366004)(39860400002)(346002)(478600001)(54906003)(6486002)(30864003)(2616005)(53546011)(5660300002)(6506007)(66476007)(86362001)(6916009)(8676002)(8936002)(186003)(6512007)(66446008)(71200400001)(66556008)(2906002)(4326008)(76116006)(64756008)(26005)(107886003)(66946007)(316002)(83380400001)(33656002)(36756003)(45980500001)(559001)(579004);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?utf-8?B?SkxubGRRSVJCSUNkVEJRN0U2YU02SThBUjBQZVg2d1ZSV1dvTyt4RTE4SjVC?= =?utf-8?B?R0ZQclhiSHVBTWowYTdOZ2hNd3Jvbmk1OENrWjV0dEsyeE91ZDQ1b3RJSDda?= =?utf-8?B?Rk5mR3JYd1QvYTlXTVRsQkZDV0xuZGRmcFVMaTlJdFNXNUFqS1BTV1pMdmc0?= =?utf-8?B?R2lVZDJmQ1YwbkhiTVY3aW5VSk9OM1RQUTI5TWZBbk5uSFZEUElIeGFCc3A0?= =?utf-8?B?Rk1IRWtBRm55Ym1HMno0UWJzTWNUdTdWZ0M5ZXdDL2NWZHd1V3ZpUXA3QlZF?= =?utf-8?B?RXFWUlF6dXlxYnV3RTk5cFF2VXllVWxxSlFkRUJKaWpiLzhCL0NLRXpHMEhH?= =?utf-8?B?YmxvMWJDMmViaWJySHpSUWd0MGZYSkxvWlZ6ZGFSZXpTQjVwL2JxYmlNUVly?= =?utf-8?B?NzBuK3c3eko4M1JoeVBwT0t1N2pMZ3pqWDlyeTRhNTN2UWg2bXRsR0dnMzFs?= =?utf-8?B?ZXNyT0JWMFBHdkRwRFg0NmMwSWdDZ240VTJua3ZDUFUyZ2ZIOFJySDRaUG5K?= =?utf-8?B?RW1QNVpnREI1d0hvMVNRNTRnWUtJZlgrcDRtVWJtbHdDZ3l4UDBkVFBXUnR6?= =?utf-8?B?UUxKWjV0WWJDR1IwL3Jwd2YvZW5UOGxuTHFHWEJWUVF1UVdtOHVUb1JIdEF2?= =?utf-8?B?Wmd5S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pm?= =?utf-8?B?Nmx2OHpDUlh0bmhVcXVlQ1B5c3R4SGZoZy8xQjV4azVoWEcvazBKU3RyQ2pD?= =?utf-8?B?M3BvdkRPY1JmVnJCRnFMa1BNV0RxL2hhTUh1dmYraGdNUTRqRjB3NWtVbzdi?= =?utf-8?B?dGlNbEQrL0Zya2VTQUE2RDN0WkpOMitESXdHSTFCZXZVbXlKZ1RWTlhBV3VM?= =?utf-8?Q?j6QRizH9FPO/8ljZLlhECZ27YMmKJjeNh8i5LWb?= Content-Type: text/plain; charset="utf-8" Content-ID: <48AEEFBCC4EB99468E79128601DED8AB@namprd02.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR02MB4407.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 604d2e84-f221-4be8-7dff-08d8e4e7ffee X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2021 23:47:15.3934 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: PAiqpZIY6cbzixhPdlmE5g2Z4En38lkhLal74RVZY/QzXOuPMDTCZG8VMvxtsaw5jWQAhFKel6UJIhSAHmLDSg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR02MB7151 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgTWF0aGlldSANCg0KVGhhbmtzIGZvciB0aGUgZmVlZGJhY2suIEkgcmVzcG9uZGVkIGlubGlu ZQ0KDQrvu78tLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogTWF0aGlldSBQb2lyaWVy IDxtYXRoaWV1LnBvaXJpZXJAbGluYXJvLm9yZz4NCkRhd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dmFsdWUgZm9yIGZhaWx1cmUNCiAgICA+ICsgKi8NCiAgICA+ICtz dGF0aWMgaW50IHI1X3NldF9tb2RlKHN0cnVjdCB6eW5xbXBfcjVfcnByb2MgKnpfcnByb2MsDQog ICAgPiArCQkgICAgICAgZW51bSBycHVfb3Blcl9tb2RlIHJwdV9tb2RlKQ0KICAgID4gK3sNCiAg ICA+ICsJZW51bSBycHVfdGNtX2NvbWIgdGNtX21vZGU7DQogICAgPiArCWVudW0gcnB1X29wZXJf bW9kZSBjdXJfcnB1X21vZGU7DQogICAgPiArCWludCByZXQ7DQogICAgPiArDQogICAgPiArCXJl dCA9IHp5bnFtcF9wbV9nZXRfcnB1X21vZGUoel9ycHJvYy0+cG5vZGVfaWQsICZjdXJfcnB1X21v ZGUpOw0KICAgID4gKwlpZiAocmV0IDwgMCkNCiAgICA+ICsJCXJldHVybiByZXQ7DQogICAgPiAr DQogICAgPiArCWlmIChycHVfbW9kZSAhPSBjdXJfcnB1X21vZGUpIHsNCiAgICA+ICsJCXJldCA9 IHp5bnFtcF9wbV9zZXRfcnB1X21vZGUoel9ycHJvYy0+cG5vZGVfaWQsIHJwdV9tb2RlKTsNCiAg ICA+ICsJCWlmIChyZXQgPCAwKQ0KICAgID4gKwkJCXJldHVybiByZXQ7DQogICAgPiArCX0NCiAg ICA+ICsNCiAgICA+ICsJdGNtX21vZGUgPSAocnB1X21vZGUgPT0gUE1fUlBVX01PREVfTE9DS1NU RVApID8NCiAgICA+ICsJCSAgICBQTV9SUFVfVENNX0NPTUIgOiBQTV9SUFVfVENNX1NQTElUOw0K ICAgID4gKwlyZXR1cm4genlucW1wX3BtX3NldF90Y21fY29uZmlnKHpfcnByb2MtPnBub2RlX2lk LCB0Y21fbW9kZSk7DQogICAgPiArfQ0KICAgID4gKw0KICAgID4gKy8qDQogICAgPiArICogcjVf cnByb2NfcHJlcGFyZQ0KICAgID4gKyAqIEBycHJvYzogc2luZ2xlIFI1IGNvcmUncyBjb3JyZXNw b25kaW5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gPiArDQogICAgPiArCXJldCA9IHJwcm9jX2VsZl9sb2FkX3JzY190YWJsZShycHJv YywgZncpOw0KICAgID4gKwlpZiAocmV0ID09IC1FSU5WQUwpIHsNCiAgICA+ICsJCS8qDQogICAg PiArCQkgKiByZXNvdXJjZSB0YWJsZSBvbmx5IHJlcXVpcmVkIGZvciBJUEMuDQogICAgPiArCQkg KiBpZiBub3QgcHJlc2VudCwgdGhpcyBpcyBub3QgbmVjZXNzYXJpbHkgYW4gZXJyb3I7DQogICAg PiArCQkgKiBmb3IgZXhhbXBsZSwgbG9hZGluZyByNSBoZWxsbyB3b3JsZCBhcHBsaWNhdGlvbg0K ICAgID4gKwkJICogc28gc2ltcGx5IGluZm9ybSB1c2VyIGFuZCBrZWVwIGdvaW5nLg0KICAgID4g KwkJICovDQogICAgPiArCQlkZXZfaW5mbygmcnByb2MtPmRldiwgIm5vIHJlc291cmNlIHRhYmxl IGZvdW5kLlxuIik7DQogICAgPiArCQlyZXQgPSAwOw0KICAgID4gKwl9DQogICAgPiArCXJldHVy biByZXQ7DQogICAgPiArfQ0KICAgID4gKw0KICAgID4gKy8qDQogICAgPiArICogenlucW1wX3I1 X3Jwcm9jX2tpY2sgLSBraWNrIGEgZmlybXdhcmUgaWYgbWJveCBpcyBwcm92aWRlZA0KICAgID4g KyAqIEBycHJvYzogcjUgY29yZSdzIGNvcnJlc3BvbmRpbmcgcnByb2Mgc3RydWN0dXJlDQogICAg PiArICogQHZxaWQ6IHZpcnRxdWV1ZSBJRA0KICAgID4gKyAqLw0KICAgID4gK3N0YXRpYyB2b2lk IHp5bnFtcF9yNV9ycHJvY19raWNrKHN0cnVjdCBycHJvYyAqcnByb2MsIGludCB2cWlkKQ0KICAg ID4gK3sNCiAgICA+ICsJc3RydWN0IHp5bnFtcF9yNV9ycHJvYyAqel9ycHJvYyA9IHJwcm9jLT5w cml2Ow0KICAgID4gKwlzdHJ1Y3QgZGV2aWNlICpkZXYgPSBycHJvYy0+ZGV2LnBhcmVudD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iID0gc2tiX2Rl cXVldWUoJnpfcnByb2MtPnR4X21jX3NrYnMpOw0KICAgID4gKwlrZnJlZV9za2Ioc2tiKTsNCiAg ICA+ICt9DQogICAgPiArDQogICAgPiArLyoqDQogICAgPiArICogenlucW1wX3I1X3NldHVwX21i b3ggLSBTZXR1cCBtYWlsYm94ZXMNCiAgICA+ICsgKgkJCSAgICB0aGlzIGlzIHVzZWQgZm9yIGVh Y2ggaW5kaXZpZHVhbCBSNSBjb3JlDQogICAgPiArICoNCiAgICA+ICsgKiBAel9ycHJvYzogcG9p bnRlciB0byB0aGUgWnlucU1QIFI1IHByb2Nlc3NvciBwbGF0Zm9ybSBkYXRhDQogICAgPiArICog QG5vZGU6IHBvaW50ZXIgb2YgdGhlIGRldmljZSBub2RlDQogICAgPiArICoNCiAgICA+ICsgKiBG dW5jdGlvbiB0byBzZXR1cCBtYWlsYm94ZXMgdG8gdGFsayB0byBSUFUuDQogICAgPiArICoNCiAg ICA+ICsgKiBSZXR1cm46IDAgZm9yIHN1Y2Nlc3MsIG5lZ2F0aXZlIHZhbHVlIGZvciBmYWlsdXJl Lg0KICAgID4gKyAqLw0KICAgID4gK3N0YXRpYyBpbnQgenlucW1wX3I1X3NldHVwX21ib3goc3Ry dWN0IHp5bnFtcF9yNV9ycHJvYyAqel9ycHJvYywNCiAgICA+ICsJCQkJc3RydWN0IGRldmljZV9u b2RlICpub2RlKQ0KICAgID4gK3sNCiAgICA+ICsJc3RydWN0IG1ib3hfY2xpZW50ICptY2xpZW50 Ow0KICAgID4gKw0KICAgID4gKwkvKiBTZXR1cCBUWCBtYWlsYm94IGNoYW5uZWwgY2xpZW50ICov DQogICAgPiArCW1jbGllbnQJCQk9ICZ6X3Jwcm9jLT50eF9tYzsNCiAgICA+ICsJbWNsaWVudC0+ ZGV2CQk9IHpfcnByb2MtPnJwcm9jLT5kZXYucGFyZW50Ow0KICAgID4gKwltY2xpZW50LT50eF9k b25lCT0genlucW1wX3I1X21iX3R4X2RvbmU7DQogICAgPiArCW1jbGllbnQtPnR4X2Jsb2NrCT0g ZmFsc2U7DQogICAgPiArCW1jbGllbnQtPmtub3dzX3R4ZG9uZQk9IGZhbHNlOw0KICAgID4gKwlt Y2xpZW50LT5yeF9jYWxsYmFjawk9IE5VTEw7DQogICAgPiArDQogICAgPiArCS8qIFNldHVwIFJY IG1haWxib3ggY2hhbm5lbCBjbGllbnQgKi8NCiAgICA+ICsJbWNsaWVudAkJCT0gJnpfcnByb2Mt PnJ4X21jOw0KICAgID4gKwltY2xpZW50LT5kZXYJCT0gel9ycHJvYy0+cnByb2MtPmRldi5wYXJl bnQ7DQogICAgPiArCW1jbGllbnQtPnR4X2RvbmUJPSBOVUxMOw0KICAgID4gKwltY2xpZW50LT50 eF9ibG9jawk9IGZhbHNlOw0KICAgID4gKwltY2xpZW50LT5rbm93c190eGRvbmUJPSBmYWxzZTsN CiAgICA+ICsJbWNsaWVudC0+cnhfY2FsbGJhY2sJPSB6eW5xbXBfcjVfbWJfcnhfY2I7DQogICAg PiArDQogICAgPiArCUlOSVRfV09SSygmel9ycHJvYy0+bWJveF93b3JrLCBoYW5kbGVfZXZlbnRf bm90aWZpZWQpOw0KICAgID4gKw0KICAgID4gKwkvKiBSZXF1ZXN0IFRYIGFuZCBSWCBjaGFubmVs cyAqLw0KICAgID4gKwl6X3Jwcm9jLT50eF9jaGFuID0gbWJveF9yZXF1ZXN0X2NoYW5uZWxfYnlu YW1lKCZ6X3Jwcm9jLT50eF9tYywgInR4Iik7DQogICAgPiArCWlmIChJU19FUlIoel9ycHJvYy0+ dHhfY2hhbikpIHsNCiAgICA+ICsJCWRldl9lcnIoel9ycHJvYy0+cnByb2MtPmRldi5wYXJlbnQs DQogICAgPiArCQkJImZhaWxlZCB0byByZXF1ZXN0IG1ib3ggdHggY2hhbm5lbC5cbiIpOw0KICAg ID4gKwkJcmV0dXJuIFBUUl9FUlIoel9ycHJvYy0+dHhfY2hhbik7DQogICAgPiArCX0NCiAgICA+ ICsNCiAgICA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UNCg0KICAgIFRoZSBhYm92ZSBoYXMgY2hhbmdlZCBz aW5jZSBsYXN0IHRpbWUsIHdoaWNoIG1ha2VzIGl0IGhhcmRlciBmb3IgbWUgdG8NCiAgICByZXZp ZXcgeW91ciB3b3JrLiAgRnJvbSBoZXJlb24gcGxlYXNlIGNoYW5nZSBvbmx5IHRoZSB0aGluZ3Mg SSBwb2ludCBvdXQgc28gdGhhdA0KICAgIHdlIGtlZXAgdGhlIHNhbWUgZ29hbCBwb3N0cyBmcm9t IG9uZSByZXZpc2lvbiB0byB0aGUgb3RoZXIuDQoNCiAgICBUaGUgdGFidWxhdGlvbiBuZWVkcyB0 byBiZSBmaXhlZDogIA0KDQogICAgICAgICAgICAqIHp5bnFtcF9yNV9wcm9iZSAtIFByb2JlcyBa eW5xTVAgUjUgcHJvY2Vzc29yIGRldmljZSBub2RlDQogICAgICAgICAgICAqDQogICAgICAgICAg ICAqIFRoaXMgaXMgY2FsbGVkIGZvciBlYWNoIGluZGl2aWR1YWwgUjUgY29yZSB0byBzZXQgdXAg bWFpbGJveCwgWGlsaW54DQogICAgICAgICAgICAqIHBsYXRmb3JtIG1hbmFnZXIgdW5pcXVlIElE LCBhZGQgdG8gcnByb2MgY29yZS4NCg0KICAgIFRoZSBkZXNjcmlwdGlvbiBpcyBhbHNvIGJyb2tl bi4NCg0KW0Jlbl0gT2suIEhvdyBpcyB0aGUgZm9sbG93aW5nOg0KLyoqICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICANCiAqIHp5bnFtcF9yNV9wcm9iZSAtIFByb2JlcyBaeW5xTVAgUjUgcHJvY2Vzc29y IGRldmljZSBub2RlICAgICAgICAgICAgICAgICAgICAgICAgDQogKiAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIA0KICogVGhpcyBpcyBjYWxsZWQgZm9yIGVhY2ggaW5kaXZpZHVhbCBSNSBjb3JlIHRv IHNldCB1cCBtYWlsYm94LCBYaWxpbnggICAgICAgICAgICANCiAqIHBsYXRmb3JtIG1hbmFnZXIg dW5pcXVlIElELCBjb2xsZWN0IFNSQU0gaW5mb3JtYXRpb24gYW5kIHdpcmUgaW4gICAgICAgICAg ICAgICAgDQogKiBkcml2ZXItc3BlY2lmaWMgZGF0YSB0byB0byBycHJvYyBjb3JlLiAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIA0KICogICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICANCiAqIEBwZGV2OiBkb21haW4gcGxhdGZvcm0gZGV2aWNlIGZvciBjdXJyZW50IFI1IGNv cmUgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgDQogKiBAbm9kZTogcG9pbnRlciBvZiB0 aGUgZGV2aWNlIG5vZGUgZm9yIGN1cnJlbnQgUjUgY29yZSAgICAgICAgICAgICAgICAgICAgICAg ICAgIA0KICogQHJwdV9tb2RlOiBtb2RlIHRvIGNvbmZpZ3VyZSBSUFUsIHNwbGl0IG9yIGxvY2tz dGVwICAgICAgICAgICAgICAgICAgICAgICAgICAgICANCiAqICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgDQogKiBSZXR1cm46IDAgZm9yIHN1Y2Nlc3MsIG5lZ2F0aXZlIHZhbHVlIGZvciBmYWlsdXJl LiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIA0KICovICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICANCnN0YXRpYyBzdHJ1Y3QgenlucW1wX3I1X3Jwcm9jICp6eW5xbXBfcjVfcHJvYmUoc3RydWN0 IHBsYXRmb3JtX2RldmljZSAqcGRldiwgICAgICAgDQogICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIHN0cnVjdCBkZXZpY2Vfbm9kZSAqbm9kZSwgICAgICAgICAg IA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbnVtIHJw dV9vcGVyX21vZGUgcnB1X21vZGUpIA0KDQoNCiAgICA+ICsgKg0KICAgID4gKyAqIEBwZGV2OiBk b21haW4gcGxhdGZvcm0gZGV2aWNlIGZvciBjdXJyZW50IFI1IGNvcmUNCiAgICA+ICsgKiBAbm9k ZTogcG9pbnRlciBvZiB0aGUgZGV2aWNlIG5vZGUgZm9yIGN1cnJlbnQgUjUgY29yZQ0KICAgID4g KyAqIEBycHVfbW9kZTogbW9kZSB0byBjb25maWd1cmUgUlBVLCBzcGxpdCBvciBsb2Nrc3RlcA0K ICAgID4gKyAqDQogICAgPiArICogUmV0dXJuOiAwIGZvciBzdWNjZXNzLCBuZWdhdGl2ZSB2YWx1 ZSBmb3IgZmFpbHVyZS4NCiAgICA+ICsgKi8NCiAgICA+ICtzdGF0aWMgc3RydWN0IHp5bnFtcF9y NV9ycHJvYyAqenlucW1wX3I1X3Byb2JlKHN0cnVjdCBwbGF0Zm9ybV9kZXZpY2UgKnBkZXYsDQog ICAgPiArCQkJCQkgICAgICAgc3RydWN0IGRldmljZV9ub2RlICpub2RlLA0KICAgID4gKwkJCQkJ ICAgICAgIGVudW0gcnB1X29wZXJfbW9kZSBycHVfbW9kZSkNCiAgICA+ICt7DQogICAgPiArCWlu dCByZXQsIG51bV9iYW5rczsNCiAgICA+ICsJc3RydWN0IGRldmljZSAqZGV2ID0gJnBkZXYtPmRl djsNCiAgICA+ICsJc3RydWN0IHJwcm9jICpycHJvY19wdHI7DQogICAgPiArCXN0cnVjdCB6eW5x bXBfcjVfcnByb2MgKnpfcnByb2M7DQogICAgPiArCXN0cnVjdCBkZXZpY2Vfbm9kZSAqcjVfbm9k ZTsNCiAgICA+ICsNCiAgICA+ICsJLyogQWxsb2NhdGUgcmVtb3RlcHJvYyBpbnN0YW5jZSAqLw0K ICAgID4gKwlycHJvY19wdHIgPSBkZXZtX3Jwcm9jX2FsbG9jKGRldiwgZGV2X25hbWUoZGV2KSwg Jnp5bnFtcF9yNV9ycHJvY19vcHMsDQogICAgPiArCQkJCSAgICAgTlVMTCwgc2l6ZW9mKHN0cnVj dCB6eW5xbXBfcjVfcnByb2MpKTsNCiAgICA+ICsJaWYgKCFycHJvY19wdHIpIHsNCiAgICA+ICsJ CXJldCA9IC1FTk9NRU07DQogICAgPiArCQlnb3RvIGVycm9yOw0KICAgID4gKwl9DQogICAgPiAr DQogICAgPiArCXJwcm9jX3B0ci0+YXV0b19ib290ID0gZmFsc2U7DQogICAgPiArCXpfcnByb2Mg PSBycHJvY19wdHItPnByaXY7DQogICAgPiArCXpfcnByb2MtPnJwcm9jID0gcnByb2NfcHRyOw0K ICAgID4gKwlyNV9ub2RlID0gel9ycHJvYy0+cnByb2MtPmRldi5wYXJlbnQtPm9mX25vZGU7DQog ICAgPiArDQogICAgPiArCS8qIFNldCB1cCBETUEgbWFzayAqLw0KICAgID4gKwlyZXQgPSBkbWFf c2V0X2NvaGVyZW50X21hc2soZGV2LCBETUFfQklUX01BU0soMzIpKTsNCiAgICA+ICsJaWYgKHJl dCkNCiAgICA+ICsJCWdvdG8gZXJyb3I7DQogICAgPiArDQogICAgPiArCS8qIEdldCBSNSBwb3dl ciBkb21haW4gbm9kZSAqLw0KICAgID4gKwlyZXQgPSBvZl9wcm9wZXJ0eV9yZWFkX3UzMihub2Rl LCAicG93ZXItZG9tYWluIiwgJnpfcnByb2MtPnBub2RlX2lkKTsNCiAgICA+ICsJaWYgKHJldCkN CiAgICA+ICsJCWdvdG8gZXJyb3I7DQogICAgPiArDQogICAgPiArCXJldCA9IHI1X3NldF9tb2Rl KHpfcnByb2MsIHJwdV9tb2RlKTsNCiAgICA+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