Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp71858pxb; Mon, 2 Nov 2020 14:22:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjlhfaeU5uIKfgwgrQxEbE9cFRpgRtRosL8K8BwNiyGupfUDdABi+mManaiFeJXsTX5P5t X-Received: by 2002:a50:88e5:: with SMTP id d92mr18997446edd.145.1604355766332; Mon, 02 Nov 2020 14:22:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604355766; cv=none; d=google.com; s=arc-20160816; b=bUHtsJumcratU75Ipk58/Ax78xmg8v4LFD2Pv6swVPoS2lPgBnCCjP4uMSF2uY7+L3 zPAMmhHr6H100Vev9obS1prLT445aUb+Y0JiTkQfDXz0hvAp5YgnvASY4KoJkqspGRXr DS0JPV9DCc65WWc5lSBx4/gGKDjA2aSs4qtjgfTTLQ81VSwpRqAibWp8kFqrgcfyiH3A bN36l+B13ACSUzv6HEQqsX8+nkjzshxCdKV4z1f8IYc+6I8HJToUAWgf3AqCUvKD6eDj j1mES6BiVvyS5PFOftxIqayenehZmm7UCYoNZ1UtpXsdVGiqhtd8Hq+iemrGBzp0oNPv uPqg== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=iw6kqIkYmYvOYcrhT84Gyl4Ig525rEdpGnUEOcxUgbk=; b=qrE2Wi1X8SvS91JWvTzx2eLszrSEwv4icWGyfE+ATa4nGU6WIEQkfxGv89XWSSi1j7 8RZJbM2gRY3R46mODNRHDKGkj+LdjVyxa4bRRT+9dMUZ0ZH3ZddoaA27BUu0TmL9dLeG aCwRMcZtPW/dVgkFEizfn6AvTKD+U35ZrR22dFzbCVdYP5xOCSTioXgdL7D4pRaJdhaO 13yegjZgq+GvWNMkr8cEc/1DQcOjilBADUZ9xIHK/1QejenCwmwweR6NwM5NsJkiJItb 6mGesh2mGUBuoYA8i44hxu/QnyD0mDCMi5UvfFpezivkJTo+Y5NolwQ8LcMRNUiggLAe /46w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=peaRwy53; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si7652780edo.498.2020.11.02.14.22.24; Mon, 02 Nov 2020 14:22:46 -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; dkim=pass header.i=@kernel.org header.s=default header.b=peaRwy53; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726385AbgKBWUm (ORCPT + 99 others); Mon, 2 Nov 2020 17:20:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:52564 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725829AbgKBWUm (ORCPT ); Mon, 2 Nov 2020 17:20:42 -0500 Received: from kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net (unknown [163.114.132.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2100120786; Mon, 2 Nov 2020 22:20:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604355641; bh=RPnrsyxMAkztMhvusutWD4TqjQCquKiSwYb/vlIe3Gg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=peaRwy53vhIUeGizgjAikIlKSTfvxLSDemKEiiaCBJ8WYSP/eBkAKd8aYXFus2msc eLMVwTfEdhalqAt1tT6fINLZMD/foRO88k2iv+GDmIqvalVm8vkNX9h/pOyjR4nYdz AorXyOZH6SmpJD5ZDVWGEglJJLaEDCmjrOOq8W98= Date: Mon, 2 Nov 2020 14:20:40 -0800 From: Jakub Kicinski To: Richard Cochran Cc: Grygorii Strashko , "David S. Miller" , netdev@vger.kernel.org, Vignesh Raghavendra , Sekhar Nori , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH] net: ethernet: ti: cpsw: disable PTPv1 hw timestamping advertisement Message-ID: <20201102142040.4c9decbe@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> In-Reply-To: <20201101020227.GB2683@hoboy.vegasvil.org> References: <20201029190910.30789-1-grygorii.strashko@ti.com> <20201031114042.7ccdf507@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> <20201101020227.GB2683@hoboy.vegasvil.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 31 Oct 2020 19:02:27 -0700 Richard Cochran wrote: > On Sat, Oct 31, 2020 at 11:40:42AM -0700, Jakub Kicinski wrote: > > On Thu, 29 Oct 2020 21:09:10 +0200 Grygorii Strashko wrote: > > > The TI CPTS does not natively support PTPv1, only PTPv2. But, as it > > > happens, the CPTS can provide HW timestamp for PTPv1 Sync messages, because > > > CPTS HW parser looks for PTP messageType id in PTP message octet 0 which > > > value is 0 for PTPv1. As result, CPTS HW can detect Sync messages for PTPv1 > > > and PTPv2 (Sync messageType = 0 for both), but it fails for any other PTPv1 > > > messages (Delay_req/resp) and will return PTP messageType id 0 for them. > > > > > > The commit e9523a5a32a1 ("net: ethernet: ti: cpsw: enable > > > HWTSTAMP_FILTER_PTP_V1_L4_EVENT filter") added PTPv1 hw timestamping > > > advertisement by mistake, only to make Linux Kernel "timestamping" utility > > > work, and this causes issues with only PTPv1 compatible HW/SW - Sync HW > > > timestamped, but Delay_req/resp are not. > > > > > > Hence, fix it disabling PTPv1 hw timestamping advertisement, so only PTPv1 > > > compatible HW/SW can properly roll back to SW timestamping. > > > > > > Fixes: e9523a5a32a1 ("net: ethernet: ti: cpsw: enable HWTSTAMP_FILTER_PTP_V1_L4_EVENT filter") > > > Signed-off-by: Grygorii Strashko > > > > CC: Richard > > Acked-by: Richard Cochran Applied, thanks!