Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp700664ybl; Tue, 13 Aug 2019 01:00:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+enHs71wb0sapIeM0y/KogChSM6KowuKqUF9Awntw/So474UfjR1D99L3Oco1nP+sfoDz X-Received: by 2002:a17:902:100a:: with SMTP id b10mr35828337pla.338.1565683241842; Tue, 13 Aug 2019 01:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565683241; cv=none; d=google.com; s=arc-20160816; b=WwlbSA+XYETS/5Wm/Ls4m5WukLG0mbhmjGh28uJkqAOA4a2NbdRaRfT/A2UBlAk5b5 dnBotBNiyurE9brwnIcXrty+vsjqQpHDIxZhViAGipt3jWBSG6KUslXA93hs5NWna73j V44wxzNhGv2r39qf3hIb4mmNny7GGcZpOAkzcnKPphvZNZ7B0tOQxyJyS6Gic1pQCVyv g3HD//fHSnEKTFRzVGJB59zh+UkZ/P8cgTyobap6xAfCHLeYhO6Z2ArnnxGHk90AK31p xwG8tC6ZcAGLPsLm9de8sTVpQ1AZ8XcLozpwi4bDrUrP7+/+beFzJD7yaTsmzCvJ3Xv6 y++A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=wDzDPDMqjnEE8Oo7kyQ3Y9iaWh6GW5DZy4hIzVi8T6E=; b=0R2oaABW8fRw5tdceF+FjWxBWaSwjfL0uGompGfm+BDzvQS6FhLBZZrq/k5fkcQMb8 Vwf66Z2GdjzKhrc+FeJ1RAJiIZefrP/53IbdzazLUJiA/wS7ZMfuQzEJKH4wvoU22nj5 d/PK0seVZKRcJX4sem7o+3ViBgeWdnyGrYmIX6u3cgRm6Bl3AHBSU+UYK0v2CJPr1fKC mEKjY3foJk+iMcuKTyc9kEcg75n51Z1xaDzXEqi2og2VLMzJeQAV9YHmHW1zzod3bpZ/ o2MqaLfUsuE0HcrbinK49K3qL5jSMcM6tNw0lrg3ZTOA0LTTb1UWNhEDEMEwKEKPLTpF lwtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z12si64259073pgp.342.2019.08.13.01.00.25; Tue, 13 Aug 2019 01:00:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728060AbfHMH6M (ORCPT + 99 others); Tue, 13 Aug 2019 03:58:12 -0400 Received: from mga02.intel.com ([134.134.136.20]:26608 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726986AbfHMH6M (ORCPT ); Tue, 13 Aug 2019 03:58:12 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Aug 2019 00:50:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,380,1559545200"; d="scan'208";a="375517226" Received: from pipin.fi.intel.com (HELO pipin) ([10.237.72.175]) by fmsmga005.fm.intel.com with ESMTP; 13 Aug 2019 00:50:07 -0700 From: Felipe Balbi To: Andrew Lunn Cc: Richard Cochran , netdev@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, "Christopher S . Hall" Subject: Re: [RFC PATCH 0/5] PTP: add support for Intel's TGPIO controller In-Reply-To: <20190719132021.GC24930@lunn.ch> References: <20190716072038.8408-1-felipe.balbi@linux.intel.com> <20190718195040.GL25635@lunn.ch> <87h87isci5.fsf@linux.intel.com> <20190719132021.GC24930@lunn.ch> Date: Tue, 13 Aug 2019 10:50:06 +0300 Message-ID: <87wofhy05t.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Andrew Lunn writes: >> Andrew Lunn writes: >> > On Tue, Jul 16, 2019 at 10:20:33AM +0300, Felipe Balbi wrote: >> >> TGPIO is a new IP which allows for time synchronization between systems >> >> without any other means of synchronization such as PTP or NTP. The >> >> driver is implemented as part of the PTP framework since its features >> >> covered most of what this controller can do. >> > >> > Hi Felipe >> > >> > Given the name TGPIO, can it also be used for plain old boring GPIO? >> >> not really, no. This is a misnomer, IMHO :-) We can only assert output >> pulses at specified intervals or capture a timestamp of an external >> signal. > > Hi Felipe > > So i guess Intel Marketing wants to call it a GPIO, but between > engineers can we give it a better name? If we do that we make it difficult for those reading specification and trying to find the matching driver. >> > Also, is this always embedded into a SoC? Or could it actually be in a >> > discrete NIC? >> >> Technically, this could be done as a discrete, but it isn't. In any >> case, why does that matter? From a linux-point of view, we have a device >> driver either way. > > I've seen a lot of i210 used with ARM SoCs. How necessary is the tsc > patch? Is there an architecture independent alternative? Without the TSC patch, we don't get the timestamp we need. One can argue that $this driver could call get_tsc_ns() directly instead of providing a wrapper for it. But that's something else entirely. -- balbi