From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] eal: fix set_tsc_freq Date: Mon, 27 Jul 2015 14:41:22 +0200 Message-ID: <2586046.X6ybzJAoRe@xps13> References: <1437999475-32438-1-git-send-email-sergio.gonzalez.monroy@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Sergio Gonzalez Monroy Return-path: Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by dpdk.org (Postfix) with ESMTP id DF1437E6A for ; Mon, 27 Jul 2015 14:42:38 +0200 (CEST) Received: by wibud3 with SMTP id ud3so138354745wib.1 for ; Mon, 27 Jul 2015 05:42:38 -0700 (PDT) In-Reply-To: <1437999475-32438-1-git-send-email-sergio.gonzalez.monroy@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-07-27 13:17, Sergio Gonzalez Monroy: > Fix error where TSC freq is 0. > > The logical OR operator evaluates to 1 if any of its operands is > different than 0. > > Error showed later while initializing PMD: > EAL: TSC frequency is ~0 KHz > > PMD: eth_ixgbe_dev_init(): Hardware Initialization Failure: -30 > EAL: Error - exiting with code: 1 > Cause: Requested device 0000:84:00.0 cannot be used > > Fixes: 040cf8a41187 ("eal: deduplicate timer functions") > > Signed-off-by: Sergio Gonzalez Monroy Applied, thanks for the quick test and fix, and sorry for the trivial error.