Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 3791D2D7BF; Mon, 6 Apr 2026 19:24:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775503492; cv=none; b=DmsKmxND5sFqTsy/iOLenZ7l3ZcW/K9bTxsjytJhKyAXhc5LhtI3paZyQ33J0iLLzsOIOnO28Fu9ZLJzcWCkbD/E6J705WPez+7pbIPgkcJ9POLBtZVmpC91wvTUgF8yrw/P7X9WluRWmlNIsXUXeKNynXwRV/UtzruuUXluwzU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775503492; c=relaxed/simple; bh=1q3XSuMMe4UjQJ22fk+I95JvVHih9U9MjRBxdLf+CBo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FRi+DVpW6/DmLnMiGWvqbRkB3kNMafDM7qVs1nlcSvBl29CKNkUlVe6aoy6g8QaE5u7criHQmnq0e7zugrN9OuQdiLEh1IHVl/l6Ox58sBhsUYdu7166Pk4rK0WOc9Os2doxwBToo53HkLx3dkx46wh/jYkxc6nIC98SDt08hz8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=LqJqN9AB; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="LqJqN9AB" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=Mhj1XqF2PSEq6c56fbv+9hQm1UGXxqAmyN6y3VzBQ/g=; b=LqJqN9ABVtlMi65kxrJNkI2Y2X hr3Muk2wJOnYRpxyc8mMICKEhZpdUI1cht6rG89KfcrYWQIqw0K/17K+VuTQmxvkK3olAmLjZuq/3 oFYTRE28eZMTN342g+ef/pvsLYDQXz4BR2YMAAoaADuZ3AROuouABMfpolrUenVjmJIY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1w9pYr-00F1va-UR; Mon, 06 Apr 2026 21:24:37 +0200 Date: Mon, 6 Apr 2026 21:24:37 +0200 From: Andrew Lunn To: Nicolai Buchwitz Cc: "Russell King (Oracle)" , Florian Fainelli , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Broadcom internal kernel review list , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 0/3] net: phy: add support for disabling autonomous EEE Message-ID: <48550230-833f-4354-ada7-563b116a4966@lunn.ch> References: <20260406-devel-autonomous-eee-v1-0-b335e7143711@tipi-net.de> <9272c5dd653039b3def8caaea3e631c5@tipi-net.de> <5298959c-12de-4992-a896-3d1371cba111@lunn.ch> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Apr 06, 2026 at 08:29:38PM +0200, Nicolai Buchwitz wrote: > On 6.4.2026 19:10, Russell King (Oracle) wrote: > > On Mon, Apr 06, 2026 at 09:43:55AM -0700, Florian Fainelli wrote: > > > That is almost a guarantee given, there will be a broken MAC > > > > Well, it already exists. modern i.MX platforms use stmmac, and some > > bright spark wired lpi_intr_o together with the main stmmac interrupt > > which causes interrupt storms when the receive path exits LPI. This > > makes stmmac LPI unusable on this platform. > > > > So, if i.MX is paired with a PHY that can do its own EEE, then we > > have this exact scenaro. > > For DT-based platforms (like the broken i.MX), this could be addressed > similar to what we already have with eee-broken-* properties. For > platforms without DT it's getting more complicated and I can't see a > way without ethtool. i.MX is not actually an issue. The MAC EEE is so broken we don't consider using it. Since it never calls phy_support_eee() PHY EEE will be used. It gets more interesting when we actually have PHY EEE support. And a board using it. And then somebody adds support for MAC EEE which is partially broken, but better than nothing. It calls phy_support_eee(), so disabling PHY EEE, which can cause a board using PHY EEE to regress, because the poor MAC EEE is worse than the PHY EEE which just got disabled. With PTP we talked about adding some sort of quality value, so we can rank the implementations and pick the best. But that never got implemented. It is these sorts of corner case regressions which are hard to deal with. Andrew