From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC369326924 for ; Sat, 18 Jul 2026 07:55:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784361361; cv=none; b=AqER7wv8vyse0lnjG6hQOQrplTryKALOCzUviFKtwUc7WlFHQ4UYSL9oM7gPWIWRJwln92Gnht57zF/YQ7TzOBpASnSNKc7tNcs+ijYJ2TscdM1CK3xAveksdOO8ajT44RCyj4vkqY7t1FyM1wbaPnzQZ4wOYb/OBpn9wuLReqo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784361361; c=relaxed/simple; bh=938bOJnd7G3fEFnQqsXJyC++I5P/8chu57RekHReoPE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Oe5MsXRR2520O8E3qfxBMQpzt8t9PhTImvdEWeX65unEb4j1xl8zoQjSPEFPp2XUsnin3U5tIrwKK8S26g9mEErvd2bVi90OZ9n8eQ+vrjCU9vbjKAhPx286EmVhYXn6kpy2y579UuKXTQf0w1B3jFDDCCt2IIXZpBt7c7W6slk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Qoud3nos; arc=none smtp.client-ip=209.85.208.175 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.b="Qoud3nos" Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-3997a448ecbso53763221fa.0 for ; Sat, 18 Jul 2026 00:55:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784361358; x=1784966158; 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=DTuHUBF12LCmuu5LhhKk5CzbF9HbdGvjqCxvdiP6aTk=; b=Qoud3nos/zukZhWOaCwzEOblazxHPAmG3fCIrxdyHJQnjwXhyx/FJxLL3Ugo19+mQR lPVoQc2MVuhG9GpMcd+dtT53JXG3ZRQkj+a3N7WrYkzqpluPzI7tzYCq/zEnxSFua/aM nnQKPTFjIIG/BbycKRYuEgDRit0WZhJYPHurkOY4U1wMQfvgVk3WAummccgGt5gkL4qh gE34IA62AVzEraSwFGXn/hPwd3WhpINN7OMxgjLImOCJVMeR1KYoiQhkiJ3/bNT4Cp25 Z2rG0b+OjtjGTo0P9wwRc6jGlgoL5mJCSzfVVegpaUqWFNTy5/10EbtR5lmeajXZsFqm jhZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784361358; x=1784966158; 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=DTuHUBF12LCmuu5LhhKk5CzbF9HbdGvjqCxvdiP6aTk=; b=R9KWvPBnsPlnWfxNcbCdbUEwNNYkuxpv6N4dbb6uK2GaAvQr8jV7lRYhLWl0vLXB1B mpQz/b/KEEwzA0kUAtMYJQjJR3EnbU2DNl+DSpjmJdTxT0rJJmwreRI1i2rc9xFDbLwo 7mpSvKhuLainp3/yYLPIGn1e8S+pB1fCdolPw+CD0IaDCQHWgj9DQEcIbL/UiNMbr3PS oHa96dLTqwAkK5jtBgWgcz+EbYuCmL+6wwGPuBqVDe3ak2BJVUPzLm8zCPiGDPivmJnz 0YgqSUvEJpWFSfgmRDtUb1l1zAe8/j9SGitxwk9/EQB50IENYV73dX4ZfDFHLZljngkk BYxw== X-Forwarded-Encrypted: i=1; AHgh+RrjSR0ZJcIp5x0BXi8q6QoKaC/qhP4hlK3w9Ri7I7b69CCrubthW2nP/wYbZu6gg8Ybl55LaXovw+2+Nko=@vger.kernel.org X-Gm-Message-State: AOJu0YwWxBUc8yFfrWCJDXEXeMtAybvWLyULBFpfjFPZJR4STDdJEJsO t2Xi9zCJpEf9dyg1SHPfuJDozON7HVYpPFgREZlo/MO3y++c9RfCtcaO X-Gm-Gg: AfdE7cmOSHsxvFXnYOEuvQ2U5Q1EtSUPDT2z2dbsfb0StZC1sqqEZYEhL2yoHzGegck bXXonS/nxiHNSVb5dWRxjjFRx9YA1CARIEcog+f4wPuWU6Edv88eDrtEPce2KH4oHtjcDBJmmSQ zWyWJfwHjA/NA1F2G4n44ug0/MKF5WEHhfEOIHAzIkQOBbsiD8LwQvfAgd1bhdj9h5JqhDm0khb ShBepMmJqUswIfb1SXj/zXUmgFmVdb/cpJ0JY4N5yLE78m4FLHIZCW4Q9yldvnUXdcJKC9BqVLB YCCzwP8j2BTHo0KXm48PnhYFyxZOocoCKaIht+AQ3G9FZ6Q9NMhbphT6mLZe6PKAscDmkYGMqPA x/5+HGMsau4EZwdU5BTubOWfccklIvtaLGns24S0OvP7MnTcJhpy8Q0ZlZGF/L6fT80+ytQOjwC AIT9haULmfHCDo3+IY8rlcj/dGtZQkuvwZsPqUGFLKPAJ2t1hKYtLC X-Received: by 2002:a05:6512:108a:b0:5b2:8abb:2334 with SMTP id 2adb3069b0e04-5b28f9b0206mr1203395e87.51.1784361357360; Sat, 18 Jul 2026 00:55:57 -0700 (PDT) Received: from VivoBook-ASUS-X712UA-M712UA.lan (public-gprs693195.centertel.pl. [5.184.251.12]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5b291e25290sm839179e87.73.2026.07.18.00.55.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jul 2026 00:55:55 -0700 (PDT) From: Stanislaw To: Johan Alvarado , Mieczyslaw Nalewaj Cc: Linus Walleij , Alvin Sipraga , Andrew Lunn , Vladimir Oltean , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Russell King , Maxime Chevallier , Luiz Angelo Daros de Luca , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v6 1/2] net: dsa: realtek: rtl8365mb: add SGMII support for RTL8367S Date: Sat, 18 Jul 2026 09:55:49 +0200 Message-ID: <20260718075549.91288-1-kuncy7@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Luiz, Mieczyslaw, > Stanislaw, do you have a reset pin or a reset controller configured? Yes - a reset GPIO, no reset controller: reset-gpios = <&tlmm 33 GPIO_ACTIVE_LOW>; on the switch node. So on this board the probe path does run both resets: the GPIO hard reset from rtl83xx_probe() plus the soft reset during setup. That is worth stressing, because the re-probe that cures the cold-soak state performs *exactly the same sequence* - same GPIO reset, same soft reset, same full init - as the probe that lands in the bad state. The only difference is that it is the second run. So it does not look like a missing reset; more like something about the very first init pass on cold silicon. On "loading too early": the driver is a module here and probes ~20 s after power-on (rootfs mount), so the rails have long been up by then. That said, 20 s of a cold board is a different thermal/electrical state than the same board a minute after a reboot, and short power-cycles (~1 min) never reproduce the issue - only a multi-hour soak does. Your reset-bit map is exactly the experiment this bench needs. Next cold-bad morning I will try the individual reset bits (SDS_RST, SW_RST, CHIP_RST, DW8051_RST...) on the degraded state, before falling back to the full re-probe, to find the minimal action that cures it. I'll report what I find. > Please repeat the test only with the fix "the ~98 ms PLL-settle delay > plus the 0x060C-0x060F Local Jam Table analog calibration". Done - last night's cold soak ran an image with only those two changes on top of the v6 series (busy-wait reverted). Result: the bad state came up as usual, no improvement - consistent with Johan's analysis of where those writes actually land. This time I had ethtool on the box before curing it, so here is the per-port MIB of the bad state (~35 min after the cold boot, switch reporting 2.5G/Full link up on the SerDes, wan 1G/Full to the wire): CPU -> switch direction (broken): eth0 (SoC gmac1): 995 frames / 282,945 octets tx, no errors switch port 6 (SerDes): dot3StatsFCSErrors: 506 etherStatsDropEvents: 506 wan wire egress: zero - no ifOut counters at all, although the kernel handed ~990 frames for tx switch -> CPU direction (clean): p06_ifOutOctets: 172,231 == eth0 rx octet count: 172,231 byte-exact, zero errors - that's why ingress from upstream works So the cold-soak bad state is now precisely characterized: over half of the frames arriving from the SoC FCS-fail at the switch SerDes ingress and are dropped (and nothing reaches the wan wire), while the switch's transmit side is byte-exact clean. Since a full re-probe of the switch alone cures it - the SoC side is never touched - the bad half is the switch's SerDes receiver, left in that state by the first cold init. Next cold morning I'll do the reset-bit isolation on the degraded state, per Luiz's map, before falling back to the full re-probe. Best regards, Stanislaw