1859 Commits

Author SHA1 Message Date
Jeffrey Townsend
c43294c428 Merge pull request #483 from roylee123/Add_lm_sensor_for_as5912-54x
Add lm-sensor package and update kernel modules of as5912-54x for it.
2018-11-27 13:28:10 -08:00
Jeffrey Townsend
a510ea4a5c Merge pull request #482 from yhwu5/master
Add new platform for Inventec d5254
2018-11-27 13:27:17 -08:00
Jeffrey Townsend
55db8a2ce6 Merge pull request #481 from hans-tseng/master
improve the busess access on  the ag9032v1
2018-11-27 13:21:10 -08:00
Jeffrey Townsend
e82a60e8e3 Merge pull request #476 from brandonchuang/as5812_54x_1
[as5812-54x] Support serial number for YM-2401J PSU in psui.c
2018-11-27 13:19:02 -08:00
Jeffrey Townsend
44b0390225 Merge pull request #475 from brandonchuang/as5812_54x
[as5812-54x] Fix QSFP port mapping issue in sfpi.c
2018-11-27 13:18:47 -08:00
Jeffrey Townsend
506e2f9750 Merge pull request #474 from brandonchuang/as5712_54x
[as5712-54x] Fix QSFP port mapping issue in sfpi.c
2018-11-27 13:18:28 -08:00
Jeffrey Townsend
e57b253c96 Merge pull request #471 from brandonchuang/as7712_32x
[as7712-32x] Support ACBEL FSF019 PSU
2018-11-27 13:17:57 -08:00
Jeffrey Townsend
a215aef4f3 Merge pull request #469 from roylee123/as5916_as7316_26xb_fix_psu_fan_wrong_rpm
[platform]as5916-26xb/as7316-26xb: add support for DC-PSU, model YM-2401U.
2018-11-27 13:17:33 -08:00
Jeffrey Townsend
ee71403e95 Merge pull request #468 from brandonchuang/as5916_54xks
[as5916-54xks] Add cpld watchdog / enhance mutex protection of peripheral drivers
2018-11-27 13:17:11 -08:00
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
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
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
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