From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794410528; b=TsFIthpZsjU3kH6hLf/KW4qYYaUugdGwNqEDaed+wkEVnM/r7y+Npv/HBLj4b9ttm1X/ ayjjwz5v0r6XNWpuScGfXmb13Y5WHG75uWFieVZjJaK5TE1U3HvFJC6xJwMTNKe4eXfst C7GpSoABhXjyKr+r17+urCihhmaqAXNKxcnXapcELIBA0BsSu86JeiOU14eQZ0PDaRmYs LwVwSTUpTp/PqB9lFFQY0hCOBoQBLuXlH6+YMOC8s0HWhFgOvSdCWNXbI146iUayKfT5N pGsP0VxxjGX+ud7XAtx+EA/O0xYC9DMKm67cBt3smq+895pQAXDbeNux/eoTbCqDdEA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794410528; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=spmuZfC/dhB9wOC0shsRTlNKhiKFYUA58QCJu4KnRLs=; b=akfboB8prTzcGaiSvQ0C7XWHulhhWU/jCtRdSt2DGmCALtD0i6tITkHiIOaiya9Eglja NoAnFFML4Smu/gwyJP4UNyQIaz3bNT4P6E5masNagEwViUcnk051zgjVnLLfCPZf8v1zf HtoXPhzoJhSS3OYaAFR2zG6JQv20UuvtZC6zmY5mFNCJxGoAdaCXxdwXytALguyHYI6eD YTvmqOeh/blMiJuX0qtCjYIWVqPCtRDZ2UtDZyukn/FDbZGDx3FePZH8KpsZigbUpX7K8 L7YFFpbmOlUA9elkrozmKnCoHCeTcexI/uje5C64Nw0GqRYlM/OOEIeR21QhT5k5Omw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=BmnYm6ZF; arc=none smtp.remote-ip=209.85.128.42 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23DA8606A32E for ; Wed, 11 Nov 2026 15:22:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 23DA8606A32E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=BmnYm6ZF Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4a35a60499eso25407705e9.0 for ; Wed, 11 Nov 2026 07:22:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794410526; x=1795015326; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=spmuZfC/dhB9wOC0shsRTlNKhiKFYUA58QCJu4KnRLs=; b=BmnYm6ZFBBeKmlthKXbmWB2LvyBF/QXG85L/s3IcHytWRRPZNScsc0utVWkTITbAJ2 om1ZR0lTO6zY02r6TRTDYJiiH8lFegskbVH8roj+aVsvl9VLAqvR6XhBu6EK76+QLrQN FjZQt2O2ZojQB3BHGioG7bchG9MnUN5/dC8FXT+7mjyc9rHJWOPjR7rLkm6nSN3B6WnT MXt0fNNqN0WkvmPOuq8lqRBaiecWjKQEHmd24p6lb7Gl1UO+LQTWGGuRu5kOCJ/jNqoG IWoKO6Xwfhz/l0R1dI2F5lh87r2vCJJhSpSIEs6ixxvfrUEFC3NZ/zGpUrFipbpIGd9a absQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794410526; x=1795015326; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=spmuZfC/dhB9wOC0shsRTlNKhiKFYUA58QCJu4KnRLs=; b=f3TCVug07l9q+FoOu3CQ9nl14IBa8hJaT34jNWX/zgOkTkaqSb3gutARknyv2kbTWt s9//39WH+Ot/jnF32Ol0cQpGR8beQuCZSIILPmiPa8XgETc+4nf43Cvb9VJlWmpb/toa znuVxKlN5QfNSHYNJlfhs0988FLR7DqutkHVyGYtua9qFJpVGHlNDeJ5NtzUOeF22aBb BiIaoxcJxRp6Uherh7mWzfT4JagPxhSU0NUnxRMSkaUWNFwln8q7QrSi1wCIfCHhzDMW cpJ0ky123ZA1TZr7yzjm5KaXDC0fw6UDpsOt+AqW9fn3H1H1wmt6NAijoIp+76pWIn/g zjSg== X-Forwarded-Encrypted: i=1; AL+hErG+wFrC90/A37pY45BhKaezOccxJdyRMyNgmtibpJZ1bjK7FSuFTPgpmJ3sKehYp/qCjg9n8YiyyzEU0Bk=@vger.kernel.org X-Gm-Message-State: APuU4Z9qJDbEPZYV57QtkhgloUslBboO+Ipc9jSnPExlK+Npumiq+Lm4 nijYGr7+ZUH7teprPoN94vlkB44Zs5GMaoTAzewmSO2cXfYBdjoWtNs/ X-Gm-Gg: AYBFou0eBJYx3B4DAD0jIDUM6kbmfvtJ6aYOpS4jkqG1kJn0RZlP3Qa1avssL6QrZS1 DLXbTFQn9E47LYlL+yVL/MubCD59b9x5cuwON/ghiukVjk+TkekrpokGeQhCvXlW4S0UpIJJPqx eS2aCgn1Fp7yK8pIJ2tUnNhP5e0tU9vnw3yMI3BJpJekd1UQciMF8oWC8gJsvUHCcBqZRSRbYbp cIVffSAPK4rXB3Zp5fCBGUhiRVmX5n1Ba2Ixo5UOIUJGEbQ5IqOI40VVg8eBrSk6cUcCBEwQyvt 4JvCoEB0ke0BlCmzdOTW1bfU1J4AYiAB1+lwN9sV1kwCpOQ9hGPKE31YrincwNxqRQp8oUaNshy 2YCsnSTRd1wdO1XeHoumjA2BL/7ghtM8DJzjUIX879MHHuZCCL+IZqp9BcoobDa0L6i54GVl3xO 7WuIfjqg5FqqCSjmqKK32w3xjuzM+qh6oRqCOFpPK+8eJ8hkaaRtoLGx5MKCFRur9OX1MhvJC/j WfiEgRvdNngCzRqcRxuNAtlX6fca44zWeWe85EedKHJLJ+ecD1YzJTEKy4IrFvyc9WNfEK4TOKx mjfEQVQRBzXgFSQMYDfKX+CGMZZBseiaFeGcHsFMt3Y0FOfWS7uf34Nsen+xcWd/JapgkFA7BOZ V63KhrSfhVQ== X-Received: by 2002:a05:600c:1c0d:b0:4a2:1e1:d55 with SMTP id 5b1f17b1804b1-4ba093a3cf9mr55715145e9.28.1794410526239; Wed, 11 Nov 2026 07:22:06 -0800 (PST) Received: from VivoBook-ASUS-X712UA-M712UA.lan (user-46-112-80-97.play-internet.pl. [46.112.80.97]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-498369a4238sm12079575f8f.54.2026.11.11.07.21.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2026 07:22:04 -0800 (PST) From: Stanislaw Pal To: Johan Alvarado Cc: Mieczyslaw Nalewaj , alvin.sipraga@analog.com, gabonpivovich@gmail.com, linusw@kernel.org, andrew@lunn.ch, olteanv@gmail.com, kuba@kernel.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, linux@armlinux.org.uk, luizluca@gmail.com, maxime.chevallier@bootlin.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, gusfmora@gmail.com, fabianotassotti@gmail.com Subject: Re: [PATCH net-next v9 08/11] net: dsa: realtek: rtl8365mb: re-latch the family D SerDes Date: Wed, 11 Nov 2026 16:21:58 +0100 Message-ID: <20261111152158.467255-1-kuncy7@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: <9b73858d-fc09-4988-8bab-fd7b88db9412@yahoo.com> <39e46930-0d24-46d6-8861-5dd309bb7640@yahoo.com> <1e8da5e3-0d1c-4ce6-bb3c-4b9b7a5789a6@c127.dev> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Johan, On Tue, Nov 10, 2026 at 12:49:04AM -0500, Johan Alvarado wrote: > Oleg, could you check this on the AX55 before the first ifup of the > conduit? A single register read tells: > > devmem 0x98218 # UNIPHY MISC2: 0x70 = SGMII, 0x50 = SGMII+ I can't answer for Oleg's unit. Mine is an Archer AX55 v1 with an RTL8367S, family C like your MR80X v2, so this is a second family C board, not the family D answer. That image has no /dev/mem, so I printed MISC2 and MODE_CTRL from qca-uniphy instead: at probe, around your preconfig, and before and after every pcs_config(). On every boot, warm and cold, probe reads MISC2 0x70 and MODE_CTRL 0x421. Without your commit, SGMII+ (0x50, 0x821) shows up at the first pcs_config(), at about 7.4 s, while the switch configures 2500base-x at about 5.0 s. One note on the values. In the pcs-qca-uniphy table, MISC2[6:4] = 7 (0x70) is the USXGMII value; SGMII is 0x30 and SGMII+ is 0x50, as FlyFish-go pointed out on an RC3000 v3 [1]. MODE_CTRL says the same as your reading, though: 0x421 has SGMII_MODE (bit 10) set and 0x821 has SGPLUS_MODE (bit 11). So the hand-over is SGMII either way, and 0x70 in MISC2 is just not what tells it. On his board, MISC2 reads 0x70 after the boot loader's block reset when U-Boot runs no network command, and 0x30 after a U-Boot ping. Reboot loop on our OpenWrt tree (6.18, dwmac-ipq5018 + qca-uniphy), with the OpenWrt ordering patch removed in both images. A boot counts as broken on ping loss to a host on lan1, or FCS errors or PAUSE frames on CPU port 6. - Without your commit: 2 of 15 broken. - In one, the switch sent PAUSE frames to the CPU (1368 on port 6) and to lan1, and almost nothing got through. No FCS errors. - In the other, frames from lan1 reached the CPU, but nothing from the CPU went out on lan1, although port 6 ifInOctets kept counting. No FCS errors, no PAUSE frames. In our tree the conduit is closed and opened again at about 26 s (pcs_config() runs again, the UNIPHY already in SGMII+), and that didn't cure either boot. This fits your note that a re-sequence on the SoC side does not help. - With your commit: 0 of 23 broken (20 reboots, 3 power cycles). The preconfig puts the UNIPHY in SGMII+ at about 2.1 s, 3.2-3.3 s before the switch configures its port, and pcs_config() at open finds the mode already set. 2 of 15 against 0 of 23 is weak on its own, but it points the same way as your 18 of 51 against 0 of 32. In the same thread [1], FlyFish-go ran the RC3000 v3 (RTL8367S, family C) at 2500base-x with only the OpenWrt ordering patch removed: 4 of 7 cold boots broken, against 0 of 5 with it. In every broken boot the SoC-to-switch direction was the one that failed. I have put the same result on your OpenWrt PR [2]. Tested-by: Stanislaw Pal # Archer AX55 v1 [1] https://github.com/kuncy7/openwrt-nss-edma/pull/73#issuecomment-6796451511 [2] https://github.com/openwrt/openwrt/pull/26597 Best regards, Stanislaw