Received: from relay-b01.edpnet.be (relay-b01.edpnet.be [212.71.1.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BFB9430FC18 for ; Tue, 23 Sep 2025 07:04:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.71.1.221 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758611061; cv=none; b=m1uSyzuXn8c4+s/UpMgIj2jvwwqjySophkBs07EyJiWRtIftwD+aJUvguElLUzoNFYpd7YXbVUaT4JkUAmnRzcXg1JFzDu2e7TAtzRxDBroC2ZGuucF0aIFnKXGw451SsgSP64YGDTUHoPlBfFXBWjeN+IojYML74zGgEGlVspU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758611061; c=relaxed/simple; bh=MZC58ljdy/TEneLtOjqFTusx7/pbQybJb2U4DLHucys=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oyok9nUN0L4qyHE1M/VUA+trUtgy/I4LItfd8F7XfPatAHio4wDMCTEjdehoj2F5n64ct5IS4DMQpOw0113IZXlxpN7H0R5rR1g4J4HzHXrTTyDT4mHHAb/pnCDJ5sKpKmrGj2bm2Xyt2w6Km53t7ghDzt1ilg/KgprXzFtio+w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=reject dis=none) header.from=kabelmail.de; spf=fail smtp.mailfrom=kabelmail.de; arc=none smtp.client-ip=212.71.1.221 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=reject dis=none) header.from=kabelmail.de Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=kabelmail.de Received: from [192.168.177.65] (94.105.126.5.dyn.edpnet.net [94.105.126.5]) by relay-b01.edpnet.be with ESMTP id tO9jVsawclVI6W4u; Tue, 23 Sep 2025 09:04:05 +0200 (CEST) X-Barracuda-Envelope-From: janpieter.sollie@kabelmail.de X-Barracuda-Effective-Source-IP: 94.105.126.5.dyn.edpnet.net[94.105.126.5] X-Barracuda-Apparent-Source-IP: 94.105.126.5 Message-ID: <831ecd46-b658-4bc8-9268-e5202a6e0ebe@kabelmail.de> Date: Tue, 23 Sep 2025 09:02:31 +0200 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC] increase MDIO i2c poll timeout gradually (including patch) To: "Russell King (Oracle)" X-ASG-Orig-Subj: Re: [RFC] increase MDIO i2c poll timeout gradually (including patch) Cc: Andrew Lunn , netdev@vger.kernel.org, Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni References: <971aaa4c-ee1d-4ca1-ba38-d65db776d869@kabelmail.de> <6d444507-1c97-4904-8edb-e8cc1aa4399e@kabelmail.de> <4683e9ea-f795-4dab-8a0a-bd0b0f4fbd99@kabelmail.de> <3fab95da-95c8-4cf5-af16-4b576095a1d9@kabelmail.de> <6ea48bbb-972e-41f7-8c73-5ddffd9d0384@kabelmail.de> Content-Language: en-US From: Janpieter Sollie Autocrypt: addr=janpieter.sollie@kabelmail.de; keydata= xsBNBFhRXM0BCADnifwYnfbhQtJso1eeT+fjEDJh8OY5rwfvAbOhHyy003MJ82svXPmM/hUS C6hZjkE4kR7k2O2r+Ev6abRSlM6s6rJ/ZftmwOA7E8vdSkrFDNqRYL7P18+Iq/jM/t/6lsZv O+YcjF/gGmzfOCZ5AByQyLGmh5ZI3vpqJarXskrfi1QiZFeCG4H5WpMInml6NzeTpwFMdJaM JCr3BwnCyR+zeev7ROEWyVRcsj8ufW8ZLOrML9Q5QVjH7tkwzoedOc5UMv80uTaA5YaC1GcZ 57dAna6S1KWy5zx8VaHwXBwbXhDHWvZP318um2BxeTZbl21yXJrUMbYpaoLJzA5ZaoCFABEB AAHN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bRrIbLgqe+mCgXhQngj3QZUZn8qmDB2VHEDmSdkJ4A9qKyiof9uRhmAH287uQ/i342xuUM 8raS/RGFQaNCV2bBGKqflpS9l1BKGyevk2MUw/IGKJOYfXYc6L5RoPLSlkseBdSpABEBAAHC wHwEGAEIACYWIQRgQWKbK1Heywxuq1KxVIxFDx+SWwUCaCxqtwIbDAUJCWYBgAAKCRCxVIxF Dx+SW62eB/0SdagAw65x1IEwtEbdo4qxTL/a2iShsMvFOZYt/UE8fDTMkyTJFlDnxHDJqiHR 0yHpt41+CGxt5z8xhd+4HE+NdQJD2rjvvk5A2C8baOQYv8Mb5I4iDjSuYJWjrAwjCo25oHo7 CtoMd2jhn3+L1BO8/VY+AjdVXpGqPzor6Q/c5XAfUsgA2/2VEUpXLp8xKr7v/Gn08zUqaT+W 90QjvK1gwYv7sQ4X0w7kzf3sgQvN64cjo0jVsC3EG1AfdLtc+213+3dzDLqomtWtqoxmnrqx oMdve2PL2byHDAtzeWGGM38JB4H6A0VlvUyGqgAnRS/UyOLPpqNYbi1lPemVHZsk In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Barracuda-Connect: 94.105.126.5.dyn.edpnet.net[94.105.126.5] X-Barracuda-Start-Time: 1758611045 X-Barracuda-URL: https://212.71.1.221:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at edpnet.be X-Barracuda-Scan-Msg-Size: 2179 X-Barracuda-BRTS-Status: 1 X-ASG-Debug-ID: 1758611045-2392341bdc8de6e0001-BZBGGp X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=10.0 QUARANTINE_LEVEL=10.0 KILL_LEVEL=7.0 test= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.125474 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Op 22/09/2025 om 17:25 schreef Russell King (Oracle): > On Mon, Sep 22, 2025 at 04:30:56PM +0200, Janpieter Sollie wrote: >> Based on my mails, I can certainly see why you're thinking this way. >> I have no idea what goes wrong anywhere between me making a modification in >> the mdio.c file -> i2c code -> ... -> SFP phy. >> I'm curious what goes wrong, notice the 3 dots in between, >> I know there's a pca9545 muxer in in there further complicating it, but that's about it. >> >> Long story short: should I somehow try to test the reliability of something else? > What you have in these setups is: > > 1. The I2C bus from the host to the SFP module pins. On the SFP module > is an EEPROM at address 0x50 which contains some useful, some not so > useful identification of the module. > > 2. Sometimes there is a PHY at 0x56, which is normally a Marvell > 88E1111 which was designed for use on SFPs, and has not only the > conventional MDIO bus connectivity, but also supports I2C as well. The page is indeed present in i2cdetect ... > > 3. Some baseT modules, the PHY is not accessible. > I saw this on another SFP+ RJ45 module, I have 2 of them (unused), I'm thinking of breaking the metal cage of one to see what's inside (out if curiosity). What I do know is that there's no page 56. > > It may be interesting to work out whether it is a specific register or > set of registers that need longer access, and augment our knowledge > about what is going on with this stuff. Do you have a suggestion for this? I mean, runninig 'time i2cget xx xx' in a for loop for all pages (50, 51 and 56) over all registers 10 times or so takes a huge amount of time. > > Ultimately yes, we likely have no option but to increase the timeout, > and to do that I suggest simply increasing the number of loops - > having the approx. 20ms delay between each attempt doesn't stress > anything. > Let's try to avoid that at all costs: if I'm the first one reporting a problem like this, it may not be useful to let the whole subsystem sit back and relax for all modules, it may hide the case where there's really something wrong. Thanks