Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2037408pxb; Fri, 17 Sep 2021 00:10:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzODavHbzt8iSdmaecb30ZtfSJOaGrwPH3BOKXnebJFHVph4hHsQkk7AHybx1AmEZwcaRfP X-Received: by 2002:aa7:c5d9:: with SMTP id h25mr10667469eds.159.1631862654471; Fri, 17 Sep 2021 00:10:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631862654; cv=none; d=google.com; s=arc-20160816; b=JTn3GYlBrysunj4VVJMGW+FfFAmzDUhzMBlC42DzB+mv16sBy4lzanUakCH6+y65aa IbBq1ZqigvLEcFOn/MgRvX0n3z0QgtRGxecIVldVOEQZ84GUOsvCT0B9SO3hyvSqFrep fjQSZzNyry44Xzbx1cRskadmIimVmGQHjz4rYEd+OKQuADjuzv94/QIrhHRq/oD+ui73 fRPN1LAGDYMzGD9rV+z0QUdkYkd4AuMpvImNW/jS1UrvXfiHLtYzO6Ca65CuwjxBz/cx WfiZ/+qA0RH1Q/4VWZAgJvJEdFcyChtrecijGz13/FaG0YM9qBWGFS7H20fC96I9zFiL BopA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LLmpS256d6dWCIxzsmhG9HA5MAvk2tpnzJgjN4h0+AQ=; b=NL/xaXOwlHLaggH6OAWzZGpnVjjD05R6IHpH8UATQ+NSS6IgMoPH74+LeCwGR/NXz1 kgERCbuC8DJw0yWdlbMEjxVwGH22Gm08ej/CW550S3DMXqgit92sMpZw9+mSL99Pos+s ytRoRNf7CjnOvQYOh/MJp4DimzE1z6DT/nRsSrIrW3WdokqASszoEZMPOTG3TPPI2Ro1 cUjK7QMiGZNnAdIF5IhG6Wei7IBP8VXH5BJe9x8vGu6zHcAleH8NE6hP6TfyQC7fKooQ 1+DdVddzkWWgQlq9ouffKh5oWC2y2C5WGT4xo9XEx0grgmU8FdiROYXgAhI86H0q9jWv EI5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nfqXMiK+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si6116577ejq.771.2021.09.17.00.10.30; Fri, 17 Sep 2021 00:10:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nfqXMiK+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234244AbhIPVuN (ORCPT + 99 others); Thu, 16 Sep 2021 17:50:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234142AbhIPVuK (ORCPT ); Thu, 16 Sep 2021 17:50:10 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EC31C061756 for ; Thu, 16 Sep 2021 14:48:49 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id b18so22635552lfb.1 for ; Thu, 16 Sep 2021 14:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LLmpS256d6dWCIxzsmhG9HA5MAvk2tpnzJgjN4h0+AQ=; b=nfqXMiK+N0xAtyxTar98ZiBX1mIw4UxLohfvIM3Y0BKEem3uEKscqFo49HdT50aReU 0thvc1nqVbw3XuQpQS8nyOoZv1DA9CT85C8QUC1eTqOUr9BE5AoRrKWDcDrm5VY04DAL BxCX6sqyn2rXTX4x5/PifBORZdDPLtYENMFNzaLItNBua8EBMcT4I+uloJ7k5nXRWh9l xZD7O6tjLO+9aXn51yqj/jT6anq7Ma6abX0SpKcquh3BTHEyUhIpS2K/kzmJql8RotcY bbt73Mlv+rCMP6LDQL1YqhKCxzIHY8J0FRCFnq2fT2EsjZLQLRoPM1aMEYBfLC0EBnBB h+Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LLmpS256d6dWCIxzsmhG9HA5MAvk2tpnzJgjN4h0+AQ=; b=mT/TA47o4wobcP9MFwb9jkZN6hH2iMpdr/kZXOiCpq96pn68Vi6fzOkv2+noLUhD1z L2WiZYVJwiZ3ZEPjoV01bIsgTrM/LEgr0ZggOkMiTNbMrUzKOz2w7tmw8upx6qFP59am hSMJcBhcVeSoWfqiE14fQKzb4uFgehybGV6Joj/HY3+C33L9yTxaXv5iUgvtnIdw32VT fiGYJ0NDC+PUEPEI6khXiG5bwfUAM0J9yrkNiW38Cb4yre9zgUx6jb1ZboQ/+oD675/H KvybH5mtPBb+sWu42T+655ubQDPYL4d+i4DquUM3TOHMxsramHqieBKBQSMEeWPlSwFq 7KoQ== X-Gm-Message-State: AOAM532XCosphCHqca+NmxifA0xSX0P5xwa8z7qymhHA0tBUpOhUAOW7 1AhODyrdfK3rJcEpe8wGr7YyshKIXztJB5If2xFIvA== X-Received: by 2002:a2e:b5a7:: with SMTP id f7mr6741306ljn.19.1631828927612; Thu, 16 Sep 2021 14:48:47 -0700 (PDT) MIME-Version: 1.0 References: <20210824164801.28896-1-lakshmi.sowjanya.d@intel.com> <20210824164801.28896-9-lakshmi.sowjanya.d@intel.com> In-Reply-To: <20210824164801.28896-9-lakshmi.sowjanya.d@intel.com> From: Linus Walleij Date: Thu, 16 Sep 2021 23:48:36 +0200 Message-ID: Subject: Re: [RFC PATCH v1 08/20] kernel: time: Add system time to system counter translation To: "D, Lakshmi Sowjanya" , Thomas Gleixner , John Stultz , Stephen Boyd Cc: "open list:GPIO SUBSYSTEM" , Bartosz Golaszewski , linux-kernel , Mark Gross , Andy Shevchenko , "Saha, Tamal" , bala.senthil@intel.com, Dipen Patel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 24, 2021 at 6:48 PM wrote: > From: Christopher Hall > > The GPIOlib event generation interface supplies a time in terms of the > realtime system clock. The driver must translate the system clock to > something meaningful to the hardware. > > The Intel(R) PMC Timed I/O hardware uses ART to trigger events. For > most Intel(R) platforms that use TSC for timekeeping this added > function translates from system clock to TSC. The relation between TSC > and ART is easily derived from CPUID[15H]. > > Signed-off-by: Christopher Hall > Signed-off-by: Tamal Saha > Signed-off-by: Lakshmi Sowjanya D > Reviewed-by: Mark Gross I don't quite understand what this patch does, but it looks very generic. I think the exact usecase needs to be in the commit message. In either case, this is a patch TGLX et al needs to look at, we can't merge timekeeping code without their consent. Yours, Linus Walleij