Commit Graph

165 Commits

Author SHA1 Message Date
abdosi
b6efb49817
Update bcm soc property bcm_num_cos from 8 to 10 (#5314)
as needed by SAI 3.7 and above. Without this change
Warmboot fails from 3.5 to 3.7 as Braodcoam Datastructure
gets corrupted after warm-boot.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2020-09-04 07:40:17 -07:00
brandonchuang
8793814d53
[Device] Disabled thermalctld for Accton platforms (#5276)
Disable thermalctld on Accton platforms until support is added as to avoid logs flooding

Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2020-08-31 17:09:19 -07:00
jostar-yang
e87de49ecb
[as9716-32d] Add to support lpmode for sfputil (#5171)
Implement code to set/get lpmode for as9716-32d platform
2020-08-13 11:19:14 -07:00
Joe LeVeque
3b89e5d467
[Python] Migrate applications/scripts to import sonic-py-common package (#5043)
As part of consolidating all common Python-based functionality into the new sonic-py-common package, this pull request:
1. Redirects all Python applications/scripts in sonic-buildimage repo which previously imported sonic_device_util or sonic_daemon_base to instead import sonic-py-common, which was added in https://github.com/Azure/sonic-buildimage/pull/5003
2. Replaces all calls to `sonic_device_util.get_platform_info()` to instead call `sonic_py_common.get_platform()` and removes any calls to `sonic_device_util.get_machine_info()` which are no longer necessary (i.e., those which were only used to pass the results to `sonic_device_util.get_platform_info()`.
3. Removes unused imports to the now-deprecated sonic-daemon-base package and sonic_device_util.py module

This is the next step toward resolving https://github.com/Azure/sonic-buildimage/issues/4999

Also reverted my previous change in which device_info.get_platform() would first try obtaining the platform ID string from Config DB and fall back to gathering it from machine.conf upon failure because this function is called by sonic-cfggen before the data is in the DB, in which case, the db_connect() call will hang indefinitely, which was not the behavior I expected. As of now, the function will always reference machine.conf.
2020-08-03 11:43:12 -07:00
Joe LeVeque
9905d9382d
[devices] Update SFP keys to align with new standard (#4975)
Align SFP key names with new standard defined in https://github.com/Azure/sonic-platform-common/pull/97

- hardwarerev -> hardware_rev
- serialnum -> serial
- manufacturename -> manufacturer
- modelname -> model
- Connector -> connector
2020-07-16 13:03:50 -07:00
chihhan123
23ddfb866e
[accton]: Update AS7312-54X, AS7312-54XS, AS7315-27XB config.bcm file (#4702)
Update AS7312-54X,AS7312-54XS,AS7315-27XB config.bcm file to make sure there is no the following error message.

configuration: format error in /usr/share/sonic/hwsku/th-as7312-48x25G+6x100G.config.bcm on line 110 (ignored)#15
2020-06-09 09:56:53 -07:00
Polly Hsu
5fefee67d7
[device][accton]: Update for AS5835-54T (#3272)
* [device][accton]: Update for AS5835-54T

* [device][accton]: Update for AS5835-54T to delete its config.bcm off-loading to the self-brought up of the Broadcom SAI version, 3.5.2.3 due to SONiC not supported.

* [device][accton]: Add config.bcm for AS5835-54T
* Ran config_checker passed on our config.bcm, however, we off-loaded the needed MV2 SDK config setting to our self-brought up SAI libraries due to the compatibility of config_check among SONiC different branches.
[-] help_cli_enable=1
[-] ifp_inports_support_enable=1
[-] memlist_enable=1
[-] port_flex_enable=1
[-] reglist_enable=1

* [device][accton]: Update config.bcm for AS5835-54T based on the latest config_checker

Co-authored-by: Polly Hsu <pollyhsu2git@gmail.com>
2020-05-21 02:35:48 -07:00
ChiouRung Haung
3f061da48f
[device/accton]: rename the config.bcm due to that it just allow 1st row of TH2 to be breakout (#4295)
- What I did
  1. Rename the config.bcm to th2-as7816-64x25G-48x100G_row1.config.bcm,
     due to that it just allow 1st row of TH2 to be breakout
  2. Add port_flex_enable to support dynamic port breakout.
  3. Remove the loopback port due to it would make syncd terminate.
     => The port_config.ini doesn't include the loopback ports.
        When portsorch start, it would compare the ports in SDK and port_config.ini.
        Portsorch would remove the loopback ports due to the loopback ports didn't been defined in port_config.ini
        But the broadcom SAI doesn't support remove port for th2.
        So it would return fail and syncd would terminate.

- How I did it

- How to verify it
  Run with the new SONiC image and syncd would not terminate

Signed-off-by: chiourung_huang <chiourung_huang@edge-core.com>
2020-05-21 02:23:39 -07:00
dereksun01
d4b89b1909
[device/accton] Remove linkscan_led_fw.bin file on as7326_56x (#4408) 2020-05-21 02:17:54 -07:00
dereksun01
19b224be14
[device/accton] as4630_54pe add custom_led.bin file (#4534) 2020-05-20 12:51:51 -07:00
chihhan123
9b48f5746c
[device/accton] Modify interface name of port_config.ini on AS9716-32D (#4507) 2020-05-20 12:47:55 -07:00
dereksun01
6706e5ab12
[device/accton] Add pre-emphasis parameters for as4630_54pe (#4604) 2020-05-18 09:55:30 -07:00
dereksun01
34cad97f30
[device] Modify configuration and add led_proc_init.soc (#4418)
- Modify configuration file path in sai.profile.
- Modify configuration file for as7726_32x.
- Add led_proc_init.soc and custom_led.bin
2020-05-01 06:34:54 -07:00
dereksun01
3f1c3dda99
[device/accton] Modify as8000 configuration (#4446) 2020-05-01 05:36:04 -07:00
dereksun01
506e9546c9
[device] Upgrade as4630_54pe for new platform (#4268)
- Add port auto-negotiation attribute.
- Add CPLD command to disable mode.
2020-05-01 05:27:32 -07:00
jostar-yang
9129378097
[accton/as9716-32d] add support get_transceiver_change_event (#4105)
Co-authored-by: Jostar Yang <jostar_yang@accton.com.tw>
2020-04-22 22:54:48 -07:00
chihhan123
c5e98443ba
[device/acction] Support AS9716-32D(R0BA) (#4449)
- add led_proc_init.soc
- update config.bcm
2020-04-22 11:47:04 -07:00
Sheng-Chien, Cheng
6df0e4be0a
Correct port mapping. (#4433) 2020-04-16 14:43:40 -07:00
Joe LeVeque
21aff7fdeb
[device/accton] Fix Python error for as7116-54x (#4391)
Fix syntax error
2020-04-08 23:03:47 -07:00
jostar-yang
c9059992a0
[AS9716-32D]:Support 0x57 and 0x56 eeprom (#4103)
* [AS9716-32D]:Support 0x57 and 0x56 eeprom

* Add checking sysfs use 0x57 or 0x56

Co-authored-by: Jostar Yang <jostar_yang@accton.com.tw>
2020-03-21 14:26:55 -07:00
jostar-yang
a6efbaed97
[device]Add check exception case when read port present fail (#4107)
Modify get_psu_presence(). Move read() and close() to "try: ... except IOError:" To avoid when read
port present sysfs fail. This exception will let sfputil.py to exit. So "sfputil show eeprom" can't show other port status.
2020-02-07 07:53:55 -08:00
brandonchuang
38b7d30295 [device] as7326-56x: Fix the default low power mode on issue (#4047)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2020-01-23 12:20:20 -08:00
Polly Hsu
1e05a41c7f [device][accton]: Update for AS7326-56X complying the BCM SAI 3.5.3.1m-26 (#3830)
* [device][accton]: Update for AS7326-56X complying the Broadcom SAI latest version 3.5.3.1m-26
* Update Accton-AS7326-56X to adapt xxx.config.bcm based on the latest update of Device-Specific File Directory Structure.
* Update Accton-AS7326-56X LED BIN complying the Broadcom SAI latest version 3.5.3.1m-26
Signed-off-by: polly_hsu@edge-core.com
* [device][accton]: Merge the SDK config with #3103 (Fix Accton as7326 port breakouk)
Signed-off-by: Polly Hsu <pollyhsu2git@gmail.com>
2019-12-19 06:29:19 +00:00
dereksun01
6e926a1842 [device]: rename as5835_54x configuration file (#3429)
Signed-off-by: derek_sun <derek_sun@edge-core.com>
2019-11-09 14:16:16 -08:00
simonJi2018
b2e15f2318 [device/accton] Platform2.0 API Implementation for accton as7116-54x (#3622)
Implement Component platform2.0 API for accton as7116-54x platform
2019-11-08 21:49:46 -08:00
dereksun01
6c0ab4b926 [device] accton device of as5812_54t supports SAI and modify as5812_54t periphery (#3663)
- Support as5812_54t SAI.
- Modify as5812_54t periphery.

Signed-off-by: derek_sun <derek_sun@edge-core.com>
2019-11-07 16:24:42 -08:00
brandonchuang
7d4093d6ed [device/platform] Add reset in sfputil.py for Accton AS7326-56X (#3685)
Add reset in sfputil.py for as7326-56x.

Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-11-06 18:57:08 -08:00
Roy Lee
4d8a01c26c [device] as4630-54pe: update sfputil for get_transceiver_change_event. (#3315)
Signed-off-by: roy_lee <roy_lee@accton.com>
2019-10-16 18:01:38 -07:00
brandonchuang
a97b15e0ec [device/as5835-54t] Implement get_transceiver_change_event() in sfputil.py (#3485)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-09-23 14:27:18 -07:00
Roy Lee
9179990ba1 [device][accton] Add as5812-54t. (#3428)
* Verified as5812_54t platfrom, except SDK and monitor.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Add as5812-54t to build its debian package.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Use the right cpld read/write api.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Update device paths.
Signed-off-by: roy_lee <roy_lee@accton.com>

* update psu driver, correct python lib location.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Give a default return value.
Signed-off-by: roy_lee <roy_lee@accton.com>
2019-09-10 22:07:13 -07:00
Polly Hsu
3323e9b817 [device][accton]: ADD the Accton new device support, AS9716-32D (#3372) 2019-08-28 21:39:40 -07:00
brandonchuang
47a9a614bd [device] Add pmon_daemon_control.json for accton (#3340)
Add pmon_daemon_control.json for accton devices which do not need led_control

Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-08-15 01:27:38 -07:00
jostar-yang
ff6437eaaa [devices]: Add support fpga drv and pimutility for minipack platform (#3053) 2019-08-15 00:50:13 -07:00
brandonchuang
c605dd2192 [as5835-54x] Implement get_transceiver_change_event() in sfputil.py (#3308)
Signed-off-by: brandon_chuang <brandon_chuang@CicadaBuildServer.accton.com.tw>
2019-08-13 14:24:41 -07:00
Roy Lee
b45c1aca73 [device] Adding platform support for Accton as7315-27xb (#3301)
This switch has 27 fiber ports, 4x25G, 20x10G , and 3x100G ports ports.
CPU: Intel ® Atom™ Processor C3508,1.6GHz
BMC: None
MAC: Broadcom BCM88470 (Qumran AX).
MISC: Support IEEE1588v2, hot-swappable PSU, hot-swappable fan tray.

But notice here, BCM88470 is not supported for SAI now.
So the syncd container is not running so far.

Signed-off-by: roy_lee <roy_lee@accton.com>
2019-08-08 01:13:46 -07:00
simonJi2018
49f3b22de5 [device] various improvement for nephos devices (#3139)
Add fan control for as7116-54x
Modify sfputil.py to support sfp insert and remove events for as7116-54x
Modify port_config.nps to set port default admin down
Modify port_config.ini for add speed attr
Code format optimization like remove newline
Modify buffers_defaults_t0 and t1, change ingress_lossless_pool mode from dynamic to static
Add nephos_dac.nps and nephos_opt.nps for support difference dac and fiber module
2019-08-07 09:33:56 -07:00
Roy Lee
efe9438c61 [Accton] Correct port index and offer the default speed. (#3213)
* [as5712-54x]
Verified with index from 1.
Add qsfp_event() for command "show interaface trancerver".
Signed-off-by: roy_lee <roy_lee@accton.com>

* [as6712-32x]
Add default port speed.
Verified with index from 1.

Signed-off-by: roy_lee <roy_lee@accton.com>

* [as7726-32x]
Add default port speed.
Verified with index from 1.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [as7712-32x]
Add default port speed.
Verified with index from 1.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [as5812-54x]
Add default port speed.
Verified with index from 1.

Signed-off-by: roy_lee <roy_lee@accton.com>

* [as5712-54x]
Update port-config with 1-based index.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [as5812-54x]
Somehow the service may block, use type=simple to work-around.
Add syslog function for monitor.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [as7716-32x]
Update port-config with 1-based index.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [as7816-64x]
Update port-config with 1-based index.
Implement sfputil change_event.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [as7326-56x]
Update port-config with 1-based index.
Implement sfputil change_event.

Signed-off-by: roy_lee <roy_lee@accton.com>

* Remove debug code.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [as7312-54x]
Update port-config with 1-based index and default port speed.

Signed-off-by: roy_lee <roy_lee@accton.com>
2019-07-24 12:14:43 -07:00
Roy Lee
9c4d23427b [device][accton]: add support for as7312-54xs (#3140)
* Add driver and util for peripherals of as7312-54xs, most are copied from as7312-54s.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Add default port speed and index from 1.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Update i2c addr of psus.
Add system logging for monitor.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Correct syntax of module_dirs.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Validate sfputil after tested.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Correct the index of eeprom mapping.
Signed-off-by: roy_lee <roy_lee@accton.com>
2019-07-18 07:30:22 -07:00
dereksun01
ef3b817f5a [device] Update as5835_54x port_config.ini (#3181)
Signed-off-by: derek_sun <derek_sun@edge-core.com>
2019-07-18 06:24:55 -07:00
Steven LU
083f8586c7 [device]: Adjust port-mapping to allow 1st row of TH2 to be breakout (#3144) 2019-07-16 08:35:05 -07:00
dereksun01
acf1a53ac2 [device]: Modify as5835_54x port_config.ini (#3130)
Signed-off-by: derek_sun <derek_sun@edge-core.com>
2019-07-10 17:17:51 -07:00
brandonchuang
5a89cf5733 [device][platform] add platform as5835-54t, accton. (#3119)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-07-06 14:53:02 -07:00
brandonchuang
206ca1b092 [devices]: Add lpmode in sfputil.py for Accton AS7716-32X (#3039)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-07-03 06:49:38 -07:00
Steven LU
810bc0d2ed [devices]: Fix Accton as7326 port breakout (#3103) 2019-07-03 06:48:42 -07:00
brandonchuang
d0981c4d58 [devices]: Add lpmode in sfputil.py for Accton AS7312-54X (#3006)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-07-03 06:46:14 -07:00
brandonchuang
2ec473cdd1 [devices]: Add lpmode in sfputil.py for Accton AS7312-54XS (#3007)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-07-02 11:39:59 -07:00
brandonchuang
8b225d3ca1 [devices]: Add lpmode in sfputil.py for Accton AS7512 (#3005)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-06-28 21:50:30 -07:00
brandonchuang
5ec23dfd09 [devices]: Add lpmode in sfputil.py for Accton AS5712-54X (#3094)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-06-28 21:35:58 -07:00
brandonchuang
0b8c1a10e8 [devices]: Add lpmode in sfputil.py for Accton AS6712-32X (#3095)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-06-28 21:35:27 -07:00
brandonchuang
93582c7af9 [devices]: Add lpmode in sfputil.py for Accton AS7726-32X (#3040)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-06-23 11:54:27 -07:00
brandonchuang
4ce3cc864a [devices]: Add lpmode in sfputil.py for Accton AS7816 (#2989)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-06-12 01:37:29 -07:00
brandonchuang
4073e8fa64 [device][platform] add platform as5835-54x, accton. (#2977)
Signed-off-by: brandon_chuang <brandon_chuang@edge-core.com>
2019-06-07 09:00:12 -07:00
Roy Lee
4d212debc7 [device][platform] add platform as5812-54x, accton. (#2889)
* Add new device accton_as5812_54x.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Rename 5812's config.bcm.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Change fan module to support lm-sensors.
Validate for thermal policy.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Add bask reset and lpmode control of 6 QSFP ports.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Get currect duty of fan for comparing. Instead of by stored duty from previous iteration.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Roll back the mistakes to update mellanox submodules.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Rollback for misoperation on submodule platform/p4/SAI-P4-BM.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Change indexes of ports to start from 1, as them on the front panel.
Add low-power mode control of the transciever's eeprom, follows SFF-8436.
Signed-off-by: roy_lee <roy_lee@accton.com>
2019-05-28 22:44:32 -07:00
jostar-yang
b44eef9822 Add support as4630-54pe device and sdk cfg (#2928)
* Add to support as4630-54pe platform

* Add as4630 monitor psu/fan status

* Add support as4630-54pe device and sdk cfg
2019-05-24 02:40:44 -07:00
brandonchuang
77919507f2 [Accton AS7326]: Add lpmode in sfputil.py (#2905)
Signed-off-by: brandon_chuang <brandon_chuang@CicadaBuildServer.accton.com.tw>
2019-05-18 10:36:58 -07:00
brandonchuang
e6691c2a34 [Accton AS7712]: Add lpmode in sfputil.py (#2896)
Signed-off-by: brandon_chuang <brandon_chuang@CicadaBuildServer.accton.com.tw>
2019-05-15 07:49:02 -07:00
Polly Hsu
b36b84fc5a [device/accton]: Update Accton-AS7326-54X (#2482) 2019-03-23 12:28:24 -07:00
Polly Hsu
af111aa836 [device/accton]: Add Accton-AS7726-32X (#2483) 2019-03-23 12:22:08 -07:00
Roy Lee
802d5ef55a [devices] add new accton platform minipack (#2670)
[devices] add new accton platform minipack.

Add support for new platform, minipack.
It has
CPU: Broadwell DE – D1527
MAC: Tomahawk3(BCM56980).
PHY:Broadcom BCM81724, 4 pcs, Gearbox for PIM-16Q
BMC:AST2520
8 hot-swappable Port-Interface-Modules, each of them has 16*100G QSFP.

- What I did
Add device and platform files for minipack.
- How I did it
Add as SONiC Porting Guide.
- How to verify it
decode-syseeprom
sensors
psuutil
sfputil
thermal monitor
bcmsh on port status
(port LEDs may not working)
2019-03-15 09:40:38 -07:00
KIRAN KUMAR KELLA
e6251bd9d5 [devices]: ALPM is not working on AS5712/TD2 platforms. (#2469)
- Also initialized the number of cos queues in AS5712 to 8.
    Else the interfaces are not coming up due to a lower default value of cos queues in AS5712.

  Fix:
    - Enable alpm settings in the platform config file for AS5712.
    - With the current values of l2_mem_entries (163840) and l3_mem_entries (81920), the memory is not sufficient. Scale them down to the
      values that work for ALPM in as5712 [l2_mem_entries = 32768, l3_mem_entries = 16384].

  Signed-off-by: kiran.kella@broadcom.com
2019-01-23 01:14:47 -08:00
simonJi2018
b17a6522b9 [nephos]: support Debian 9 for nephos platform (#2347)
* Upgrade SAI to v1.2.4

* Add a new supported device accton as7116

* Add maintainer info for deb

* Add mk file for accton 7116

* fix some bug for sai 1.2.4

* fix git commit error for sdk and sai

* change sai and sdk deb name

* add config file for qos support

* initial commit

* Delete qos.json

* Delete buffers.json.j2

* Delete qos.json

* Delete buffers.json.j2

* Delete buffers.json.j2

* Delete qos.json

* add support for sai 1.3.0

* add qos and buffer file for device and add sensor driver for 7116

* change buffer template

* fix fan led bug

* add support for linux-4.9

* update device driver and update sdk and sai for support kernel 4.9
2018-12-05 00:30:38 -08:00
Roy Lee
ae82c073aa [Platform] [Accton] Validate mii-tool access on management port. (#2318)
* Add kernel cmdline, tg3.short_preamble=1 tg3.bcm5718s_reset=1, to validate mdio to external PHY.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Push submodule, sonic-linux-kernel, to patch of tg3 short_preamble.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Restore to former version, for this platform is not maintained by Accton.
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-12-04 10:13:46 -08:00
Roy Lee
7f76d3bf74 [platform]Accton, add platform as6712-32x. (#2178)
* [platform] Add 6712 dpkg on building.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [platform] remove scache_filename for it failed the bcm checker.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [plaform] add platform/device as6712-32x.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [platform] fix error on private data reference at cpld.c.
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-10-26 17:10:47 -07:00
Wenda Ni
77652c55fd [QoS]: Unify qos json by using qos_config.j2 template (#2023)
* Unify qos config with qos_config.j2 template

Signed-off-by: Wenda <wenni@microsoft.com>

* Change 7050 to use qos config template

Signed-off-by: Wenda <wenni@microsoft.com>

	modified:   device/arista/x86_64-arista_7050_qx32/Arista-7050-QX32/qos.json.j2
	modified:   device/arista/x86_64-arista_7050_qx32s/Arista-7050-QX-32S/qos.json.j2

* Change a7060, a7260, s6000, s6100, z9100  to use qos config template

Signed-off-by: Wenda <wenni@microsoft.com>

* Change mlnx devices to use qos config template

Signed-off-by: Wenda <wenni@microsoft.com>

	modified:   ../../../mellanox/x86_64-mlnx_msn2100-r0/ACS-MSN2100/qos.json.j2
	modified:   ../../../mellanox/x86_64-mlnx_msn2410-r0/ACS-MSN2410/qos.json.j2
	modified:   ../../../mellanox/x86_64-mlnx_msn2700-r0/ACS-MSN2700/qos.json.j2
	modified:   ../../../mellanox/x86_64-mlnx_msn2700-r0/Mellanox-SN2700-D48C8/qos.json.j2

* Change barefoot devices to use qos config template

Signed-off-by: Wenda <wenni@microsoft.com>

	modified:   barefoot/x86_64-accton_wedge100bf_32x-r0/montara/qos.json.j2
	modified:   barefoot/x86_64-accton_wedge100bf_65x-r0/mavericks/qos.json.j2

* Change accton as7212 to use qos config template

Signed-off-by: Wenda <wenni@microsoft.com>

	modified:   accton/x86_64-accton_as7212_54x-r0/AS7212-54x/qos.json.j2

* Apply PORT_QOS_MAP to active ports only

Signed-off-by: Wenda <wenni@microsoft.com>

* Update qos config test with qos_config.j2 template

Signed-off-by: Wenda <wenni@microsoft.com>

* Update sample output of qos-dell6100.json

Signed-off-by: Wenda <wenni@microsoft.com>

* Remove generating the default port name and index list, i.e., remove the generate_port_lists macro, because PORT is always defined

Signed-off-by: Wenda <wenni@microsoft.com>

* Include pfc_to_pg_map according to platform asic type obtained from
/etc/sonic/sonic_version.yml rather than specifying per hwsku

Signed-off-by: Wenda Ni <wenni@microsoft.com>

* Customize TC_TO_PRIORITY_GROUP_MAP and
PFC_PRIORITY_TO_PRIORITY_GROUP_MAP for barefoot

Signed-off-by: Wenda <wenni@microsoft.com>

* Unify PFC_PRIORITY_TO_PRIORITY_GROUP_MAP: remove "0":"0", "1":"1" as
these two pgs do not generate PFC frames.

Signed-off-by: Wenda <wenni@microsoft.com>
2018-10-17 14:10:34 -07:00
Ying Xie
5ab66b191a
[bcm config] remove scache_filename config entry (#2140)
Warm boot is managed by SAI. This configuration entry shouldn't be
included in bcm config.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2018-10-12 08:05:38 -07:00
Roy Lee
593bcb1c1b [device] accton update driver and sync as5712-54x from 201807. (#2110)
* [platform_accton] Remove dependency on particular version of linux.
Signed-off-by: Polly Hsu <polly_hsu@edge-core.com>

* [platfrom] as5712-54x: update i2c_client for linux kernel 4.x.
Signed-off-by: Polly Hsu <polly_hsu@edge-core.com>

* [platform] Update lastest optoe.c from https://github.com/opencomputeproject/oom/blob/master/optoe/optoe.c.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [platform] rm optoe driver here. For it's inside the kernel.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [platform] as5712-54x, merge the change of Azure/sonic-buildimage#2002 which is on branch 201807.
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-10-02 05:36:28 -07:00
Taoyu Li
018b5899be [updategraph] add support to use preset config instead of default minigraph (#2050)
* [updategraph] add support to use preset config instead of default minigraph

* Fix variable case

* Remove default minigraph case

* Remove default minigraphs and add default_sku files
2018-09-21 22:01:10 -07:00
Kebo Liu
ac7e06debd [devices]: add stubs for new API in SfpUtilBase for all devices (#2038) 2018-09-12 09:40:29 -07:00
Ying Xie
e7ef637a09
[config-bcm] move broadcom config files to device folder (#1947)
- Future versions of SAI packages will stop carrying these files.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2018-08-20 10:11:11 -07:00
simonJi2018
634814b152 change buffer template and fix some device driver bug (#1903)
* Upgrade SAI to v1.2.4

* Add a new supported device accton as7116

* Add maintainer info for deb

* Add mk file for accton 7116

* fix some bug for sai 1.2.4

* fix git commit error for sdk and sai

* change sai and sdk deb name

* add config file for qos support

* initial commit

* Delete qos.json

* Delete buffers.json.j2

* Delete qos.json

* Delete buffers.json.j2

* Delete buffers.json.j2

* Delete qos.json

* add support for sai 1.3.0

* add qos and buffer file for device and add sensor driver for 7116

* change buffer template
2018-08-07 09:01:47 -07:00
simonJi2018
927c41f26c [nephos]: add support sai 1.3.0 (#1868)
* Upgrade SAI to v1.2.4

* Add a new supported device accton as7116

* Add maintainer info for deb

* Add mk file for accton 7116

* fix some bug for sai 1.2.4

* fix git commit error for sdk and sai

* change sai and sdk deb name

* add config file for qos support

* initial commit

* Delete qos.json

* Delete buffers.json.j2

* Delete qos.json

* Delete buffers.json.j2

* Delete buffers.json.j2

* Delete qos.json

* add support for sai 1.3.0
2018-07-23 10:44:26 -07:00
Polly Hsu
043435958c [device]: Add a new supported device AS7312-54XS (#1821)
* Switch Vendor: Edge-core
* Switch SKU: AS7312-54XS
* ASIC Vendor: Broadcom
* Swich ASIC: Tomahawk+
* Port Configuration: 48x25G + 6x100G
* SONiC Image: SONiC-ONIE-Broadcom
Signed-off-by: polly_hsu@edge-core.com
2018-06-29 09:40:43 -07:00
pavel-shirshov
3681cfa553
Use only active ports when applying buffers/qos configuration (#1787)
* First part of skipping not used port for qos configuration

* Use active ports only to set QoS parameters for 6100

* Add a test for qos.json.j2

* Add a test for Dell S6100 buffers.json template

* Update submodulre
2018-06-21 11:51:37 -07:00
simonJi2018
65b3774487 [nehpos] fix libsainps and nps-sdk bug for support sai 1.2.4 (#1639) 2018-04-25 22:20:14 -07:00
simonJi2018
1c32321805 [device]: Add a new supported device accton-as7116 (#1539)
* Upgrade SAI to v1.2.4

* Add a new supported device accton as7116

* Add maintainer info for deb
2018-04-02 19:06:00 -07:00
jostar-yang
ad0ad91331 [device]: Accton 5712 Modify sfp to support oom and sfp access by cpld. Add psuutil (#1542) 2018-03-28 23:49:27 -07:00
Roy Lee
ebea937a7a [devices]: New platform as7326-56x (#1524)
* Update sonic-platform-modules-accton to lastest

Signed-off-by: roylee123 <roy_lee@accton.com>

* Install sonic-platform-common package in platform-monitor docker for ledd (#1330)

* Install sonic-platform-common package in platform-monitor docker for ledd

* Specify Python wheel dependencies in docker-platform-monitor.mk; Remove explicit specifications from Dockerfile.j2

* Add related files for new platfrom as7326_56x.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Validate sfputil.py and verified.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Push submodule sonic-platform-modules-accton for as7326-56x validation.
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-03-23 12:36:25 -07:00
Roy Lee
33252a4320 [devices]: As7312 54x add sfp rest and fan policy (#1464)
* Update sonic-platform-modules-accton to lastest

Signed-off-by: roylee123 <roy_lee@accton.com>

* Install sonic-platform-common package in platform-monitor docker for ledd (#1330)

* Install sonic-platform-common package in platform-monitor docker for ledd

* Specify Python wheel dependencies in docker-platform-monitor.mk; Remove explicit specifications from Dockerfile.j2

* [platform] 1. Add QSFP reset control.
           2. Validate fan control monitoring.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Replace tab by blanks.
Signed-off-by: roy_lee <roy_lee@accton.com>

* Resolve submodule conflicts.
Signed-off-by: roy_lee <roy_lee@accton.com>

* AS7312-54x, fix a indention error on sfputil.py.
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-03-14 10:23:54 -07:00
Nadiya
f88734b391 Fix sfp cli commands (#1482)
Signed-off-by: Nadiya Stetskovych <Nadiya.Stetskovych@cavium.com>
2018-03-12 09:27:36 -07:00
jostar-yang
16f81afe9a [devices]: Add as7716-32xb device code (#1472)
* Add as7716-32xb device code

* Add as7716-32xb drv code
2018-03-09 15:47:10 -08:00
Roy Lee
763461eeac [devices]: As7816 64x validate sfputil psuutil (#1466) 2018-03-07 00:33:33 -08:00
ZivErlich
126d08d000 [devices]: Updating SFPUtil plugin for Acton AS7212 and Marvell SLM5401 (#1456) 2018-03-04 17:58:53 -08:00
Polly Hsu
f5090d25da [device]: Add a new supported device AS7816-64X (#1426)
* Switch Vendor: Edge-core
* Switch SKU: AS7816-64X
* ASIC Vendor: Broadcom
* Swich ASIC: Tomahawk2
* Port Configuration: 64x100G
* SONiC Image: SONiC-ONIE-Broadcom

Signed-off-by: Polly Hsu <polly_hsu@edge-core.com>
2018-02-27 12:50:02 -08:00
ZivErlich
3ed2cd6163 [Marvel] Marvell's updates for SAI v1.0 (#1410) 2018-02-22 16:35:52 -08:00
Roy Lee
5576c11c12 New model as7312 54x (#1339)
* Update sonic-platform-modules-accton to lastest

Signed-off-by: roylee123 <roy_lee@accton.com>

* Install sonic-platform-common package in platform-monitor docker for ledd (#1330)

* Install sonic-platform-common package in platform-monitor docker for ledd

* Specify Python wheel dependencies in docker-platform-monitor.mk; Remove explicit specifications from Dockerfile.j2

* [7312_54x] Add plug-in files.
Signed-off-by: roylee123 <roy_lee@accton.com>

* [as7312-54x] Update i2c related drivers after tested on R0B model.
Signed-off-by: roylee123 <roy_lee@accton.com>

* Add as7312-54x driver package.
Signed-off-by: roylee123 <roy_lee@accton.com>

* [as7312-54x] Add index to port_config.ini for mmaping port with single lane.
             Validate sfputil.py and mark unsupported for lp mode.
Signed-off-by: roylee123 <roy_lee@accton.com>

* [as7312-54x] Change for R01 HW board.
Signed-off-by: roylee123 <roy_lee@accton.com>

* [as7312-54x] recovered for the lint corrected not suitable for python.
Signed-off-by: roylee123 <roy_lee@accton.com>

* Remove debug printing.
Signed-off-by: roylee123 <roy_lee@accton.com>

* [platform] as7312-32x, update for util.py recovered.
Signed-off-by: roylee123 <roy_lee@accton.com>

* [platform] Accton: merged the commit by Polly Hsu.
        Change platform modules to depend on 3.16.0-5-amdn64 kernel.

Signed-off-by: roylee123 <roy_lee@accton.com>

* [Device] As7312-54x, update for correct I2C addresses for sfp and psu.
Signed-off-by: roy_lee <roy_lee@accton.com>

* [Platform] as7312-54x, pushed submodule to new i2c drivers and script.
Signed-off-by: roy_lee <roy_lee@accton.com>

* resolved PR New model as7312 54x #1339  merge conflicts on sfputil.py.
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-02-14 19:10:37 -08:00
Roy Lee
02e0fadca2 [Platform] Accton as7712 32x support oom (#1327)
* Update sonic-platform-modules-accton to lastest

Signed-off-by: roylee123 <roy_lee@accton.com>

* [platform] accton as7712_32x supports OOM SFP eerpom driver.
Signed-off-by: roylee123 <roy_lee@accton.com>

* [platform] update for as7712-32x to remove local optoe.c file and Makefile.
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-02-13 21:37:12 +08:00
Taoyu Li
6f12ff286d [minigraph]: Set hostname in all default minigraphs to 'sonic' (#1333) 2018-01-23 18:16:15 -08:00
jostar-yang
5c83be5d28 Add support for Accton AS7712-32X platform (#1299)
* Add support as7716_32x sfp/psu/portled/eeprom

* Add as7716_32x drv code(not inlcude .*.o)

* Update platform-modules-accton.mk

* Update platform-modules-accton.mk

1.Modify platform-modules-accton.mk to use new style code add_extra_package
2. fix error code

* Add as7716_32x build to debian control,rule

* Add as7716_32x export
2018-01-12 19:34:51 -08:00
Roy Lee
8ae3c6c88a [Platform]As7712-32x update for sensors test (#1292)
* Update sonic-platform-modules-accton to lastest

Signed-off-by: roylee123 <roy_lee@accton.com>

* [platform]AS7712.
    1. update device driver.
        - move 7712 modules to common dir, and linked to them.
        - add new lm75 node at I2C address 0x4B.
        - add optoe module for QSFP eeprom access.
        - add accton_pmbus_3y.c module for pmbus access.
    2. masked sensor.conf for matching of sku-sensors-data.yml.
Signed-off-by: roylee123 <roy_lee@accton.com>
2018-01-10 03:08:05 -08:00
Roy Lee
f8d32aa9f1 [platform]: As7712 32x add fancontrol (#1270)
* Update sonic-platform-modules-accton to lastest

Signed-off-by: roylee123 <roy_lee@accton.com>

* [AS7712-32X] Add fancontrol.

Signed-off-by: roylee123 <roy_lee@accton.com>

* [AS7712-32X] add psuutil.py and sensors.conf

Signed-off-by: roylee123 <roy_lee@accton.com>

* Remove 1 reduntant line.

Signed-off-by: roylee123 <roy_lee@accton.com>

* [AS7712-32X] Change fan driver to support fancontrol.
Signed-off-by: roylee123 <roy_lee@accton.com>
2018-01-03 11:42:49 -08:00
Roy Lee
683562cf2f [Accton AS7816-64X] Add new platform and device for AS7816-64X. (#1260)
Signed-off-by: roylee123 <roy_lee@accton.com>
2017-12-22 10:06:21 -08:00
jostar-yang
db49660b86 Add set/get lpmode and mode_rst feature for qsfp (#1261)
* Add lpmode set/get . mode_reset feature for qsfp

* Add lp mode, set/get and mode_rst feature for sfp
2017-12-21 01:54:32 -08:00
Phil Huang
6e05b67070 [device/accton] Correct exception function name (#1249)
NotImplementedErro(r)

Signed-off-by: Phil Huang <phil_huang@edge-core.com>
2017-12-19 15:41:48 -08:00
Roy Lee
db7f173f23 [Accton AS7712] Add sfp reset in driver and sfputil.py. (#1241)
Signed-off-by: roylee123 <roy_lee@accton.com>
2017-12-15 00:59:41 -08:00
Polly Hsu
73e4204521 [device/accton]: Update Accton-AS5712_54X minigraph (#1196)
* UPDATE. minigraph.xml to initialize the default IP address of all interfaces

Signed-off-by: polly_hsu@accton.com
2017-11-30 11:21:47 -08:00
Roy Lee
397f513362 [platform] Accton AS7712-32X. Update for sensors and sfputil (#1197)
Revise kernel driver to duplicate nodes for support of lm-sensors, at fan and PSU.
Update sfputil.py to to fit new SfpUtil prototype.

Signed-off-by: roylee123 <roy_lee@accton.com>
2017-11-30 11:19:41 -08:00
Polly Hsu
0f903d008b [Accton]: Add a new supported platform, AS5712-54X (#1167)
* Switch Vendor: Edge-core
* Switch SKU: AS5712-54X
* ASIC Vendor: Broadcom
* Swich ASIC: TRIDENT2
* Port Configuration: 48x10G+6x40G
* SONiC Image: SONiC-ONIE-Broadcom

Signed-off-by: polly_hsu@accton.com
2017-11-22 02:59:28 -08:00
Polly Hsu
69ff224169 [device/accton]: Add a new supported device, AS7312-54X (#955)
* [device/accton]: Add a new supported device and platform, AS7312-54X
Switch Vendor: Edge-core

Switch SKU: AS7312-54X

ASIC Vendor: Broadcom

Swich ASIC: Tomahawk

Port Configuration: 48x25G + 6x100G

SONiC Image: SONiC-ONIE-Broadcom
Signed-off-by: polly_hsu@accton.com

* Update port_config.ini

* Update sai.profile

* Update installer.conf

* Update led_proc_init.soc

* Update minigraph.xml
2017-09-21 12:37:22 -07:00
Joe LeVeque
bb1a7b2e22 Replace CRLF line endings with LF (#932) 2017-09-01 15:28:46 -07:00
jeankuo
12ba083b66 [Accton]: Add a new supported device AS5712-54X (#898)
* [Accton]: Add a new supported device AS5712-54X
Switch Vendor: Edge-core
Switch SKU: AS5712-54X
ASIC Vendor: Broadcom
Swich ASIC: TRIDENT2
Port Configuration: 48x10G+6x40G
SONiC Image: SONiC-ONIE-Broadcom

* [Accton]: Add a new supported device AS5712-54X (Update 1)
Switch Vendor: Edge-core
Switch SKU: AS5712-54X
ASIC Vendor: Broadcom
Swich ASIC: TRIDENT2
Port Configuration: 48x10G+6x40G
SONiC Image: SONiC-ONIE-Broadcom

* [Accton]: Add a new supported device AS5712-54X (Update 2)
Switch Vendor: Edge-core
Switch SKU: AS5712-54X
ASIC Vendor: Broadcom
Swich ASIC: TRIDENT2
Port Configuration: 48x10G+6x40G
SONiC Image: SONiC-ONIE-Broadcom

* [Accton]: Add a new supported device AS5712-54X (Update 3)
Switch Vendor: Edge-core
Switch SKU: AS5712-54X
ASIC Vendor: Broadcom
Swich ASIC: TRIDENT2
Port Configuration: 48x10G+6x40G
SONiC Image: SONiC-ONIE-Broadcom
2017-08-23 12:08:43 -07:00