Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp197727rwb; Wed, 9 Nov 2022 00:53:05 -0800 (PST) X-Google-Smtp-Source: AMsMyM4MCOQn2yTjbXmLc9r29GAfuVj5tRXVP6DprubYXNBMnslwEvfqrFgsiVbtKL/cO8GGk3a4 X-Received: by 2002:a63:4517:0:b0:464:4f06:a0f1 with SMTP id s23-20020a634517000000b004644f06a0f1mr49406005pga.509.1667983985170; Wed, 09 Nov 2022 00:53:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1667983985; cv=pass; d=google.com; s=arc-20160816; b=I1bmUQzdnV+9DPrROcGU1CMH6Av43QksqqcdDTvH5AUvMgPiPUCqj17vBxWvygiben rxsig2Xcsw4YhrBiLloWSX9KG/61ToWbS6YXPqKQ2fQsQddvzPPrKs9zcDEzCxJAsvp2 M4T698lx1TSFpQYbIViAL2IJfWco+E4gUt8IGus+FVvKGjCj1qcyUK0ZjwsOXyflAtgt h+1H7BMLZeuLOXv/3vKxxa8s7Oimr90Bt8HDT6zQsrxPzGtOBi5urI6HQsb+tfAzcS8d jalsUiGwhdb1rohv0RNeO2236ROsK5p4AJ9E4X0Pb4+ATMk2vI6GjzYa+mhgOfI18U0k 77RQ== 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 :wdcipoutbound:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature:dkim-signature; bh=IEY0vUhik72rgSkoEJzSks2AHQWDtGCa//t8SkekUOs=; b=KgOKqCqq21YhmgZyv2Lm8xQNW6RyZTvvXGm7rRoO0nln7xYnAluzSavtjhb2G7pyNw jovJVO63o1ZrVgaU51dHJgagfNsNCwwgFWWJxBB9Ib1dKP8qCYWXRa8f+xKqZlmXdqlE WKQYr/ni5bR2eWEJJ8MjPnILvlBGhG02USpKvtdMf6hd57IPDABYSahClME36cE40sxP yf2HNrRX25EsPkMEvX4AF1/4fnZnfZ0YVbj85cSfNrSFuxSfweu/IBrqA8jq/lvcplEQ FSTdQunP5O4+zBKsmZc0Vo+HY9WreTSQW9Mf9lFOu/daeJ5EpC495MT/2eR9p7EVKp0x FUsA== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=L2joXfso; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=dqrM1B7t; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wdc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h13-20020a63f90d000000b00439ae523fd2si17749078pgi.289.2022.11.09.00.52.53; Wed, 09 Nov 2022 00:53:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=L2joXfso; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=dqrM1B7t; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229617AbiKIIHi (ORCPT + 93 others); Wed, 9 Nov 2022 03:07:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiKIIHg (ORCPT ); Wed, 9 Nov 2022 03:07:36 -0500 Received: from esa2.hgst.iphmx.com (esa2.hgst.iphmx.com [68.232.143.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 591D61CB3C; Wed, 9 Nov 2022 00:07:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1667981253; x=1699517253; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=IEY0vUhik72rgSkoEJzSks2AHQWDtGCa//t8SkekUOs=; b=L2joXfsoXYuBgS9jc2Rt40LDM1yFDvUhavSBwEVUhL2hGS1f5lKi/cFr oB+X74ofJRq8k+NB+kFylyptsHK34aDBJaSjX4rusAsXPbINDE9Axj/8y Y05UkuuE1CpOzlNqiemItOAoCLUUKcX9Q2gCdS3awcv4PNjZo1VJjSmoC kDSNJkhU0GkEQDR7yf4+ma5ZH71JdUWGdwTwDj397+nvTcUgBI3TkTww0 qRePowG2UK6Swr+JrOZBahWRh4pFwU0Fv9odznsbZKr2tJGPa/EeYRtLS 13rff64bADcmV4rU6rjkfBtcxodY3spkJbHAZ19zfj4oBId5K+RuGgVId Q==; X-IronPort-AV: E=Sophos;i="5.96,149,1665417600"; d="scan'208";a="320176466" Received: from mail-co1nam11lp2170.outbound.protection.outlook.com (HELO NAM11-CO1-obe.outbound.protection.outlook.com) ([104.47.56.170]) by ob1.hgst.iphmx.com with ESMTP; 09 Nov 2022 16:07:30 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IevTBr1KtKmPvo30N+LJqN3Jagbu/TuJYfTFVmR9lgSK5hjeYCIn5zuGYLh9Cx5uKwVCC3OmF3f8Gy4GxD/vssq0YgVFr2XltH+9cpyRQ8wj0znRzmnNakOnaqkIgY/hyrwD9/LLAoRNvHQYLFirQzUbknnRY0kav9/TehC3OGry9mZQ8qrBUDglEgg/LcknvBfSrqn1F8gfnoxfccadBmjvCxYXB1HIDb1xmIlV2vBsQo5dykHeSQ2KVQapJMyNfTbR42N7RhhdHwbMiu+Gwp0t5t6HSHrm3TI/XQpx/LjrIyLiU9cxET5Vv7UwXpkYHNuDTVobV9zBfZcpW6r6Vg== 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=IEY0vUhik72rgSkoEJzSks2AHQWDtGCa//t8SkekUOs=; b=fyQlGxMfSd+4BgyyM7bgrbaptwqrEwLJabBkp18fOy8V2HzhWHXpRhLuhXJlTTq0NdCZ/7ftzTTCOTYWqAhBFVWu0mFCVsHY7HcEJgZCrvojvvl47u8EsYI2bo4w9kmBsUD/2Q2gYfxEyHRAPqHf77xbe+vjgSxZkZqiH9hBnam9Rr0HstHhCjpsGKMx3onjnQuFPqYB3MTW5/n0LPvxpQR2baWTOwpmoC+5O8v8nwyuoUdViqsY2qmwuYe01vxgZ4jh8lTewetpIr5qkgH82QR+UGG9wB3TAEOFORFRYLSxYcC7STEA4VNfGz3QfWGuHP6jjK+LY3PATP6PhYhlmw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IEY0vUhik72rgSkoEJzSks2AHQWDtGCa//t8SkekUOs=; b=dqrM1B7tqi0UYGVhzIhDf8xSp2sO6bPtGn02ubexq2++riD/8k+QmMNJW8Ws0/ugmOahC/4yCHbR+FBqOunhkYivXb5z3/kbjmOY0GUr0XXYxcLYDHU/ZSIDFOYoPlzOOCx8uPSUtdc8pksmYcuSV76Dx0g+ao38g5jEscuFuUk= Received: from DM6PR04MB6575.namprd04.prod.outlook.com (2603:10b6:5:1b7::7) by SA2PR04MB7722.namprd04.prod.outlook.com (2603:10b6:806:14c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.27; Wed, 9 Nov 2022 08:07:28 +0000 Received: from DM6PR04MB6575.namprd04.prod.outlook.com ([fe80::1afa:ab74:ef51:1e72]) by DM6PR04MB6575.namprd04.prod.outlook.com ([fe80::1afa:ab74:ef51:1e72%3]) with mapi id 15.20.5791.027; Wed, 9 Nov 2022 08:07:28 +0000 From: Avri Altman To: Bean Huo , "alim.akhtar@samsung.com" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "stanley.chu@mediatek.com" , "beanhuo@micron.com" , "bvanassche@acm.org" , "tomas.winkler@intel.com" , "daejun7.park@samsung.com" , "quic_cang@quicinc.com" , "quic_nguyenb@quicinc.com" , "quic_xiaosenh@quicinc.com" , "quic_richardp@quicinc.com" , "quic_asutoshd@quicinc.com" , "hare@suse.de" CC: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [RFC PATCH v1 2/2] ufs: core: Add advanced RPMB support in ufs_bsg Thread-Topic: [RFC PATCH v1 2/2] ufs: core: Add advanced RPMB support in ufs_bsg Thread-Index: AQHY8qptmsmbt7vqGEOmo5IvpfPIBq42K7ew Date: Wed, 9 Nov 2022 08:07:28 +0000 Message-ID: References: <20221107131038.201724-1-beanhuo@iokpp.de> <20221107131038.201724-3-beanhuo@iokpp.de> In-Reply-To: <20221107131038.201724-3-beanhuo@iokpp.de> 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=wdc.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM6PR04MB6575:EE_|SA2PR04MB7722:EE_ x-ms-office365-filtering-correlation-id: 80adbc48-7153-4f50-66e0-08dac22971e0 wdcipoutbound: EOP-TRUE x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: U/n6a6qWwSwLeCzGIZl0G/04MqrFDcsL52Y1zrnIP8MmwH7YUD1cc3y/fJFWUlYXsVinHUqkMdKuwp9Zdi3Kp+a+mYwHWpztcTPkxuzCET4xzHB7A5KSRDBp1na2HaW4yvjtjY/QSD6apoLjJcDgoZqpMVNYZ1ExYVoaEcZoQR54cXUCpYk9EN4wb5B9MnEx1VbjVLiGRKCMyY5U2f6ep36m8JAMyjPyTCGcBla475bnc+HfTGf9Q0ID2zbrVFcFMhm6PZn/kOPzOjpCm1mEu/IKgLIP897xvo0K1tvInNa5ENm6gV7wGqNNAOr2QoG8ydFZer86ETi3ClsAfq6mE5FqsyyXQAmDj4B8Qsne1YEKtsTNqWLEafPKtxhX+Onnn1CEy5ablMwda3DHI4NQQ/78Eco1YskgM9Cvn5KnsclFMpaUHqmXfy8g0EE13B1R6XeB4d03AxOECqSPhaYw7mgGRYlfg5lR61CmhfhAA4+IAcLLGNVqaEM5Uprg3bTAC8q8LkrSsGDE4W+CxaYjuEM813tBGQq2b04EwbuQdJW7Vql9A3hJdoKwKw19GEiOQiQ+Sw3AHcXnH31bJGOf1dz3boFUCtdrcwa3PUuILaAysj8WM7k/wAL7cxnMNaH/bmRdCtOej/zUvZVk/7tSggcF2CwklOGCE5vSRcLhNEpcKQgi/XcW5DK76aSlyZEq7xzqwFxbOsXcSrggKxgbDzYoPhf9d/lxlh5Y4I4/emL9JPm3/8y43FBaV2HirJ2yW/FZuqGTCF+YTZkUxRfyvCXaYnF4iD2DBk/DC7g0eM4= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR04MB6575.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(366004)(396003)(39860400002)(136003)(346002)(451199015)(33656002)(86362001)(921005)(478600001)(38070700005)(55016003)(82960400001)(38100700002)(83380400001)(122000001)(186003)(9686003)(26005)(7696005)(6506007)(2906002)(52536014)(8936002)(7416002)(5660300002)(71200400001)(41300700001)(54906003)(30864003)(110136005)(316002)(8676002)(4326008)(64756008)(66446008)(76116006)(66556008)(66946007)(66476007)(579004);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?OVpwemEybTJ3a281NTJqL2JKeFE4a1kvY3JTMXdpVy8xditWS3dHbmFnNjZB?= =?utf-8?B?eFVYWHpFYkVheU9XVXJFMlYvQkNFSnQ2dnRLWmsrNS9jYUEvelZYN2NLTDcx?= =?utf-8?B?ZFN6ZjI3MlpBcFpwTy8rTEZUc1JXaDVsQlpsSllIQ2o4RkhWNHV3V0pDRXlS?= =?utf-8?B?U09ncXI1dTZOZDhWMzNGeFhCb0JhUFZ0NTRjenRUQWowYVp2WE90SC96czVZ?= =?utf-8?B?UDRNWTc1RW9KOC9zaGc3cjE5WSswcGl0a0RjdW1vb01pWmdVYjlYamthanVQ?= =?utf-8?B?cDdjRUNnVkw5b1BkeE8yWmp6RnVYbCs5SmwzQkl3ZDNOdVMraUd4YXBpRCtI?= =?utf-8?B?bDRoTTJhZTlXWXdQTld5YnRRVU1BTzJDdndVdVUwSnFJNnUxRGtzaWJIc2FQ?= =?utf-8?B?cEgxeWZxU1JkeU5jbHY0cFdIZndHMGcxRVQrcStJV3R4VUtxd3hna2N3UWFx?= =?utf-8?B?VG5ZTFlFdHA4cEI4R2t3RlNCbEY4Wmszb2ZhL3lvczNYZUhCTm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VJazNUVmdxL2lRanZhSjIyMTlQa1BVSlQr?= =?utf-8?B?bGhxTDVlVmh6eE9tQTl4dTErUEZwWHp2Tm9rVmh5OERFeXJvcUphRVozWkJY?= =?utf-8?B?RGRxdkxnZU1PYlBDRDZ6UHFDbnhVUkFodVVFSFRTcFducDFQdXZLbDVxOFdY?= =?utf-8?B?VlVWcVlEaC8zaGY5V3ViVHE1Y0twemVoaUJRc0cyOUFyMHU4TzlCK2pHeXRy?= =?utf-8?B?WDVVZjBUT1ZnWFdZUEU5WW5vc2FHNEhVZEU4QlZGT3VPQ1M4eVJKaFVLQWpp?= =?utf-8?B?UWZON05uOVJLbGtlbG04c2ovTXpzK0Q4a1hmL0RqUDAxY1dHTnpHT00rTWhR?= =?utf-8?B?ZUxpeG90ayt4TzdMV0lpakxhV0hXeWUvMGJwNHc3bmNPalNYMU40VWhtQ29U?= =?utf-8?B?WWIzUDE0S1RNcTUveHExVGlnYzZCOVdyNVorVnVLR2pmZlUvdTl1RnIxYm5D?= =?utf-8?B?QzE4V1gvNDZDd09kWlhIUGxleFFVR1R3VjdlSFQ5aVQvRTBpZGlNM1JxQzJa?= =?utf-8?B?NWlQRmp4VVFhR1pSRnFoQW80UlNWaVFLWWhZVDBNa1VpMVYvcVZ3dHJ2UWdM?= =?utf-8?B?VlFMczFjWWg0M3FUT1lBamh6N2gxbG5mNndLWk1DVkRZOVA5MnpBNFZ1ck5O?= =?utf-8?B?eXYra29lV0c5djhyN2hwNEhmVUVyM1dSTnpFU0hiTWF0bDBNVmJ6dEYvNWM1?= =?utf-8?Q?s+EovtawRG15PpvoxSM2wKmlU?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR04MB6575.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 80adbc48-7153-4f50-66e0-08dac22971e0 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Nov 2022 08:07:28.6169 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: pGDBxGgFXYY15FSwRITIrGFyU95wJnERHIreHELRSm3DzH2kl51KGAn92/oXlJs6FsN5nJBcEVFpfWlMHTD6nA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR04MB7722 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_NONE autolearn=ham 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 PiANCj4gQWRkIGFkdmFuY2VkIFJQTUIgc3VwcG9ydCBpbiB1ZnNfYnNnLiBGb3IgdGhlc2UgcmVh c29ucywgd2UgdHJ5IHRvDQo+IGltcGxlbWVudCBBZHZhbmNlZCBSUE1CIGluIHVmc19ic2c6DQo+ IA0KPiAxLiBBY2NvcmRpbmcgdG8gdGhlIFVGUyBzcGVjaWZpY2F0aW9uLCBvbmx5IG9uZSBSUE1C IG9wZXJhdGlvbiBjYW4gYmUNCj4gcGVyZm9ybWVkIGF0IGFueSB0aW1lLiBXZSBjYW4gZW5zdXJl IHRoaXMgYnkgdXNpbmcgcmVzZXJ2ZWQgc2xvdCBhbmQgaXRzDQo+IGRldl9jbWQgc3luYyBvcGVy YXRpb24gcHJvdGVjdGlvbiBtZWNoYW5pc20uDQo+IA0KPiAyLiBGb3J0IHRoZSBBZHZhbmNlZCBS UE1CLCBSUE1CIG1ldGFkYXRhIGlzIHBhY2thZ2VkIGluIGFuIEVIUyAodG8gZGV2aWNlKQ0KRm9y IHRoZQ0KD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HsNCj4gLSAgICAgICAgICAg ICAgICAgICAgICAgdWZzaGNkX3JwbV9wdXRfc3luYyhoYmEpOw0KPiArICAgICAgICAgICAgICAg aWYgKHJldCkNCj4gICAgICAgICAgICAgICAgICAgICAgICAgZ290byBvdXQ7DQo+IC0gICAgICAg ICAgICAgICB9DQo+IA0KPiAgICAgICAgICAgICAgICAgZmFsbHRocm91Z2g7DQo+ICAgICAgICAg Y2FzZSBVUElVX1RSQU5TQUNUSU9OX05PUF9PVVQ6DQo+ICAgICAgICAgY2FzZSBVUElVX1RSQU5T QUNUSU9OX1RBU0tfUkVROg0KPiAgICAgICAgICAgICAgICAgcmV0ID0gdWZzaGNkX2V4ZWNfcmF3 X3VwaXVfY21kKGhiYSwgJmJzZ19yZXF1ZXN0LT51cGl1X3JlcSwNCj4gICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAmYnNnX3JlcGx5LT51cGl1X3JzcCwgbXNn Y29kZSwNCj4gLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBk ZXNjX2J1ZmYsICZkZXNjX2xlbiwgZGVzY19vcCk7DQo+ICsgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgYnVmZiwgJmRlc2NfbGVuLA0KPiArIGRlc2Nfb3ApOw0K PiAgICAgICAgICAgICAgICAgaWYgKHJldCkNCj4gLSAgICAgICAgICAgICAgICAgICAgICAgZGV2 X2VycihoYmEtPmRldiwNCj4gLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiZXhlIHJh dyB1cGl1OiBlcnJvciBjb2RlICVkXG4iLCByZXQpOw0KPiArICAgICAgICAgICAgICAgICAgICAg ICBkZXZfZXJyKGhiYS0+ZGV2LCAiZXhlIHJhdyB1cGl1OiBlcnJvciBjb2RlICVkXG4iLCByZXQp Ow0KPiArICAgICAgICAgICAgICAgZWxzZSBpZiAoZGVzY19vcCA9PSBVUElVX1FVRVJZX09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cmVxKGhiYSwg am9iLCBiYnVmLCBtc2djb2RlLA0KPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgam9iLT5yZXF1ZXN0X3BheWxvYWQucGF5bG9hZF9sZW4pOw0KPiAr ICAgICAgICAgICAgICAgaWYgKHJldCkNCj4gKyAgICAgICAgICAgICAgICAgICAgICAgZGV2X2Vy cihoYmEtPmRldiwgIlJQTUIgT1AgZmFpbGVkOiBlcnJvciBjb2RlICAlZFxuIiwgcmV0KTsNCj4g KyAgICAgICAgICAgICAgIGVsc2UgaWYgKG1zZ2NvZGUgPT0gVVBJVV9UUkFOU0FDVElPTl9BUlBN Ql9SRUFEX0NPVU5URVIpDQo+ICsgICAgICAgICAgICAgICAgICAgICAgIGJzZ19yZXBseS0+cmVw bHlfcGF5bG9hZF9yY3ZfbGVuID0gam9iLQ0KPiA+cmVxdWVzdF9wYXlsb2FkLnBheWxvYWRfbGVu Ow0KPiArICAgICAgICAgICAgICAgYnJlYWs7DQo+ICAgICAgICAgZGVmYXVsdDoNCj4gICAgICAg ICAgICAgICAgIHJldCA9IC1FTk9UU1VQUDsNCj4gICAgICAgICAgICAgICAgIGRldl9lcnIoaGJh LT5kZXYsICJ1bnN1cHBvcnRlZCBtc2djb2RlIDB4JXhcbiIsIG1zZ2NvZGUpOyBAQCAtDQo+IDE0 NCwyMiArMTc5LDEyIEBAIHN0YXRpYyBpbnQgdWZzX2JzZ19yZXF1ZXN0KHN0cnVjdCBic2dfam9i ICpqb2IpDQo+ICAgICAgICAgICAgICAgICBicmVhazsNCj4gICAgICAgICB9DQo+IA0KPiArb3V0 Og0KPiAgICAgICAgIHVmc2hjZF9ycG1fcHV0X3N5bmMoaGJhKTsNCj4gKyAgICAgICBrZnJlZShi dWZmKTsNCj4gDQo+IC0gICAgICAgaWYgKCFkZXNjX2J1ZmYpDQo+IC0gICAgICAgICAgICAgICBn b3RvIG91dDsNCj4gLQ0KPiAtICAgICAgIGlmIChk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g ICAgaWYgKHNnX3NlZ21lbnRzKSB7DQo+ICsgICAgICAgaWYgKHNnX2VudHJpZXMpIHsNCj4gDQo+ ICAgICAgICAgICAgICAgICBpZiAoaGJhLT5xdWlya3MgJiBVRlNIQ0RfUVVJUktfUFJEVF9CWVRF X0dSQU4pDQo+ICAgICAgICAgICAgICAgICAgICAgICAgIGxyYnAtPnV0cl9kZXNjcmlwdG9yX3B0 ci0+cHJkX3RhYmxlX2xlbmd0aCA9DQo+IC0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg Y3B1X3RvX2xlMTYoKHNnX3NlZ21lbnRzICoNCj4gLSAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIHNpemVvZihzdHJ1Y3QgdWZzaGNkX3NnX2VudHJ5KSkpOw0KPiArICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIGNwdV90b19sZTE2KChzZ19lbnRyaWVzICogc2l6ZW9m KHN0cnVjdA0KPiArIHVmc2hjZF9zZ19lbnRyeSkpKTsNCj4gICAgICAgICAgICAgICAgIGVsc2UN Cj4gLSAgICAgICAgICAgICAgICAgICAgICAgbHJicC0+dXRyX2Rlc2NyaXB0b3JfcHRyLT5wcmRf dGFibGVfbGVuZ3RoID0NCj4gLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjcHVfdG9f bGUxNihzZ19zZWdtZW50cyk7DQo+ICsgICAgICAgICAgICAgICAgICAgICAgIGxyYnAtPnV0cl9k ZXNjcmlwdG9yX3B0ci0+cHJkX3RhYmxlX2xlbmd0aCA9DQo+ICsgY3B1X3RvX2xlMTYoc2dfZW50 cmllcyk7DQo+IA0KPiAgICAgICAgICAgICAgICAgcHJkX3RhYmxlID0gbHJicC0+dWNkX3ByZHRf cHRyOw0KPiANCj4gLSAgICAgICAgICAgICAgIHNjc2lfZm9yX2VhY2hfc2coY21kLCBzZywgc2df c2VnbWVudHMsIGkpIHsNCj4gKyAgICAgICAgICAgICAgIGZvcl9lYWNoX3NnK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AgICAgICAgICBicmVhazsNCj4gKyAgICAgICBjYXNlIFVQ SVVfVFJBTlNBQ1RJT05fUkVTUE9OU0U6DQo+ICsgICAgICAgICAgICAgICBpZiAoaGJhLT5kZXZf Y21kLnR5cGUgIT0gREVWX0NNRF9UWVBFX1JQTUIpIHsNCj4gKyAgICAgICAgICAgICAgICAgICAg ICAgZXJyID0gLUVJTlZBTDsNCj4gKyAgICAgICAgICAgICAgICAgICAgICAgZGV2X2VycihoYmEt PmRldiwgIiVzOiB1bmV4cGVjdGVkIHJlc3BvbnNlICV4XG4iLCBfX2Z1bmNfXywNCj4gcmVzcCk7 DQo+ICsgICAgICAgICAgICAgICB9DQo+ICsgICAgICAgICAgICAgICBicmVhazsNCj4gICAgICAg ICBkZWZhdWx0Og0KPiAgICAgICAgICAgICAgICAgZXJyID0gLUVJTlZBTDsNCj4gICAgICAgICAg ICAgICAgIGRldl9lcnIoaGJhLT5kZXYsICIlczogSW52YWxpZCBkZXZpY2UgbWFuYWdlbWVudCBj bWQgcmVzcG9uc2U6DQo+ICV4XG4iLCBAQCAtNjgzOCw3ICs2ODU4LDcgQEAgc3RhdGljIGludA0K PiB1ZnNoY2RfaXNzdWVfZGV2bWFuX3VwaXVfY21kKHN0cnVjdCB1ZnNfaGJhICpoYmEsDQo+ICAg ICAgICAgLyogdXBkYXRlIHRoZSB0YXNrIHRhZyBpbiB0aGUgcmVxdWVzdCB1cGl1ICovDQo+ICAg ICAgICAgcmVxX3VwaXUtPmhlYWRlci5kd29yZF8wIHw9IGNwdV90b19iZTMyKHRhZyk7DQo+IA0K PiAtICAgICAgIHVmc2hjZF9wcmVwYXJlX3JlcV9kZXNjX2hkcihscmJwLCAmdXBpdV9mbGFncywg RE1BX05PTkUpOw0KPiArICAgICAgIHVmc2hjZF9wcmVwYXJlX3JlcV9kZXNjX2hkcihscmJwLCAm dXBpdV9mbGFncywgRE1BX05PTkUsIDApOw0KPiANCj4gICAgICAgICAvKiBqdXN0IGNvcHkgdGhl IHVw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