From nobody Thu Apr 14 18:38:21 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9CBF41B4CEA4 for ; Thu, 14 Apr 2022 18:38:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KfSrs3Cwrz4Y0n for ; Thu, 14 Apr 2022 18:38:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 475BE25874 for ; Thu, 14 Apr 2022 18:38:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 23EIcLul098153 for ; Thu, 14 Apr 2022 18:38:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23EIcLPN098152 for bugs@FreeBSD.org; Thu, 14 Apr 2022 18:38:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 263283] Packet drops on rock64 Date: Thu, 14 Apr 2022 18:38:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: richard@kojedz.in X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649961501; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aVS76QfJXYBJIYCjxDL+9hSnGr0GZ+2+6ujE/n17GRU=; b=tYRdaWWl6zfu88inW+7hWO7wkAuvVIJCr+mslo4prAYkJOP9yAxU1F6Mta31Snb71yhGb/ SUJLltURj++63RmHiAuqiWblgOeYjACeaaJGJshzsh7dROhJrsDHRIQirfr5P+oLRnLxm8 S217VCC7b1a/T5VEU40SGwKUR+eHjSrM4hYnqKmdk/SlxANA6ZkqIIniFZ6FmdKj3f2FBF a/xHQMDA3Q2a7ngoIZLpPhypueebUPZ4k3IfugBevkdUBNJqHO5hTkrqQEYYSPuj9Wkl/x aOk4PvlOIito1FAyExlHz6qHyNxldRxA3gVMvmx9FI4P1nMb6Gklh06wJ4xipw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649961501; a=rsa-sha256; cv=none; b=v6IeiMsmE7Hka2bO1r25ocmYnZi47MEPa/X/Ism5FJDBtTW91SUkXqLwQmmvJrStUAXafm +UAZkHRf9HqG/7JNXOgavBVIVk42VZ2+DaAhHvbxz7AD1VXp8atWEcunMtyv7TtMpfstqS 6QflATHC7rxfYsx6Aia/jKIkw4xfKIAqDPemEZ3O4m/Zt136xfuks6pNpolhoVjlGFtFzZ UUmrwqzcERVhIA/AdRwMpFGgWZAPLkXGFHdLNSnbAC7pO9nOoyKwXiCVynImYzAHWYHHpO x2eLbvl4hyfLjsKU4JBlha++QdFLBADhCk8U0WxQMLlEfcWX16tMxURDA0opGg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263283 Bug ID: 263283 Summary: Packet drops on rock64 Product: Base System Version: 13.0-RELEASE Hardware: arm64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: richard@kojedz.in On a Rock64 board, I experience high packet drops: # ping -c 1000 -q -f -s 1472 172.16.47.254 PING 172.16.47.254 (172.16.47.254): 1472 data bytes --- 172.16.47.254 ping statistics --- 1000 packets transmitted, 845 packets received, 15.5% packet loss round-trip min/avg/max/stddev =3D 0.289/0.301/0.518/0.017 ms The errors are present in netstat: # netstat -n -I dwc0 Name Mtu Network Address Ipkts Ierrs Idrop Opkts O= errs Coll dwc0 1500 9e:c8:cb:a2:e2:c0 1141478 2982 0 1700981 = 0 0 This happens at gigabit speeds. If I limit the link speed to 100Mbit, no pa= cket loss is present. Have checked all the cables, switch ports, etc. The same b= oard works well with linux 5.15. Howewer, with linux 5.4 there were similar issu= es, but then it got fixed somehow. After some events (i.e. reboots, link up/down, port speed change) the situa= tion changes, the nic enters into a more stable state, when packet loss is much lower, but still not zero. I cannot reliably reproduce this. After a reboot: # netstat -n -I dwc0 Name Mtu Network Address Ipkts Ierrs Idrop Opkts O= errs Coll dwc0 1500# ping -c 1000 -q -f -s 1472 172.16.47.254 PING 172.16.47.254 (172.16.47.254): 1472 data bytes --- 172.16.47.254 ping statistics --- 1000 packets transmitted, 1000 packets received, 0.0% packet loss round-trip min/avg/max/stddev =3D 0.286/0.297/0.603/0.021 ms 9e:c8:cb:a2:e2:c0 82 0 0 83 0 0 # netstat -n -I dwc0 Name Mtu Network Address Ipkts Ierrs Idrop Opkts O= errs Coll dwc0 1500 9e:c8:cb:a2:e2:c0 2126 0 0 2113 = 0 0 How should I proceed debugging this? Richard --=20 You are receiving this mail because: You are the assignee for the bug.=