From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-la0-x236.google.com (mail-la0-x236.google.com [IPv6:2a00:1450:4010:c03::236]) by dpdk.org (Postfix) with ESMTP id 47C8A9DE for ; Fri, 6 Dec 2013 13:42:16 +0100 (CET) Received: by mail-la0-f54.google.com with SMTP id b8so259406lan.27 for ; Fri, 06 Dec 2013 04:43:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=IQovr+jkXeJ0s7sOXuahEs3Sknnfi9r9O7/KbNhaTj8=; b=e3iPgbKNnL36dp5OxiM8haZx8uoepSzFVL0gT6SZHvWVDndKWgaCSEPIK9HzwWkqi8 pmMQUzdkEW7GOmKEYLnhh8TWIIOJMKELv9CVlATBDEv0/xRHKaKYtoGTbkILVmyrmGzW tAsbRKmo9wOXce0K+z7hAeq6sLtINTD+iixUTsbYWBm/nOcc640l+03e36Ymywr7dW4+ KEHoVJ+ZuHRxwgpdng1veWFfTq0k4SBPNBomE03TxaWX+Naq3DHRjqDK1rV2ZF1IEHp4 0FFCitlxcqGHb2KSNpO9wUggL6ivR03YQB/snrIxfJNxrlePfIlbpUoT1+wPZyp0Vmsr bsLw== X-Received: by 10.152.238.9 with SMTP id vg9mr107457lac.55.1386333798753; Fri, 06 Dec 2013 04:43:18 -0800 (PST) Received: from [192.168.15.116] ([87.236.23.254]) by mx.google.com with ESMTPSA id tc8sm19423044lbb.9.2013.12.06.04.43.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Dec 2013 04:43:18 -0800 (PST) Message-ID: <52A1C65F.7000308@gmail.com> Date: Fri, 06 Dec 2013 16:43:11 +0400 From: Dmitry Vyal User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Thomas Monjalon References: <528F4E41.2000405@gmail.com> <52987236.3020707@gmail.com> <3439195.NJQbpGS54N@x220> <1535896.tMWsNx1bj7@x220> In-Reply-To: <1535896.tMWsNx1bj7@x220> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Sporadic errors while initializing NICs in example applications, dpdk-1.5.0r1 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: Fri, 06 Dec 2013 12:42:16 -0000 On 11/29/2013 04:39 PM, Thomas Monjalon wrote: > 29/11/2013 13:25, Thomas Monjalon : > > Please check that your hardware do not support invariant TSC. > It would explain why you need to fix frequency. > > I attach a simple code to test CPU feature "Invariant TSC". I compiled and ran the code on all the platforms I had troubles on. Invariant TSC is supported everywhere. > It seems that the file is stripped on the mailing-list. > Code inlined: > > #include > #include > #include > #include > > > int main() > { > uint32_t a = 0x80000000; > uint32_t b, d; > > __asm__("cpuid;" > :"=a"(b) > :"0"(a)); > > if (b >= 0x80000007) { > > a = 0x80000007; > __asm__("cpuid;" > :"=a"(b), "=d"(d) > :"0"(a)); > > if (d & (1<<8)) { > printf("Invariant TSC is supported\n"); > } else{ > printf("Invariant TSC is NOT supported\n"); > } > } else { > printf("No support for Advanced Power Management Information in > CPUID\n"); > } > return 0; > } >