From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4B97E45A6D; Tue, 1 Oct 2024 00:12:46 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0DB2140267; Tue, 1 Oct 2024 00:12:46 +0200 (CEST) Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) by mails.dpdk.org (Postfix) with ESMTP id 0F21E40150 for ; Tue, 1 Oct 2024 00:12:45 +0200 (CEST) Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a8a7903cb7dso433966966b.3 for ; Mon, 30 Sep 2024 15:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727734364; x=1728339164; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nM9PDSQnxjzayE8ZuM1bdKXOmd3srr9yeh0Ox1jz9oQ=; b=E+EWkNJoH+/4VV0dymXSmglmzytEJtDPCWaXUzYagt2U84JMpm9dSorT3ELP8elXN8 cgRpeN+JOY0s7CTDpiBqIT/rilNBNLcZyNTSJyQZUFLq9kz81WAVyn3kezGOx36ht/8d ZyKlKv+Qm72mtqc3waa/Bfw00i8+oILEpIdqjTgLKIFqPS6Koc+i/Lyz3pcz4KCcbIN8 xGJv0VD+bQT/3ZXOq5g8jLHr32UrlTwSTFF1H+AKVcQ96Ylf4OFComPe547+J/OqxUmv L1HqoK/WspFOJP6tWWnZNQbXvKHXenWywDmm+wU97aywm77WhatLiWB7Q5ipeXEV6M6w AP3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727734364; x=1728339164; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nM9PDSQnxjzayE8ZuM1bdKXOmd3srr9yeh0Ox1jz9oQ=; b=Gh5SK/Jh54f+7eBdvJjuGGqVmkA+nTH82D6JhKRMNkuA9FwpsxSuHyWxOHcN2+I3Nu 48k1f+Yp8LSqWXVwMMHDWWO0LtbJhji54vb6V48SRnjgctMfJTkWseN6iEWIP15FkjVR hwIM1bfVT/NTLYUJ1VT7G/BaaOFHkfXuST8wO1+OfYxNqaCVzg4tuuUtjjGLamC/hbi/ 8rEjn8l3cqFDkJt/jGJoF+CuS7OIIGTqrS2z17lbYZBXTegtln8fQZp0PV1gktg6i39/ LadrB38t82jN3NczfWtp4kU7j8euT9utj43jo+ZdfgivEG3plR7zwwwxLaWJu9GGFttP 1zxg== X-Gm-Message-State: AOJu0YyhFJ20cMpLynvlVsDNzTnF3vYOIzOVO8UjE0PB69OgtLlzbE03 McClth9v1WxLg+uG1tKBJe0jA+vqRqXyxsGI1QM2ZyxALdY4L1iCkMAMs4s+ X-Google-Smtp-Source: AGHT+IE50uMoiOUfhYajbFP5RhcltFSNamfq8Y2bXv+mLeNcDP97ItSOL1LlxxVTsc5RbZyWvyGFXw== X-Received: by 2002:a05:6402:4307:b0:5c8:7696:7bfb with SMTP id 4fb4d7f45d1cf-5c8824d3cdamr22793668a12.10.1727734363916; Mon, 30 Sep 2024 15:12:43 -0700 (PDT) Received: from localhost.localdomain ([176.12.188.220]) by smtp.googlemail.com with ESMTPSA id 4fb4d7f45d1cf-5c88240a341sm5247561a12.24.2024.09.30.15.12.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2024 15:12:42 -0700 (PDT) From: Isaac Boukris To: dev@dpdk.org Cc: stephen@networkplumber.org, bruce.richardson@intel.com, roretzla@linux.microsoft.com, dmitry.kozliuk@gmail.com, david.marchand@redhat.com, Isaac Boukris Subject: [PATCH v2 0/2] Improve TSC frequency accuracy on Linux Date: Tue, 1 Oct 2024 01:08:30 +0300 Message-ID: <20240930221153.268251-1-iboukris@gmail.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240921140022.107239-1-iboukris@gmail.com> References: <20240921140022.107239-1-iboukris@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Changes in V2: - changed rounding to 100KHz which should be pretty safe. - limited the tsc_known_freq flag check to x86 arch. Isaac Boukris (2): timer/linux: lower rounding of tsc estimation to 100KHz timer/linux/x86: override TSC freq if no tsc_known_freq lib/eal/common/eal_common_timer.c | 3 +- lib/eal/common/eal_private.h | 2 +- lib/eal/freebsd/eal_timer.c | 5 ++- lib/eal/linux/eal_timer.c | 56 ++++++++++++++++++++++++++++--- lib/eal/windows/eal_timer.c | 5 ++- 5 files changed, 61 insertions(+), 10 deletions(-) -- 2.45.0