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 BB6D345A9E; Wed, 2 Oct 2024 18:58:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4C8214025E; Wed, 2 Oct 2024 18:58:51 +0200 (CEST) Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) by mails.dpdk.org (Postfix) with ESMTP id 6206F4025C for ; Wed, 2 Oct 2024 18:58:50 +0200 (CEST) Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a8d6d0fe021so1168791466b.1 for ; Wed, 02 Oct 2024 09:58:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727888329; x=1728493129; 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=5N9v3MtEAv5hN9KHvItok+MrLZF4hdND0imHpJyAqaQ=; b=TOXgZhcOGtMOCRdl/gqRemfuUCwMspl/c9JhiJY+WLHno34ok7+I/DTA+Kt0cBXLXX W4y9YaTMOj25Jpg/BzyfiQy+WmcwKXW9RuG3yF1fh4Dgl6gmLV5akXFpnZJ6vwS+o+xM Wg9lUYG0+v4MLg24X6X7lsDZ7VoYm2xfzUKhiL8Mki88fYVu94BiFfkshytnnEJHdv3M +HIepp3Rg70g54+AJZ5B+7XsyHdarLhZIRDx/SxeVzwmxF4QjzO5q9x/MaZM9ealskCQ g0sxMshRQdf3wH2iHQjRTUXjLRjAIecZdHbF4s480Ejqf9URb81LqE5pNYt2sg7WB/+X wr+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727888329; x=1728493129; 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=5N9v3MtEAv5hN9KHvItok+MrLZF4hdND0imHpJyAqaQ=; b=N3P0d6H7gV/0qtikeaj6iSywF74+9cdf0oF/BZuglIjrgASVLZeX3GwzH1zy8F/yLH kLXMnXF1Mph8lA+KaP+GPP6t19ItZByHNz5ldpqUNStJrFre+boNYbftSTW39w5q0bXV KWYCcUhlT6VZ1KQ9o+uRjjMa7Zd1Kq0dHiP3CrD9olCjKQxgC79R77mxs6SeZ2pTqTse I+I+qL9hXeriKnLMGRZr1aijpwkKbDkw9FiDM4WfHAIKWbUmxNJ6OwNqFzW748WtjU9w slyd79cv7HOVIioW+6pSx2InF+PDG4/oaIdYhNEccCQavi/KpOZiq13oec5w9VLSj4eS DxUw== X-Gm-Message-State: AOJu0YwuEVWw29xiW9BK5bDQAiU4tpaeU08B4fo2TXzUchMoFJWW4NNh 1l6KASTMahDwcvhm2AW8H6CHSua/Yu3O1S4H/a7O7L6r0mpw49QcFLhBCClB X-Google-Smtp-Source: AGHT+IGgXNWkNM02um1ZDwiTjWsmuPVNtZYpIxTULMzh2fodc8OQwf9f82hQ0Tfi42bQr4W+0HeBAg== X-Received: by 2002:a17:907:9348:b0:a86:6fb3:fda5 with SMTP id a640c23a62f3a-a98f8270820mr347462766b.32.1727888329083; Wed, 02 Oct 2024 09:58:49 -0700 (PDT) Received: from localhost.localdomain (85-250-29-188.bb.netvision.net.il. [85.250.29.188]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a93c2777254sm889947166b.9.2024.10.02.09.58.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 09:58:48 -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 v4 0/2] Improve TSC frequency accuracy Date: Wed, 2 Oct 2024 19:56:34 +0300 Message-ID: <20241002165840.341116-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 V4: - lower ronding on Windows too - on freebsd prefer system tsc_hz Isaac Boukris (2): timer: lower rounding of TSC estimation to 100KHz timer: allow platform to override cpu TSC frequency lib/eal/common/eal_common_timer.c | 3 +- lib/eal/common/eal_private.h | 2 +- lib/eal/freebsd/eal_timer.c | 8 +++-- lib/eal/linux/eal_timer.c | 59 +++++++++++++++++++++++++++---- lib/eal/windows/eal_timer.c | 11 +++--- 5 files changed, 68 insertions(+), 15 deletions(-) -- 2.45.0