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 DF756A04A4; Wed, 2 Mar 2022 12:48:58 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B5BF342715; Wed, 2 Mar 2022 12:48:58 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id B4E6840141 for ; Wed, 2 Mar 2022 12:48:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646221736; x=1677757736; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=9x/i++2lyKsfFJZVkwnrbC+7mt2vQQp/5yhCzqjwrAk=; b=RrKd1HKQtK6bCku1dwB1nboODHIs8OU3EyHyY+7Gh2YH/dHPDDMmGQUF s22N3C/wsy0hKq8PHIkTBwg5TLb9oHOoA79D82PMr2JEI0f4rND2d77ze mGeYKtBD4XH6aBIZn/sshfRUwmtVHGFMbzay5wWjcgRxF7b8IjJ3EYxyA bY/3gFreCAz3Ygp3pw0YQo1eR5J4OJRjDOhaGMBxx+BiWHYUZS+AubwGw SeJ3iDTcFoKs0uqvMKt/olGaVVMRtgJnUKKycXY77rZ+uH1PYXvW6IFad B9qFFAibYFCsrfNb/jiZ/JtoEKYhqp1roP32sF6sVE11GJfLfn7+HZhty g==; X-IronPort-AV: E=McAfee;i="6200,9189,10273"; a="253112520" X-IronPort-AV: E=Sophos;i="5.90,148,1643702400"; d="scan'208";a="253112520" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2022 03:48:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,148,1643702400"; d="scan'208";a="807245660" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga005.fm.intel.com with ESMTP; 02 Mar 2022 03:48:55 -0800 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Wed, 2 Mar 2022 03:48:55 -0800 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Wed, 2 Mar 2022 03:48:54 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21 via Frontend Transport; Wed, 2 Mar 2022 03:48:54 -0800 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.43) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Wed, 2 Mar 2022 03:48:54 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WwXlt1xZXWvMXCtPuwnUfKKqYHR5tM7EA3jNr7EtCgFQdVWoIDWW+aksvaPsPucDWcDnYf+kiqk+ylHzVKHQTQ0anTgRhgpezPcw1bQ/EtIiBg7RMh7J4AZ7ul8OPjMXlt+KL5H5ovemX0jkmxBd5S/rHVTAsy4hCbyyKSiIj1Afp6x3ZT3q1QCSG7oH6GtPEjKAIVJP9+bV4odun9Dh/trKh4Xhe5/1vmFQkHLl3IRgQbbOoclDEu8BTq1JI+Hc9bLhGHNE3atZWfHcR739PL9mTQoTmqt5zNtw+rCAjYcbQMx0uEkKdXICPQZ14PfY1ecvZBbJ9QNyUTk4hWd4uQ== 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=gEm78CqpBHXUMuIgrP+uNLHc4r8rwiVM3AOR2RBYMSM=; b=WH+N9/7Fqs6vjHqUAzy6zQEZlGrDjPR4cRBzh5c+F+fxKgyXa+mQzNsMQA3Q0amtU5BKtkBqkZiX3SxQP3736DyQ9ONrPYkYRDCvnZt/xUkr3xKFBkyNktbXmIurD79QbotMw1YgUHkWW+u7Hy89Eqy2Fn2M/k8T4BUnBsAm1z0d7nWJSOtHNMncylc1Naf6fjYc4ywLFFJLN1GT7by0fzSdaeTrrKfzGD/Pl8P/uoEIesM4ZOhrUmBzhgS+l+QGm87yNFpLKZ6QhNAbqAI9XEvxDuPT4Ug6zHEIYkTaxS4ODEa6Sj2gFr1bdwz7k2OVYDCGgsoGG5yCtdWiXtgQ/Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by BY5PR11MB4151.namprd11.prod.outlook.com (2603:10b6:a03:18f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.24; Wed, 2 Mar 2022 11:48:51 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd21:6fbe:8308:2ecf]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd21:6fbe:8308:2ecf%7]) with mapi id 15.20.5038.014; Wed, 2 Mar 2022 11:48:50 +0000 Message-ID: Date: Wed, 2 Mar 2022 11:48:44 +0000 Subject: Re: [PATCH v2] net/hns3: fix the time waiting for PF reset completion Content-Language: en-US To: "Min Hu (Connor)" , CC: References: <20220228032146.37407-5-humin29@huawei.com> <20220302003501.43412-1-humin29@huawei.com> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20220302003501.43412-1-humin29@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0289.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a5::13) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5d4e36f2-6af7-43b1-2c1e-08d9fc429e4b X-MS-TrafficTypeDiagnostic: BY5PR11MB4151: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: g1YcJa3D8Xj4zAqnPGnHorxJNXjmyLHGihkcBDRatvBDrN1BNcX0hpBgXtHOFyntELEWdf9riWB6sKtWvZr2BZ153Oe0afXkmmaboFPMqC4YOic5hyAwJcsfOaAxLXTj7kogdU+msYwURIi1J/aZjRuczhVGL6UU3lisuBMTZa0v3A4tdTRZXA94nl0KEu1dIdNrr9ceU0f/mMu7ltP67Rj/iqQtELsrnQlen/Ikn9V8BurYm3u9P6Y3JrNZl12mYCFuIvQ0KV7gJb1oazpP1UZaLMiDKNh3odgaJgLdiVjZPj51J29HnUlzojkwCY9fXCNkmK/VpSLKOFX4daSPBPsvfZ0R/CK3HXY0EyFIeWH6mDOksDB0fTb7Pq3v5SlfFsmAskoNE74wi4zb9NUZIY7HisQdXD8KSmS+C+uUIF4uG2sXb5BDqam/7JwDDL1X3sX/28QsCYKe4yWBvp69XzFTWKUk/TZtA1Xk5b2ATSU52bLrmh/sy+CHKujF1eyGxMW0mmWPUk7dCD5VLgLb3cFwwvltsGqLHyMMfCPIA4mzzjzz3Z270gfP1HnbMTmFM9Z+iRRwbIV+RAiJ9XC7qgGUu5UIYlGIPEHdEtyo10q76q+793/ukj/WFz9rWYpSpMKgpBwJ7tc2fkGnYjHWpd4R6m9ZtmJCyX94KIeQdnWFxY9z0broJtBtLUOpK724861JZ2Rqy+GjYxjg8pZgqw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(86362001)(31696002)(66476007)(8676002)(4326008)(6486002)(8936002)(508600001)(5660300002)(66556008)(66946007)(316002)(83380400001)(6666004)(82960400001)(6512007)(53546011)(38100700002)(6506007)(2616005)(186003)(26005)(44832011)(4744005)(2906002)(36756003)(31686004)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZHJUWmxndy8vRnVaK0VwVEhKQlloZ2JWRll1T0FnZ3Bkdy91ZzAzMWJHaDZN?= =?utf-8?B?MmpGeVp2YzRoUm8zQzhyTEpQWGFDaWFReEJzUGt5ZzhNSmNVSFZWQ3p1cmYr?= =?utf-8?B?Y2dKazZsdzd3STBJOHVBdHJuRWU4RDcyeEJDQnFFSUlrTGVPQnk5Y1lsNUNi?= =?utf-8?B?UFc5U0VlSUk1VWF0RDNGcmgvWTJFOFNmQUhyM2s2SEU2WnR4OTRVQnVrbVUw?= =?utf-8?B?emJGcWVXSFc4djQwZVZEbTFaeUVRTDd5QUIwZE5OYkFzTXlOZ09KVEo3Ung1?= =?utf-8?B?QjlEQlR3RHc0YklxeDN0NnVyZTdzTE9ROGtGblhGcUpKN21NeUlDVlh2WXhK?= =?utf-8?B?cWdQUzVtL1VH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pTbGpBRlRtODlvS1lUbkIx?= =?utf-8?Q?326jDfve+jmoKYNjPQO1mBc=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 5d4e36f2-6af7-43b1-2c1e-08d9fc429e4b X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2022 11:48:50.9027 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fD/YdsRcKHc29q1kU3hvg48KZ52gvzkiZWwJhwUc8yVHfK4QBODVXYne4WBMnET8qVo7Mnl1+5crP/Gi6MefoA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4151 X-OriginatorOrg: intel.com 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 On 3/2/2022 12:35 AM, Min Hu (Connor) wrote: > From: Huisong Li > > On the case that PF and VF need to be reset, after the hardware reset is > complete, VF needs wait for 1 second to restore the configuration so that > VF does not fail to recover because PF reset isn't complete. But the > estimated time is not sufficient. This patch fixes it to 5 seconds. > > Fixes: 2790c6464725 ("net/hns3: support device reset") > Cc:stable@dpdk.org > > Signed-off-by: Huisong Li Converting to explicit ack: Acked-by: Min Hu (Connor) Applied to dpdk-next-net/main, thanks.