From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by dpdk.org (Postfix) with ESMTP id E64D968C1 for ; Wed, 9 Apr 2014 18:36:10 +0200 (CEST) Received: by mail-wi0-f178.google.com with SMTP id bs8so3540193wib.17 for ; Wed, 09 Apr 2014 09:37:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=AjuTSVA/xPCvC8xIMm0ZU2TXt4bOZzgmLYj2WyCI49A=; b=hAMnRSpbUjitnAFrVquZjBP1g0ItmxSMRu1jxQQMmYjadyOgcy+Wmp04U2196Nfdoc BjJ9DO7DXCrQrK04I0mmV96hhFfgJzTWpXulxS+RqCF0u4GjZsNYMVCEcFdJDVv1TAzH 3I1GHyxuWo/enVZ+YIDBEsr/bMb2VDRgJKSlzhcf8Y/OdsaQaYNcc6Az7O/y2+8IxbSS 7WKmLD2lVvDdFDwrkfywpjEtEYgUoEHUoZIizuC+lz4cf6r8jwueS/+bL+B9YuCqMNi7 iM8cdDPxaj+giiIEpNaT1r52yHtVqFqV7pr8lVXUIGcwVBC9G6v9KFiaby0aveEkc1pK iZdw== X-Gm-Message-State: ALoCoQkq9ULwPjqDxc/4b257FtEXjfTzGjfDQEv9R2o4muUE02Kt/7lnn+OWpWBBwCzohbAKdaHJ X-Received: by 10.180.211.207 with SMTP id ne15mr38211683wic.31.1397061467703; Wed, 09 Apr 2014 09:37:47 -0700 (PDT) Received: from xps13.localnet (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id s3sm2391679wje.36.2014.04.09.09.37.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Apr 2014 09:37:46 -0700 (PDT) From: Thomas Monjalon To: "Ananyev, Konstantin" , Didier Pallard Date: Wed, 09 Apr 2014 18:37:44 +0200 Message-ID: <1541024.bLGOKJfuop@xps13> Organization: 6WIND User-Agent: KMail/4.12.3 (Linux/3.13.7-1-ARCH; KDE/4.12.3; x86_64; ; ) In-Reply-To: <2601191342CEEE43887BDE71AB9772580EF956FF@IRSMSX105.ger.corp.intel.com> References: <530DC788.8020706@6wind.com> <1396963798-13123-1-git-send-email-didier.pallard@6wind.com> <2601191342CEEE43887BDE71AB9772580EF956FF@IRSMSX105.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v3 1/2] ixgbe: 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 16:36:11 -0000 > It may happen that DPDK application gets killed while having acquired locks > on the ethernet hardware, causing these locks to be never released. On next > restart of the application, DPDK skip those ports because it can not > acquire 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 > hardware. > > 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 Applied for version 1.6.0r2. So the decision is to try not modify base driver. But the fix should appear in the base driver one day and we must be careful when rebasing on an updated one. In this case, the fix can be done on both side without being harmful. Thanks for fixing this random failure. -- Thomas