Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp192929pxu; Wed, 25 Nov 2020 17:17:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5cYo7u2J8HDjtDAbw6pu/25ve2Nm5M6khQnhGw0q+NhCC9nbYHeGt5PgG+kkzCHC30NE5 X-Received: by 2002:a05:6402:2059:: with SMTP id bc25mr341722edb.13.1606353440633; Wed, 25 Nov 2020 17:17:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606353440; cv=none; d=google.com; s=arc-20160816; b=h7h5OoCxm4tycCJl/rCSozMwGyklPzrq8+mbTLyPKALnxvoYFOcdBZiWtxKWTeGmUn HdlSRYgb6Vj/01mVkv23qcU03ETVWmWFJdBTC5Px3xggIJzvofN3qEpZU3z040g/2iyD xRmdFGIWORe5/hUz6cdhwzyC7uiYhbyVr7EDPWiXoRz09XEaEkh1hYyxufUE5Sy2aaLL DNzXTVTEoB2mfBX41eYycV6GO6S6iqBeHwEi3kgGuLt4FQj0fr7w+ujEJAy8i53QFous yYck7ZQact7pdr79pkADKn6D5c5o8pRMVPXBVoVcHoQkWA6YWv9uzKYM5+V6WP+ob3bE FX/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Ujp+QDoWOAtFP+okH/G0ZTeRHwZkzRyXAp+uVakzHqc=; b=jDq/homF20xe16Tvdqh3nbmA41u+QD1lHYJd8Qq8peIo1KV/iLFYbhMcu1fHN9F9G4 Xl5ZCeEb0I/mmL11oQYQRSGITXwYAux2g5lNj0IYicGDUfgREIZEtUpOKVGwbe/JBJiV babRBS/fPOUJ/36YQKdzYQz9ZMKWoQ7cSXYEtAPh0Pa669sCslvUBLmYApzIGpSDnnfI KvW/kZ8zpXRibTuMtIgGPRyGq/RfJROn8pPmBqReSulOw5bA0m5Ra+Jeh7Yq69ceEDSW RafHcBCOiD0IlkWvreOxT1CJ72teI7sBneASy6FtZBcl0lUXWCAq+uKe3ylF/LUBfFYy 1x0w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t23si2363936edc.387.2020.11.25.17.16.58; Wed, 25 Nov 2020 17:17:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730646AbgKZBPE (ORCPT + 99 others); Wed, 25 Nov 2020 20:15:04 -0500 Received: from szxga02-in.huawei.com ([45.249.212.188]:2444 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729131AbgKZBPE (ORCPT ); Wed, 25 Nov 2020 20:15:04 -0500 Received: from dggeme760-chm.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4ChKYD6vgTz4yNM; Thu, 26 Nov 2020 09:14:40 +0800 (CST) Received: from [127.0.0.1] (10.57.36.170) by dggeme760-chm.china.huawei.com (10.3.19.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1913.5; Thu, 26 Nov 2020 09:15:01 +0800 Subject: Re: [PATCH v3 net-next] net: phy: realtek: read actual speed on rtl8211f to detect downshift To: Russell King - ARM Linux admin CC: Antonio Borneo , Andrew Lunn , Heiner Kallweit , "David S. Miller" , Jakub Kicinski , , Willy Liu , , Salil Mehta , , References: <20201124143848.874894-1-antonio.borneo@st.com> <20201124230756.887925-1-antonio.borneo@st.com> <20201125170714.GK1551@shell.armlinux.org.uk> From: Yonglong Liu Message-ID: <3fdb1d11-d59e-9d3d-a5a8-8f20e4ca7f0a@huawei.com> Date: Thu, 26 Nov 2020 09:15:01 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.0.1 MIME-Version: 1.0 In-Reply-To: <20201125170714.GK1551@shell.armlinux.org.uk> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [10.57.36.170] X-ClientProxiedBy: dggeme715-chm.china.huawei.com (10.1.199.111) To dggeme760-chm.china.huawei.com (10.3.19.106) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Russell:     I found this message in kernel log, thanks! On 2020/11/26 1:07, Russell King - ARM Linux admin wrote: > On Thu, Nov 26, 2020 at 12:57:37AM +0800, Yonglong Liu wrote: >> Hi, Antonio: >> >>     Could you help to provide a downshift warning message when this happen? >> >>     It's a little strange that the adv and the lpa support 1000M, but >> finally the link speed is 100M. > That is an identifying feature of downshift. > > Downshift can happen at either end of the link, and since we must not > change the "Advertised link modes" since this is what userspace > configured, if a downshift occurs at the local end, then you will get > the ethtool output you provide, where the speed does not agree with > the reported advertisements. > > You should already be getting a warning in the kernel log when this > happens; phy_check_downshift() which is part of the phylib core code > will check this every time the link comes up. You should already > have a message "Downshift occurred ..." in your kernel log. Please > check. >