summaryrefslogtreecommitdiff
path: root/meta-facebook
AgeCommit message (Collapse)AuthorFilesLines
2022-08-30fb-ipmi-oem: srcrev bump e40592a7cb..e4d6fe74c8Andrew Geissler1-1/+1
Logananth Sundararaj (1): Add BIC to handle the DCMI commands Change-Id: Ic747c6b2c172d8506642755d533082aa98558d8f Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-08-25meta-facebook : Add Whitelist as IPMI restriction mode by defaultKumar Thangavel4-1/+17
Added IPMI restriction mode as Whitelist by default mode for all the hosts in machine layer for Facebook YosemiteV2 platform. TESTED : Built Facebook YosemiteV2 images and loaded on the target hardware. Verified restriction mode as whitelist by default. Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com> Change-Id: Ib3e98615a2ec80d241f1677ac1838de5a837c6d0
2022-08-20phosphor-fan: Rename meson optionMatt Spinler1-1/+1
The option that tells the code to use the host state as the power state was renamed in the code. phosphor-fan-presence: srcrev bump bf8e56f699..b7dd3e222c Matt Spinler (2): control: Display locked targets in debug dump meson: Rename host power state checking option Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Ic4dfd0c600b31a3aa0d0c9b8101c27e488812bb2 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2022-08-19phosphor-fan: Build with mesonMatt Spinler1-1/+1
The phosphor-fan-presence repository added meson support, so start using it. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: If850d3d379ad82dc8f9691efd7a0561f350543dc
2022-08-18fby35: Rename to greatlakesPeter Delevoryas14-7/+7
Change-Id: Ia7e6bbf0506e9e6acb99fdf67fc7d55a20588a0d Signed-off-by: Peter Delevoryas <peter@pjd.dev>
2022-08-18meta-bletchley: enable IPMB for USB debug cardPotin Lai2-0/+13
1. Add IPMB channel configuration for USB debug card. 2. Enable both phosphor-ipmi-ipmb and fb-ipmi-oem. This patch relies on the kernel patch below: https://lore.kernel.org/all/20220810004338.329832-2-potin.lai.pt@gmail.com/ Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I10c0a99530519e9533dbf0ac5b22a31051f91f98
2022-08-16meta-bletchley: bsp: set vmalloc to 512MPotin Lai1-1/+1
The vmalloc not automatic assigned correctly With 2048MB memory. Manual append `vmalloc=512M` in bootargs to avoid boot issue of vmap allocation failed. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I11d3c8babb533ac94e81017da19feadeda45f1e2
2022-08-16meta-bletchley: bsp: convert patch to cfg filePotin Lai4-39/+5
convert current patch to .cfg file Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I98ad0d5d69dd0c55ea40debd5b05ba4aa77be945
2022-08-15meta-facebook:meta-yosemitev2:Add support for uboot-fw-utilsJayashree Dhanapal1-0/+2
Added support for uboot-fw-utils in Facebook YosemiteV2 platform. Tested: Tested and verified in Yosemite V2 platform Signed-off-by: Jayashree Dhanapal <jayashree-d@hcl.com> Change-Id: I75d9fe20f1c4c537d2186fb00ab9a6f749d559e3
2022-08-11meta-facebook: fix fb-ipmi-oem config for bicPatrick Williams1-3/+10
The meson flags for BIC were inverted. BIC was "enabled" on most systems and "disabled" on Yv2. Switch to a PACKAGECONFIG and set all `fb-compute-multihost` to enable BIC by default. Change-Id: If5335c95cf148664b9e5724d2646d646a0f3d4c3
2022-08-11fb-ipmi-oem: srcrev bump ed22930004..e40592a7cbAndrew Geissler1-1/+1
Potin Lai (2): oemcommands: fix compile error of unused parameter configs: add configs for bletchley Change-Id: I79c23e8c7107782902c08a73c24678b264cc78a3 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-08-10fby35: Disable tpm_tis_i2cPeter Delevoryas1-0/+3
fby35 uses a SPI TPM interface, not the I2C interface, and the I2C module produces compilation warnings, and build failures with -Werror, so we should disable it until it's fixed in the kernel. Building fby35: ``` . setup fby35 build bitbake obmc-phosphor-image ``` Before: ``` | /home/pdel/lfopenbmc/build/tmp/work-shared/fby35/kernel-source/drivers/char/tpm/tpm_tis_i2c.c: In function 'tpm_tis_i2c_write_bytes': | /home/pdel/lfopenbmc/build/tmp/work-shared/fby35/kernel-source/drivers/char/tpm/tpm_tis_i2c.c:114:17: error: ISO C90 forbids mixed declarati ons and code [-Werror=declaration-after-statement] | 114 | struct i2c_msg msgs[] = { | | ^~~~~~ ``` After: Compiles successfully. Change-Id: Ib57bcad51837956d8a277d2be1ff7c887ade9606 Signed-off-by: Peter Delevoryas <peter@pjd.dev>
2022-08-10meta-bletchley: kernel: enable IPMI and IPMB featurePotin Lai1-1/+5
Enable IPMI and IPMB in kernel configuration Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I83f3a1bab0aa77b785c11a729f57fd06e42cb496
2022-08-09meta-bletchley: kernel: enable si7020 configurationPotin Lai1-1/+3
Enable si7020 driver to support 2nd source front panel board. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I3c91d1af9d8316670f946849d31d6c9608200fdf
2022-08-05fb-ipmi-oem: srcrev bump d532feca93..ed22930004Andrew Geissler1-1/+1
Patrick Williams (2): sdbusplus: use shorter type aliases MAINTAINERS: remove file Change-Id: I16d7f6c40706f18f85dd38d756bc60b09b0e532d Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-08-03meta-facebook: fby35: add Michael as reviewerPatrick Williams1-0/+2
Michael is the primary system owner at Meta for yv35, so add him to the reviewer list so he gets informed of any changes directly affecting that system. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Icf6a8e479a04b34b6f039912aeb91bb392603d15
2022-07-29meta-facebook: default to restore power policy for Facebook.Karthikeyan Pasupathi3-4/+4
Facebook systems should default to "Restore" for RestorePolicy. This will ensure a system is automatically restored to the last state prior to the power loss. Tested: Built Facebook image and verified generated source file had correct default in it. Signed-off-by: Karthikeyan Pasupathi <pkarthikeyan1509@gmail.com> Change-Id: Ifccec4ef88ca8fe01e7d90a57af2411db3311736
2022-07-27fb-ipmi-oem: srcrev bump 2e9921c240..d532feca93Andrew Geissler1-1/+1
Karthikeyan Pasupathi (1): yosemitev2:Multi-host CPU info displayed in OCP debug-card. Change-Id: Ic1fdb055cbe02d055310fd25ebbd426718071a39 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-07-27meta-facebook: fby35 : Add support to take actions if Fan/NICKumar Thangavel1-0/+28
sensor values crossed thresholds Added support to trigger hard shutdown alarms and power off the slots of the platform if the Fan/NIC sensors values getting low compared to threshold values. Added platform specific service file and script to take platorm specific actions. TESTED : Verified all the slots getting powered Off when fan/nic sensor values crossed threshold values. Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com> Change-Id: Icd1f761c08e8b829eef4f1d28ef68732600c296b
2022-07-26meta-facebook: yosemitev2 : Add support to take actions ifKumar Thangavel7-0/+103
Fan/NIC sensor values crossed thresholds Added support to trigger hard shutdown alarms and power off the slots of the platform if the Fan/NIC sensors values getting low compared to threshold values. Added platform specific service file and script to take platorm specific actions. TESTED : Verified all the slots getting powered Off when fan/nic sensor values crossed threshold values. Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com> Change-Id: I6deb6707e574a375fac8f2379f47661a5a0ed332
2022-07-25facebook/fby35: remove explicit TPM kconfigPeter Delevoryas1-8/+0
There is already a MACHINE_FEATURE ('tpm2') which is enabled on fby35 and pulls in all the necessary kernel config for the TPM2 hardware. See the fby35 machine config. ``` meta-fby35/conf/machine/fby35.conf:require conf/machine/include/facebook-tpm2.inc ``` Change-Id: I7f26aa3d2d74c3b5f1d6f78d34667681e3cce882 Signed-off-by: Peter Delevoryas <peter@pjd.dev> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2022-07-25fb-ipmi-oem: srcrev bump 6d9e9a7539..2e9921c240Andrew Geissler1-1/+1
Patrick Williams (3): OWNERS: switch 'matches' to 'matchers' meson: move machine configs meson: enable full subproject build Change-Id: Icb1f2f55015deaf30720a86b729661d7a7e3e39e Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-07-25facebook/fby35: Fix missing nvme_config.jsonPeter Delevoryas1-0/+0
The FB phosphor-nvme recipe requires this json file for all platforms, even if they're not using it. If it's missing, the fby35 build fails. In the future, we should really refactor the nvme recipe to make this file optional. Change-Id: Ib80c0f06efae98555a6b08e47eb23b4526261888 Signed-off-by: Peter Delevoryas <peter@pjd.dev>
2022-07-22meta-bletchley: bletchley-common-functions: add functionsPotin Lai1-0/+77
add below functions for flash binding on spi2 1. spi2_mux_select(): set spi2 mux by giving a sled index 2. bind_spi2_pnor(): set spi2 mux and bind pnor flash 3. unbind_spi2_pnor(): unbind pnor flash and unset spi2 mux Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I8cd626d2ee47e8812569a61b745d8181dee2f708
2022-07-22meta-bletchley: power-ctrl: add host cycle and reset actionsPotin Lai4-0/+96
Add host power cycle and power reset actions Cycle Action includes following steps: - 1. AC Off - 2. AC On - 3. Power On Reset Action includes following steps: - 1. Power Off - 2. Power On Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I17341ec30776413d428f35498d70534901d250b1
2022-07-22meta-facebook: bb file changes in fb-ipmi-oem.Karthikeyan Pasupathi1-3/+2
parsed machine name to meson from bb file to identify and copy the machine-specific JSON to a machine. Tested: Tested and verified with yosemitev2 and tiogapass platform. Signed-off-by: Karthikeyan Pasupathi <pkarthikeyan1509@gmail.com> Change-Id: Ib891a9cef232f981ede61567953888870296a248
2022-07-20meta-facebook: create empty json fileAndrew Geissler2-0/+0
New yocto enforces the files being under the machine being built. For now just make some empty files to get through compile and then facebook team can come back if needed to put some content in them. Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I01eda9f403df1bb9262b4fce039c9e09072d22ae
2022-07-20meta-bletchley: systemd: increase RuntimeWatchdogSecPotin Lai1-1/+1
We notice that systemd cost long time to start after firmware update, and it can exceed 30s timeout. Increase the watchdog timeout to 90s to avoid BMC reset after firmware update. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I43efde51c2465c40753400795e60a7edd1a5ea26
2022-07-19fb-ipmi-oem: srcrev bump 17bd2eabd1..6d9e9a7539Andrew Geissler1-3/+3
Jayashree Dhanapal (1): Refactored code to support INSTANCES as string Karthikeyan Pasupathi (2): meta-facebook: Refactored config file for meson. yosemitev2:Multi-host DIMM info displayed in OCP debug card Patrick Williams (1): fix build failure Also switched from EXTRA_OECMAKE to EXTRA_OEMESON in bb file. Change-Id: I8bd045ded7f2d482d559b770a980dbc8e146075f Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com> Signed-off-by: Jayashree Dhanapal <jayashree-d@hcl.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2022-07-18meta-bletchley: add systemd target for sled insertion and removalPotin Lai4-0/+37
Add target file for sled insertion and removal, add Requires for both motor-init-calibration & host-ac-on service in seld insertion target, and Conflicts in sled removal. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I020694f868a352b0bcd2754a54cadd4a7d5487e5
2022-07-18meta-bletchley: detect-gpio-present: sled present managerment servicePotin Lai4-0/+144
A service to monitor the presence status of sleds and perform corresponding actions when sleds are inserted or removed. This patch require phosphor-gpio-monitor-presence enabled and gpio-keys defined in kernel dts file, the LORE link as below. * https://lore.kernel.org/all/20220613095150.21917-4-potin.lai.pt@gmail.com/ Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Id43c7c5c40ccad904db3e6d55870b154a68626ca
2022-07-18meta-bletchley: phosphor-pid-control: update fan config R04Potin Lai1-55/+156
update fan config base on thermal team's request (FSC_R04) Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I46fd7d8527eb41f697cb6c999f59b04c67b2da62
2022-07-18meta-bletchley: phosphor-virtual-sensor: update equation of CFM sensorPotin Lai1-1/+1
update CFM sensor equation base on thermal team's request (FSC_R04) Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Ic10c83b79993ef1fe20a0ff2536a15fc65410e5c
2022-07-07meta-facebook: meta-fby35:Add u-boot for fby35.Logananth Sundararaj3-3/+6
Added the Facebook machine-specific multihost file Added the u-boot bootagrs configuration. Tested: Tested and verified in Yosemite V3.5 platform Signed-off-by: Logananth Sundararaj <logananth_s@hcl.com> Change-Id: Icb487fdecaaa1ab4c7614b887850693979065652
2022-06-28meta-facebook: console: Add support for YV3.5 platform.Kumar Thangavel10-12/+13
Added obmc-console multi host support for yosemiteV3.5 platform. Tested : Verified this on Yosemite V3.5 platform by launching all 4 server instance and verified SoL output from hosts. Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com> Change-Id: Iefca7af84e2f442575e29f0634d2d7e6612686d3
2022-06-28meta-facebook:meta-fby35:Add current virtual sensor supportJayashree Dhanapal1-1/+64
Added support in the machine layer for current sensor as virtual sensor to display NIC_IOUT and FAN_IOUT based on the FAN and NIC voltage sensor which is displayed under ADCSensor. TESTED : Tested and verified the D-Bus path and Interface for current virtual sensor for FAN_IOUT and NIC_IOUT. Signed-off-by: Jayashree Dhanapal <jayashree-d@hcl.com> Change-Id: Ia774cd84d6bb71869a5900dc6f0dc2e5464950ab Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2022-06-28Add hostlogger support for Facebook Yv3.5Kumar Thangavel6-4/+6
Added hostlogger support to store console histories for all the host. TESTED : Built the openbmc image targetting Facebook YosemiteV3.5 hardware. Verified all the host log were generated. Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com> Change-Id: I5adf9b1a9284c398e683f1699f7e8f678b321672
2022-06-25fb-ipmi-oem: srcrev bump f863a184bf..17bd2eabd1Andrew Geissler1-6/+4
Karthikeyan Pasupathi (1): yosemitev2: Multi-host information displayed in OCP debug-card Patrick Williams (4): build: additional cmake/meson cleanups appcommands: handle system result for sled-cycle oemcommands: fix invalid string find result meson: adjust library build Willy Tu (1): build: Convert project to meson and C++20 Switch recipe to Meson. Change-Id: I17ea8a88d6b03ec8df3ec554a3a71ba3fe072943 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2022-06-22meta-bletchley: motor-ctrl: fix host-ac-on failed during bmc bootPotin Lai6-4/+22
1. add service dependency to avoid host-ac-on service failed due to inventory (presence_sledX) property not avaliable. host-ac-on@X.service |- motor-init-calibration@X.service (Requires, After) |- phosphor-gpio-presence@presence-sledX.service (Requires, After) 2. simplify check method for ac-on & ac-off actions, just check host ac status before set ac on/off. 3. fix host-ac-on service shows failed when ac is aready turned on (ex: BMC reset), return 0 for both ac-on & ac-off actions no matter GPIO (power-hostX) set required or not. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I2c878dea05ea2511e6564c0980ba34dc28a46e2c
2022-06-22meta-bletchley: introduce Bletchley common functionsPotin Lai9-168/+125
Add a common functions script for reusing the functions which are called frequently. This patch depends on the patchs below: * https://lore.kernel.org/all/20220613095150.21917-4-potin.lai.pt@gmail.com/ Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I6e1602b00f1b0a19e77506be6eabe18c796e52fe
2022-06-21phosphor-host-ipmid: srcrev bump 33d90e182d..0e7a8af0e5Andrew Geissler1-2/+2
Harvey.Wu (2): dbus-sdr: fix SEL record Generator ID to fit SPEC dbus-sdr: fix the vector size in sdrWriteTable and sdrStatsTable Jian Zhang (1): Add data types to Value to extend setDbusProperty Vernon Mauery (1): fix header install Willy Tu (4): cleanup: Remove all warning errors for the Meson build support build: Add meson build for phosphor-host-ipmi build: move all shared_library/module to library with version suffix build: Remove dynamicsensor library if it is not enabled Change-Id: I92503c6625d1ec2bf88c0a28afac9b4eeb8fbd75 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com> Signed-off-by: Willy Tu <wltu@google.com>
2022-06-20meta-facebook: Added IPMB kernel config for fby35.Karthikeyan Pasupathi1-0/+3
Signed-off-by: Karthikeyan Pasupathi <pkarthikeyan1509@gmail.com> Change-Id: Iff9ec70171e4193c85a8ffc1b6f53f1044c7c601
2022-06-20meta-facebook: add new fby35 layer.Logananth Sundararaj8-0/+408
Build success. Signed-off-by: Logananth Sundararaj <logananth_s@hcl.com> Change-Id: I6f16791045cfa7389363177816da765b19b1ef28
2022-06-17fb-ipmi-oem: srcrev bump 77ee489f45..f863a184bfAndrew Geissler1-1/+1
Patrick Williams (1): cmake: fix externalproject for latest host-ipmid Change-Id: I58cea2a4fe27a326df47f9ded269daae5e979047 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-06-15meta-facebook: yosemitev2 : Add multi-host postcode supportKumar Thangavel1-0/+5
The machine layer changes to configure the phosphor-host-postd to support multi-host(yosemitev2). The yosemite V2 has 4 hosts. Tested: Tested systemd service for Yosemitev2. Tested systemd service for Tiogapass. Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com> Change-Id: Ie26b357b6a7d3fe1e9335e43f8564c7ce59b1030
2022-06-15meta-facebook:Yv35:add ipmi channel config for OCP debug cardKarthikeyan Pasupathi1-0/+7
Signed-off-by: Karthikeyan Pasupathi <pkarthikeyan1509@gmail.com> Change-Id: Ib6d6f6dc5f4af68e2eadce88e07cf5f4306ec4da
2022-06-15meta-facebook:Yv35:add ipmi channel config for host's.Karthikeyan Pasupathi1-0/+32
Tested: Tested in FBY35 platform. Signed-off-by: Karthikeyan Pasupathi <pkarthikeyan1509@gmail.com> Change-Id: Ifaeb89d76fc9b99823f133b75fd5895db85e0fbf
2022-06-02meta-bletchley: power-ctrl: action handler for each host statePotin Lai1-118/+326
1. add action handler for each host state, avoid action execute in the wrong host state. 2. add checking for Host in sleep mode 3. add last action record at /tmp/sledX-last-action for identify DFU and Recovery mode. ``` if (last_action == dfu) && (host_st == Off) host_st = DFU if (last_action == recovery) && (host_st == On) host_st = Recovery ``` Change-Id: I4c9c218fbe3f887c8bfe5cdcb64600261d67e30d Signed-off-by: Potin Lai <potin.lai@quantatw.com>
2022-06-02meta-bletchley: phosphor-gpio-monitor: enable gpio presence featurePotin Lai8-0/+47
Ebable phosphor-gpio-monitor-presence feature, create service file and environment file for each presence-sledX pin. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I8ab59a635e22404457c42be152f4a033a173d930
2022-05-15meta-bletchley: disable host watchdogPotin Lai1-0/+3
The host watdog feature is based on IPMI watchdog commands. Disable host watchdog because host on bletchley does not support IPMI. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I25b3f0ac49543003e3a36c160f6b4c4a0b736887