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 769C645AA0; Thu, 3 Oct 2024 14:30:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5351A4042C; Thu, 3 Oct 2024 14:30:27 +0200 (CEST) Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) by mails.dpdk.org (Postfix) with ESMTP id 64A5D402F1 for ; Thu, 3 Oct 2024 14:30:26 +0200 (CEST) Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a8d0d0aea3cso125616066b.3 for ; Thu, 03 Oct 2024 05:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727958625; x=1728563425; 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=YdEvVZ4aYZDhUXd2oolge++b0TWZTum0EAPcuug2e+g=; b=NXPvog+aiLL349gHnJ/1ykqi4YeLSNfZ5msc7z9P+Bshpl1ZMIN+DTZ03AbZg73ySz QHanjo8G4y7JHBBXA9kb8+s36TuNMywKbgpXEFSwmiWS6WdUAlerbbIXcQ9Oh4g2VC+4 D3tI4YTupsYevOCJ+IA9FnPhFNgoYwz2JMErVQD6s7bHSUA2RceTMflFEtC7Ht/KzHLe NQeBTALjHe0u4Xs1g38ziG3+2NnEsuKJ0/xhWwGzCMrSbrmhY/tLzPjGnh6Lefbax4rV v1ybvi1UrPUqk+2ik8NLXUa24AQBazbNda5zvuYyMOyLFXJrlUwqDw/P//RGdPTPBniT Ix/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727958625; x=1728563425; 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=YdEvVZ4aYZDhUXd2oolge++b0TWZTum0EAPcuug2e+g=; b=tqYwrwC6famZEseeUNGnHh9flqNRAWylp9AxCcnukPThUsv972a3J65NHRu2Z88TVh utGoCTSLusq3nsHDWqAU+rNt+tV8M68ijNqfSulEkuOAPqlR9KVrl5+qDu3a9WnZtiQA Y94t0OmJO0txb/eYbX+/SgZfwZAcRGyca0+bDnejzBm1OIPxMY+qtYPsD37mhPORhlWv f/9GaVFDzmKIj3lHxEruiDbBzAhrirj0yOSmhBVEK1SDdr5NGH+gosNODwE4cdmzKjeH z+NIZI6MicvLRJc6kQtQtcI6NoNSOFw7BkoKfvH9+GHp3j5FTYOhjFCL+l++QlxyTcMt Tg+w== X-Gm-Message-State: AOJu0YyRBXkx0TlAcqpOrGbIO4ZH7d9cyjsDlImkTx7ppHpbQp55uDcm /x+8bjbKnzYIBl3oCdqaph4hxLvIL/v0pN3zPpM+YvyOaqzrGB7SU9ZYyRLW X-Google-Smtp-Source: AGHT+IHOWu+3qechsX+C0R9jd4Tpspwzsr9ewLB+B+C7BbGAQq4OWiyQoEs/XLXBcKmefwCCi9xHIg== X-Received: by 2002:a17:906:f58b:b0:a8d:29b7:ecf3 with SMTP id a640c23a62f3a-a98f8216ccfmr614303866b.13.1727958625258; Thu, 03 Oct 2024 05:30:25 -0700 (PDT) Received: from localhost.localdomain (85-250-24-111.bb.netvision.net.il. [85.250.24.111]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a9910473a94sm79668566b.169.2024.10.03.05.30.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 05:30:24 -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 v5 0/2] Improve TSC frequency accuracy Date: Thu, 3 Oct 2024 15:26:02 +0300 Message-ID: <20241003122819.354499-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 if V5: - fix absolute delta calculation per Bruce's comment. 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