Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3293283rwb; Sat, 3 Dec 2022 02:27:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf46WYpdiPStq6FnihAx8YK7sQzy97z1ANWmGsQRShN7IQT5WquU4X2FW1xo7bMT9okrtfhC X-Received: by 2002:a17:902:ce07:b0:189:9e06:a6f with SMTP id k7-20020a170902ce0700b001899e060a6fmr22618682plg.117.1670063241489; Sat, 03 Dec 2022 02:27:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670063241; cv=none; d=google.com; s=arc-20160816; b=bVwUXbrpdFLzykCABE0kanS76cxIGUrdLu6oAI8gX49nNiNvTU3K3/f4uR7Il1ajVE r3I4BDHhM+xOqK36sA0LlR3+JwqGuDqVR0Ofl/Bc5WbtpV3ohFMi495rGl1qFuI69kvg t7tIPu1sI5oe96lE1i4OV/FZ57CNePC1zsdIEvul78GM+cJELcpyWe7su9/ZaNRN4kmH tPDyD/+RNChR1AbPuLw2OtjQ1SGTVv2oe34Lmu9ByhbcZcaGimCr4sHyCJzWuv9eMhT2 jmX8LNkCsICDMpqpG8wsURYdMUHnZ95KM63lojHO0kEwUeyXZNDDgaIwY6wydhGVpGIG P/qw== 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=+A+39eT+VUwYgDR7VSujsrbLtoh5i9loTUu03PvGh70=; b=xQP2eZU1wyw9WMcIJUhOeppxrL8I/CefZ2pmyxxI+DFLxCWw30y+M0lt2Wd+XKXldY hHHwD/H53Nsc88zgh8/g70V2S5b7E7vkU7CDZTuqP37YvsVvpbXePBuWmsZeJcND68Av d/2a+jHRpg3em+4GTHdU32EViRqi/h8T0QK+3KPQBHBRBPRp4W8PsYV4GYMRqQ0oAeJp pMBJd+kEtdQxJsynaaNqK/2wlrcFbI9f8Rgq2D0VokwCf6QAxCtgGcD/CkePT9SJr+8v TrA41j1qaDa7ZYjkiht9UZ5YJSGFGMlrtvuKqotirnnEnSjDBMGldsq/+wtkF9CWFb5X tV2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gip4AWoW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e8-20020a17090a9a8800b001fb23f3f238si9223742pjp.71.2022.12.03.02.27.11; Sat, 03 Dec 2022 02:27:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gip4AWoW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229588AbiLCJuG (ORCPT + 82 others); Sat, 3 Dec 2022 04:50:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiLCJuD (ORCPT ); Sat, 3 Dec 2022 04:50:03 -0500 Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E4801174 for ; Sat, 3 Dec 2022 01:50:03 -0800 (PST) Received: by mail-yb1-xb36.google.com with SMTP id 189so8793540ybe.8 for ; Sat, 03 Dec 2022 01:50:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+A+39eT+VUwYgDR7VSujsrbLtoh5i9loTUu03PvGh70=; b=Gip4AWoWEMhEnONIqN1mk384oOc/M9mv3RtgWKzJRavC4kZbEtn67/6Qc//FVfx0s6 zw5oH0w84f2E7fcXUpZmKJVrshtjzsHZ9l5HEUnyh4Q/295Dk7szRvmNRqRgqsIC5Mf/ R0lMu674psxNFl5vriz5Z2+Bv/LQsMU2d1BHdH/7FANCfsQs23mIN1rE9bMNdymlZUJv Tgky6lP4syF1+32DuxvPNk9/Y17Q+3MBGMgqdQW9/X3fN5cw1nfgWC06/eirxRSh3JeE o6rM/NamQXB8nJFHvt4hdRGPTUR2lx+KUGKHbCDBQ3zUhbATBVcT7RD1nRbkJmCDcX66 Gobg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=+A+39eT+VUwYgDR7VSujsrbLtoh5i9loTUu03PvGh70=; b=AU57CNuy75PwD3e2UW8g9PGPFnWJ6GEvE1NM2bvBpVhv115Noip4DADw2hNujDQJDa U8iUKXmeYAH0Fv/BfRdCkdTTIrUewJJthHK6XyjET7fKoMsNvQBemaMVPpEQ90cF2Lot Z6eYq6P59/QQMrI9yuY8yFy6Ur3Y2hqrDQsUciKFEXFwz8J5D8BClV5ZCetgzUvjnult lmPqYdMflOVBfo/PXB223Titv2+mCkjcld5cnsfpEMo7JpR5KQRNlFXrNE+I228XQbYJ xvf7dz3TxTgQC/lF9Oq+UhFCLbdPBwKM7knSpA0kF8gMm/Z7APLLUeoaGba+avvvmP3O 1aGQ== X-Gm-Message-State: ANoB5plWQ2UXIZTyWtLzJxVuRAzMLae0pMR1ijjzPnRUa/APECvaeTXN 62DE1m7dXsZXI7QKcT4jKKqTaf8h8vBlr3Vf9T5uUg== X-Received: by 2002:a25:1843:0:b0:6dc:b9ec:7c87 with SMTP id 64-20020a251843000000b006dcb9ec7c87mr54083229yby.322.1670061002473; Sat, 03 Dec 2022 01:50:02 -0800 (PST) MIME-Version: 1.0 References: <7de35859-97ab-8e88-f590-d5851b81773b@nvidia.com> <34baa0b1-72c3-e4b3-3eaf-9b07fe86c3df@nvidia.com> In-Reply-To: From: Linus Walleij Date: Sat, 3 Dec 2022 10:49:50 +0100 Message-ID: Subject: Re: Intel timed i/o driver in HTE To: "N, Pandith" , Johan Hovold Cc: Dipen Patel , "linux-kernel@vger.kernel.org" , "Hall, Christopher S" , "Gross, Mark" , "Sangannavar, Mallikarjunappa" , "D, Lakshmi Sowjanya" , "T R, Thejesh Reddy" , "andriy.shevchenko@linux.intel.com" , "timestamp@lists.linux.dev" , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 2, 2022 at 4:00 AM N, Pandith wrote: > > 1. Does timed io only meant for GPIO or other signals? if other signals, what > > type of signals? > This could be time sync signals or periodic/single pulse input for timestamp support (...) > b. char device creation for timestamping hardware. Something like /dev/hteX No way this goes to userspace if the usecase is synchronizing GPS time. It should be in the kernel, where the timebase of the system is. We already created drivers/gnss because power, clock etc management need to be close to the hardware, in the kernel. Don't try to push this up to userspace, group it with the rest of the kernel GPS handling. If your GPS vendor doesn't want the kernel to talk directly to the GPS, bad luck, because the kernel definitely should in this case. The kernel has the best time source and the shortest access path to it, so there you go. The GPS vendors have already created enough of a mess by not having open documentation for their hardware, if this is an incentive for them to be more open if they want proper time sync that is *good*. Yours, Linus Walleij