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 85524A0C41; Wed, 15 Sep 2021 12:30:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1F3FF4003F; Wed, 15 Sep 2021 12:30:05 +0200 (CEST) Received: from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113]) by mails.dpdk.org (Postfix) with ESMTP id 95EF94003C for ; Wed, 15 Sep 2021 12:30:03 +0200 (CEST) Received: from [192.168.38.17] (aros.oktetlabs.ru [192.168.38.17]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by shelob.oktetlabs.ru (Postfix) with ESMTPSA id 208C87F523; Wed, 15 Sep 2021 13:30:03 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru 208C87F523 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=oktetlabs.ru; s=default; t=1631701803; bh=5bf5p1BrKZAF0ct97sELUT1QpfyPZB6nAGUBuAmSsTc=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=yJIn6DKYtPJQhNn8t7Nnvko6/fnnYkUdSFZDPTOI9bTvw6shS9fku0bbKO4BHeOHe b0c33yqCZz6uThCfXUkyY/60keZqLP1BhpQx//2KZuFgB+nnNG+IrihG1kbUg7x1Nm bq3Z37OimE7Nh69D4PUE7vUA0MBQkgomp3Q33BSw= To: Xueming Li , dev@dpdk.org Cc: Maxime Coquelin , Chenbo Xia References: <20210823063906.1382544-1-xuemingl@nvidia.com> <20210915101204.81754-1-xuemingl@nvidia.com> From: Andrew Rybchenko Organization: OKTET Labs Message-ID: <7580f98b-e937-fbf8-ec38-abe12db66549@oktetlabs.ru> Date: Wed, 15 Sep 2021 13:30:02 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210915101204.81754-1-xuemingl@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2] net/virtio: wait device ready during 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" On 9/15/21 1:12 PM, Xueming Li wrote: > According to virtio spec, the device MUST reset when 0 is written to > device_status, and present 0 in device_status once reset is done. > > This patch waits status value to be 0 during reset operation, if > timeout in 3 seconds, log and continue. > > Signed-off-by: Xueming Li > Cc: Andrew Rybchenko Acked-by: Andrew Rybchenko