AQR113C插网线后,led灯不亮

hi nvidia team
我们10g网卡用的贵司自带的AQR113C phy,现在网络可以正常使用。但是有插网线后led灯不亮,请教过mavell,他们说需要请贵司提供相关patch,还请帮忙提供
FAE提供了一个寄存器修改方法,但是我不知道这个phy驱动在哪里可以看到,还请提供下相关驱动或者patch.

hi nvidia team
May I know how to modify the above registers in the driver layer?

Modify in the following file:
source/kernel/kernel-5.10/drivers/net/phyaquantia_main.c

Can you help me?

Hi

Their datasheet and driver code should be sufficient to modify the register.

Try to add that to probe function of aqr113c.

BTW, actually this is Marvell driver. I have no idea why they are asking NVIDIA to provide patch…

hi WayneWWW
我看贵司的mdio读写函数是这样的,我现在如何把上面的寄存器通过下面的接口写到phy里?
phy_write_mmd(phydev, MDIO_MMD_VEND1,
VEND1_GLOBAL_SYS_CONFIG_1G, VEND1_GLOBAL_SYS_CONFIG_XFI);

Hi @xianfei.chen

How about directly write the register with mdio tool first and confirm the functionality?
Then put the code into driver later.


要不要先透過mdio tool直接改register看看 確認register功能正確之後再寫死進driver?

phytool工具我也不会用,能否帮忙按直接按上面的接口修改下寄存器试试?

学习了下phytool,我们万兆网卡的节点是eth1,现在读不到ID,请问这个是什么原因:
root@lcfc-desktop:/home/lcfc/phytool-master# ./phytool print eth1/0
ieee-phy: id:00000000

ieee-phy: reg:BMCR(0x00) val:0000
flags: -reset -loopback -aneg-enable -power-down -isolate -aneg-restart -collision-test
speed: 10-half

ieee-phy: reg:BMSR(0x01) val:0000
capabilities: -100-b4 -100-f -100-h -10-f -10-h -100-t2-f -100-t2-h
flags: -ext-status -aneg-complete -remote-fault -aneg-capable -link -jabber -ext-register
root@lcfc-desktop:/home/lcfc/phytool-master#

Hi,
We can share suggestion per our experience. But for formal patch, we would suggest contact vendor for help.

我看贵司的mdio读写函数是这样的,我现在如何把上面的寄存器通过下面的接口写到phy里?
phy_write_mmd(phydev, MDIO_MMD_VEND1,
VEND1_GLOBAL_SYS_CONFIG_1G, VEND1_GLOBAL_SYS_CONFIG_XFI);

MDIO_MMD_VEND1 is defined as “30” which is “0x1E” and this means the “Global” field if you read Marvell datasheet.

Since your LED control register is also under “Global”. Try to modify 0xc430 under MDIO_MMD_VEND1 as how other functions calling phy_write_mmd…

1 Like

Dear WayneWWW
按如上修改可以了,感谢您的支持!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.