|
|
|
如需调试模块,请先备份参数。
|
|
|
|
1. 备份参数:
|
|
|
|
python3 ocsdiag.py -i 10.57.216.95 -e 4,6 -s all -c reg-save --sl_file ./main_data/bak_regs/95_bak.yaml
|
|
|
|
python3 ocsdiag.py -i 10.57.216.96 -e 4,6 -s all -c reg-save --sl_file ./main_data/bak_regs/96_bak.yaml
|
|
|
|
python3 ocsdiag.py -i 10.57.216.97 -e 4,6 -s all -c reg-save --sl_file ./main_data/bak_regs/97_bak.yaml
|
|
|
|
python3 ocsdiag.py -i 10.57.216.98 -e 4,6 -s all -c reg-save --sl_file ./main_data/bak_regs/98_bak.yaml
|
|
|
|
2. 恢复参数:
|
|
|
|
python3 ocsdiag.py -i 10.57.216.95 -e 2 -s all -c reg-load --sl_file ./main_data/bak_regs/95_bak.yaml
|
|
|
|
|
|
|
|
|
|
|
|
0. 根据需求对节点执行 power cycle
|
|
|
|
ipmitool power cycle
|
|
|
|
|
|
|
|
1. 设置topo
|
|
|
|
python3 ocsdiag.py -i 10.57.216.95,10.57.216.96,10.57.216.97,10.57.216.98 -e 2,4,6,8 -c topo-config -p 32
|
|
|
|
|
|
|
|
|
|
|
|
2. ocs link reset
|
|
|
|
ocs_link_reset -i 10.57.216.95,10.57.216.96,10.57.216.97,10.57.216.98 -e 2,4,6,8
|
|
|
|
|
|
|
|
3. 设置high freq(根据PCB走线)
|
|
|
|
python3 ocsdiag.py -i 10.57.216.96 -e 8 -c highfreq-tune
|
|
|
|
|
|
|
|
python3 ocsdiag.py -i 10.57.216.96,10.57.216.98 -e 4 -c highfreq-tune
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4. 设置low freq
|
|
|
|
python3 ocsdiag.py -i 10.57.216.98 -e 8 -c rtmr-prbs
|
|
|
|
python3 ocsdiag.py -i 10.57.216.98 -e 8 -s all -c lowfreq-auto-tune
|
|
|
|
# python3 ocsdiag.py -i 10.57.216.98 -e 8 -s all -c reg-wt -p lowfreq_eq -v 128
|
|
|
|
|
|
|
|
python3 ocsdiag.py -i 10.57.216.96 -e 4 -c rtmr-prbs
|
|
|
|
python3 ocsdiag.py -i 10.57.216.96 -e 4 -s all -c lowfreq-auto-tune
|
|
|
|
python3 ocsdiag.py -i 10.57.216.98 -e 4 -s all -c lowfreq-auto-tune
|
|
|
|
|
|
|
|
python3 ocsdiag.py -i 10.57.216.98 -e 4 -c rtmr-prbs
|
|
|
|
python3 ocsdiag.py -i 10.57.216.98 -e 4 -s all -c lowfreq-auto-tune
|
|
|
|
|
|
|
|
4. 设置tia_peak(根据PCB走线)
|
|
|
|
python3 ocsdiag.py -i 10.57.216.98 -e 8 -s all -c tia-peak-tune
|
|
|
|
|
|
|
|
python3 ocsdiag.py -i 10.57.216.98,10.57.216.96 -e 4 -s all -c tia-peak-tune
|
|
|
|
|
|
|
|
5. 校准ibias (onoc)
|
|
|
|
python3 ocsdiag.py -i 10.57.216.98 -e 8 -s all -c ibias-auto-tune
|
|
|
|
|
|
|
|
6. 校准ibias (onet)
|
|
|
|
python3 ocsdiag.py -i 10.57.216.98 -e 4 -s all -c ibias-auto-tune -p 10.57.216.96
|
|
|
|
python3 ocsdiag.py -i 10.57.216.96 -e 4 -s all -c ibias-auto-tune -p 10.57.216.98
|
|
|
|
|
|
|
|
7. 校准mgc onoc
|
|
|
|
python3 ocsdiag.py -i 10.57.216.98 -e 8 -c rtmr-prbs
|
|
|
|
python3 ocsdiag.py -i 10.57.216.98 -e 8 -s all -c mgc-auto-tune
|
|
|
|
|
|
|
|
8.1 校准mgc onet
|
|
|
|
tx端: python3 ocsdiag.py -i 10.57.216.98,10.57.216.96 -e 4 -c rtmr-prbs
|
|
|
|
rx端: python3 ocsdiag.py -i 10.57.216.96 -e 4 -s all -c mgc-auto-tune
|
|
|
|
python3 ocsdiag.py -i 10.57.216.98 -e 4 -s all -c mgc-auto-tune
|
|
|
|
|
|
|
|
9. 查看retimer 误码情况
|
|
|
|
python3 ocsdiag.py -i 10.57.216.97 -e 8 -c vcmd -p "rtmr all"
|
|
|
|
|
|
|
|
10. 查看眼图情况
|
|
|
|
python3 ocsdiag.py -i 10.57.216.97 -e 8 -c vcmd -p "rtmr 1 eye 1 a"
|
|
|
|
python3 ocsdiag.py -i 10.57.216.97 -e 8 -c vcmd -p "rtmr 2 eye 1 a"
|
|
|
|
python3 ocsdiag.py -i 10.57.216.97 -e 8 -c vcmd -p "rtmr 3 eye 1 a"
|
|
|
|
python3 ocsdiag.py -i 10.57.216.97 -e 8 -c vcmd -p "rtmr 4 eye 1 a"
|
|
|
|
|
|
|
|
如果眼偏下,则op_current需要调小。
|
|
|
|
|
|
|
|
11. 保存配置
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10.57.216.98/96: port 4
|
|
|
|
|
|
|
|
3. 设置high freq(根据PCB走线)
|
|
|
|
python3 ocsdiag.py -i 10.57.216.96,10.57.216.98 -e 4 -c highfreq-tune
|
|
|
|
|
|
|
|
4. 设置low freq
|
|
|
|
python3 ocsdiag.py -i 10.57.216.96,10.57.216.98 -e 4 -c rtmr-prbs
|
|
|
|
python3 ocsdiag.py -i 10.57.216.96 -e 4 -s all -c lowfreq-auto-tune
|
|
|
|
python3 ocsdiag.py -i 10.57.216.98 -e 4 -s all -c lowfreq-auto-tune
|
|
|
|
|
|
|
|
4. 设置tia_peak(根据PCB走线)
|
|
|
|
python3 ocsdiag.py -i 10.57.216.98,10.57.216.96 -e 4 -s all -c tia-peak-tune
|
|
|
|
|
|
|
|
6. 校准ibias (onet)
|
|
|
|
python3 ocsdiag.py -i 10.57.216.98 -e 4 -s all -c ibias-auto-tune -p 10.57.216.96
|
|
|
|
python3 ocsdiag.py -i 10.57.216.96 -e 4 -s all -c ibias-auto-tune -p 10.57.216.98
|
|
|
|
|
|
|
|
8.1 校准mgc onet
|
|
|
|
tx端: python3 ocsdiag.py -i 10.57.216.98,10.57.216.96 -e 4 -c rtmr-prbs
|
|
|
|
rx端: python3 ocsdiag.py -i 10.57.216.96 -e 4 -s all -c mgc-auto-tune
|
|
|
|
python3 ocsdiag.py -i 10.57.216.98 -e 4 -s all -c mgc-auto-tune
|
|
|
|
|
|
|
|
2. ocs link reset
|
|
|
|
ocs_link_reset -i 10.57.216.96,10.57.216.98 -e 4
|
|
|
|
|
|
|
|
|
|
|
|
先用vgc = 255,校准,然后手动改为200,发现recovery没增加了。
|
|
|
|
|
|
|
|
|
|
|
|
如何筛选模块:
|
|
|
|
1. 通过ibias筛选分光不均匀的。
|
|
|
|
|
|
|
|
|
|
|
|
写一个精修程序,针对有问题的lane,特定修。
|
|
|
|
|
|
|
|
针对几种眼型。
|
|
|
|
眼过小的: 先增加ibias (< 3200 , step 100),如果不行; 增加mgc( < 相对值+10); 调eq,先调high freq,值调大(eq变小,不超过200,步进20);再调tia_peak,值调大(eq变小,不超过200,步进20)。
|
|
|
|
|
|
|
|
眼偏下: op太大,需调小(最小100, step 10)
|
|
|
|
眼偏上: 整体EQ过大。调eq,先调high freq,值调大(eq变小,不超过200,步进20);再调tia_peak,值调大(eq变小,不超过200,步进20)。
|
|
|
|
|
|
|
|
改了以后,可能需要ocs_link_reset。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|