Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp495403rwe; Wed, 24 Aug 2022 04:45:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR76MaFG/76y1FUZYtqsk5TrdrJ73sDWsQSYKpdRcS/o1mJTmbaw2FO2/XxNuGhA+E5KEReF X-Received: by 2002:a05:6a02:207:b0:41c:9e7d:775e with SMTP id bh7-20020a056a02020700b0041c9e7d775emr23778367pgb.227.1661341542095; Wed, 24 Aug 2022 04:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661341542; cv=none; d=google.com; s=arc-20160816; b=RLt8XwGxjqcMHQAbq9hgHaj971OHfO8pYxff1lKpP+Nh4EXRTvyNaKmq4/+EDGjyUE /u0lnBksRxpZxE91s1D0wAoH7MllqSwQXB5mB6Q2tevi3ENmnsp23VNt9evwTztWJdy6 N3vgRThuf5SXBRApiJNx5I49n0ySC3AV541SK2Pv5inW9FdGZ82DTVjzcas1SJTe1Z1k c/8UqahmcZYQo9r/TXE9vpDW2YYVdxrz9bf9kIpoFm7qXyuxNtBpXQnUyfYrkY4zNwhq eLuLREyOS6erI9vr8dJXj6J28vNo57mKmXqbHiYAwIoFR4HGjdh1J4mNGT6xKP4MDwfh Nqww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=uM2QFYEJNZoavtReRMnCNgjLtXUewXQ/oSw//KXTn7M=; b=qoa60RJ7ETTwte8ETsSpdN/QoR6aG1HkuCp0PWX9TkTFI+MxiGtDGhamGQ9WG2Krd8 2Aa2ZrQF+ZM6z6vqhcE8ILtJF6El0kPM8Rk9zcrxpbW3uAiClBMbe/NrtpzVV9+TyrV2 KPtv4cEC2ay3ObGeLAzwtdYlAGx2VQzVcLsfpDKyyGjjZ699lpi3TavLer9qu397LzyK znWsLkrSi3DoUKuf8rOUG+/i8PWiYZmJywnL11nLcC3ciT29iAFvP7TljUFeTRKvq5zQ EvCYwXOTjl/z0EGSX2+IwfisNbq50Mu6Dhq+7cLzxGR/w+NMc2bIbnTYQH1kQoWb04Xq INEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a170902ea0400b00171554b0e73si19169788plg.361.2022.08.24.04.45.30; Wed, 24 Aug 2022 04:45:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236452AbiHXLQ5 (ORCPT + 99 others); Wed, 24 Aug 2022 07:16:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233396AbiHXLQz (ORCPT ); Wed, 24 Aug 2022 07:16:55 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:8234::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEF8D61D7D; Wed, 24 Aug 2022 04:16:52 -0700 (PDT) Received: from [2a02:8108:963f:de38:eca4:7d19:f9a2:22c5]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1oQoNN-0004hc-4u; Wed, 24 Aug 2022 13:16:49 +0200 Message-ID: <339e2f94-213c-d707-b792-86d53329b3e5@leemhuis.info> Date: Wed, 24 Aug 2022 13:16:48 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: Commit 'r8152: fix a WOL issue' makes Ethernet port on Lenovo Thunderbolt 3 dock go crazy Content-Language: en-US To: Maxim Levitsky , netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Hayes Wang , "regressions@lists.linux.dev" References: <3745745afedb2eff890277041896356149a8f2bf.camel@redhat.com> From: Thorsten Leemhuis In-Reply-To: <3745745afedb2eff890277041896356149a8f2bf.camel@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1661339814;474960c6; X-HE-SMSGID: 1oQoNN-0004hc-4u X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, this is your Linux kernel regression tracker. Quick note before the boilerplate: there is another report about issues caused by cdf0b86b250fd3 also involving a dock, but apparently it's ignored so far: https://bugzilla.kernel.org/show_bug.cgi?id=216333 Anyway, moving on: [TLDR: I'm adding this regression report to the list of tracked regressions; all text from me you find below is based on a few templates paragraphs you might have encountered already already in similar form.] CCing the regression mailing list, as it should be in the loop for all regressions, as explained here: https://www.kernel.org/doc/html/latest/admin-guide/reporting-issues.html On 23.08.22 11:20, Maxim Levitsky wrote: > > I recently bisected an issue on my Lenovo P1 gen3, which is connected to the Lenovo Thunderbolt 3 dock. > > After I suspend the laptop to ram, the ethernet port led on the dock starts to blink like crazy, > its peer port on my ethernet switch blinks as well, and eventually the switch stops forwarding packets, > bringing all my network down. > > Likely the ethernet card in the dock sends some kind of a garbage over the wire. > > Resuming the laptop, "fixes" the issue (leds stops blinking, and the network starts working again > after a minute or so). > > I also tried to connect the dock directly to my main desktop over a dedicated usb network card > and try to capture the packets that are sent, but no packets were captured. I will soon retry > this test with another network card. I did use promicious mode. > > > This is the offending commit, and reverting it helps: > > commit cdf0b86b250fd3c1c3e120c86583ea510c52e4ce > Author: Hayes Wang > Date: Mon Jul 18 16:21:20 2022 +0800 > > r8152: fix a WOL issue > > This fixes that the platform is waked by an unexpected packet. The > size and range of FIFO is different when the device enters S3 state, > so it is necessary to correct some settings when suspending. > > Regardless of jumbo frame, set RMS to 1522 and MTPS to MTPS_DEFAULT. > Besides, enable MCU_BORW_EN to update the method of calculating the > pointer of data. Then, the hardware could get the correct data. > > Fixes: 195aae321c82 ("r8152: support new chips") > Signed-off-by: Hayes Wang > Link: https://lore.kernel.org/r/20220718082120.10957-391-nic_swsd@realtek.com > Signed-off-by: Jakub Kicinski > > > WOL from dock was enabled in BIOS, but I tested with it disabled as well, and > no change in behavier. > > Any help is welcome. I can test patches if needed, the laptop currently runs 6.0-rc2 > with this commit reverted. > > When I find some time I can also narrow the change down by reverting only parts > of the patch. > > Best regards, > Maxim Levitsky > Thanks for the report. To be sure below issue doesn't fall through the cracks unnoticed, I'm adding it to regzbot, my Linux kernel regression tracking bot: #regzbot ^introduced cdf0b86b250fd3c1c3e120c86583ea510c52e4ce #regzbot title net: r8152: ehernet port on Lenovo Thunderbolt 3 dock goes crazy #regzbot ignore-activity This isn't a regression? This issue or a fix for it are already discussed somewhere else? It was fixed already? You want to clarify when the regression started to happen? Or point out I got the title or something else totally wrong? Then just reply -- ideally with also telling regzbot about it, as explained here: https://linux-regtracking.leemhuis.info/tracked-regression/ Reminder for developers: When fixing the issue, add 'Link:' tags pointing to the report (the mail this one replies to), as explained for in the Linux kernel's documentation; above webpage explains why this is important for tracked regressions. Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) P.S.: As the Linux kernel's regression tracker I deal with a lot of reports and sometimes miss something important when writing mails like this. If that's the case here, don't hesitate to tell me in a public reply, it's in everyone's interest to set the public record straight.