Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp628518pxb; Thu, 15 Apr 2021 02:50:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzS3cYya7T/TQXIme4cH1ShA437Zk3BJF1XgCa6NYudzxW91Zk5LMtK/SRM0lMwT0RycUB X-Received: by 2002:a05:6a00:170c:b029:225:8851:5b3c with SMTP id h12-20020a056a00170cb029022588515b3cmr2412620pfc.0.1618480201022; Thu, 15 Apr 2021 02:50:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618480201; cv=none; d=google.com; s=arc-20160816; b=MZmlXi8ipG7k7qZHRtHMgG2uSyBMeWvcmQ52RW9wF1h61K+4fhtcyuPofV83ZD2+Ec Z95bMag74zblCDgczOXv/U5I9dH51IPQA2kG2Lq3oKtad/du0/c0VbGuw1kK3A/iORoq l3NkaUKh318NkPqRqBEq7qHNPn0TvT/n2/jlUOtzZVvmcBbh2ZVtN8U31uuI1/beIVRT ch7OdGUJDHgiNtzqGNiM+zdpXXlZr6sbgjBVCeR7YMOehvAXpTE1m3icQm/EQu4G+AUN 6RLsnhrNpHaX7AysMfwjrtyUuxnTxcSj25W/kZrrDwGPWzLPwaVWFBo2iefz/t8qwNth Q0Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MLJSeXjPoZhwM9OSDgG8lC1iJnB13aPm/yKl+/yfCV4=; b=ja8kAbLjYgnffrMLdzy6iJNL5ThfMtR9c4sXB+lObg/pVa1hQM1AxcPL8vu6F4AZ6Y +UeTG8oCiHtCt5if4jRwdcLtcsP5gXI3h0fCDz5HMY05PRwXnIKKwx7fP6Q+hs9HYM5+ GDmLJ37vezU4Ty6pkmbfh3THILvu3YUFlMV8s3IBOImHb1Kv9aEAeVLG9EGEPoJBhltE URWLmu7epzt4skl4QCi1mBkPTJMgxKwlic2Cgj7ymAA6AH5uClzsqJ3QuyBFZruAMVW1 0U2JGERZv1wBy0SJ5CYjgpkcuFYkx6S8JBHvPMYFCBR8itBNCipKpiKORFJ1fRXSUSlt mI5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pRp6PcDw; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s27si2741914pgk.16.2021.04.15.02.49.48; Thu, 15 Apr 2021 02:50:01 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=pRp6PcDw; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232119AbhDOJth (ORCPT + 99 others); Thu, 15 Apr 2021 05:49:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231954AbhDOJtf (ORCPT ); Thu, 15 Apr 2021 05:49:35 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BC19C061574; Thu, 15 Apr 2021 02:49:13 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id d10so16528069pgf.12; Thu, 15 Apr 2021 02:49:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-disposition:content-transfer-encoding; bh=MLJSeXjPoZhwM9OSDgG8lC1iJnB13aPm/yKl+/yfCV4=; b=pRp6PcDwdUPowwS48+n5Vcn7b/Qu7Q0Bq2YvCP3A8ZlqeThBV3w1DUWLE2e8USg8pm p56e0NTf8FPp/4keeaxSxU8itqoXcygZWccJHjzPYw6twkrPCaCeIa7t8UWAaOi13xiX Ve6vDa0hTMEKVIEsbLjuxRulV/n9kQ+m5aOD6Vkf6r2/Bwusr+eQ/S2dwwn2oMFwp3Lc 2GkmtQYNPNgQcVe/+isx2vnEXxpY4KB3qC1LUVEX/QDmUFhh3+H3Qlnrawi6wO8qPSXX n9LXQW/2cwdJBiHYuTEtqQ1QFQjXIxdEl7Z+WptTF8OVwNjIWlQO0gCPwfl0HQmBLn9z KTxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-disposition :content-transfer-encoding; bh=MLJSeXjPoZhwM9OSDgG8lC1iJnB13aPm/yKl+/yfCV4=; b=njomCBQASrMGDIrAB2ac1RY1Xp6y/SpXWX96EaS5PsxiHXMZa6nj/hAEhGeWvXE+fs Qa+TIabsNVV803M6JV9uUtQYVFtRqhej5u4Ey3z0eeHbmfqowO/f/qqRmHHZbxzTVZwj oE6FawiUMe1Jht0P0ZMFhoKTXMbR+irzYY2ao/U0//pp/RrnCyzIJZeX/Akbxr7pYYNR e/eaPEnd7kVbFMj1CFuyIwxpfc7Twhd5yND49cgVqtCrG3Ak9H8qzdHAGDULNwTM9BP7 rVByJ0z/R5MdiNgURmEP3GfJojDp53/FK0HWlHIUokQVYdERxvqVyRkPo/mNWhdQfAfS pV1g== X-Gm-Message-State: AOAM533yOavwkUmDhaPsMH2vjMzwNre838gkcRmXH14ZWDvncwj3C6Ii ne272fSCU9Am7J1aw0EhHco= X-Received: by 2002:a62:7d07:0:b029:21b:d1bc:f6c8 with SMTP id y7-20020a627d070000b029021bd1bcf6c8mr2278450pfc.45.1618480152634; Thu, 15 Apr 2021 02:49:12 -0700 (PDT) Received: from localhost.localdomain ([138.197.212.246]) by smtp.gmail.com with ESMTPSA id g10sm1581765pfj.137.2021.04.15.02.49.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Apr 2021 02:49:11 -0700 (PDT) From: DENG Qingfang To: Russell King - ARM Linux admin Cc: =?iso-8859-1?Q?Ren=E9?= van Dorst , "David S. Miller" , Andrew Lunn , Florian Fainelli , Heiner Kallweit , Jakub Kicinski , Landen Chao , Matthias Brugger , Sean Wang , Vivien Didelot , Vladimir Oltean , Rob Herring , Linus Walleij , Greg Kroah-Hartman , Sergio Paracuellos , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-staging@lists.linux.dev, devicetree@vger.kernel.org, netdev@vger.kernel.org, Weijie Gao , Chuanhong Guo , Frank Wunderlich , Thomas Gleixner , Marc Zyngier Subject: Re: [RFC v4 net-next 1/4] net: phy: add MediaTek PHY driver Date: Thu, 15 Apr 2021 17:49:02 +0800 Message-Id: <20210415094902.2946-1-dqfext@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210413131259.GP1463@shell.armlinux.org.uk> References: <20210412034237.2473017-1-dqfext@gmail.com> <20210412034237.2473017-2-dqfext@gmail.com> <20210412070449.Horde.wg9CWXW8V9o0P-heKYtQpVh@www.vdorst.com> <20210412150836.929610-1-dqfext@gmail.com> <20210413035920.1422364-1-dqfext@gmail.com> <20210413131259.GP1463@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 13, 2021 at 02:12:59PM +0100, Russell King - ARM Linux admin wrote: > On Tue, Apr 13, 2021 at 11:59:20AM +0800, DENG Qingfang wrote: > > Within 12 hours, I got some spontaneous link down/ups when EEE is enabled: > > > > [16334.236233] mt7530 mdio-bus:1f wan: Link is Down > > [16334.241340] br-lan: port 3(wan) entered disabled state > > [16337.355988] mt7530 mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control rx/tx > > [16337.363468] br-lan: port 3(wan) entered blocking state > > [16337.368638] br-lan: port 3(wan) entered forwarding state > > > > The cable is a 30m Cat.6 and never has such issue when EEE is disabled. > > Perhaps WAKEUP_TIME_1000/100 or some PHY registers need to be fine-tuned, > > but for now I think it should be disabled by default. > > Experience with Atheros AR8035 which has a very similar issue would > suggest that before resorting to the blunt hammer of disabling > SmartEEE, one should definitely experiment with the 1G Tw settings. > > Using 24us for 1G speeds on AR8035 helps a great deal, whereas the PHY > defaults to 17us for 1G and 23us for 100M. I set the 1G Tw to maximum 255us and still got the link issue..