[as9726_32d] Add new platform#883
Conversation
CPU: Intel Broadwell-DE D-1519 4 cores RAM: DDR4 8GB x2 SO-DIMM (Expandable up to 16GBx2, w/i ECC) SSD: M.2 MLC 50GB x 1 PHY: Marvell 88E1111 CPLD: Altera MAX 10 10M04DAU324C8G X1 CPLD: Altera Cyclone IV EP4CGX30CF23C7N X1 CPLD: Altera 5M1270ZF256C5N x1 Ethernet Port: 400G QSFP56-DD port x 32 and 10G SFP+ x 2 PSU: 1+1 Redundant/hot swappable 1500W AC/DC PSU (C14 ac inlet) Cooling: 5+1 fan-tray modules with 40mm x40mm x 56mm 12V fans, hotswappable Dimension: 17.26” x 23.23” x 1U (438.4x590x43.5mm) Signed-off-by: Alex Lai <alex_lai@edge-core.com>
paulmenzel
left a comment
There was a problem hiding this comment.
Thank you for adding the device. Please mention the Linux kernel version in the commit message.
Did you send the Linux kernel patches upstream for review?
| {LED_DIAG, LED_MODE_OFF, ONLP_LED_MODE_OFF}, | ||
| {LED_DIAG, LED_MODE_GREEN, ONLP_LED_MODE_GREEN}, | ||
| {LED_DIAG, LED_MODE_AMBER, ONLP_LED_MODE_ORANGE}, | ||
| {LED_DIAG, LED_MODE_GREEN_BLINK, ONLP_LED_MODE_GREEN_BLINKING}, | ||
| {LED_LOC, LED_MODE_OFF, ONLP_LED_MODE_OFF}, | ||
| {LED_LOC, LED_MODE_AMBER, ONLP_LED_MODE_ORANGE}, | ||
| {LED_LOC, LED_MODE_AMBER_BLINK, ONLP_LED_MODE_ORANGE_BLINKING}, | ||
| {LED_FAN, LED_MODE_AUTO, ONLP_LED_MODE_AUTO}, | ||
| {LED_PSU1, LED_MODE_AUTO, ONLP_LED_MODE_AUTO}, | ||
| {LED_PSU2, LED_MODE_AUTO, ONLP_LED_MODE_AUTO} |
|
|
||
| if (unlikely(result != data_len)) { | ||
| result = -EIO; | ||
| msleep(10); |
There was a problem hiding this comment.
10 ms delay is not so high here. I think.
There was a problem hiding this comment.
Everything about 1 ms is high, and should be justified.
| int status; | ||
| int power_good = 0; | ||
|
|
||
| dev_dbg(&client->dev, "Starting as9726_32d update\n"); |
There was a problem hiding this comment.
in order to return the most up to date value, an update is needed.
There was a problem hiding this comment.
But what is updated? Please improve the debug message.
|
|
||
| if (status < 0) { | ||
| dev_dbg(&client->dev, "cpld reg 0x60 err %d\n", | ||
| status); |
| if (status < 0) { | ||
| dev_dbg(&client->dev, "cpld reg 0x60 err %d\n", | ||
| status); | ||
| } else { | ||
| data->status = status; | ||
| } |
There was a problem hiding this comment.
| @@ -0,0 +1,6 @@ | |||
| KERNELS := onl-kernel-4.19-lts-x86-64-all:amd64 | |||
There was a problem hiding this comment.
Why not the latest Linux kernel version?
There was a problem hiding this comment.
our customers need the 4.19 kernel.
There was a problem hiding this comment.
Please mention that in the commit message. (I am very uneasy about the fact, that users rely on such old versions, even if they are LTS series. For ONL the latest Linux kernel version should always be usable.)
…onality, and to use correct settings. 1. removed the old project name in fan.c. 2. removed unnecessary mutex_unlock() in fan.c. 3. added AIM_FREE_IF_PTR(mn) in platform_lib.c to prevent memory leak. 4. added support of Belpower psu. 5. added support of transciever LP mode sysfs and onlpdump. 6. modified the fan policy. 7. modified to use the fan air flow direction to detemine which set of thermal thersholds should be used. 8. modified to use the correct console port setting. 9. removed IR3570 related codes in __init__.py 10. modified some codes to fit the linux coding style. Signed-off-by: Alex Lai <alex_lai@edge-core.com>
1. used kernel 5.4 2. removed msleep(10) when failed to read correct PSU info. Signed-off-by: Alex Lai <alex_lai@edge-core.com>
1. initialize pca9548 idle_state in kernel 5.4.40 version, or the data read by the transceivers will be wrong. Signed-off-by: Alex Lai <alex_lai@edge-core.com>
83e60f3 to
edf7b15
Compare
1. Modify PSU related files to support new PSU model:FSJ035-610G and FSJ036-610G. 2. Modify to show correct fan direction for FSJ001, FSJ004, SPAACTN-01, and SPAACTN-02 3. Modify to show the current PSU is of AC or DC. 4. Modify to let vout, vin, iout, iin, pout, and pin return 0, if the PSU is present but unplugged. Signed-off-by: Alex Lai <alex_lai@edge-core.com>
1. In onlpdump, modified to read the fan direction of each psu and show, instead of one reffering to other. Signed-off-by: Alex Lai <alex_lai@edge-core.com>
1. used the comunity master branch's x86_64-all.config of kernel 5.4. Signed-off-by: Alex Lai <alex_lai@edge-core.com>
|
Please mention the used Linux kernel version in the commit message description of commit [as9726_32d] Add new platform, and say why. The latest LTS version is 6.6. |
OK, done. Please review, thanks. |
|
Hello @paulmenzel Please help review this PR. |
1. Use the eeprom at 0x56 on the mainbaord, and the eeprom at 0x57 on the cpu board will no longer be used. Signed-off-by: Alex Lai <alex_lai@accton.com>
Signed-off-by: Roger Ho <roger530_ho@accton.com>
1. set/get the QSFP eeprom tx-disable field via onlp_sfp_control_set() and onlp_sfp_control_get(), respectively, to control the tx-disable functionality Signed-off-by: Alex Lai <alex_lai@accton.com>
…-disable 1. by default, checksum is done on page 0 in sff.c, so after accessing the apis for qsfp-dd tx-disable, page 0 must be set to upper memory. Signed-off-by: Alex Lai <alex_lai@accton.com>
CPU: Intel Broadwell-DE D-1519 4 cores
RAM: DDR4 8GB x2 SO-DIMM (Expandable up to 16GBx2, w/i ECC)
SSD: M.2 MLC 50GB x 1
PHY: Marvell 88E1111
CPLD: Altera MAX 10 10M04DAU324C8G X1
CPLD: Altera Cyclone IV EP4CGX30CF23C7N X1
CPLD: Altera 5M1270ZF256C5N x1
Ethernet Port: 400G QSFP56-DD port x 32 and 10G SFP+ x 2
PSU: 1+1 Redundant/hot swappable 1500W AC/DC PSU (C14 ac inlet)
Cooling: 5+1 fan-tray modules with 40mm x40mm x 56mm 12V fans, hotswappable
Dimension: 17.26” x 23.23” x 1U (438.4x590x43.5mm)
Linux kernel version: 5.4, due to customer requirements
Signed-off-by: Alex Lai alex_lai@edge-core.com