From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EA1ACA0C5C; Mon, 23 Aug 2021 15:54:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8B1804014E; Mon, 23 Aug 2021 15:54:21 +0200 (CEST) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam07on2049.outbound.protection.outlook.com [40.107.212.49]) by mails.dpdk.org (Postfix) with ESMTP id 0EB854014D for ; Mon, 23 Aug 2021 15:54:21 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EfNE43QO0+wXyl/Ns3W5wZXVDKWVhr96p7CB/+AnLQpsGlhrx3yhgdV0babL84AGMKljrnHyOMYEf4lh8RbnHFDZ8efpNqEnq3113ApHhYR83Bivq3EHOguVQr54qAhzhJyj9NwgpRDuBGnQRsF2t7oLnc9fyrHneAfLB7UTwJ8C6IT9rZHEDitrxO2foYkDEBm95yPyryWmHPX7rL6fJq8LYPYELfr/A/UHcn5C/Rq0A65Mo40fuvx4BU7btFPYwlOQyfNAJ3v3JD+U5x4pUlvlRjUD/N9QVN+9dHA9gAKnVYgnceL5qdDhN9udekT/ssXa5WYrIjH8eSzWqoLteA== 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=OBCNiRB1BCDj+K/en+/AHY6kbQ5682pLZJRVcbTZcKQ=; b=VcqmDUh8v21hcyl58ALfMQB7qrlbsRZO1lLbwJ9ydeb1bxMug6vftisNyr2DmA6WxRd2NovHYZEw9zr6ELSLf9uGBgdc9cf6/WVvuvzknxMP2vrAQEIGq2DNIaN6DUE61K9l1BVWgLJg9nrYmSOKtm3AnLguz1aERi2u48HeDbPCTRU9V7H1SHs5n7T3DeLRjC+0rnESGIxn2aB4YpRxnmWxn1VD/qZ35zwjx5WoCtY6TOtRHiFKu9hp4eVwn335pjmOYGnvQ+ra3Q/VcRPpC11mc+Dcz3tVZUq6pjlIOtOB1b6ctWT6upLOtAXJai3lurIqxS3GzU8H9Gscw3E1tw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OBCNiRB1BCDj+K/en+/AHY6kbQ5682pLZJRVcbTZcKQ=; b=JakXrAYsv+9wre2egVBeujF/Lo+qOLfxLYWUIo6LZoNnmM2ByQLaBVrGtKCkQ8LxyH+WBAH+NTHrClrHgwz4xu8lNd6f59oc0e9VuDixi/BsTlBTVY42BkWlSQCsxTWnVGtr0eLP2FzfEVM0OlJvJXclbubiR56iL21JVDpelsEFQGcmGUpExJVhzk7+HhvZb3sA8TdC1zGjNggWz52AF1xA0IU7ZMXlNavCHGTKWW3ue6VqIonoa72RVaTPKjxquJe7u8yL9PR51EPGnK/VHV9IHe0C1/GcjpbLM8o0Ncm17AjDBkuJUwdwQ7r/CV/2kPjtQBGIx0FRli3qp+PgIA== Received: from DM4PR12MB5373.namprd12.prod.outlook.com (2603:10b6:5:39a::17) by DM4PR12MB5181.namprd12.prod.outlook.com (2603:10b6:5:394::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19; Mon, 23 Aug 2021 13:54:19 +0000 Received: from DM4PR12MB5373.namprd12.prod.outlook.com ([fe80::20f5:dbdd:64b1:617b]) by DM4PR12MB5373.namprd12.prod.outlook.com ([fe80::20f5:dbdd:64b1:617b%9]) with mapi id 15.20.4415.023; Mon, 23 Aug 2021 13:54:19 +0000 From: "Xueming(Steven) Li" To: Andrew Rybchenko CC: "dev@dpdk.org" , Maxime Coquelin , Chenbo Xia Thread-Topic: [dpdk-dev] [PATCH] net/virtio: wait device ready in device reset Thread-Index: AQHXl+mltXI1xv+ceEue2bYiueHlaauA2n+AgAA98lA= Date: Mon, 23 Aug 2021 13:54:19 +0000 Message-ID: References: <20210823063906.1382544-1-xuemingl@nvidia.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: oktetlabs.ru; dkim=none (message not signed) header.d=none;oktetlabs.ru; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4e6f2936-1b2f-489f-d2a2-08d9663d8135 x-ms-traffictypediagnostic: DM4PR12MB5181: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1751; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xD7FUB8Bw0RC3oNO1S2ddbRYVSLEZqYPt8yrjD+7NbFAuZg4uC7RDV/TiqTfNq49CDqWjVPcggra68RnmNn2Ukt32+FkY+PG2MzqN8TSBLESyHRbx4CSNQEPuyc024Xd94nV8byCASiA82Y3S2VnJwY4LFdnYYhI6R6n15zO/rigrUQlfUGRszCxoxF9BSHzPVo4VZQ5vTySnYGViycy11gYkJGdxEVwcAJYICGNjWci1r6Qr3Rb5oXdXsr7mA9UJpCc1Dle/7IEa1LJHvu74a1gHb11+v22dLRmYQAMrZNAyhin5HCrVTLbp8Tz1ShqXXGQhhic5ruxneCOadDtMH+MGSXlr84TZhp4DMdLjCUvTjJoJmomKYWfP9UmU/YzQl0thWJ8u91xUDFU1IsZCd1tAD5RrikfEUBBN9rsYzTThSIe6mHD3DLpdJnC7A5oivcDqdVZGM8ik1Caj0tF2T5pnnUwI4AwZCZCeqnfOxIM1cLkzAX2YY000mWhbH/6rJkCdUZddVF8DIk3r/OB7+ZbfQIz8TRDQ4NYswBEhsh1Ih9f6Qc3SOecK29ib6tsRtOHKf4yZQ4gTmBq2LVXG6h+1heTppJQyJWpHkne35DwXkCa5l4iO9MEdC7nxw2pi4Mtwnj4oUlpLXoXwiFogRqSFQnIw1x2UEd8A0rp9epJlm75ej6RZYflIuJ6kbsZOtYX/TnMVDhmu+VJ5v/Xxg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5373.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(39860400002)(346002)(366004)(396003)(376002)(186003)(55016002)(6506007)(54906003)(38100700002)(52536014)(478600001)(83380400001)(122000001)(71200400001)(38070700005)(316002)(9686003)(66946007)(76116006)(66476007)(8936002)(64756008)(66446008)(66556008)(86362001)(6916009)(8676002)(7696005)(4326008)(26005)(33656002)(53546011)(2906002)(5660300002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?NXY5a253ejZDL2JSa0dkMXJxSC9TWFVHV1hZWUJzZXJZNFNGa3ptVTBPL2Fx?= =?utf-8?B?czFYRnVBRU5mQkkzVnBoNERWVmVNcnZSOTRXb3lVd2V4THh6WUZIYk5VTnNO?= =?utf-8?B?NlpoQ0pyZFlyc2lDcXZPUlpNRllVWS9tb0tja2RzeTRERm1haUgrc081OEwy?= =?utf-8?B?ZmIvZmFQM1VaY1VubGU5VGNXMEh2N3JBOTBROUVHSlk0NnZ4VndiazB3L2t5?= =?utf-8?B?NnM0S2JoTndjbUlKYWFQQ2ZRcDZMckdNbnI5R2E0NGRWaWdZckxJSHorWm9v?= =?utf-8?B?RW1BWGFsSkJtSUJSVkxIMXZDamZDdWVhbVNkUUU2d2dvL0U0V1F4bHVRbWNo?= =?utf-8?B?MGNjTHI2cnkwTG9EQkJ6SFF6aEVKejd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Urd0VWUU5GQy9rVWN4bTJWc281UWFBTjBPbnYyWklFTmlQ?= =?utf-8?B?SWlETlcyMjBPVWR2cjNERjhxSmFTdERxSldxb1RiY2xraElxbVduTndwYVpF?= =?utf-8?B?cHNFWm5Wc3dGK1pMRGxVbXNmVWFHNHZmY2JEODBmOGhZbU10RERWVkRZd1c1?= =?utf-8?B?ZnludUZjNEtEd0pUTXlTU1RaMjZyS3BlZXZRZndjdXlOUDNtS0RCd3ZSNklt?= =?utf-8?B?RE4yVUpidWhYQW9nOFVYQUN5Z21hY0ViK3FvVThXUUxtTVUrTXFnMUdLYi9j?= =?utf-8?B?cmdqcVMrR3A4SFJ6WWE1ZUZ4ejlWN1o1T2x0ajhmWGN5UWlSYm5VREp5dndo?= =?utf-8?B?RXZHM2U0Vk9kbU01YkdFMjNTUVpJOWNaaWdUWFN5aU1aNWxrbCs5RVZ2ZDB1?= =?utf-8?B?YmdITlkvNk9xdDFNcVR2VnZUdnpNdUlUMHVZanRSNTQzbHAvcm1jMjU3cFVo?= =?utf-8?Q?RxD7QsmXg2HVE8JtvE2RZtgldBQZ+gX2amgOBts?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5373.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4e6f2936-1b2f-489f-d2a2-08d9663d8135 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Aug 2021 13:54:19.4988 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: aCrCtBTUtshfdaQHcu6n1lFln+tKt0H6g58LRmSGnrn3XUrvW6j0nEzcQ/m/tb/OOD14fLQ8rSzREL16wy+ZHA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5181 Subject: Re: [dpdk-dev] [PATCH] net/virtio: wait device ready in device reset X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQW5kcmV3IFJ5YmNoZW5r byA8YW5kcmV3LnJ5YmNoZW5rb0Bva3RldGxhYnMucnU+DQo+IFNlbnQ6IE1vbmRheSwgQXVndXN0 IDIzLCAyMDIxIDU6NTcgUE0NCj4gVG86IFh1ZW1pbmcoU3RldmVuKSBMaSA8eHVlbWluZ2xAbnZp ZGlhLmNvbT4NCj4gQ2M6IGRldkBkcGRrLm9yZzsgTWF4aW1lIENvcXVlbGluIDxtYXhpbWUuY29x dWVsaW5AcmVkaGF0LmNvbT47IENoZW5ibyBYaWEgPGNoZW5iby54aWFAaW50ZWwuY29tPg0KPiBT dWJqZWN0OiBSZTogW2RwZGstZGV2XSBbUEFUQ0hdIG5ldC92aXJ0aW86IHdhaXQgZGV2aWNlIHJl YWR5IGluIGRldmljZSByZXNldA0KPiANCj4gT24gOC8yMy8yMSA5OjM5IEFNLCBYdWVtaW5nIExp IHdyb3RlOg0KPiA+IEFjY29yZGluZyB0byB2aXJ0aW8gc3BlYywgdGhlIGRldmljZSBNVVNUIHJl c2V0IHdoZW4gMCBpcyB3cml0dGVuIHRvDQo+ID4gZGV2aWNlX3N0YXR1cywgYW5kIHByZXNlbnQg YSAwIGluIGRldmljZV9zdGF0dXMgb25jZSB0aGF0IGlzIGRvbmUuDQo+ID4NCj4gPiBUaGlzIHBh dGNoIGFkZHMgdGhlIG1pc3NpbmcgcGFydCBvZiB3YWl0aW5nIHN0YXR1cyAwIGluIHJlc2V0IGZ1 bm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