Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2033256pxb; Fri, 17 Sep 2021 00:03:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlgqzSV0PnynRNkt8GWzRrmqL3YvLaGCSWZ8Kd6U3De+/UI5zXK4i3l74xBaHTp7+EZf+e X-Received: by 2002:a05:6402:27c7:: with SMTP id c7mr10979406ede.351.1631862215610; Fri, 17 Sep 2021 00:03:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631862215; cv=none; d=google.com; s=arc-20160816; b=FRySTFQ7WWRhwbHVqdffasnmXDULAzDKqSTxIhjkv4iCtf6sQXM5N61KNDSYVeHiwJ fXRvs+nuzFxtKtVWRfFc+pgfMO07IMr7XLCnRzinZe4U2pslrulbZmwL3+70n6n7Tdnu fMa7ENUvRhoFGMES5y6Q4dylNeHc4d8eYcGRl3h2dJMmuYj7rFt5FHfhm6tni3vRvnQg 07v0jtgL6gJYMYIz0iAOQ4LodoWYfuNHPnckA8M5Jf0fjeCBy3Sj54dlQZ7oDgamXphf BX3SeNtRvmXIdiqFt+Q+45G5UBNPFqrcg0zfuiKZVWpOP4q+kT5RP7ESYdTM2XOLCftw vSFA== 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=VCWdjNx1tyfTuOxA33WFnltsnI9BaPgD2xX9ANb6iQM=; b=AuNNJIvwB++CArHwn84V5uH/Yeqfv8RBxlWYbIKs9v0YnGA3cus6i5LTYMaMbteDW2 lpMrtPJQGcIJzxVed7MDKkCaKO/gK2E1OfwOTs/ilazZ/41YdW/MBkZkuygnvEWS5XV5 xPNeLUv1+R1XRgqE6UW3NWeUMZeBZ7TeRjsyuYp07SdDCreQFZFfqWwftkgwcwfnUOQo N58UnRriBnMEsaRKEwDLO01j73yR1Jmm0v0RuYV5CFzqkBdWq5ZndJGV3Wr82Oq8LDSy KF7lvjYe8VMh8/o7brgu7zx/MkrgU2VOzWXfhVffs0E4QmTcj6hKLNlIGSrGGrdfLhF5 og0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="LLERr/po"; 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 rh9si7394524ejb.423.2021.09.17.00.03.11; Fri, 17 Sep 2021 00:03:35 -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="LLERr/po"; 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 S240528AbhIPVX2 (ORCPT + 99 others); Thu, 16 Sep 2021 17:23:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240561AbhIPVXQ (ORCPT ); Thu, 16 Sep 2021 17:23:16 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F178C0613F0 for ; Thu, 16 Sep 2021 14:21:47 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id i7so23809995lfr.13 for ; Thu, 16 Sep 2021 14:21:47 -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=VCWdjNx1tyfTuOxA33WFnltsnI9BaPgD2xX9ANb6iQM=; b=LLERr/poYuP2KNkCGTHCHiW3TE1k9xFlvEYL7Or6w1srOrRqfDR0FoVqCcMKPhbPQ+ qoNntOPIZBLCpVuwkZh/S0fFCwvGbTaiXaBzi+I+iqAMEn3+fqx/CaoHF0madtuZQMC6 XzCoqEMM5K1/hhbxxwhADguA/rZUU1Dr7OTeCU6KSpIljuvTVwaVuZJoCl6nkc0gs2qN jlCo2+mqIxe+ZUPKzGkNC/6B4QQq+rvB/QwMxoZrqGFMuTPDd22kT0tVWK6vOSqJUEXA oRn5nkMH6++jWrV6tk7tM8E9jBfmxXLvTXKVR6V1XrPlGh4gZc3DCUpL7rtMgKuIwrjS C2JQ== 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=VCWdjNx1tyfTuOxA33WFnltsnI9BaPgD2xX9ANb6iQM=; b=0JoaKcJJhWQbQjZLG5h2MIwojFAMV66A+lKwLIwxY4TAgBG+MJwRQZbBwyq3Wr7a0C z40hSTHeNxqf7cyr+AGsWxxjOXlNMG1Otn+yQjCjBcbMyCmOUJEtDAQu1H/yutAJqWst +LZC/uSeN5GsFRkKTA16gHztbIfsshAKeMXdhakd3F2APF1cqw5Nj+JarbzF8GvCWVMi q/OY5sGf6SpCDdQubLFzK1NrgqRjRPwlGKo06T6zkkI8tHLRoahrQrn4GGQrTP+OaI2k rJVcHR4Kh4o+CwEq5CliQeX4HKjhwiMt+DgeRAVZjjsx6FsKawCWFO0IuR7TyjevCZQd DUig== X-Gm-Message-State: AOAM531xKhOqDsjYr9ufPq+hO0GYBzbGcBjjbxPXCxkPJpvvwRNJ7UUf 3d3VxL2RYTZSzEWA32zedH5zfq6U7jS1yY/LNAZexByQAd2Sfw== X-Received: by 2002:a05:6512:132a:: with SMTP id x42mr5561031lfu.291.1631827305443; Thu, 16 Sep 2021 14:21:45 -0700 (PDT) MIME-Version: 1.0 References: <20210824164801.28896-1-lakshmi.sowjanya.d@intel.com> In-Reply-To: <20210824164801.28896-1-lakshmi.sowjanya.d@intel.com> From: Linus Walleij Date: Thu, 16 Sep 2021 23:21:34 +0200 Message-ID: Subject: Re: [RFC PATCH v1 00/20] Review Request: Add support for Intel PMC To: "D, Lakshmi Sowjanya" , Dipen Patel Cc: "open list:GPIO SUBSYSTEM" , Bartosz Golaszewski , linux-kernel , Mark Gross , Andy Shevchenko , "Saha, Tamal" , bala.senthil@intel.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sowjanya, thanks for your patches! On Tue, Aug 24, 2021 at 6:48 PM wrote: > From: Lakshmi Sowjanya D > > Starting with Intel(R) Tiger Lake and Elkhart Lake platforms the PMC > hardware adds the Timed I/O hardware interface. > > The Timed I/O hardware implements some functionality similar to GPIO > with added timing logic that is driven by the Always Running Timer > (ART). > > The Timed I/O Hardware implement 3 basic functions: > * Input Timestamping > * Single Shot Timed Output > * Periodic Timed Output > > Please help to review the changes. This looks very similar to the usecase proposed for the HTE Hardware Timestamping Engine, proposed by Dipen Patel for the nVidia 194 and which is currently in RFC: https://lore.kernel.org/linux-gpio/20210625235532.19575-1-dipenp@nvidia.com/ Please review this new subsystem and see if you can just make a slot-in driver using Dipen's patches instead. Dipen: please have a look at Sowjanya's patches to see if this hardware is similar to yours. Sometimes several vendors come up with similar hardware around the same time, because of industry trends, so I would not be surprised if these two hardwares address the very same usecase. Yours, Linus Walleij