Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp196351rdb; Thu, 25 Jan 2024 12:14:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IHiY79mF8aq00AljuilYIFtneJyCO+vUJaavg6ARr2P6GpVYNrLCaZRip9IPOhRq3Yu8PZ7 X-Received: by 2002:a17:902:d342:b0:1d7:3b65:764d with SMTP id l2-20020a170902d34200b001d73b65764dmr231418plk.91.1706213682069; Thu, 25 Jan 2024 12:14:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706213682; cv=pass; d=google.com; s=arc-20160816; b=lFGwbwbObho+wKeTqMqx7G/RUUtM7xdsZ7jaicFbLdI8bis5zc0klPNPt70W2aiGgB LlFQ0NKGtIzuQR5de9uiFPPwtjOyqzsMf/Axr115zJvu7JnVCysTUq0aQrZcHOwJJm0x 2asllJ49oCBFV0nyInAbLBpqQU4Ot20J90innOHD6MylrzrmklfsxIb4TcmiTSv5h0HH qykuUYb5K5CSiTDkQm/K21H10wYhMCod5j15jSVACWs8d7OAcoHPh9d1ZcubGn/a0Zz2 4Ma4OBqGNA75yl7dRKRFVt+K2ola9gpt7hGDtCYT3PY4GGa7ir2qrqLtSzRl7rtgaOiG 9UFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=PaIo5QJEoCWgfuIV2H0XngC0pt3mav+j7mul9cTp4+o=; fh=yF5pnpNwa/m1K+M6hkodoEsWA1yeDx7AE+KM1A5ORjI=; b=iaB7Y4xYPruYZiMx2L5g57NBZN4fWZryBAqIUzfraSgvtZIZV5ddEGOwu+mD60ESK9 qCFRYAgEbJvwEUmV4plqSU1xNhjpNQaxgLDb/UVNWQX1n4+6u2FtqkiOtgC4w8fNpIyb bmoQkE5POF0mZSlGRVO9OMv0Su7HlNtlmo4VBaeM32+290B/xtCtgRT2riKZk7zJU6oe vKoDFoaqGCNWjR2u1FTSmBN4xOPYHAH6fK1T6+1EENeAt+DdeMgZ6pBJj150RWTmwPsb 33qVHN9B/k8mlgZnMwN1++VIG144Nb4sOMD+pyUNKVoeAlZDfG+ii32KG70Bf4HA3zsR hNiQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=refS9tKZ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-39236-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39236-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id iw2-20020a170903044200b001d88b304d19si1531283plb.297.2024.01.25.12.14.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 12:14:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39236-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=refS9tKZ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-39236-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39236-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DED5C29AD55 for ; Thu, 25 Jan 2024 20:13:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 176AB137C5B; Thu, 25 Jan 2024 20:13:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="refS9tKZ"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="/0aUNS7m" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 08A2C137C4F; Thu, 25 Jan 2024 20:13:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706213597; cv=none; b=SFuzRH+uYkzLaiIqjTcNrgBfW9UfKaROxuVCwphJOD0hHRBTQHkWzd7WlPW6xhZY2OmgWPHYOemRzCtnyDBHG47fJZKvLXlJltrcJ/atC09BzqxNKcRsnLxKG3WMStU2sdbl8IRttgEecc9OjDsQHz8UsAk8tdxHMn+F3GcoRx8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706213597; c=relaxed/simple; bh=kjBeNGNqVDJc9FrnmImpOQIUdMHiixU4ZSE2URt8uJM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=YQsSoNKqr7tAjcT7sgilbI6nZRIC9TU+FSW6El7UIGEQof6hnofXGF7qY8JOsU8PUUOnFcWO76GlwNBI+FcUzPk3ABg19eKisHxpbAIOgAh5HZUFd35wEykrPnu6NgVLXftIgBur9fk1h5f1juESHemy9CZR1Xg/ZV+uIXn0v3M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=refS9tKZ; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=/0aUNS7m; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1706213591; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PaIo5QJEoCWgfuIV2H0XngC0pt3mav+j7mul9cTp4+o=; b=refS9tKZshoR9HF/jitIxpdw4PBP0KN2fSJDL50TBNSSE4nLT1xt/CiU8WD/qIUovzHFTj Dc1+uMR0mM/KNlOw2Jvc33Eg2sUO4YQugup7mPrKBJK+oRlVqLAh7gD4b37QPoYmblM+XQ DQp3np2HM00y5lR8canjfuWqIcbVb1nBYsJdJgolXNBnHPesw+30bKJr2n+Fcxgg1LSpVZ TEHNSqlzaD3Xi0LltGlhaMWvOF/jHp7XMZbJ+eY+Da8jCC8l0vuxi35Ugn0Mu/WQktYAfX slvgSGHkC8u7+hGZkQxP3/6w39IISbYUt9i3xk04KUEEfRDoK8x5VWsuqSJnXQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1706213591; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PaIo5QJEoCWgfuIV2H0XngC0pt3mav+j7mul9cTp4+o=; b=/0aUNS7maUI9XK8hviQ15XXGp7RCYbM88im65y6z+TXz1RgzScO+jbYOBdJsp5cGHutSS2 MYHbkz2Agp+po5Ag== To: Simon Horman , Peter Hilber Cc: linux-kernel@vger.kernel.org, "D, Lakshmi Sowjanya" , jstultz@google.com, giometti@enneenne.com, corbet@lwn.net, andriy.shevchenko@linux.intel.com, "Dong, Eddie" , "Hall, Christopher S" , Sean Christopherson , Paolo Bonzini , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Wanpeng Li , Vitaly Kuznetsov , Mark Rutland , Marc Zyngier , Daniel Lezcano , Richard Cochran , kvm@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [RFC PATCH v2 2/7] x86/tsc: Add clocksource ID, set system_counterval_t.cs_id In-Reply-To: <20231224162709.GA230301@kernel.org> References: <20231215220612.173603-1-peter.hilber@opensynergy.com> <20231215220612.173603-3-peter.hilber@opensynergy.com> <20231224162709.GA230301@kernel.org> Date: Thu, 25 Jan 2024 21:13:10 +0100 Message-ID: <87le8dgoix.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Sun, Dec 24 2023 at 16:27, Simon Horman wrote: > On Fri, Dec 15, 2023 at 11:06:07PM +0100, Peter Hilber wrote: >> @@ -1327,12 +1334,15 @@ EXPORT_SYMBOL(convert_art_to_tsc); >> * that this flag is set before conversion to TSC is attempted. >> * >> * Return: >> - * struct system_counterval_t - system counter value with the pointer to the >> + * struct system_counterval_t - system counter value with the ID of the >> * corresponding clocksource >> * @cycles: System counter value >> * @cs: Clocksource corresponding to system counter value. Used >> * by timekeeping code to verify comparability of two cycle >> * values. >> + * @cs_id: Clocksource ID corresponding to system counter value. >> + * Used by timekeeping code to verify comparability of two >> + * cycle values. > > None of the documented parameters to convert_art_ns_to_tsc() above > correspond to the parameters of convert_art_ns_to_tsc() below. Obviously not because they document the return value. The sole argument of the function @art_ns is documented correctly. > The same patch that corrects the kernel doc for convert_art_ns_to_tsc() > could also correct the kernel doc for tsc_refine_calibration_work() > by documenting it's work parameter. That's a separate cleanup. Feel free to send a patch for that. Thanks, tglx