From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62BE8C433EF for ; Wed, 8 Jun 2022 13:19:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240105AbiFHNTj (ORCPT ); Wed, 8 Jun 2022 09:19:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240103AbiFHNTi (ORCPT ); Wed, 8 Jun 2022 09:19:38 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 27FF738BE6 for ; Wed, 8 Jun 2022 06:19:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654694376; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bYfqG+mmrZsYnB3Q4WWY9yIatSaBCKfG6eFWUGz94/w=; b=ZGq2/8NVrR1xvB44EC+8SkqzP7X9e2WtNWPODqb+/Xlk/0zDNjFjhNzhz3x3Scw/WPeltB /9w0b4sFiGo7XciFGheqelvGkfyDVNkr0UJb2oiyLgOV1rAermpBDTlvZr2mgAVV+o4GOW 7pb0dVNK4nYkMtCksid/dIGNe/olHmc= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-210-w3NGAFBUP0a4avKCc4cTtw-1; Wed, 08 Jun 2022 09:19:33 -0400 X-MC-Unique: w3NGAFBUP0a4avKCc4cTtw-1 Received: by mail-ed1-f71.google.com with SMTP id t14-20020a056402020e00b0042bd6f4467cso14763726edv.9 for ; Wed, 08 Jun 2022 06:19:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=bYfqG+mmrZsYnB3Q4WWY9yIatSaBCKfG6eFWUGz94/w=; b=TYRVaqt+Zy612hYW6bt7qwtMNV3bVkhMAIqhLjMx/uNMFRO0uhHmD2WyuCmtYxCL2L fzgK9NWL8Ji1Y9DF+UdgFmFY5zKWsUKf5WWW/oH1LII6kElxDJb9YIO1OuPIYxVtQzsv zYk66StbPp8ezBihFd912SqDtM1+0McvWWIiOFTYbXm61KpRd+KsObLvenuuMucTqWrW Ahi85U7Rylmcjxg1f8nXGz4OysBRWlQR2oBJzILxusJ2JBuqhgW1YZ+Pt/kDpqSuxtdF mZxN6BluTpaWLwgNmQ8Gw+GDOvCnnIa/SDHRXGHzkvz7PCpmDYJYQdJCC9p30pA1LJOv KpvA== X-Gm-Message-State: AOAM5300zRsite7R/fQFcZwAKD4dWXj1TmCUvZ4E73hqejfEueKfWfiQ X/AGfzU6cr4cUaRxoJe0J3gqZZ++3375Ew/BQoaqBpolYLZcQjFrbTxUXwnlcDHjxnZSaGJvEju +5EeyyZLTG5RmWwOv X-Received: by 2002:a05:6402:5412:b0:42d:cf78:6479 with SMTP id ev18-20020a056402541200b0042dcf786479mr38921207edb.18.1654694371245; Wed, 08 Jun 2022 06:19:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJR7nP64yd4YZRsPhWHmm59xX78RLn8pWZ0uVCy9QR4GDl1fZWhfXW4CbNL/YItnMe9arVAA== X-Received: by 2002:a05:6402:5412:b0:42d:cf78:6479 with SMTP id ev18-20020a056402541200b0042dcf786479mr38921189edb.18.1654694371055; Wed, 08 Jun 2022 06:19:31 -0700 (PDT) Received: from ?IPV6:2001:1c00:c1e:bf00:d69d:5353:dba5:ee81? (2001-1c00-0c1e-bf00-d69d-5353-dba5-ee81.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:d69d:5353:dba5:ee81]) by smtp.gmail.com with ESMTPSA id m25-20020a509999000000b0042bd25ca29asm12567155edb.59.2022.06.08.06.19.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Jun 2022 06:19:30 -0700 (PDT) Message-ID: <3fdb48d6-4892-8004-bcff-5cbbcaf4d9a3@redhat.com> Date: Wed, 8 Jun 2022 15:19:29 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [REGRESSION] r8169: RTL8168h "transmit queue 0 timed out" after ASPM L1 enablement Content-Language: en-US To: Bernhard Hampel-Waffenthal , Heiner Kallweit Cc: nic_swsd@realtek.com, netdev@vger.kernel.org, regressions@lists.linux.dev, Jakub Kicinski References: <9ebb43ee-52a1-c77d-d609-ca447a32f3e6@posteo.at> From: Hans de Goede In-Reply-To: <9ebb43ee-52a1-c77d-d609-ca447a32f3e6@posteo.at> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi, On 6/8/22 02:44, Bernhard Hampel-Waffenthal wrote: > #regzbot introduced: 4b5f82f6aaef3fa95cce52deb8510f55ddda6a71 > > Hi, > > since the last major kernel version upgrade to 5.18 on Arch Linux I'm unable to get a usable ethernet connection on my desktop PC. > > I can see a timeout in the logs > >> kernel: NETDEV WATCHDOG: enp37s0 (r8169): transmit queue 0 timed out > > and regular very likely related errors after > >> kernel: r8169 0000:25:00.0 enp37s0: rtl_rxtx_empty_cond == 0 (loop: 42, delay: 100). > > > The link does manage to go up at nominal full 1Gbps speed, but there is no usable connection to speak of and pings are very bursty and take multiple seconds. > > I was able to pinpoint that the problems were introduced in commit 4b5f82f6aaef3fa95cce52deb8510f55ddda6a71 with the enablement of ASPM L1/L1.1 for ">= RTL_GIGA_MAC_VER_45", which my chip falls under. Adding pcie_aspm=off the kernel command line or changing that check to ">= RTL_GIGA_MAC_VER_60" for testing purposes and recompiling the kernel fixes my problems. > > > I'm using a MSI B450I GAMING PLUS AC motherboard with a RTL8168h chip as per dmesg: Hmm, my main workstation has a "MSI B550M PRO-VDH" which is similar(ish) to your motherboard and is using the exact same ethernet controller and I'm not seeing any issues with 5.18.0. ASPM issues may be BIOS related, are you at the latest BIOS version? And are all your (relevant) BIOS settings set to the default settings? Regards, Hans > >> r8169 0000:25:00.0 eth0: RTL8168h/8111h, 30:9c:23:de:97:a9, XID 541, IRQ 101 > > lspci says: > >> 25:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15) >         Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:7a40] >         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ >         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR-         Latency: 0, Cache Line Size: 64 bytes >         Interrupt: pin A routed to IRQ 30 >         IOMMU group: 14 >         Region 0: I/O ports at f000 [size=256] >         Region 2: Memory at fcb04000 (64-bit, non-prefetchable) [size=4K] >         Region 4: Memory at fcb00000 (64-bit, non-prefetchable) [size=16K] >         Capabilities: >         Kernel driver in use: r8169 >         Kernel modules: r8169 > > > If you need more info I'll do my best to provide what I can, hope that helps already. > > Regards, > Bernhard >