Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2933144rdh; Mon, 27 Nov 2023 02:41:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNjmeid28d1MC38n6mp39JgAVpntDl4WRT6uw2Nqrdh5Q5rGAYhjvXaCRGuA2okJ6pdPyf X-Received: by 2002:a05:6e02:152b:b0:35a:b184:74fb with SMTP id i11-20020a056e02152b00b0035ab18474fbmr15263455ilu.9.1701081716601; Mon, 27 Nov 2023 02:41:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701081716; cv=none; d=google.com; s=arc-20160816; b=yn+AlNHPuKBU/aBx+98zdZB34uYc5vOnYJ4zOC2SND1AJ4RmMp0QWDD89TyjTP/umI YPl6v5jLUE4HQ/M/h6Fshvj5m8zcMZ9+QMY5nlm7+BYd1Io91KGiMdEFzoZDKa8eM3rM +7xwndGM2DB/aIycy+Yf6sS/xqrtZc7lPm4cXNa+eLf+OUGnST/ZNRRPMw8qPbZoMq3c D+TY0iC13LdGo0SUHLCcpV9yfTRXowdttOJvchDuD9laTpdxhVixHmNhMHLo/YvYtHk4 Ht9fnbYCHoUH24VkUdLLw1b36cqCPfgkq1pO/9snMyS0JeLqfyHA3Xmqx5rqGmW3mrKv vCcw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=3Bz7cy7fsWSGJfZCOmSedyPyZ8/Gr6/t5cUFclA14ic=; fh=mdc8GezvZHPS0pAYPO44b2B6rQpeOMC2njL9JHMeQ30=; b=pgIZBl+tXRT2gu7avvCl/1tBay6lBH35pJq3wp/tufi3JdpU+KPEYF8Aa31oUxI56t RKtjp8tf4XZYGkqJG4Dd4Yw3Jldpn4X3MQI3LAN8qAKbkk/ruRuHLmYQQALtlOM9C4fF G9WyNxD82s7ZAKA2m5FvTiGaUPlacfm0eks+kcSZUlGbe1Q4fZSwu1Fg3cItTEZXQ1dx hZUUkcWWr74rwG6okXe2bs/0VpJyq7Fxp8fNT+eyQymvH1ICmdQvogBxcxcXNMA+LcIT ALNMys58wyWx3Gati0J5jGJCsEoLwdaju0ohzJQehEQxk9rJMFhHnsQAzPEW1Eqzk6bV LVNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ferroamp-se.20230601.gappssmtp.com header.s=20230601 header.b=w6tzQNXG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id q6-20020a635046000000b005adba954597si9683379pgl.504.2023.11.27.02.41.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 02:41:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@ferroamp-se.20230601.gappssmtp.com header.s=20230601 header.b=w6tzQNXG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 49A2B8051917; Mon, 27 Nov 2023 02:41:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232986AbjK0Kla (ORCPT + 99 others); Mon, 27 Nov 2023 05:41:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229599AbjK0Kl3 (ORCPT ); Mon, 27 Nov 2023 05:41:29 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D22F9E1 for ; Mon, 27 Nov 2023 02:41:34 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-507e85ebf50so5430385e87.1 for ; Mon, 27 Nov 2023 02:41:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ferroamp-se.20230601.gappssmtp.com; s=20230601; t=1701081693; x=1701686493; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3Bz7cy7fsWSGJfZCOmSedyPyZ8/Gr6/t5cUFclA14ic=; b=w6tzQNXGEWX1yM6BeqEBmxIiaVEvRagr6WV3WRBZE7t4raIyQCYbhZhsIXB1X034y7 Z4PFL45Khlgw88jWMQgQE2AEgnGicjcTGmBpox14uxZMh8jCe08WADRYUVGYhUIahJ0N cNeuX316ewE/xRsywo51WR91TtpbIsHWig8uJOedIkTpBoTYP1w+G2for4q3osdXcn2I VHvK+KoyltiWSsKe8Svv+wII+pJsf94ZFoZk6RtWD/831ND2Ljkve7DZGUpJSBagSkoh VX34nPdxtwT9uLCkl5AmmPYLmZyot6MWBC2ArNy7pK68TZfDe/sCC6jMDEzyypMNvp5a 7gyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701081693; x=1701686493; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3Bz7cy7fsWSGJfZCOmSedyPyZ8/Gr6/t5cUFclA14ic=; b=nNQgO8q31yPudcnj0A12dGAuw85XE96XfsYz2yDp2RHlNCZSc7GUIvVRofM6pDfPoh 6KaJdKY0YOdGVrFlHNYI1l3R3PB4Oiz1Q4QuTswFuHBwjCFjPopFRQePYBygYLBoH8rw IQrxBnS/8htOuPwOJLv4mFG2zZ4WQshsOW+klXEYpYsKF38s0br8D1XsQp/SB9ELGX01 pbo2WJKZFbTVjymb+bhSMM/0VZ4X+PKbbXmM8zRsAIlNwE/sAtKp6eJ871luPBK0ic7o PFlTqc4YXrcq5sSWuPzfT/QYcRn8YtEK2K0RjuQZVPGnhPvlhHif92SKo+03I2G2aXLG ObJA== X-Gm-Message-State: AOJu0Yy0Nxz8rZMVBv3btPrqDuJn4+dPpRgZmoacYWzaoRnGIQ4rE7nr JB/4LEabps8ln1HWO42kshbCFg== X-Received: by 2002:a05:6512:280e:b0:507:b17a:709e with SMTP id cf14-20020a056512280e00b00507b17a709emr9065716lfb.1.1701081693072; Mon, 27 Nov 2023 02:41:33 -0800 (PST) Received: from localhost.localdomain ([185.117.107.42]) by smtp.gmail.com with ESMTPSA id l6-20020a19c206000000b004fe1f1c0ee4sm1432070lfc.82.2023.11.27.02.41.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 02:41:32 -0800 (PST) From: =?UTF-8?q?Ram=C3=B3n=20N=2ERodriguez?= To: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Ram=C3=B3n=20N=2ERodriguez?= Subject: [PATCH 0/3] net: microchip_t1s: additional phy support and collision detect handling Date: Mon, 27 Nov 2023 11:40:42 +0100 Message-ID: <20231127104045.96722-1-ramon.nordin.rodriguez@ferroamp.se> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 27 Nov 2023 02:41:47 -0800 (PST) Hi, This patch series adds support for LAN867x Rev.C and sets the collision enable bit conditionally on plca enable for LAN865X and LAN867X phys. The addition of Rev.C support is pretty straight forward (but weird), it follows the recommended magic and unexplained steps in Microchip Application Note 1699. The second change, conditionally setting collision detection has a significant impact on link performance. Having both PLCA and collision detection enabled led to a lot of dropped packets in the setup I've been developing on. The datasheets recommends disabling collision detect when PLCA is enabled. Took me a couple of weeks to find said footnote, hoping this series can save the next dev some headache. Following is a brief description of my test/eval setup: LAN867x Rev.C This was tested with Microchips usb eval board, the only testing I did was that I got the driver attached and got a link. No performance/stress testing has been performed. Collision detection This has been tested on a setup where one ARM system with a LAN8650 mac-phy is daisy-chained to 8 mcus using lan8670 phys. Without the patch we were limited to really short cables, about 1m per node, but we were still getting a lot of connection drops. With the patch we could increase the total cable length to at least 40M. Electrical properties play in here, both cable types and how the termination is designed, so these results might not be reproducible in another setup. The only testing that has been performed has been a best effort of estimating dropped packets on the linux node, with low frequency traffic. Ramón Nordin Rodriguez (3): net: microchip_t1s: refactor reset functionality net: microchip_t1s: add support for LAN867x Rev.C1 net: microchip_t1s: conditional collision detection drivers/net/phy/microchip_t1s.c | 135 +++++++++++++++++++++++++++++++- 1 file changed, 132 insertions(+), 3 deletions(-) -- 2.40.1