!RjBlCIbsLDzHBIzmaA:nixos.org

NixOS on ARM

1019 Members
NixOS on ARM: now with more ARM! — Support: AArch64; armv6 and armv7 are best effort, without any official cache. — Documentation: https://nixos.wiki/wiki/NixOS_on_ARM — Community build box: https://github.com/nix-community/aarch64-build-box → build box status: https://status.nixos.org/grafana/d/5LANB9pZk/per-instance-metrics?orgId=1&refresh=30s&var-instance=147.75.77.190 —252 Servers

Load older messages


SenderMessageTime
30 May 2025
@emilazy:matrix.orgemily right, okay. though in the case of the 10G DAC it says only 10000baseCR/Full. 14:44:38
@k900:0upti.meK900Or at least it really shouldn't14:44:39
@emilazy:matrix.orgemily

So the supported link modes are the modes that the hardware of the NIC that ethtool is interrogated can actually do. The advertised modes are the modes that are advertised to the partner on the other end over the cable, and the link partner advertised modes are the modes that the NIC at the other end is advertising over the cable.

hmm ok.

14:45:05
@k900:0upti.meK900The advertised mode selection is kinda smart14:45:31
@emilazy:matrix.orgemilyso I guess the advertised modes are going to be a subset of the supported link modes, which is why for my DAC it only shows the one that was actually chosen (?)14:45:31
@k900:0upti.meK900As in there's some auto-selection going on14:45:42
@k900:0upti.meK900Not sure what exactly14:45:48
@emilazy:matrix.orgemilyoh ugh could this be OpenWrt-brained DT stuff?14:46:06
@emilazy:matrix.orgemilylike the device tree says it's 10G only?14:46:16
@k900:0upti.meK900I don't think the device tree should say anything14:48:54
@k900:0upti.meK900But there might be some PCS stuff going on14:49:01
@emilazy:matrix.orgemily
        sfp2 {
                tx-disable-gpios = <0x08 0x00 0x00>;
                i2c-bus = <0x59>;
                rate-select0-gpios = <0x08 0x03 0x01>;
                maximum-power-milliwatt = <0xbb8>;
                mod-def0-gpios = <0x08 0x53 0x01>;
                compatible = "sff,sfp";
                tx-fault-gpios = <0x08 0x01 0x00>;
                phandle = <0x4d>;
                los-gpios = <0x08 0x02 0x00>;
        };

yeah I guess nothing here looks relevant

14:49:41
@k900:0upti.meK900That's definitely unrelated, you want to be looking at the MACs/PHYs14:50:36
@k900:0upti.meK900But I think openwrt still ships the older PCS patchset that just encodes all the selection logic inside the driver14:51:01
@k900:0upti.meK900* But I think openwrt still ships the older PCS patchset that just encodes all the selection logic inside the MAC driver14:51:08
@emilazy:matrix.orgemily
                        mac@2 {
                                phy-mode = "usxgmii";
                                compatible = "mediatek,eth-mac";
                                status = "okay";
                                pcs-handle = <0x4e 0x4f>;
                                managed = "in-band-status";
                                phys = <0x50>;
                                reg = <0x02>;
                                openwrt,netdev-name = "sfp-wan";
                                phandle = <0x91>;
                                sfp = <0x51>;
                        };
14:51:44
@emilazy:matrix.orgemily phy-mode seems suspicious. 14:51:48
@k900:0upti.meK900https://github.com/K900/linux/blob/bpi-r4-test/arch/arm64/boot/dts/mediatek/mt7988a.dtsi#L126714:53:56
@emilazy:matrix.orgemilydo you have a pointer to the DT used by your kernel stuff?14:54:02
@emilazy:matrix.orgemilyah, thanks14:54:04
@k900:0upti.meK900The mainline way of handling it will be this14:54:09
@k900:0upti.meK900Where there's multiple PCS possibly attached to one MAC14:54:17
@k900:0upti.meK900And they're selected at runtime14:54:23
@emilazy:matrix.orgemilythis is 1 Gbit/s and 10 Gbit/s, right?14:54:42
@emilazy:matrix.orgemilyI'm hoping to use 2.5 Gbit/s at some point14:54:51
@k900:0upti.meK900SGMII can go up to 2.5G14:55:16
@emilazy:matrix.orgemilyoh okay14:55:25
@k900:0upti.meK900And USXGMII handles 5G and higher14:55:25
@emilazy:matrix.orgemilycool. so in other words I'm screwed with OpenWrt but it should hopefully just work with your branch?14:55:48
@emilazy:matrix.orgemilyI was hoping to get it working well under OpenWrt as a baseline but maybe the hope for that has passed :p14:56:15

Show newer messages


Back to Room ListRoom Version: 6