Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp2546287pxx; Sun, 1 Nov 2020 01:40:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJySDfincPDuEuksxTG5LSL3BgMPYRmkCznDkOgHPzHQ3HKfUHlo9reu6FEYRGA+SmZ0N0km X-Received: by 2002:a17:906:a996:: with SMTP id jr22mr10656365ejb.463.1604223612663; Sun, 01 Nov 2020 01:40:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604223612; cv=none; d=google.com; s=arc-20160816; b=jnmUQwUFpBwwRSaUuEPd3MDwsIvtdcqutOsadjQ+7iFU9K/C1LvIlmHDlD9/aU329i vgamQ4d+NnGJiL8LobmaHY391qbGuHLqUgTW+X+Dcle1zWWFjm9A8gd8GKUXU2dCQ+2v i5eyT43jF8BI0uK17kEkNqX68EbWzUsyNYEy8DVwMMB1VwM/+yq3YG7VgeGbBDC2czIM flyHrHBjB5KQQhHtR+vFht7Sw0Ou+M2FfrzXA+eztBOBj3ETaDJQ+4J3dFqo3p0/9aIy OWzxzjy1IFHittPjUGs28WXyf2c7ocR+Y6C2NpqRI+olVKglFCNwMZ/ovEcpEuuTbU6Q A3cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from; bh=vxZqTmqFeiOXmgFuAAR/M0A7zjW5cBHQFZY1SH/VbqE=; b=XK3cCnT+01ELltBpOfIcQeXjMC5D4UegtMr5RhJiTDhTgpzjKCgFWK1qByJFoklvRX SK80u6tWK5k2kr4PIyfW+rHQ96vZUWsXT3/g4IEkK1LR55n9N5ES798PCFGw0GPFOgXG cF9xmcbCc54y35IYJsV2ju2phxmfTUUAtDPta/GLmLu7wqC78SKT3ZoZ/a0O599AQyex y1XMhi44njUq7soNSQ/37KBu/0p4XMreGDG9IHF1hXQsFBZoG/WcXiQXV7tN8QxMZRbc wmcvaO7x994/p2fgcWAvP/N1k0o4drY+VhqUgECOhSQJbZSfl/BPve9A32VrWtXrDXyv jnYQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c91si2982570edf.313.2020.11.01.01.39.49; Sun, 01 Nov 2020 01:40:12 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726327AbgKAJgW (ORCPT + 99 others); Sun, 1 Nov 2020 04:36:22 -0500 Received: from mailout07.rmx.de ([94.199.90.95]:59121 "EHLO mailout07.rmx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726118AbgKAJgV (ORCPT ); Sun, 1 Nov 2020 04:36:21 -0500 Received: from kdin02.retarus.com (kdin02.dmz1.retloc [172.19.17.49]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout07.rmx.de (Postfix) with ESMTPS id 4CP9sX50P3zBvB8; Sun, 1 Nov 2020 10:36:16 +0100 (CET) Received: from mta.arri.de (unknown [217.111.95.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by kdin02.retarus.com (Postfix) with ESMTPS id 4CP9sJ0FQgz2TRlS; Sun, 1 Nov 2020 10:36:04 +0100 (CET) Received: from n95hx1g2.localnet (192.168.54.14) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.487.0; Sun, 1 Nov 2020 10:35:02 +0100 From: Christian Eggers To: Vladimir Oltean CC: Richard Cochran , Florian Fainelli , Andrew Lunn , Vivien Didelot , Jakub Kicinski , Rob Herring , Helmut Grohne , Paul Barker , Codrin Ciubotariu , George McCollister , Marek Vasut , Tristram Ha , "David S . Miller" , Woojung Huh , "Microchip Linux Driver Support" , , , Subject: Re: [RFC PATCH net-next 7/9] net: dsa: microchip: ksz9477: add hardware time stamping support Date: Sun, 1 Nov 2020 10:35:01 +0100 Message-ID: <4928494.XgmExmOR0V@n95hx1g2> Organization: Arnold & Richter Cine Technik GmbH & Co. Betriebs KG In-Reply-To: <20201030182447.2day7x3vad7xgcah@skbuf> References: <20201019172435.4416-1-ceggers@arri.de> <1680734.pGj3N1mgWS@n95hx1g2> <20201030182447.2day7x3vad7xgcah@skbuf> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Originating-IP: [192.168.54.14] X-RMX-ID: 20201101-103604-4CP9sJ0FQgz2TRlS-0@kdin02 X-RMX-SOURCE: 217.111.95.66 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vladimir, On Friday, 30 October 2020, 19:24:47 CET, Vladimir Oltean wrote: > On Thu, Oct 22, 2020 at 12:17:48PM +0200, Christian Eggers wrote: > > I tried to study the effect of setting the ocmode bit on the KSZ either to > > master or to slave. The main visible change is, that some PTP message > > types > > are be filtered out on RX: > > - in "master" mode, "Sync" messages from other nodes will not be received > > (but everything else like "Announce" seem to work) > > - in "slave" mode, "Delay_Req" messages from other nodes will not be > > received > Could you dump the contents of your REG_PTP_MSG_CONF2 register? runtime register value is 0x1004 (matches default value from the data sheet). The Linux driver doesn't touch this register. Below is a dump of all PTP related (global) registers. regards Christian KSZ9563 (Ethernet switch) Global IEEE 1588 PTP CLKCTRL 0002 SWFA enabled CLKSADJ NOP PTPSD subtract CLKREAD NOP CLKWRITE NOP CLKCADJ disabled EN enabled RESET normal RTCCP 0002 PHASE 16ns RTCNS 17D72FF0 NANOSECONDS 399978480 RTCS 00000023 SECONDS 35 RTCSUBNS 00000000 RATEDIR subtract TEMPADJ permanent SUBNS 0 RTCTMPADJ 00000000 CYCLES 0 MSGCFG1 007D MODEEN enabled IEEE802.3 enabled UDPv4 enabled UDPv6 enabled TCMODE P2P OCMODE slave MSGCFG2 1004 UNICASTEN both ALTMASTER disabled PRIOTX event only CHKSYNFU disabled CHKDLY disabled CHKPDLY disabled DROP disabled CHKDOM disabled IPv4CHKSUM calc DOMVER 0200 VERSION 2 DOMAIN 0 UNITIDX 00000000 GPIO_IDX GPIO_1 TS_IDX Unit 0 TRIG_IDX Unit 0