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 30EE345AA0; Thu, 3 Oct 2024 17:14:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1C2D64042C; Thu, 3 Oct 2024 17:14:31 +0200 (CEST) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mails.dpdk.org (Postfix) with ESMTP id 43E7D40614 for ; Thu, 3 Oct 2024 17:14:30 +0200 (CEST) Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-71788bfe60eso899410b3a.1 for ; Thu, 03 Oct 2024 08:14:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1727968469; x=1728573269; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=QE4wDxeQtVM2bGSTxUXPcTw9PzKSJbPFhiJOcdfOqB4=; b=PcNlqoEX4N1qCjRbF/9IzqbfMkkuv2uIXmxwS9yCJmuB7pRdsqppcFrXd/Zm2XTZ10 tFbrrWZd1RqMFTgKmiW0PK7rPqpsUMIlg8YpuMMzh6FpJAoPo1PrcrSjILuodq1EO3I7 bZrJyfhPcYfM61+C/Nc96TXceyRRYiHjfLJia2EGOa4KjAAvpme9nIqEezN2ZwO02DvM 4pKhW61eKwcxRmFJCEFuwCu2Dgp1Rw1qddyO2aEQJWGT+8eS033+pHkcYlI6KEw2wtbB TzTqSYcLG4G8zMscPfu77dBPew/nw5qsXUXAAV8rE5Vak9LDXP3UI2cbm4Vuqf8DKIDS kMlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727968469; x=1728573269; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QE4wDxeQtVM2bGSTxUXPcTw9PzKSJbPFhiJOcdfOqB4=; b=aL3vEA7v60SV5Ft9svUS9lnO51OIDO/oiYhtmVERQwvUOoLZYb49sC4TPFNAYQhZEu DCbphsPqhs0ajDA3F4y68lCQESqYuG5MD2kCSf0SssIcGpqUhlQI+GSa7jf3Qn0ATN4H Bha6lVuavTsIMpC/ODkjJW+ftx5L4Xl8pkuHISHc23/8aOGWiQzu1kFRU2HWEVNsr4gC 1EVyavqT9RHB2KFrnYvqCpg5r4CxNnks3s2g7OezQJzETrGNYEihmCNiMZ+OmmvDpzWV 4aJ2sBxJA90x7SGx1eoETmKDB5gLDD/dyMcV6WnFX6qJgCvOmhorS1rShCBad/rG4lDG FePg== X-Forwarded-Encrypted: i=1; AJvYcCVgLBWnymhiSEOdKmdQ0Ast/c4q4+O/Xh1/4Ytu/E1Nx8UNL5rUbA7x+IiR33SHDuYc/3o=@dpdk.org X-Gm-Message-State: AOJu0YzmSUWqLmJ6LsJxw9JwK5DCzcRP54dOt9dvyWe1q95fkEFTVyjg PK81ybFctFM5S1bTBYenlESkR0ILp25ZO9vsiOlG1R/oWwKmPWGbCdwPSkt18EQ= X-Google-Smtp-Source: AGHT+IGVPPVZ0lvd8bpCXKAtp6RBeTK0WKOHdCvWmIQO+0BcHDDFoTpeNQPl5XMxslyDByo7Gy9+5g== X-Received: by 2002:a05:6a21:2d8d:b0:1d2:e458:4063 with SMTP id adf61e73a8af0-1d5e2d9e263mr9263328637.33.1727968469326; Thu, 03 Oct 2024 08:14:29 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71dd9d9bef6sm1489911b3a.96.2024.10.03.08.14.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 08:14:29 -0700 (PDT) Date: Thu, 3 Oct 2024 08:14:27 -0700 From: Stephen Hemminger To: Bruce Richardson Cc: Isaac Boukris , , , , Subject: Re: [PATCH v5 2/2] timer: allow platform to override cpu TSC frequency Message-ID: <20241003081427.181eb2d2@hermes.local> In-Reply-To: References: <20240921140022.107239-1-iboukris@gmail.com> <20241003122819.354499-1-iboukris@gmail.com> <20241003122819.354499-3-iboukris@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Thu, 3 Oct 2024 15:06:06 +0100 Bruce Richardson wrote: > On Thu, Oct 03, 2024 at 03:26:04PM +0300, Isaac Boukris wrote: > > The CPU provided value is often not accurate, allow overriding it > > based on info from the host OS. > > > > On Linux X86, if the tsc_known_freq cpu flag is missing, it means > > the kernel doesn't trust it and calculates its own. We should do > > the same to avoid drift. > > > > On freebsd we have access to the kernel tsc_hz value, just use it. > > > > Signed-off-by: Isaac Boukris > > --- > Acked-by: Bruce Richardson Acked-by: Stephen Hemminger