Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2132330lqp; Sun, 24 Mar 2024 04:52:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVi812xTNYyXf3fXVqR9v+C6QXUB8pU5P60KDjT/GYPhRpznwXiWTUgOiZNaxa0hsiXHO37tKCLgGFfxbVV+xPr0aiA3aYqOOzN8QGq6A== X-Google-Smtp-Source: AGHT+IEyBwDxQ1Z4kUZPweNzRG6Yt2RJJxGbqk97rfwCN6yAHbalhDMCVP4T6NcN5mStZEQpfshA X-Received: by 2002:a05:6402:1e94:b0:56b:fa95:ae2a with SMTP id f20-20020a0564021e9400b0056bfa95ae2amr3210070edf.5.1711281121072; Sun, 24 Mar 2024 04:52:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711281121; cv=pass; d=google.com; s=arc-20160816; b=MKFKUX3G3Gq+d2Xs2C14WrGY81fzQoh2zJC2DEZC6D9iMg56T2aGOFl53GlBHnFnh5 5RWEOW7JmDDD8xr1Zwvcm283dX3inp8GKzc65Uakge3TT5+MAuck+JOfbtcCxD03ly5z /9OmtiSWe0hUAdtZNYS0VXPS6eSrYweY+gW66RB6ZO61p+xcbnDpmDW9m6tvuJsuLDAz Dtl5PdVbMgjBQKvsvbOCgHSrTsCdxJYXnAsskP1ej5acg9imwfQLGc9AhQvE6W+6QTQL 5T+H/YT6JXU7wZwpUpY6NW71jQ+o8xLXVXymBre1+TAy/WwREk54PNqTudBsSxsr59OB N1qw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=SHd06vSLOzCjmoLwufibD7173gHP8W2NTfMUYQWalTM=; fh=qX18AeWXS8+XyOcTpjv7MqsvHncS7foYq3L85yIHIzk=; b=dbrTCTGE6OeTNMLp8nSVropgASVzMA6aWr+Sxfh7cqtWlvSKJVm9irwAti5mDDzn0y GS2B8qipY5iIXolMwaKQXvGj37XA4G8nEtq9P3HbLz3bdjDHmaR0UC5CeB4ys+hHBZtx zI3HywLDN8T4xxmm11SYTYIqKg9M9DR86bSwRvhGLVhjcUsDvD6AoKLkCXRguKf6xAo1 7y1pmoCH8ZsWLx01Zvbz7kNIyRX4KAksBQNmNKoNYxwQMbKcN6MA7km6Rc7MSZvvtpz+ d+84bmFW4Ed5j4Qu3fXHNsZPPL4h+QiFLEas0pOldS4EoKfdQBBgwmN1Yyz9p5MH/Q/Q 08ew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=bpzbnkW+; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com); spf=pass (google.com: domain of linux-kernel+bounces-112653-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112653-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x2-20020a05640226c200b0056bf33635d6si1584562edd.61.2024.03.24.04.52.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 04:52:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112653-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=bpzbnkW+; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com); spf=pass (google.com: domain of linux-kernel+bounces-112653-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112653-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5E23D1F214AB for ; Sun, 24 Mar 2024 11:45:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 496CC179B5; Sun, 24 Mar 2024 11:45:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b="bpzbnkW+" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DEAEC7F9; Sun, 24 Mar 2024 11:45:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711280722; cv=none; b=nl/A3qi2Cn2r9aLUbzMy8xNMtbZhO6u3y4CwpaAm9+nvYHiq5gZ/uJfHo+/xxMBNvXHnvQdEAvVtCcyIe1Ms/du0kSeFu3au4GpRT4L/orbc+wzz56SCEYhv0so8T/61mGZKpQuCtZc7RRnL62KAew6nASfhvI0wbRN+X2DTbnY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711280722; c=relaxed/simple; bh=jd+UbPt7tUCSxeIh9tTddpbwhPczChNxIGuCykK8/Rg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hPI8rzMDi51gqNRo23iPq82d4ZTLKzf1LMpmKULI7ZjxNLio8C3/DWgemoEIrcAFnTKRZ74DkRRF89F68DUL0y/1Mpbo3LLL5dKetavao2TUkytSDgD13Uu9FZKkXYQWLyAe3PuninAwLThJQu4ItyrWHYAaWi9pNKv/QzvTtps= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arinc9.com; spf=pass smtp.mailfrom=arinc9.com; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b=bpzbnkW+; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arinc9.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arinc9.com Received: by mail.gandi.net (Postfix) with ESMTPSA id F374F40005; Sun, 24 Mar 2024 11:45:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arinc9.com; s=gm1; t=1711280717; 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=SHd06vSLOzCjmoLwufibD7173gHP8W2NTfMUYQWalTM=; b=bpzbnkW+EWJftWZQUvb7X+yE7kOgudmqCMAGz9gTfHD8MP9UhA3pt9hXoju4h7iZQU6n8N WuzWRoFQvg3dhQCl9IoZlpcsomANxCZyClQw9a4ty5iYVHJFcDk2dp6cz2KQSAVVtkWlaZ h1/cJ/dqh7RGlekrYdfRlnLnFx3AGQqD6+vEMOLdugXKLLmgjHqIfl1PF9UafOVlzd1JAn LZq6kL1/ry7H4AfLzpOfwuh1q8smC8NbaeUOzXo+6mlgiF/08sBUkA/nF3MmXntk5+5aM7 vfYrY1+OOwbZ2kOO4ruLevXHWCPRJoqa53doSxGBFptLMhC+3sUq0qFbTiRMpg== Message-ID: <6db6a339-e402-472f-b640-523ced553354@arinc9.com> Date: Sun, 24 Mar 2024 14:45:11 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/3] Fix EEE support for MT7531 and MT7988 SoC switch To: "Russell King (Oracle)" Cc: Florian Fainelli , Daniel Golle , Andrew Lunn , DENG Qingfang , Sean Wang , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , =?UTF-8?Q?Ren=C3=A9_van_Dorst?= , SkyLake Huang , Heiner Kallweit , Bartel Eerdekens , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20240318-for-net-mt7530-fix-eee-for-mt7531-mt7988-v> <00ec9779-19ce-4005-83f0-f4abf37350fc@arinc9.com> <6cb585f6-6da8-45a2-a28b-2fb556f95672@lunn.ch> <38798882-c033-4949-9446-4c6f15c25ebe@gmail.com> <0fbe7ba2-6529-4118-b050-8ea76d28b712@arinc9.com> <11b2a4d1-66d8-4bcf-b1a8-20a635b99cc4@gmail.com> <5a4c0436-cd78-419f-af14-9c4e0c0435e3@arinc9.com> Content-Language: en-US From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Flag: yes X-Spam-Level: ************************** X-GND-Spam-Score: 400 X-GND-Status: SPAM X-GND-Sasl: arinc.unal@arinc9.com On 24.03.2024 14:39, Russell King (Oracle) wrote: > On Sun, Mar 24, 2024 at 12:47:08PM +0300, Arınç ÜNAL wrote: >> I've tested with switch ports interfaces' tx-timer from 0 to 40, same >> tx-timer for both interfaces. Loss is still there. > > EEE implementations tend to be a mess in the way drivers implement the > API, so one can't at the moment rely on what ethtool says about the > status. Sadly, this is what happens when driver authors are left to > their own ends. :( > >> I suppose the MT7531 switch PHYs need calibration for EEE that is currently >> missing from the mediatek-ge driver. > > EEE is quite simple from the software point of view. There is software > negotiation of the modules that EEE supports, and then there is are > one or more timers that affect the behaviour of EEE. The LPI timer is > "how long the link needs to be idle for before _this_ end signals that > it _can_ enter low power state". The link only enters low power state > when *both* ends of the link signal that they can enter low power > state. > > What calibration would be necessary? Check out mt798x_phy_eee() on drivers/net/phy/mediatek-ge-soc.c. Arınç