[Platform] Accton add to support as9726-32d platform.#7479
[Platform] Accton add to support as9726-32d platform.#7479jleveque merged 6 commits intosonic-net:masterfrom ec-michael-shih:20210423_as9726_32d_add_platform
Conversation
|
This pull request introduces 28 alerts when merging 495c994 into e3b2a04 - view on LGTM.com new alerts:
|
|
I will fix the python alerts. |
|
This pull request introduces 2 alerts when merging 2fce598 into 3967c28 - view on LGTM.com new alerts:
|
jleveque
left a comment
There was a problem hiding this comment.
Curious why you have built your own custom fan/thermal monitoring applications instead of utilizing standard SONiC applications (e.g., thermalctld)?
device/accton/x86_64-accton_as9726_32d-r0/sonic_platform/psu.py
Outdated
Show resolved
Hide resolved
Yes, I think you are right. This design I was follow the engineer who implemented before. |
We would like all vendors to use the common, standard SONiC applications to allow for consistent cross-platform SONiC behavior. It is likely that the engineer before you created these solutions before the standard SONiC application(s) existed. However, I understand that refactoring your code to support the SONiC applications will take some time. How urgent is this PR? |
Thank you for your reply.
I would like to try to use standard application to implement our thermal-plan that it can match our thermal plan. How urgent is this PR? ==> Yes, it is. |
|
You can view the high-level design here: https://github.com/Azure/SONiC/blob/master/thermal-control-design.md You can also examine other vendors' implementations for examples. |
Thank you,I'll survey these informations. |
Sure, I will allow this to merge as-is while you research how to migrate to using our SONiC daemons. |
Thank you!! |
Add support for Accton as9726-32d platform This pull request is based on as9716-32d, so I reference as9716-32d to create new model: as9726-32d. This module do not need led driver to control led, FPGA can handle it. I also implement API2.0(sonic_platform) for this model, CPLD driver, PSU driver, Fan driver to control these HW behavior.
|
@jleveque @ec-michael-shih |
|
@vboykox: Good catch, I missed this. In this PR, the sonic_platform sources are under the @ec-michael-shih: Can you please fix this? |
|
@jleveque |
@mudsut4ke: Can you please explain why Celestica has placed the sonic_platform directory under the device/ directory for your platforms? Can you please move these directories under the |
No problem, I will fix it. Can I ask a question about sonic_platfrom/sfp.py on 202012 branch? |
That's correct. The 202012 branch still has some dependencies on the old platform plugins. We are eliminating these dependencies in the master branch such that only the new sonic_platform package will be used and the old plugins will be obsolete. |
Add support for Accton as9726-32d platform This pull request is based on as9716-32d, so I reference as9716-32d to create new model: as9726-32d. This module do not need led driver to control led, FPGA can handle it. I also implement API2.0(sonic_platform) for this model, CPLD driver, PSU driver, Fan driver to control these HW behavior.
Why I did it
My company(Accton) have a new model names: as9726-32d.
How I did it
This pull request is based on as9716-32d, so I reference as9716-32d to create new model: as9726-32d.
This module do not need led driver to control led, FPGA can handle it.
I also implement API2.0(sonic_platform) for this model, CPLD driver, PSU driver, Fan driver to control these HW behavior.
How to verify it
=====================
QSFP and SFP can detect module present, log show as follow:
...(skip)....
Ethernet28 Not present
Ethernet29 Not present
Ethernet30 Not present
Ethernet31 Present
Ethernet32 Not present
Ethernet33 Not present
Ethernet34 Present
PSU can detect the status:
root@sonic:~# psuutil status
PSU Model Serial Voltage (V) Current (A) Power (W) Status LED
PSU-1 N/A N/A 12.08 12.81 154.25 NOT OK False
PSU-2 N/A N/A 0.00 0.00 0.00 OK False
=====================
Can get the info from eeprom:
root@sonic:~# show platform syseeprom
TlvInfo Header:
Id String: TlvInfo
Version: 1
Total Length: 175
TLV Name Code Len Value
Product Name 0x21 16 9726-32DB-O-AC-F
Part Number 0x22 13 FP5ZZ8632023A
Serial Number 0x23 15 972632DB2113016
Base MAC Address 0x24 6 90:3C:B3:F9:B0:A5
Manufacture Date 0x25 19 03/31/2021 11:02:41
Label Revision 0x27 4 R0BA
Platform Name 0x28 28 x86_64-accton_as9726_32db-r0
ONIE Version 0x29 13 2020.08.00.06
MAC Addresses 0x2A 2 256
Manufacturer 0x2B 6 ACCTON
Manufacture Country 0x2C 2 TW
Vendor Name 0x2D 8 Edgecore
Diag Version 0x2E 11 0a.0a.00.04
CRC-32 0xFE 4 0xBEA8AD7B
(checksum valid)
Which release branch to backport (provide reason below if selected)
Description for the changelog
Branch of 202012 run plugins, so plugins need to merge into this branch, and master don't need (plugins).
A picture of a cute animal (not mandatory but encouraged)