From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795532565; b=GCsYwYE3rbncq3ySDjonLUtoj/Qn9R/PEU00Y8HeLDXxlaXxod6vpGi9YPyN45XbCqMl 9kQWKE+bHiNHL8W+yyyk9uf/w8ITuVP9G8IqLe9uNlnM8slmZdjrOf/u80NUWJt0u9dX/ Gw1FFNqRVlvBFiUdccXOwgl0swm+rrP9s5aPHNCVS3zfaDsS8vOaYgsTjyi0fbRnjZUWq dyyVupBo+UkunQIE+3k7MxmcU6AZgX/rGVRMnE3xyPIajEjAWPlfyUE9UunUOhxdC85kS MRel9dmbowB7sc1UUJhcEf14RyOmIGB92oGw+fsn/B2CbgRxImH6dtZ2v6PJzf751jw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795532565; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received: X-Received:Received:Message-ID:Date:MIME-Version:User-Agent:Subject: To:Cc:References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=ih9iFH4k5c5mFLYN9MmHm03X7lzR9NOg68oId4RPs2s=; b=uG6+ObFkG8yiLnyyYNzu1Kol6BwbySXi6moSWCek4pmFTGGUwyI0y6Qu0DXaj0tWEn2o skvD4Am5Fd+iadzF8u0+QcUOV9b3lvAz3h86h+npSvOXthDyLJcPjEjzuhXE6vpBN5lrv HFjjf4T7q7IetkC8HBKW7FPl8uAfKLrpC8A9BOdtdg98sJB89UVzyyYgpnTpDeQFm/ZXd nJpaCoqem7FeW/aKShBGPkdqwfz3IprwQy78Cn1k1yUP+5ZyAYX8N3uzWby7ZrOVxrZT9 gCvJmhnpc0tYGftNN3aK1SODlcKN9eBJst3eAeQBTNskYWUiHudb4jJZxShKuVhkOLQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=b3i+kpLp; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=f6dBwf+C; arc=none smtp.remote-ip=170.10.133.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E590606A68E for ; Tue, 24 Nov 2026 15:02:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0E590606A68E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=b3i+kpLp; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=f6dBwf+C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795532564; 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=ih9iFH4k5c5mFLYN9MmHm03X7lzR9NOg68oId4RPs2s=; b=b3i+kpLpIfrfDFIw7jFcxU84hmFYjf4EYEqgPX0BomjgnjjqC3G9hPBjmsjCOt9JoYhAxf mtojpDm9Hf0k07u3dCIgBfMm4mDxlO0CQV6HXa07v1SLMvB1jOhhsOhZcNddR2fx/HPoAj 2DYvkaDGKTxxv4ewsDyRnuFp42VUcOA= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-170-A2yAqtJnOE-52lpQ0NzATg-1; Tue, 24 Nov 2026 15:02:37 +0000 X-MC-Unique: A2yAqtJnOE-52lpQ0NzATg-1 X-Mimecast-MFC-AGG-ID: A2yAqtJnOE-52lpQ0NzATg_1795532557 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-4a68703d177so2187591f8f.2 for ; Tue, 24 Nov 2026 07:02:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1795532556; x=1796137356; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ih9iFH4k5c5mFLYN9MmHm03X7lzR9NOg68oId4RPs2s=; b=f6dBwf+CgP+FjLLjfYnTWHJuCDA+h/74XuPQpeBtnX2gZFOVYqRYZULRjgOTDh+7pw eFrO4UPe4f9j3LF58rzLtIWXGQ/GKjwbsdqls9mJV9JeIETO6XF2x7ZCCa921/4/QoKF STvZyoOXLG6NSWtOITLzkm/XVk12Qo3Q8gvUWVnAj4eihrZeSUfmirKUaxY5EHDuOHVP JH5vDUidgoWz3nAN6V3CH81rATpaEL3p9/VKcsJ+tu9KvPIWQiW0//BBud1zpR5IyFvq FKfE9RtOlNQyazQY4vTt2RD46bQ1rJX/iBxcwlt1LVEBItyYVndoNuOSSphThwT8aght VA3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795532556; x=1796137356; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ih9iFH4k5c5mFLYN9MmHm03X7lzR9NOg68oId4RPs2s=; b=GTDk/tFRLRqJamC3nKdvwiajWHAFKuGjM76jEegkhfJ6oBUiGUL4AsgEO4Q0sxfvmd hJUVvChy3if3tw19SsSCU+EjfHigpZTBDDGLqm62q4MNLpXitVJltOdquciWiyF5GPNn Dq7CyRNQG9H+7Zz6jSOuIf63pbDAtTusMg5aCSDEFWaDjcMm1+KKgtmZ+RT/iR+TFpUx ohrGIAsC3uNcWHQwOlK5yhR5pl54E3zSQcVDw2kcnJ/y30b1k9jEfdmx9Cu+13GVyDcR Vtv0AsKzsMjMSuQOu4yb8NtuhwdYmcn2uh2aG6qYyWltUbnU3nrglQC7LDuJ+t5Jog/0 SFGQ== X-Forwarded-Encrypted: i=1; AL+hErFQyt4skDguCQg50umk9e+3fZH4lsbtZQRzOsEanvLoZ7VrjPMKGQumewGRDKhg982ub0PjVn72xidOkBw=@vger.kernel.org X-Gm-Message-State: APuU4Z8qrxc5RHy290sbH1eJqDQOINQN1aO4Edl0c45fwjofXKg9Kv7r 6ct8lQI4UxW7DUNOgau8h/9b1j/BZWrMxjzJGO1v3UuRonP0Y9rtgGu5tYGfbRMo8fu7Mu0Sdz9 enw3A9HXTlg7qNfoZObLT73lj2ZqXeBS/ZDDmFUGpzAbQcP/tDlpznqZiEofKR6IlIA== X-Gm-Gg: AZFdTZcozQrjLA7usb6fXQ7oub1wLvmfXkmY1lip0lerEkvmCzqUyjRUxJDCGX2ICKm qXGK+loVYqc7P9U1JGi3vmpQuVOOukGEn2QH0Utv4e3PovwcVrEyIFocLAlDyxaXAf/YYUEOWsg PK/hzRSko60yl3kMPAttVuU9ueILgkvkfkJbs2fLAmR6TK4ZKb0Q6kWyUdbBCLvjDTw2WhS2yfs A4G2JDGqlvVhULuXxQMVPpDaqY3p8G4/BtsplkDVGiGEmofEE9Gj56+bdMk6dw7ta+IfUFhIeYf Cuzjzq9fOeT97s2+1Wz6Ug1FdwJsK7SC7epfLd5Y07nJ0vgYUR4GP4x+qwRl/YSr7JTqV3UJGgp ibVQqczvLLClNdoJe5TeoBcSSc1iqinUlfjf6rTwLqMk2wgx6Wl6CCdKxr2bvhBJt266YOBWWDu zZIdMCG1QlGszjlFjX6WMylsI3xjAx1Bil/lnl7OVxW5DX X-Received: by 2002:a05:6000:4812:b0:48d:b650:69aa with SMTP id ffacd0b85a97d-4abb55185e4mr28569268f8f.50.1795532556506; Tue, 24 Nov 2026 07:02:36 -0800 (PST) X-Received: by 2002:a05:6000:4812:b0:48d:b650:69aa with SMTP id ffacd0b85a97d-4abb55185e4mr28569192f8f.50.1795532555837; Tue, 24 Nov 2026 07:02:35 -0800 (PST) Received: from [192.168.88.30] (ip231-128-192-82.pool-bba.aruba.it. [82.192.128.231]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab9cf005f2sm23387637f8f.45.2026.11.24.07.02.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Nov 2026 07:02:35 -0800 (PST) Message-ID: Date: Tue, 24 Nov 2026 16:02:33 +0100 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 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v3 1/2] net: sfp: add 2500base-X quirk for ODI DFP-34X-2C3 To: netdev-bot+sashiko@kernel.org, github@bumblecito.com Cc: linux@armlinux.org.uk, andrew@lunn.ch, hkallweit1@gmail.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20261118162323.436219-2-github@bumblecito.com> <179520946109.3135.2775052387986633073@kernel.org> Content-Language: en-US From: Paolo Abeni In-Reply-To: <179520946109.3135.2775052387986633073@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 11/20/26 22:17, netdev-bot+sashiko@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 2 potential > issue(s) to consider. > > Critical: 0 · High: 0 · Medium: 1 · Low: 1 > > If you believe none of the issues are legitimate, please reply to each > issue of Medium severity or higher and explain why the AI is wrong. > If any of them are legitimate and you plan to respin, please let patchwork > know by including "pw-bot: cr" as a separate line at the end of your reply > (one such reply per series is enough). > > - [Medium] The only test reported is a 2500 Mb/s link brought up after > speed and duplex were forced and autonegotiation was disabled by hand. > - [Low] The patch adds SFP_QUIRK_S("ODI", "DFP-34X-2C3", > sfp_quirk_2500basex) to sfp_quirks[] in drivers/net/phy/sfp.c (lines… > > -- > > net: sfp: add 2500base-X quirk for ODI DFP-34X-2C3 > > This commit adds an entry to sfp_quirks[] that applies > sfp_quirk_2500basex to the ODI DFP-34X-2C3 XPON module. It was tested on > a Horaco ZX-SWTGW2C8F switch, with speed and duplex forced and > autonegotiation disabled. > >> diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c >> index 915156743701b..960ac89cc2a0b 100644 >> --- a/drivers/net/phy/sfp.c >> +++ b/drivers/net/phy/sfp.c >> @@ -614,6 +614,9 @@ static const struct sfp_quirk sfp_quirks[] = { >> SFP_QUIRK("Lantech", "8330-265D", sfp_quirk_2500basex, >> sfp_fixup_ignore_los), >> >> + // ODI DFP-34X-2C3 XPON stick can operate at 2500base-X >> + SFP_QUIRK_S("ODI", "DFP-34X-2C3", sfp_quirk_2500basex), > > [Severity: Low] > What does this module actually report in its EEPROM? > > sfp_module_parse_support() in drivers/net/phy/sfp-bus.c can already turn > on 2500base-X without a quirk in two cases. One is the FC speed bits > with br_nominal >= 31. The other is the bit-rate fallback: > > drivers/net/phy/sfp-bus.c:sfp_module_parse_support() { > ... > if (linkmode_empty(modes) && br_nom) { > ... > if (br_min <= 3200 && br_max >= 2500) { > phylink_set(modes, 2500baseX_Full); > __set_bit(PHY_INTERFACE_MODE_2500BASEX, interfaces); > } > } > ... > } > > So the quirk is only needed if the EEPROM falls outside both rules. A > typical case is an xPON stick that reports 1000BASE-LX at about 1300MBd. > > Most of the nearby xPON entries record this as "can operate at > 2500base-X, but reports in its EEPROM". Examples are Huawei MA5671A, > Hisense LXT-010S-H, Hisense ZNID-GPON-2311NA, HSGQ, FS GPON-ONU-34-20BI > and Alcatel G010SP. The OEM SFP-2.5G-BX10-D/U and LH03-B/LH20-A entries > have no such comment, though. > > Could the commit message and the table comment say what the module > reports for nominal bit rate, BR min/max and compliance codes? The > vendor name and PN strings would help too, for example from ethtool -m. > The strings matter because sfp_lookup_quirk() needs an exact vendor/part > match after trimming. > > The later commit "net: sfp: sort OEM and Turris SFP quirks" does not > change this entry. > > [Severity: Medium] > Does the link come up with this entry under the default phylink > configuration? > > The commit message says the link was established "with speed and duplex > forced and autonegotiation disabled". sfp_quirk_2500basex() only adds > the link mode and the interface: > > static void sfp_quirk_2500basex(const struct sfp_eeprom_id *id, > struct sfp_module_caps *caps) > { > linkmode_set_bit(ETHTOOL_LINK_MODE_2500baseX_Full_BIT, > caps->link_modes); > __set_bit(PHY_INTERFACE_MODE_2500BASEX, caps->interfaces); > } > > It leaves the Autoneg bit that sfp_module_parse_support() always sets: > > phylink_set(modes, Autoneg); > > sfp_quirk_oem_2_5g(), by contrast, calls sfp_quirk_disable_autoneg(). > > With this entry, the default path looks like this: > > 1. sfp_module_parse_support() sets Autoneg. > 2. sfp_quirk_2500basex() adds 2500base-X and keeps Autoneg. > 3. phylink_choose_sfp_interface() picks 2500base-X. > 4. phylink_sfp_set_config() uses mode = MLO_AN_INBAND. > 5. phylink_pcs_neg_mode() takes the Base-X without a PHY branch. When > the PCS reports no inband caps, or reports both enable and disable, > the advertised Autoneg bit selects in-band negotiation: > > else if (linkmode_test_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, > advertising)) > neg_mode = PHYLINK_PCS_NEG_INBAND_ENABLED; > > Suppose the module's 2500base-X SerDes does not do clause 37 style > in-band negotiation. On such hosts, would users need to run > ethtool -s ... autoneg off to get a link after inserting the module? > > Could the entry also disable autoneg? Alternatively, could the commit > message confirm that the module links up with in-band AN enabled? > Several accepted xPON entries also use sfp_quirk_2500basex with Autoneg > left set, so this may be fine if the module does negotiate. I think the above should be explicitly debated or addressed. /P