From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 47951C3A5A7 for ; Thu, 8 Dec 2022 09:41:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:Cc:To:From :Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Fe6tOH91YpdlZ7qnqnnlUZqrAHIPaZHCM6BC7Jq/Sr0=; b=eWLsoyjvQHfDRXTkSztkzKOEvF 66jo1YyvvSlBR8Fwq/Ak17PRK1OA2vgwshIKxr3Gg+ZwUk7S+yDxLOMi6u7ocohSHlf1lcGV2sTCb 0h/KH1GbPyje3HHfLsIQXXYZ8DCG2F3XHaBjijnm8xKJcbbkPkdqBe1qbifvdntDWalXvb/490f0B RzlejKf0ijKjNPSJUAF4ZcmGTXKw8yVtUmDFrbPGGhxL2pTnrTgMs1V4hnA5KL2mN5n4DSgsPCy0B v0Ts+WwQYq7aac/VR1ojQukLYM+Z3h17cAovIAGEQuZ9TXOh6DpVwMEG1aDBPWjsTLR10qs3t/Y4z DaKrqYNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3DNs-00B3Le-2m; Thu, 08 Dec 2022 09:40:04 +0000 Received: from 0001.3ffe.de ([2a01:4f8:c0c:9d57::1] helo=mail.3ffe.de) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3DC5-00AroH-Cr for linux-arm-kernel@lists.infradead.org; Thu, 08 Dec 2022 09:27:54 +0000 Received: from 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id 1BC14448; Thu, 8 Dec 2022 10:27:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1670491669; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2R1Bw6RSyNPWkO+Irjl7dtJBDdipXBznfHNFG4kiq4g=; b=N9pz6Hulf8OSnpbXqumzH6zy4v1Im2Kssmr8IE/azJYuVa8JgNBgykOllJPdSf9S5YxdqT uX+6Rx1sdJC7wPmi+SJLCpEDgIqP38XSprJ2jLQWrB821ldU2egvVKVuvkhMqkqsVxqHkC qFiffa+iIZCtq5WzWuod7qnh54lx5b6OcnRF9AHDOJ7EjSyqkL8mIMWVdVUNfzkWoO8lJc xKRhtsn8CeHVNDUXG8c9ocvIIfFYavCgtuN/wLMtp5TYH0snqYp5MsWIjeHDQCrBszKlHo 9KSsMTA9nXU/RkafAkqOS6M0I+LNC1W3AbG5AWip4HdSZOIm80pXLDS82JTYRg== MIME-Version: 1.0 Date: Thu, 08 Dec 2022 10:27:48 +0100 From: Michael Walle To: horatiu.vultur@microchip.com Cc: Steen.Hegelund@microchip.com, UNGLinuxDriver@microchip.com, daniel.machon@microchip.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, lars.povlsen@microchip.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, olteanv@gmail.com, pabeni@redhat.com, richardcochran@gmail.com Subject: Re: [PATCH net-next v3 4/4] net: lan966x: Add ptp trap rules In-Reply-To: <20221208092511.4122746-1-michael@walle.cc> References: <20221203104348.1749811-5-horatiu.vultur@microchip.com> <20221208092511.4122746-1-michael@walle.cc> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: michael@walle.cc X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221208_012753_670636_944E8684 X-CRM114-Status: GOOD ( 13.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Am 2022-12-08 10:25, schrieb Michael Walle: > Hi Horatiu, > >> Currently lan966x, doesn't allow to run PTP over interfaces that are >> part of the bridge. The reason is when the lan966x was receiving a >> PTP frame (regardless if L2/IPv4/IPv6) the HW it would flood this >> frame. >> Now that it is possible to add VCAP rules to the HW, such to trap >> these >> frames to the CPU, it is possible to run PTP also over interfaces that >> are part of the bridge. > > This gives me: > > # /etc/init.d/S65ptp4l start > Starting linuxptp daemon: OK > [ 44.136870] vcap_val_rule:1678: keyset was not updated: -22 > [ 44.140196] vcap_val_rule:1678: keyset was not updated: -22 > # > > # ptp4l -v > 3.1.1 > # uname -a > Linux buildroot 6.1.0-rc8-next-20221208+ #924 SMP Thu Dec 8 10:08:58 > CET 2022 armv7l GNU/Linux > > I don't know whats going on, but I'm happy to help with debugging with > some > guidance. Oh, and linuxptp is running on eth0, no bridges are set up. linuxptp is started with "/usr/sbin/ptp4l -f /etc/linuxptp.cfg" # cat /etc/linuxptp.cfg # LinuxPTP configuration file for synchronizing the system clock to # a remote PTP master in slave-only mode. # # By default synchronize time in slave-only mode using UDP and hardware time # stamps on eth0. If the difference to master is >1.0 second correct by # stepping the clock instead of adjusting the frequency. # # If you change the configuration don't forget to update the phc2sys # parameters accordingly in linuxptp-system-clock.service (systemd) # or the linuxptp SysV init script. [global] slaveOnly 1 delay_mechanism Auto network_transport UDPv4 time_stamping hardware step_threshold 1.0 [eth0] -michael _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel