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 2217245A1C; Tue, 24 Sep 2024 19:04:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C47E8402BB; Tue, 24 Sep 2024 19:04:14 +0200 (CEST) Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by mails.dpdk.org (Postfix) with ESMTP id 3D71C40274 for ; Tue, 24 Sep 2024 19:04:14 +0200 (CEST) Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-70b2421471aso3654832a12.0 for ; Tue, 24 Sep 2024 10:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727197453; x=1727802253; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=pEhCrRv3yHCx+3ZlbCXL8IBVIM3ZhawgeNcekhzCe7I=; b=VPv6w56RrzwRF+BM89mp9HEci/PLXnJAUjl7LpGIxMbLhBYG0r+rw+kbNnEyVeKnTn A1HuVxxDr5s8KJfmiWsnciS4FT2dn2MwmD8kiZN9IN8Q3KVZ2Hl/XpNYPuY+9cfWBSdC znzsNHplQqSPXrP+M3w9t/mGfw2omJgyHuPIBVWnTLd2kgpjdrPHmKK6ILM5otspOqzt JOj684bLTo+xmGrdCzNjWqMqAV8oTWg9D+rMnzq6THuA1JN9CHatSHQ95LasLt54qNq/ tcIJe9mm2f2Kppr0WbL7WsceMEzjhD2T8fVeOxC4RJK5otAeCCYzJXI/YcOcg8VHn5nR dphQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727197453; x=1727802253; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pEhCrRv3yHCx+3ZlbCXL8IBVIM3ZhawgeNcekhzCe7I=; b=ZhoTRWxsMHy9AS9PDMbwvPoCg6xOiJAte5dFjIiT8SDrUscJD8/7MK907iWmzN+EhB DGTzdZ97uEVl2l7n2IFN/jtXPk9ORKyCFP23lyOhgkIcoM/m+8tYItPvwQTs+U1kRa1/ L793tCXUNEI07d8teTozpmybUiAGubBfMZ36WBLL3gNLyUGtHrlCZy5HwPecKuSgvGvF cbXqKYmVR4I6sCbWgqcyv0S7q1XbB4yL4SeW1kbl3V2Ccp25nvSdoIj6iAcUcw1hk2o9 sMhO2HskC5ktF8ohqSFhY8RQo9mCDTwX0MdN9no1S1gZloi1t/tb46UDpumr7aGDksSR QXMA== X-Gm-Message-State: AOJu0YwoV8zPGuc9Oaw8net7b33m6g7OjrgvOj2U+2xsLRzULCYltlmN FfzBsVWOX2e/P2EXBA5P/Q8mGG91CR/EjRH/W3Vn5svtXsjXddT+RtohlYCLVGDC8GM3pgmaIjn hQpn3ItrBNWnI3SXYbHM5PkFdaYHQD+1Q X-Google-Smtp-Source: AGHT+IF0uLR4CxaZ9qmYe6qYcTT5N3Hx8kw/sADnbNUJ9LPRplQRXoqDuFMT7UajLw+GDF0ZZ9W/ww6OoAWlnFNU4o0= X-Received: by 2002:a17:90b:3850:b0:2d8:c7fb:340a with SMTP id 98e67ed59e1d1-2dd7f763a79mr18530804a91.38.1727197452964; Tue, 24 Sep 2024 10:04:12 -0700 (PDT) MIME-Version: 1.0 References: <20240921140022.107239-1-iboukris@gmail.com> <20240921140022.107239-2-iboukris@gmail.com> In-Reply-To: <20240921140022.107239-2-iboukris@gmail.com> From: Isaac Boukris Date: Tue, 24 Sep 2024 20:04:00 +0300 Message-ID: Subject: Re: [PATCH 2/2] timer/linux: override TSC freq if no tsc_known_freq To: dev@dpdk.org Cc: stephen@networkplumber.org, Tyler Retzlaff , Bruce Richardson , Dmitry Kozlyuk , Pallavi Kadam Content-Type: text/plain; charset="UTF-8" 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 Perhaps this was a bit hastily, I got an automated failure report on "arm64-native-linuxapp-gcc": https://lab.dpdk.org/results/dashboard/patchsets/31106/ Not sure which patch caused the problem, looking at the kernel code it looks like 'tsc_known_freq' is only set for x86 arch, but it could be the other patch and maybe lowering the rounding to 10KHz is too aggressive, maybe better 100KHz or 1MHz. As an alternative to 'tsc_known_freq' detection, maybe just provide an init parameter to set the frequency manually, along with some known-issue documentation. Maybe we should just allow to specify the frequency as a parameter at init