LS1046A 10GB SFP+ Configuration on kernel 6.12

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LS1046A 10GB SFP+ Configuration on kernel 6.12

278件の閲覧回数
hugoacata
Contributor I

Hello, 

I have a custom board with the LS1046A, and I'm trying to use fm1-mac9 with a soldered SFP+ 10GB module. 

My RCW in SERDES 1 is 0x1040: 

hugoacata_0-1784298387879.png

So 10GB in fm1-mac9 is well covered from the RCW's perspective. Looking at the SFP power and laser everything seems healthy, but I can't seem to get it to talk/link with the sfp in front of it, so I suspect my DTB configuration is incorrect. 

This is my current configuration for that MAC: 

xfi10g: ethernet@f0000 {
  status = "okay";
  pcsphy-handle = <&pcsphy6>;
  pcs-handle = <&pcsphy6>;
  pcs-handle-names = "xfi";
  phy-connection-type = "10gbase-r";

  fixed-link {
    speed = <10000>;
    full-duplex;
  };
};

mdio@f1000 {
  status = "okay";

  pcsphy6: ethernet-phy@0{
    compatible = "fsl,lynx-pcs";
    reg = <0x0>;
  };
};

sfp_mac9: sfp {
  compatible = "sff,sfp";
  i2c-bus = <&i2c3>;
  status = "okay";
};

For reference, I'm running linux-qoriq kernel 6.12, and the SFP probes correctly during boot reading its EEPROM.

Do you have a proper example of running this type of connection in fm1-mac9? 

 

 

タグ(3)
0 件の賞賛
返信
3 返答(返信)

56件の閲覧回数
June_Lu
NXP TechSupport
NXP TechSupport

How about changing per LS1046ARDB, as fm1-mac10 is SFP+, and the driver support the SFP+, too.

https://github.com/nxp-qoriq/linux/blob/lf-6.12.49-2.2.0/arch/arm64/boot/dts/freescale/fsl-ls1046a-r...

0 件の賞賛
返信

218件の閲覧回数
hugoacata
Contributor I

With a MAC configuration with managed = "in-band-status"; and without either phy-handle or fixed-link, I always get phy driver errors: 

[  384.094677] ------------[ cut here ]------------
[  384.094679] WARNING: CPU: 0 PID: 49 at /usr/src/kernel/drivers/net/phy/swphy.c:128 swphy_read_reg+0xac/0x188
[  384.094686] Modules linked in: cfg80211 rfkill fsl_jr_uio caam_jr ftdi_sio onboard_usb_dev usbserial caamkeyblob_desc crypto_engine pci_endpoint_test crct10dif_ce rtc_pcf2127 at24 lm90 ina2xx fsl_qdma rtc_fsl_ftm_alarm nvmem_layersca
pe_sfp caam layerscape_edac_mod
[  384.094709] CPU: 0 UID: 0 PID: 49 Comm: kworker/u16:1 Tainted: G        W          6.12.20-gdfaf2136deb2-dirty #1
[  384.094714] Tainted: [W]=WARN
[  384.094715] Hardware name: LS1046A FRWY Board (DT)
[  384.094717] Workqueue: events_power_efficient phy_state_machine
[  384.094722] pstate: 80000005 (Nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[  384.094726] pc : swphy_read_reg+0xac/0x188
[  384.094730] lr : fixed_mdio_read+0xe0/0x120
[  384.094733] sp : ffff800082f0bc30
[  384.094735] x29: ffff800082f0bc70 x28: 0000000000000000 x27: 0000000000000000
[  384.094740] x26: ffff00080001c028 x25: 0000000000000000 x24: ffff000800020e05
[  384.094745] x23: ffff0008002a2200 x22: 0000000000000000 x21: 0000000000000000
[  384.094750] x20: ffff000801c8a000 x19: 0000000000000003 x18: ffff0008001f0280
[  384.094756] x17: 0000000000000fc4 x16: 0000061c0bd46400 x15: 0000000000000003
[  384.094761] x14: 00000000000000e5 x13: ffff0008002a2280 x12: 0000000000000000
[  384.094766] x11: ffff0008000e4480 x10: ffff00087bf969c0 x9 : ffff0008002a2280
[  384.094772] x8 : ffff800082f0bc28 x7 : ffff000801c8a498 x6 : ffff000801c8a498
[  384.094777] x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff00080170a0c0
[  384.094782] x2 : 0000000000000000 x1 : ffff800082f0bc54 x0 : 0000000000000000
[  384.094787] Call trace:
[  384.094789]  swphy_read_reg+0xac/0x188
[  384.094793]  mdiobus_read+0x40/0x80
[  384.094796]  genphy_read_status_fixed+0x24/0x6c
[  384.094802]  genphy_read_status+0xe0/0xe8
[  384.094805]  phy_check_link_status+0xf8/0x108
[  384.094809]  _phy_state_machine+0x98/0x2c8
[  384.094813]  phy_state_machine+0x2c/0x80
[  384.094817]  process_one_work+0x150/0x290
[  384.094823]  worker_thread+0x2d0/0x3e4
[  384.094828]  kthread+0x110/0x120
[  384.094832]  ret_from_fork+0x10/0x20
[  384.094836] ---[ end trace 0000000000000000 ]---

And that's with : 

ethernet@f0000 {
  status = "okay";

  pcsphy-handle = <&pcsphy6>;
  pcs-handle-names = "xfi";
  managed = "in-band-status";
  phys = <&serdes1 3>;
  phy-names = "serdes";
  sfp = <&sfp_mac9>;

  /delete-property/ phy-connection-type;
  /delete-property/ phy-handle;;
};

 

0 件の賞賛
返信
%3CLINGO-SUB%20id%3D%22lingo-sub-2396452%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E3%82%AB%E3%83%BC%E3%83%8D%E3%83%AB6.12%E3%81%AB%E3%81%8A%E3%81%91%E3%82%8BLS1046A%2010GB%20SFP%2B%E3%81%AE%E8%A8%AD%E5%AE%9A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2396452%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%3C%2FP%3E%3CP%3E%E7%A7%81%E3%81%AFLS1046A%E3%82%92%E6%90%AD%E8%BC%89%E3%81%97%E3%81%9F%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E3%83%9C%E3%83%BC%E3%83%89%E3%82%92%E6%8C%81%E3%81%A3%E3%81%A6%E3%81%84%E3%81%A6%E3%80%81%E3%81%AF%E3%82%93%E3%81%A0%E4%BB%98%E3%81%91%E3%81%95%E3%82%8C%E3%81%9FSFP%2B%2010GB%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%A7fm1-mac9%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%82%88%E3%81%86%E3%81%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3ESERDES%201%20%E3%81%AE%E7%A7%81%E3%81%AE%20RCW%20%E3%81%AF%200x1040%20%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hugoacata_0-1784298387879.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hugoacata_0-1784298387879.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F392585iF20E49F6920D4A5A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hugoacata_0-1784298387879.png%22%20alt%3D%22hugoacata_0-1784298387879.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E3%81%A4%E3%81%BE%E3%82%8A%E3%80%81FM1%E3%81%8B%E3%82%89MAC9%E3%81%AE10GB%E3%81%AFRCW%E3%81%AE%E8%A6%96%E7%82%B9%E3%81%8B%E3%82%89%E8%A6%8B%E3%81%A6%E5%8D%81%E5%88%86%E3%81%AB%E3%82%AB%E3%83%90%E3%83%BC%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82SFP%E3%81%AE%E9%9B%BB%E6%BA%90%E3%82%84%E3%83%AC%E3%83%BC%E3%82%B6%E3%83%BC%E3%81%AF%E6%AD%A3%E5%B8%B8%E3%81%AA%E3%82%88%E3%81%86%E3%81%A7%E3%81%99%E3%81%8C%E3%80%81%E5%89%8D%E3%81%AESFP%E3%81%A8%E9%80%A3%E6%90%BA%E3%83%BB%E9%80%A3%E6%90%BA%E3%81%A7%E3%81%8D%E3%81%9A%E3%80%81DTB%E3%81%AE%E8%A8%AD%E5%AE%9A%E3%81%8C%E9%96%93%E9%81%95%E3%81%A3%E3%81%A6%E3%81%84%E3%82%8B%E3%81%AE%E3%81%A7%E3%81%AF%E3%81%AA%E3%81%84%E3%81%8B%E3%81%A8%E7%96%91%E3%81%A3%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E3%81%93%E3%82%8C%E3%81%8C%E3%81%9D%E3%81%AEMAC%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%E3%81%AE%E7%8F%BE%E5%9C%A8%E3%81%AE%E8%A8%AD%E5%AE%9A%E3%81%A7%E3%81%99%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3Exfi10g%3A%20ethernet%40f0000%20%7B%3CBR%20%2F%3E%E3%82%B9%E3%83%86%E3%83%BC%E3%82%BF%E3%82%B9%20%3D%20%22%E6%AD%A3%E5%B8%B8%22%3B%3CBR%20%2F%3E%20pcsphy-handle%20%3D%20%26lt%3B%26amp%3Bpcsphy6%26gt%3B%3B%3CBR%20%2F%3E%20pcs-handle%20%3D%20%26lt%3B%26amp%3Bpcsphy6%26gt%3B%3B%3CBR%20%2F%3E%20pcs-handle-names%20%3D%20%22xfi%22%3B%3CBR%20%2F%3E%E7%89%A9%E7%90%86%E6%8E%A5%E7%B6%9A%E3%82%BF%E3%82%A4%E3%83%97%20%3D%20%2210gbase-r%22%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%E5%9B%BA%E5%AE%9A%E3%83%AA%E3%83%B3%E3%82%AF%20%7B%3CBR%20%2F%3E%E9%80%9F%E5%BA%A6%20%3D%20%26lt%3B10000%26gt%3B%3B%3CBR%20%2F%3E%E5%85%A8%E4%BA%8C%E9%87%8D%E9%80%9A%E4%BF%A1%3B%3CBR%20%2F%3E%20%7D%3B%3CBR%20%2F%3E%20%7D%3B%3C%2FP%3E%3CP%3Emdio%40f1000%20%7B%3CBR%20%2F%3E%E3%82%B9%E3%83%86%E3%83%BC%E3%82%BF%E3%82%B9%20%3D%20%22%E6%AD%A3%E5%B8%B8%22%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%20pcsphy6%3A%20%E3%82%A4%E3%83%BC%E3%82%B5%E3%83%8D%E3%83%83%E3%83%88-phy%400%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20compatible%20%3D%20%22fsl%2Clynx-pcs%22%3B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20reg%20%3D%20%26lt%3B0x0%26gt%3B%3B%3CBR%20%2F%3E%26nbsp%3B%20%7D%3B%3CBR%20%2F%3E%7D%3B%3C%2FP%3E%3CP%3Esfp_mac9%3A%20sfp%20%7B%3CBR%20%2F%3E%E4%BA%92%E6%8F%9B%20%3D%20%22SFF%2CSFP%22%3B%3CBR%20%2F%3EI2C%E3%83%90%E3%82%B9%20%3D%20%26lt%3B%26amp%3Bi2C3%26gt%3B%3B%3CBR%20%2F%3Estatus%20%3D%20%22OK%22%3B%3CBR%20%2F%3E%7D%3B%3C%2FP%3E%3CP%3E%E5%8F%82%E8%80%83%E3%81%BE%E3%81%A7%E3%81%AB%E3%80%81%E7%A7%81%E3%81%AFlinux-qoriq%E3%82%AB%E3%83%BC%E3%83%8D%E3%83%AB6.12%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%81%8C%E3%80%81SFP%E3%81%AF%E8%B5%B7%E5%8B%95%E6%99%82%E3%81%ABEEPROM%E3%82%92%E6%AD%A3%E3%81%97%E3%81%8F%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%82%93%E3%81%A7%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3Efm1-mac9%E3%81%A7%E3%81%93%E3%81%AE%E3%82%BF%E3%82%A4%E3%83%97%E3%81%AE%E6%8E%A5%E7%B6%9A%E3%82%92%E5%AE%9F%E8%A1%8C%E3%81%99%E3%82%8B%E9%81%A9%E5%88%87%E3%81%AA%E4%BE%8B%E3%81%AF%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%81%8B%EF%BC%9F%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E