2710 Commits

Author SHA1 Message Date
Jeffrey Townsend
01e07ff03c Merge pull request #466 from akenliu/wedge100bf_65x_enhance_performance
[wedge100bf-65x] enhance get data performance
2018-11-27 13:16:38 -08:00
Jeffrey Townsend
e1097f8400 Merge pull request #465 from akenliu/wedge100bf_32x_enhance_performance
enhance get data performance
2018-11-27 13:16:17 -08:00
Jeffrey Townsend
1697ea8643 Merge pull request #460 from roylee123/add_platform_as5916-54xl
[platform] add new platform as5916-54xl.
2018-11-27 13:15:29 -08:00
Jeffrey Townsend
016cdd7ce6 Merge pull request #451 from MellanoxBSP/onl-msn2100b-upstream
Add: MSN2100-b system support
2018-11-27 13:09:36 -08:00
Jeffrey Townsend
3caa838d33 Update the LY2 fan control paths after kernel upgrade. 2018-11-27 18:01:22 +00:00
Jeff Chen
d1d32a1254 Fix SFP eeprom read issue. 2018-11-27 17:13:04 +08:00
brandonchuang
eaf35c151b Update thermali.c 2018-11-27 09:01:22 +08:00
brandonchuang
f4d35a1cc9 [as5916-54xks] Update threshold of thermal sensors 2018-11-23 17:38:04 +08:00
Jeff Chen
9d5271a44a Fix PSU fan present while BMC on. 2018-11-22 17:43:03 +08:00
Jeff Chen
9967b15923 [platform] delta new model agc7648sv1 2018-11-22 13:39:01 +08:00
Oleksandr Shamray
c27ec71068 Added kernel 4.9 patches
- mlx-platform: backport patches from 4.19
- mlx-platform: Add support for register CPLD3_VER, RST_CUSE
  Add NG system type support

Signed-off-by: Oleksandr Shamray <oleksandrs@mellanox.com>
2018-11-21 11:52:36 +00:00
Oleksandr Shamray
4edfc7bebe Added kernel 4.9 patches
- mlx-platform: backport patches from 4.19
- mlx-platform: Add support for register CPLD3_VER, RST_CUSE
  Add NG system type support

Signed-off-by: Oleksandr Shamray <oleksandrs@mellanox.com>
2018-11-21 11:45:50 +00:00
Oleksandr Shamray
bdb30e409c Merge branch 'master' into onl-anaconda 2018-11-20 18:39:09 +00:00
Oleksandr Shamray
5fe96a8bab Add: MAN3700 (Anaconda) system support
Signed-off-by: Oleksandr Shamray <oleksandrs@mellanox.com>
2018-11-20 13:59:05 +00:00
hans
64a4d8de47 1.improve the mathod to access the peripheral bus
Signed-off-by: hans <hans.tseng@deltaww.com>
2018-11-20 17:47:19 +08:00
Jostar Yang
6122f29ee6 Fix set port_name to incorrect sysfs 2018-11-20 14:50:04 +08:00
Tobias Jungel
847305743a x86-64-delta-ag7648: fix los register bits 2018-11-19 23:14:59 +01:00
Tobias Jungel
2c0401325e x86-64-delta-ag9032v1 fix -Werror=format-overflow
would write a terminating nul past the end of dest
2018-11-19 23:14:36 +01:00
Tobias Jungel
347f87c9e0 x86-64-accton-as5712_54x fix -Werror=format-overflow
would write a terminating nul past the end of dest
2018-11-19 23:14:05 +01:00
Tobias Jungel
ee3505a380 dni_ag5648_sfp: read correct presence register 2018-11-19 23:13:46 +01:00
Tobias Jungel
f33497b987 x86-64-delta-ag5648: add null termination to buffers 2018-11-19 23:13:46 +01:00
robertyu
2d05351193 Update support for Inventec d7032q28b/d7054q28b 2018-11-15 21:47:55 -08:00
Jostar Yang
48ded65d2d Add build as9716-32d onlp needed make.mk 2018-11-14 15:22:45 +08:00
Jostar Yang
b33ee3aea9 Add suport as9716-32d onlp 2018-11-13 18:13:50 +08:00
hans
8195f4459d 1. add platform of ag9032v2a
Signed-off-by: hans <hans.tseng@deltaww.com>
2018-11-13 15:52:07 +08:00
roy_lee
433dc32dab Duplicate attributes that follows lm-sensor naming.
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-11-13 06:55:38 +00:00
roy_lee
4a1e2571b0 Add lm-sensor package to jessie rootfs.
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-11-13 06:54:10 +00:00
wanda
ab7032cf47 Add new platform for Inventec d5254
1.Add new platform for Inventec d5254
  2.Add onlp support for d5254
  3.Add kernel patch for lpc_ich, let gpio recognize Broadwell-de
2018-11-12 17:22:53 +08:00
brandonchuang
c7a9f91270 [as5812-54x] Support serial number for YM-2401J PSU in psui.c 2018-11-08 11:23:55 +08:00
hans
93b1205e34 1. remove the unnecessary debug message
2. simplize and optimize the code.

Signed-off-by: hans <hans.tseng@deltaww.com>
2018-11-07 15:33:58 +08:00
Sergey Popovich
e12e40f335 ordnance: Initialize Linux Random Number Generator (RNG) early
We start using Linux RNG from initrd with low entropy pools and random
data quality might not be good. Kernel warns us about the problem with
following messages in dmesg(1):

  [    4.786307] random: onl-mounts: uninitialized urandom read (16 bytes read, 46 bits of entropy available)
  [    5.307536] random: onl-mounts: uninitialized urandom read (16 bytes read, 83 bits of entropy available)
  [    5.354480] random: blkid: uninitialized urandom read (6 bytes read, 89 bits of entropy available)
  [    5.366963] random: blkid: uninitialized urandom read (6 bytes read, 90 bits of entropy available)
  [    5.379385] random: blkid: uninitialized urandom read (6 bytes read, 90 bits of entropy available)
  [    5.391910] random: blkid: uninitialized urandom read (6 bytes read, 90 bits of entropy available)
  [    5.546389] random: onl-pki: uninitialized urandom read (16 bytes read, 96 bits of entropy available)
  [    8.881398] random: mktemp: uninitialized urandom read (6 bytes read, 109 bits of entropy available)
  [    9.026771] random: swiget: uninitialized urandom read (16 bytes read, 109 bits of entropy available)

Since main rootfs isn't mounted we can't load entropy saved from
previous runtime by systemd-random-seed (for systemd) and
/etc/init.d/urandom (for sysvinit).

Moreover even if we able to load this data, direct write to /dev/urandom
or /dev/random does not change entropy count according to random(4) man
page and /proc/sys/kernel/random/entropy_avail contents after loading
data to /dev/urandom or /dev/random.

To address this we should generate pseudo random data suitable for use
as RNG seed based on frequently changed information in system and use
some cryptographic grade hash to hide this info from RNG.

Use MIT licensed initrng.py Python implementation for Linux RNG early
init to seed RNG before executing onl-mounts and other stuff from early
userspace in initramfs.

Signed-off-by: Sergey Popovich <sergey.popovich@ordnance.co>
2018-11-07 08:16:27 +02:00
hans
403a9d4b26 1. read the fan's present bit from FANIO controller
2. improve the bus's access

Signed-off-by: hans <hans.tseng@deltaww.com>
2018-11-07 11:08:06 +08:00
brandonchuang
e631d732c5 [as5712-54x] Fix QSFP port mapping issue in sfpi.c 2018-11-07 11:06:39 +08:00
brandonchuang
4fd8ab8b5b [as5812-54x] Fix QSFP port mapping issue in sfpi.c 2018-11-07 11:02:03 +08:00
Sergey Popovich
ce306bfe03 mkinstaller.py: Substitude ONLVERSION in installer.sh.in template
To show ONL version at image installation time add --onl-version
option to mkinstaller.py and pass VERSION_STRING to it.

Fixes: 9a98e40c09 ("Use the new mkinstaller script.")
Signed-off-by: Sergey Popovich <sergey.popovich@ordnance.co>
2018-11-07 00:03:42 +02:00
Jeffrey Townsend
a5ec39317e Add new port config 48x25+4x100+2x200. 2018-11-05 15:56:27 +00:00
brandonchuang
78e073afd5 [as7712-32x] Support ACBEL FSF019 PSU 2018-11-02 16:45:12 +08:00
roy_lee
200f35319a [platform]as5916-26xb/as7316-26xb: onlpdump get psu capabilities of DC or AC.
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-11-01 15:17:06 +08:00
roy_lee
6f3598e330 [platform]as5916-26xb/as7316-26xb: take fan speed value to be unsigned to get correct RPM.
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-11-01 15:12:36 +08:00
Jeffrey Townsend
17978ad957 Increase domain socket read timeout to 5 seconds. 2018-10-31 09:07:32 -07:00
brandonchuang
0d1dfb4d6d [as5916-54xks] Add cpld watchdog function and enhance the mutex protection of peripheral drivers 2018-10-30 17:22:16 +08:00
Jeffrey Townsend
789324a016 Enhance for custom includes for kernel module builds. 2018-10-26 00:08:13 +00:00
Jeffrey Townsend
5645390a91 Add iproc kernel modules. 2018-10-26 00:08:01 +00:00
Jeffrey Townsend
0ce144ca07 Semi-failed attempt to modify for the 4.14 kernel 2018-10-26 00:07:34 +00:00
Jeffrey Townsend
1f7629399c AS4610-54 Kernel Module builds. The source should be migrated to common for 54/30 after all of this is sorted. 2018-10-26 00:05:55 +00:00
Jeffrey Townsend
ea149f0f3d The 4610 54/30 variants now share the same DTS file. 2018-10-26 00:00:50 +00:00
Jeffrey Townsend
192bb5ea4c Add kernel-4.14-arm-iproc configuration. 2018-10-25 23:59:01 +00:00
Jeffrey Townsend
c1298e9d59 Temporarily disable automatic loader upgrades until the ONL partitions are working. 2018-10-25 23:57:46 +00:00
Jeffrey Townsend
7b67db733b Initial Kernel 4.14 for IPROC 2018-10-25 23:56:32 +00:00
Aken Liu
fbf6f2adac enhance get data performance
1. old method: open UART and close UART whenever we need to get information from BMC.
       new method: open UART at beginning, then we use the UART(TTY) device directly.
    2. old method: use onlp_i2c_readw() to get all QSFP/SFP's eeprom data, it spends 128 times i2c access time.
       new method: use OOM's sysfs
                   we also correct the port mapping
    3. reduce the UART(TTY) retry time and timeout time
    4. add PSU's serial number information
2018-10-24 16:41:27 +08:00