Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1564488rdb; Sat, 2 Dec 2023 00:31:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IHXvgPLDGxgwOWqkeJjl4FjRa9iUMVqx29ekotyUSWv4xLt7deAxwb6xLtpZbYd99iQvPcC X-Received: by 2002:a92:b712:0:b0:35d:624a:3037 with SMTP id k18-20020a92b712000000b0035d624a3037mr125018ili.9.1701505887656; Sat, 02 Dec 2023 00:31:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701505887; cv=none; d=google.com; s=arc-20160816; b=yQJTcE2PhSSvQW8YEoOAI/CMKO4CvWzD+z7O4xUWSMcFWu6C5cda2rmdhoZ7rQ48cn EzaOnwUKWSXxOXM7463HX49W42IxmfqyVOaxKsLnmw239h9N1uxGIjnQksTou4EG3dSJ sPtSMELOUblhydpHj7uz35abptV2qTMxaoGiyIQuYEDdJchnkCcynCjf9hsO20SFZJmb bnPlvtFOiv02lIlSnzvvCyGyFTiyNbOmlQEOkt8D9J64bGrvay5WHVIOd3dSay2wNMUc BXcPmZrOruJo3286Li/7tJRGraxgSlbUNf5cZ24UHD8cQ1IkuGH09ZbQKKdDTYUY5iLJ YLLw== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=ngS2ris1InPJCJ/71s9B7T9BRtWlJbWZ8eermDVsAPc=; fh=XEEKYjgsPfniEHoSoAb2oeC7aYR5tzvGaj2CMYY3fPw=; b=N6GnE5+S+zsXqQMI9gHjLLZC/7lnOv8Yxplebjfu64fGH6s6+Ajgwcdbn8u8hlTQZf KCla5uJY+X1kRD1pSgmFJh6G8fEO5pueDVbQBBsSTyJtlmm6uLeN+kzHDr7chNxVd5ir L4KAQAltM157IIgIdANtgPX+9oyE8nmRTjpIGLBKMKe5PCXmsIC2bLvWBiP33C7kQEuG rvwkt7v03FOs9+Gcg6PJcL69GQoVh6VqKi64fa0wTNH9+6yLq+MXUzvBT6w51JBuNHzT s2iPictQ5OSJ25S+AhmH1+HYpvB/XQoBo6FLwZUPBs1fuOytiKAvzUprE1JosnkGJtZ/ Q1Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GFhgzukW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id h8-20020a170902ac8800b001d060d48fb3si1716416plr.460.2023.12.02.00.31.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 00:31:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GFhgzukW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id EE0998046C8E; Sat, 2 Dec 2023 00:31:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229514AbjLBITo (ORCPT + 99 others); Sat, 2 Dec 2023 03:19:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjLBITn (ORCPT ); Sat, 2 Dec 2023 03:19:43 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D8F1198; Sat, 2 Dec 2023 00:19:50 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a00ac0101d9so419348466b.0; Sat, 02 Dec 2023 00:19:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701505188; x=1702109988; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ngS2ris1InPJCJ/71s9B7T9BRtWlJbWZ8eermDVsAPc=; b=GFhgzukWyDXg7MgnY46Fk/3BnJ5WW7jIrguE3BWfbAs5NSPlxS04R6SzdtvZVx3o4I QLEhUdc805I1Trt3h+GOp5mJWjl/7GI6oJscoHzMqbh7Xty6KdwQK5QDlfCOCBb7t6bJ umMnf3ka3H8D8lilraegnFFK7xJX4SOliNj4Fofyc/SuDu+DWnmzNxWUKzBeP45FYZqr Nb9fmqa/IdmQCrJQnOgeAkQVFz5LZ3Me9EYdqkgFLovZa5HnARtp5m1ZfncT+BFPvGFA EfwzdSHOhhaLY0nlTbX7AgzWGmAATo7Y/EqhhiGjuU2oE5PzzOlaowahxWMTiP27jA6u f7yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701505188; x=1702109988; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ngS2ris1InPJCJ/71s9B7T9BRtWlJbWZ8eermDVsAPc=; b=Ze30m9oI8c1boZ6E5rFrURt2w1jkmUqB3xeQEEJsMSmGkBw/w1DFaX6qItlOWP5Mk4 5fchMO5v/rwyuw2EIJd7uIkA15Q4WJiw0giSbIdBLfaYa6ubW7X3WNtN/NdZSprakUWP zIDf+AAwvmvKrOexWQ8F70TJhVxbwOnJot6yBfW2PobQzLdgYodAj7aVkhU1JXCTSz4q lUOsQH2LcqUkWTtiFbOnHPENRi4isr1/Goy9NFl5pnJ7tp/82xR54EDvbJr/D4NKRUm4 KNcFXpuX9vphwTYzeIOjA6af9h7CFS1BKAEk4Ftbv4hPa2pVM9E4jMmhVIY8GxOsZeAh ExKQ== X-Gm-Message-State: AOJu0Yw5lb+gQ8Xp2/82oYpaEzqBPmtYVbXbztBI9PdxBGO0oLts8TdU xq39g4INBqFFfVg07T+3rk8= X-Received: by 2002:a17:906:10c8:b0:a19:a1ba:da52 with SMTP id v8-20020a17090610c800b00a19a1bada52mr1277430ejv.121.1701505187903; Sat, 02 Dec 2023 00:19:47 -0800 (PST) Received: from ?IPV6:2a01:c23:c5f2:af00:b411:4430:8d9f:2d09? (dynamic-2a01-0c23-c5f2-af00-b411-4430-8d9f-2d09.c23.pool.telefonica.de. [2a01:c23:c5f2:af00:b411:4430:8d9f:2d09]) by smtp.googlemail.com with ESMTPSA id re17-20020a170906d8d100b009fc0c42098csm2835546ejb.173.2023.12.02.00.19.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Dec 2023 00:19:47 -0800 (PST) Message-ID: <5576d307-36f7-4cb5-80e7-290b659ba573@gmail.com> Date: Sat, 2 Dec 2023 09:19:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net v2] r8169: fix rtl8125b PAUSE frames blasting when suspended Content-Language: en-US To: ChunHao Lin Cc: nic_swsd@realtek.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, grundler@chromium.org, stable@vger.kernel.org References: <20231129155350.5843-1-hau@realtek.com> From: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Ma36S8Jk456k2n1id7M0LQ+eqstmp6Y+UB+pt9NX6t0Slw1NCdYTW gJezWTVKF7pmTdXszXGxlc9kTrVUz04PqPjnYbv5UWuDd2eyzGjrrFOsJEi8OK2d2j4FfF++ AzOMdW09JVqejQARAQABwsF2BBgBCAAgFiEEbF+pj/I7JePKMl6Fct6KD1TwOgwFAl/0ZFUC GwwACgkQct6KD1TwOgxUfg//eAoYc0Vm4NrxymfcY30UjHVD0LgSvU8kUmXxil3qhFPS7KA+ y7tgcKLHOkZkXMX5MLFcS9+SmrAjSBBV8omKoHNo+kfFx/dUAtz0lot8wNGmWb+NcHeKM1eb nwUMOEa1uDdfZeKef/U/2uHBceY7Gc6zPZPWgXghEyQMTH2UhLgeam8yglyO+A6RXCh+s6ak Wje7Vo1wGK4eYxp6pwMPJXLMsI0ii/2k3YPEJPv+yJf90MbYyQSbkTwZhrsokjQEaIfjrIk3 rQRjTve/J62WIO28IbY/mENuGgWehRlTAbhC4BLTZ5uYS0YMQCR7v9UGMWdNWXFyrOB6PjSu Trn9MsPoUc8qI72mVpxEXQDLlrd2ijEWm7Nrf52YMD7hL6rXXuis7R6zY8WnnBhW0uCfhajx q+KuARXC0sDLztcjaS3ayXonpoCPZep2Bd5xqE4Ln8/COCslP7E92W1uf1EcdXXIrx1acg21 H/0Z53okMykVs3a8tECPHIxnre2UxKdTbCEkjkR4V6JyplTS47oWMw3zyI7zkaadfzVFBxk2 lo/Tny+FX1Azea3Ce7oOnRUEZtWSsUidtIjmL8YUQFZYm+JUIgfRmSpMFq8JP4VH43GXpB/S OCrl+/xujzvoUBFV/cHKjEQYBxo+MaiQa1U54ykM2W4DnHb1UiEf5xDkFd4= In-Reply-To: <20231129155350.5843-1-hau@realtek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sat, 02 Dec 2023 00:31:22 -0800 (PST) On 29.11.2023 16:53, ChunHao Lin wrote: > When FIFO reaches near full state, device will issue pause frame. > If pause slot is enabled(set to 1), in this time, device will issue > pause frame only once. But if pause slot is disabled(set to 0), device > will keep sending pause frames until FIFO reaches near empty state. > > When pause slot is disabled, if there is no one to handle receive > packets, device FIFO will reach near full state and keep sending > pause frames. That will impact entire local area network. > > This issue can be reproduced in Chromebox (not Chromebook) in > developer mode running a test image (and v5.10 kernel): > 1) ping -f $CHROMEBOX (from workstation on same local network) > 2) run "powerd_dbus_suspend" from command line on the $CHROMEBOX > 3) ping $ROUTER (wait until ping fails from workstation) > > Takes about ~20-30 seconds after step 2 for the local network to > stop working. > > Fix this issue by enabling pause slot to only send pause frame once > when FIFO reaches near full state. > > Fixes: f1bce4ad2f1c ("r8169: add support for RTL8125") > Reported-by: Grant Grundler > Tested-by: Grant Grundler > Cc: stable@vger.kernel.org > Signed-off-by: ChunHao Lin > --- > v2: > - update comment and title. > --- Reviewed-by: Heiner Kallweit