Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp345729rwe; Thu, 25 Aug 2022 01:04:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR615g2tCXRo+H9eRLkRYYwCm+2PUgKpijxLi90ntWLzuZS5H89WgEVya5eHWh9Ak0+ONTRP X-Received: by 2002:a63:d0:0:b0:41b:c075:acb5 with SMTP id 199-20020a6300d0000000b0041bc075acb5mr2284250pga.480.1661414665828; Thu, 25 Aug 2022 01:04:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661414665; cv=none; d=google.com; s=arc-20160816; b=UoI0u1p8Ptmuq0g6urdFkrTweTuWbg2dKLROI+T1PSz3m5C58eeUvONN9oT0U+wugT quUcEDwJL0x95K+Df56aE8McLUjjmqXsa7Mk9T/YBQ+jI08bWhDU2uazNADGKRx59Fic est54XOzEmh1umHcjqjSgnw9jvKpquzBqdjf0Tim9cxsSBuoApnsjPmx491KowJeY/3/ k0odCiUw01RVuXFt4rbtq7L8M5RQYCJbwihnUx+9rtBXf6vOzq3iJXIuLUKZjnlb6Ua+ hbTUa3WJ41FZni85hgAcOKiTYWO/etqnLLweKdHOUdFxyXCh0P0ybJWXd3DqVhJJlJKA edRQ== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id; bh=F+6puE9A8Y9y8wZooz5JGqQUI6duO9OypdtwiuRtFM0=; b=niBoVSKcGbu00D5/9/VMhr+/HA46mvJGRXPp7l+rJrrZy+T4dbHeQJFBWFbZ3/bWVX PZOOzw6Yu5Y87NX5olzHyujR5fKheNsQbZJCfBIFqp5V+DrhuWB5NmzJN8YhnrpWFmEa 7LeeKGfSOqt01X//vbTTb8Be9UtbIiDqKfrvZlLup1FEnILiCKxgtx/bbdtC8qTy31kR P+T76WTvxgaKR0pOUZOMziuwDD6iE0ZHyB2YOhCyWQmILuUEjovdtuP6PVAIb3Y+9+x6 5YLBua6ne7anfBiFuVvMtrtD+jgxhxV/oF7SE8uYog1avrQBvXndat+idYbkgShfNd5X ShkQ== 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 v31-20020a63465f000000b0041b208d8370si19803605pgk.408.2022.08.25.01.04.12; Thu, 25 Aug 2022 01:04:25 -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 S238202AbiHYH0k (ORCPT + 99 others); Thu, 25 Aug 2022 03:26:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237304AbiHYH00 (ORCPT ); Thu, 25 Aug 2022 03:26:26 -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 2E4BCF68; Thu, 25 Aug 2022 00:26:25 -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 1oR7Fu-0000TJ-L3; Thu, 25 Aug 2022 09:26:22 +0200 Message-ID: <8c214c0b-4b8f-5e62-5aef-76668987e8fd@leemhuis.info> Date: Thu, 25 Aug 2022 09:26:21 +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 From: Thorsten Leemhuis 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> <339e2f94-213c-d707-b792-86d53329b3e5@leemhuis.info> In-Reply-To: <339e2f94-213c-d707-b792-86d53329b3e5@leemhuis.info> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1661412385;60a87a1b; X-HE-SMSGID: 1oR7Fu-0000TJ-L3 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 On 24.08.22 13:16, Thorsten Leemhuis wrote: > 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 TWIMC, apparently it's the same problem. Fun fact: Hayes discussed this in privately with the bug reporter according to this comment: https://bugzilla.kernel.org/show_bug.cgi?id=216333#c3 Well, that's not how things normally should be handled, but whatever, he in the end recently submitted a patch to fix it that is already merged to net.git: https://lore.kernel.org/lkml/20220818080620.14538-394-nic_swsd@realtek.com/ Ciao, Thorsten P.S.: #regzbot link: https://bugzilla.kernel.org/show_bug.cgi?id=216333 #regzbot fixed-by: b75d612014447 > 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.