From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id C2B365939 for ; Wed, 9 Apr 2014 17:57:39 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 09 Apr 2014 08:59:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,827,1389772800"; d="scan'208";a="517599938" Received: from irsmsx104.ger.corp.intel.com ([163.33.3.159]) by fmsmga002.fm.intel.com with ESMTP; 09 Apr 2014 08:58:45 -0700 Received: from irsmsx101.ger.corp.intel.com (163.33.3.153) by IRSMSX104.ger.corp.intel.com (163.33.3.159) with Microsoft SMTP Server (TLS) id 14.3.123.3; Wed, 9 Apr 2014 16:58:10 +0100 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.78]) by IRSMSX101.ger.corp.intel.com ([169.254.1.246]) with mapi id 14.03.0123.003; Wed, 9 Apr 2014 16:58:10 +0100 From: "Ananyev, Konstantin" To: Didier Pallard , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v3 2/2] igb: release software locked semaphores on initialization Thread-Index: AQHPUzABuOj++AqNgESd/qTlfRAr7JsJcmFA Date: Wed, 9 Apr 2014 15:58:09 +0000 Message-ID: <2601191342CEEE43887BDE71AB9772580EF95738@IRSMSX105.ger.corp.intel.com> References: <530DC788.8020706@6wind.com> <1396963798-13123-1-git-send-email-didier.pallard@6wind.com> <1396963798-13123-2-git-send-email-didier.pallard@6wind.com> In-Reply-To: <1396963798-13123-2-git-send-email-didier.pallard@6wind.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3 2/2] igb: release software locked semaphores on initialization 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: Wed, 09 Apr 2014 15:57:40 -0000 -----Original Message----- From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Didier Pallard Sent: Tuesday, April 08, 2014 2:30 PM To: dev@dpdk.org Subject: [dpdk-dev] [PATCH v3 2/2] igb: release software locked semaphores = on initialization It may happen that DPDK application gets killed while having acquired locks= on the ethernet hardware, causing these locks to be never released. On nex= t restart of the application, DPDK skip those ports because it can not acqu= ire the lock, this may cause some ports (or even complete board if SMBI is = locked) to be inaccessible from DPDK application until reboot of the hardwa= re. This patch release locks that are supposed to be locked due to an improper = exit of the application. Signed-off-by: Didier Pallard --- Acked-by: Konstantin Ananyev