From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id F3AF456A2 for ; Mon, 13 Jun 2016 18:26:56 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 13 Jun 2016 09:26:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,466,1459839600"; d="scan'208";a="1001001134" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.87]) ([10.237.220.87]) by fmsmga002.fm.intel.com with ESMTP; 13 Jun 2016 09:26:32 -0700 To: Beilei Xing , helin.zhang@intel.com References: <1462514861-29419-1-git-send-email-beilei.xing@intel.com> <1462514861-29419-19-git-send-email-beilei.xing@intel.com> Cc: dev@dpdk.org From: Ferruh Yigit Message-ID: <575EDEB7.1050003@intel.com> Date: Mon, 13 Jun 2016 17:26:31 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <1462514861-29419-19-git-send-email-beilei.xing@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH 18/29] ixgbe/base: update swfw semaphore function X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2016 16:26:57 -0000 On 5/6/2016 7:07 AM, Beilei Xing wrote: > For X540 and forward it is possible if a system reset occur at the > right time to leave the SWFW semaphore high. This new function will > attempt to grab and release the semaphore. If the grab times out it > will still release the semaphore placing it in a known good state. > The idea is to call this when you know no one should be holding the > semaphore (i.e. probe time) > This patch alse fixes possible race issue between ports when issuing typo: alse > host interface command by acquiring/releasing the management host > interface semaphore in ixgbe_host_interface_command. > > Signed-off-by: Beilei Xing > --- ...