summaryrefslogtreecommitdiff
path: root/meta-facebook
AgeCommit message (Collapse)AuthorFilesLines
2023-01-06meta-bletchley: add usbmux utilityPotin Lai2-0/+126
There is a issue caused by switching USBMUX GPIO pin slowly. For example, when user set USBMUX GPIO pin to sled1, the USBMUX will first switch to sled3 and then switch to sled1 if there is a long interval between each gpioset command. 1. USBMUX is set to off initially USB2_SEL0_A = 1 USB2_SEL1_A = 1 USB2_SEL0_B = 1 USB2_SEL1_B = 1 2. Set USBMUX to sled1 USB2_SEL0_A = 0 USB2_SEL1_A = 0 USB2_SEL0_B = 1 USB2_SEL1_B = 1 ``` root@bletchley:~# gpioset $(gpiofind USB2_SEL0_A)=0 --> USBMUX set to sled3 first. root@bletchley:~# gpioset $(gpiofind USB2_SEL1_A)=0 --> then USBMUX set to sled1. ``` Add bletchley-usbmux-util to set USBMUX GPIO pins to selected sled, and avoid USB issues with slow mux switching. Change-Id: Id2a40b5908c1286929648cc433cb426a9c493e3a Signed-off-by: Potin Lai <potin.lai@quantatw.com>
2023-01-06meta-facebook: add phosphor-discover-system-state service for each hostPotin Lai1-0/+1
add phosphor-discover-system-state service for each host to support power restore feature. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Ic61a2e532a5928e76914706bd537e12f638e3e3c
2023-01-06meta-bletchley: kernel: enable Aspeed OTPPotin Lai1-0/+2
Enable Aspeed OTP driver to support OTP programming by Aspeed OTP tool. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I9b393342fd34d3cc16fc1f6fdc8a2d1fc9b9e65d
2023-01-05meta-bletchley: add bletchley health monitor configurationPotin Lai3-12/+45
Add bletchley health monitor configuration. Remove reboot.target from CPU critical threshold. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I9bff26dd47591f4384797fd91a6cea3307227190
2023-01-04meta-facebook: add wget to imagesPatrick Williams1-0/+1
Bletchley PE requested wget be added to the images. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I0e685134071619fdb9e132a7687994ff61fb186e
2023-01-04meta-facebook: remove net-ipmiPatrick Williams1-0/+1
We don't have any use for the net-ipmi package and do not want that process running. Remove it from the image. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I751ae9b901e34c822916808d8127789a75de97ab
2023-01-04meta-facebook: dbus-sensors: remove unused PACKAGECONFIGPatrick Williams1-0/+6
Reduce the PACKAGECONFIG of dbus-sensors to remove unused daemons, which results in a flash image savings. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I06c36a72a73f671908b35f217188c0bf41766cc0
2023-01-04meta-facebook: add strace to all imagesPatrick Williams1-0/+1
strace is a pretty helpful debug tool. Add it to all our images. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I09dca2b6ab76535371dd55e39105eba853aa0f66
2023-01-04meta-facebook: add tmux to all imagesPatrick Williams1-0/+3
Bletchley PE requested we add tmux to the images. In order for tmux to work we also need to generate the en-us locale because tmux requires UTF-8 locale information. Add this to all our images as well (it is disabled in meta-phosphor to save space). Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I40b92ea975b64e364003d542d71cb0103df34cfe
2023-01-04meta-facebook: add curl to all imagesPatrick Williams1-0/+1
Bletchley PE requested we add curl to the images. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Id94fbe5d086e8b045726da0403306860d9ed88f2
2022-12-16fb-ipmi-oem: srcrev bump e9baaff143..e1ff81fa6cAndrew Geissler1-1/+1
Karthikeyan Pasupathi (1): usb-dbg: Handled error for host selector position Patrick Williams (1): reformat with latest settings Change-Id: I257cf273016245ab6648ab62d3eb7c78305d37c5 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-12-15meta-facebook: Add support for phosphor-gpio-monitorKumar Thangavel4-0/+73
Added phosphor-gpio-monitor support for facebook platforms to enable hot plug/unplug of host feature. TESTED : Verified hot plug/unplug of all hosts are enabled and tested in Facebook YosemiteV2 platform. Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com> Change-Id: I7ff6647942cdc979c2a3dc6f4c85c1273785cf65
2022-12-12meta-facebook: add virtual sensors configurations for greatlakes platformBonnieLo-wiwynn1-10/+187
Provide virtual sensors for greatlakes platform. Tested: Tested and verified the dbus path names for sensors. Change-Id: I8c2d387b08b00fb6482cc30bff182b10d2df3e83 Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
2022-12-09meta-bletchley: phosphor-nvme: increase smbus error retryPotin Lai1-0/+1
Increase smbus error retry to 3 times to avoid sensor failure due to single smbus error. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I79b4e9d83355a7799665ed29e4c6dfe330221210
2022-12-05meta-bletchley: add model setting for frontpanel boardPotin Lai2-45/+12
Add updating correct frontpanel board model, so EM can probe with correct configuration. Tested: - Main source: "Bletchley_FPB_HDC1080" ``` root@bletchley:~# busctl get-property xyz.openbmc_project.Settings \ > /xyz/openbmc_project/inventory/system/chassis/frontpanel \ > xyz.openbmc_project.Inventory.Decorator.Asset Model s "Bletchley_FPB_HDC1080" ``` - 2nd source: "Bletchley_FPB_SI7021" ``` root@bletchley:~# busctl get-property xyz.openbmc_project.Settings \ > /xyz/openbmc_project/inventory/system/chassis/frontpanel \ > xyz.openbmc_project.Inventory.Decorator.Asset Model s "Bletchley_FPB_SI7021" ``` Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I22b2641d72f5a6dc0674704b5959019e990c5eae
2022-12-05meta-bletchley: Add FRU related interface for frontpanel boardPotin Lai2-1/+24
Because bletchley does not have physical eeprom to store FRU data, we add an interface for frontpanel to store board information, so that EM can base on the properties to probe correct configuration. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I4d884edbeb4ccfc0f1a6f37082f0bb6d5940758a
2022-12-03meta-bletchley: remove SLED LED dependency with host poweron poweroffPotin Lai3-13/+0
LED behaviors are implemented in bletchley-host-state-monitor, remove LED dependency from host-poweron and host-poweroff service. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Ifdf4c0c588b5a3e1403e928b772a5c3fa3d5fc29
2022-11-29meta-bletchley: use BootMode property to select host boot mode.Potin Lai2-3/+45
Use BootMode to decide whether host should boot to Normal, Recovery or DFU mode. - xyz.openbmc_project.Control.Boot.Mode.Modes.Regular: Normal mode - xyz.openbmc_project.Control.Boot.Mode.Modes.Safe: Recovery mode - xyz.openbmc_project.Control.Boot.Mode.Modes.Setup: DFU mode Tested results: - Host normal on (xyz.openbmc_project.Control.Boot.Mode.Modes.Regular) root@bletchley:~# busctl set-property xyz.openbmc_project.Settings \ > /xyz/openbmc_project/control/host6/boot \ > xyz.openbmc_project.Control.Boot.Mode BootMode s \ > xyz.openbmc_project.Control.Boot.Mode.Modes.Regular root@bletchley:~# obmcutil -i=6 poweron root@bletchley:~# power-ctrl sled6 status On - Host boot recovery (xyz.openbmc_project.Control.Boot.Mode.Modes.Safe) root@bletchley:~# busctl set-property xyz.openbmc_project.Settings \ > /xyz/openbmc_project/control/host6/boot \ > xyz.openbmc_project.Control.Boot.Mode BootMode s \ > xyz.openbmc_project.Control.Boot.Mode.Modes.Safe root@bletchley:~# obmcutil -i=6 poweron root@bletchley:~# power-ctrl sled6 status Recovery - Host boot DFU (xyz.openbmc_project.Control.Boot.Mode.Modes.Setup) root@bletchley:~# busctl set-property xyz.openbmc_project.Settings \ > /xyz/openbmc_project/control/host6/boot \ > xyz.openbmc_project.Control.Boot.Mode BootMode s \ > xyz.openbmc_project.Control.Boot.Mode.Modes.Setup root@bletchley:~# obmcutil -i=6 poweron root@bletchley:~# power-ctrl sled6 status DFU Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I1eac8fb74f3702d9ce0ab9180b9d7e2e26df81f7
2022-11-29meta-bletchley: reduce burst times of motor-init-calibrationPotin Lai1-1/+1
We notice the motor-init-calibration service spend more than 20 seconds for one run, which doesn't match the stop conditions with current service setting(more than 5 runs in 90 sec). Becaused motor-init-calibration services keep restart, it caused BMC CPU remain high utilization and trigger reboot action by phosphor-health-monitor. Reduce StartLimitBurst to 2 to ensure the service stops after attempt 2 failed. Tested results: root@bletchley:~# journalctl -u motor-init-calibration@6.service | grep systemd Nov 16 22:18:00 bletchley systemd[1]: Starting Motor Initialize for sled6... Nov 16 22:18:25 bletchley systemd[1]: motor-init-calibration@6.service: Main process exited, code=exited, status=1/FAILURE Nov 16 22:18:26 bletchley systemd[1]: motor-init-calibration@6.service: Failed with result 'exit-code'. Nov 16 22:18:26 bletchley systemd[1]: Failed to start Motor Initialize for sled6. Nov 16 22:18:27 bletchley systemd[1]: motor-init-calibration@6.service: Scheduled restart job, restart counter is at 1. Nov 16 22:18:27 bletchley systemd[1]: Stopped Motor Initialize for sled6. Nov 16 22:18:27 bletchley systemd[1]: Starting Motor Initialize for sled6... Nov 16 22:18:46 bletchley systemd[1]: motor-init-calibration@6.service: Main process exited, code=exited, status=1/FAILURE Nov 16 22:18:46 bletchley systemd[1]: motor-init-calibration@6.service: Failed with result 'exit-code'. Nov 16 22:18:46 bletchley systemd[1]: Failed to start Motor Initialize for sled6. Nov 16 22:18:47 bletchley systemd[1]: motor-init-calibration@6.service: Scheduled restart job, restart counter is at 2. Nov 16 22:18:47 bletchley systemd[1]: Stopped Motor Initialize for sled6. Nov 16 22:18:47 bletchley systemd[1]: motor-init-calibration@6.service: Start request repeated too quickly. Nov 16 22:18:47 bletchley systemd[1]: motor-init-calibration@6.service: Failed with result 'exit-code'. Nov 16 22:18:47 bletchley systemd[1]: Failed to start Motor Initialize for sled6. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I45c423deceb3cedd9157a479e0f33f9dbf270b8f
2022-11-28state-management: move target relationship creationAndrew Geissler1-21/+0
The targets are within the phosphor-state-manager repository so the relationship between them should be defined within the corresponding recipe. Adding these to phosphor-state-manager also allows us to remove the duplicate logic in the bletchley layer. Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I8bc789ed25a937ed38840e398dd728782f8f368b
2022-11-21meta-bletchley: phosphor-network: enable force-sync-mac optionPotin Lai1-0/+3
For Bletchley, the flash is not embedded on the Chassis Controller Board (CCB), and the phosphor-network is only sync MAC address on first boot by default, the BMC may use the wrong MAC address after replacing the CCB. Enable the force-sync-mac option to ensure that the BMC loads the correct MAC address from the CCB on every boot. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Ic55c5a11bea89618c429f855f2791e94e2c17a81
2022-11-18fb-ipmi-oem: srcrev bump f24c78e898..e9baaff143Andrew Geissler1-1/+1
Bonnie Lo (1): appcommands: support multi-host set/get fw version Change-Id: Id2fbed8ae2572617c303c338cf12517cefbe3110 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-11-07meta-facebook: phosphor-led-manager: enable lamp testingPotin Lai2-1/+3
Enable lamp testing feature for Bletchley (and all other systems). Signed-off-by: Potin Lai <potin.lai@quantatw.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I9bfb937a46bd1784bf156d459536ea060e572dc8
2022-11-03meta-facebook: add timezone support for all systemsPotin Lai1-1/+1
Add timezone support for all systems. Tested on bletchley: root@bletchley:~# timedatectl | grep "Time zone" Time zone: PST8PDT (PDT, -0700) Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Ic1e6da1cf4e84d2b0a907fd0969dd290fef30153
2022-11-02meta-facebook: phosphor-fan: avoid conflict with PSM targetsPatrick Williams1-26/+26
When using PSM, phosphor-fan is not responsible for installing some of the target files and bitbake fails with two packages installing the same files. Add some detection as a quick workaround so that Greatlakes can successfully build. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Idf7b49baa9a030cbf5afc983459d66f2557e085b
2022-11-01meta-facebook: enable Redfish power and thermal sensorsDelphineCCChiu1-0/+1
Support power and thermal sensor in `redfish/v1/chassis/{board_name}/sensor`. Tested: Check redfish `redfish/v1/chassis/{board_name}/sensor` API Signed-off-by: DelphineCCChiu <Delphine_CC_Chiu@wiwynn.com> Change-Id: If72f685810c43381fffb2dabbe651c5b9f995e7f
2022-11-01meta-facebook: greatlakes: initial phopsphor-state-manager supportKarthikeyan Pasupathi15-2/+317
Added machine layer support for greatlakes to support control the BMC, Chassis, and Host. It supports requests to power on and off the system by the user. Signed-off-by: Karthikeyan Pasupathi <pkarthikeyan1509@gmail.com> Change-Id: Ie62cc289783d47d8b50cd0c555157749f160c253
2022-11-01meta-facebook: add memory usage warning thresholdPotin Lai1-0/+6
Add a log only warning threshold at 70% memory usage. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I74c49efeaedacff20f59a646c2a8e37ec76b5e7f
2022-11-01meta-bletchley: use mdio-tools instead mdio-utilPotin Lai2-3/+12
Introduce mdio-tools package to replace mdio-util script. This commit relies on the linux kernel patch below. LINK: https://lore.kernel.org/all/20221025055046.1704920-1-potin.lai.pt@gmail.com/ Tested Result: Check host status by power-ctrl which will call mdio internally. root@bletchley:~# power-ctrl sled6 status On Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I482dde297acb7797896d9b7ae07580104fb21540
2022-10-28meta-bletchley: fb-ipmi-oem: disable me_supportPotin Lai1-0/+1
The Host on Bletchley doesn't support IPMI and ME feature. Disable ME support for Bletchley. This commit relies on the patch below: https://gerrit.openbmc.org/c/openbmc/fb-ipmi-oem/+/58233 Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I753c07af0ea58c45ace837a4ddffd1b64a879184
2022-10-28fb-ipmi-oem: srcrev bump 3f6712731c..f24c78e898Andrew Geissler1-1/+1
Bonnie Lo (1): biccommands: post code handler Potin Lai (3): usb-dbg: modify HostSelector interface usb-dbg: add meson option for enabling ME support usb-dbg: get MaxPostion from DBus Change-Id: I3669f106420f3f5656d58077379ceda3aa607ed6 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-10-25meta-facebook : Enable phosphor-gpio-monitor in packagegroupKumar Thangavel1-0/+1
TESTED : Verified phosphor-gpio-monitor package enabled for facebook platforms. Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com> Change-Id: If5aae60ab27d8be4c0204df82b06af23df7f707d
2022-10-25meta-bletchley: add bletchley-host-state-monitor servicePotin Lai3-3/+216
Add a service for monitoring host power state by query port status via mdio bus. Test Results: - Poweron SLED6 root@bletchley:~# obmcutil -i=6 poweron root@bletchley:~# obmcutil -i=6 state CurrentBMCState : xyz.openbmc_project.State.BMC.BMCState.Ready CurrentPowerState : xyz.openbmc_project.State.Chassis.PowerState.On CurrentHostState : xyz.openbmc_project.State.Host.HostState.Running BootProgress : xyz.openbmc_project.State.Boot.Progress.ProgressStages.Unspecified OperatingSystemState: xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Inactive root@bletchley:~# journalctl -u bletchley-host-state-monitor ... Oct 24 07:55:17 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:OFF, current:ON), check count: 5 Oct 24 07:55:18 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:OFF, current:ON), check count: 4 Oct 24 07:55:22 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:OFF, current:ON), check count: 5 Oct 24 07:55:23 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:OFF, current:ON), check count: 4 Oct 24 07:55:27 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:OFF, current:ON), check count: 5 Oct 24 07:55:29 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:OFF, current:ON), check count: 4 Oct 24 07:55:30 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:OFF, current:ON), check count: 3 Oct 24 07:55:31 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:OFF, current:ON), check count: 2 Oct 24 07:55:33 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:OFF, current:ON), check count: 1 Oct 24 07:55:34 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed, update host state to ON - Poweroff SLED6 root@bletchley:~# obmcutil -i=6 poweroff root@bletchley:~# obmcutil -i=6 state CurrentBMCState : xyz.openbmc_project.State.BMC.BMCState.Ready CurrentPowerState : xyz.openbmc_project.State.Chassis.PowerState.Off CurrentHostState : xyz.openbmc_project.State.Host.HostState.Off BootProgress : xyz.openbmc_project.State.Boot.Progress.ProgressStages.Unspecified OperatingSystemState: xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Inactive root@bletchley:~# journalctl -u bletchley-host-state-monitor Oct 21 09:38:21 bletchley systemd[1]: Started Bletchley host state monitoring. ... Oct 24 07:55:17 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:OFF, current:ON), check count: 5 Oct 24 07:55:18 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:OFF, current:ON), check count: 4 Oct 24 07:55:22 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:OFF, current:ON), check count: 5 Oct 24 07:55:23 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:OFF, current:ON), check count: 4 Oct 24 07:55:27 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:OFF, current:ON), check count: 5 Oct 24 07:55:29 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:OFF, current:ON), check count: 4 Oct 24 07:55:30 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:OFF, current:ON), check count: 3 Oct 24 07:55:31 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:OFF, current:ON), check count: 2 Oct 24 07:55:33 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:OFF, current:ON), check count: 1 Oct 24 07:55:34 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed, update host state to ON Oct 24 08:03:38 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:ON, current:OFF), check count: 5 Oct 24 08:03:39 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:ON, current:OFF), check count: 4 Oct 24 08:03:40 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:ON, current:OFF), check count: 3 Oct 24 08:03:42 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:ON, current:OFF), check count: 2 Oct 24 08:03:43 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed (previous:ON, current:OFF), check count: 1 Oct 24 08:03:44 bletchley bletchley-host-state-monitor[905]: SLED6: detected state changed, update host state to OFF Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I5916cd411c0d7d625b54f74c888aa380e00a1853
2022-10-24meta-bletchley: add ACPIPowerState interfacePotin Lai2-0/+10
Add ACPIPowerState interface to phosphor-settings for each host. Test Results: ``` root@bletchley:~# busctl call xyz.openbmc_project.ObjectMapper \ > /xyz/openbmc_project/object_mapper \ > xyz.openbmc_project.ObjectMapper GetSubTree sias / 0 1 \ > xyz.openbmc_project.Control.Power.ACPIPowerState -j { "type" : "a{sa{sas}}", "data" : [ { "/xyz/openbmc_project/control/host1/acpi_power_state" : { "xyz.openbmc_project.Settings" : [ "org.freedesktop.DBus.Introspectable", "org.freedesktop.DBus.Peer", "org.freedesktop.DBus.Properties", "xyz.openbmc_project.Control.Power.ACPIPowerState" ] }, "/xyz/openbmc_project/control/host2/acpi_power_state" : { "xyz.openbmc_project.Settings" : [ "org.freedesktop.DBus.Introspectable", "org.freedesktop.DBus.Peer", "org.freedesktop.DBus.Properties", "xyz.openbmc_project.Control.Power.ACPIPowerState" ] }, "/xyz/openbmc_project/control/host3/acpi_power_state" : { "xyz.openbmc_project.Settings" : [ "org.freedesktop.DBus.Introspectable", "org.freedesktop.DBus.Peer", "org.freedesktop.DBus.Properties", "xyz.openbmc_project.Control.Power.ACPIPowerState" ] }, "/xyz/openbmc_project/control/host4/acpi_power_state" : { "xyz.openbmc_project.Settings" : [ "org.freedesktop.DBus.Introspectable", "org.freedesktop.DBus.Peer", "org.freedesktop.DBus.Properties", "xyz.openbmc_project.Control.Power.ACPIPowerState" ] }, "/xyz/openbmc_project/control/host5/acpi_power_state" : { "xyz.openbmc_project.Settings" : [ "org.freedesktop.DBus.Introspectable", "org.freedesktop.DBus.Peer", "org.freedesktop.DBus.Properties", "xyz.openbmc_project.Control.Power.ACPIPowerState" ] }, "/xyz/openbmc_project/control/host6/acpi_power_state" : { "xyz.openbmc_project.Settings" : [ "org.freedesktop.DBus.Introspectable", "org.freedesktop.DBus.Peer", "org.freedesktop.DBus.Properties", "xyz.openbmc_project.Control.Power.ACPIPowerState" ] } } ] } ``` Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Icd573faf69d818b394cccab223c56a260a55767c
2022-10-24meta-facebook : Enable phosphor-fan in packagegroupKumar Thangavel1-0/+1
TESTED : Verified phosphor-fan and sensor-monitor package enabled for facebook platforms. Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com> Change-Id: I01798e122d75f078f011538b5032056106912727
2022-10-24meta-bletchley: enable obmc-phosphor-buttons featurePotin Lai3-0/+32
Enable obmc-phosphor-buttons and add gpio_defs.json to support the feature of debug card button. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I673db3587232bfc57dabc5fa157ae9945cb25974
2022-10-24meta-facebook: update bletchley nvme configPotin Lai2-9/+3
1. Move nvme_config.json to meta-facebook layer 2. Update nvme thermal sensor thresholds base as suggested by thermal team. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Ia444afa2a27032c88302e913eb07909f7123c608
2022-10-24meta-bletchley: add switch diagnostics scriptPotin Lai2-0/+42
Add a switch diagnostics script to dump port register via mdio bus. Tested: root@bletchley:~# /usr/libexec/bletchley-switch-diag ======================================== Port 10 (BMC) **************************************** [00]: 0E07 (Port Status) [01]: 0003 (Physical Control) [02]: 0000 (Flow Control) [03]: 1920 (Switch Identifier) [04]: 007F (Port Control 0) [05]: 0000 (Port Control 1) [06]: 07FE (Port Based VLAN Map) [07]: 0001 (Default VLAN ID & Priority) [08]: 2080 (Port Control 2) [09]: 0001 (Egress Rate Control) [0A]: 8000 (Egress Rate Control 2) [0B]: 0001 (Port Association Vector) [0C]: 0000 (Port ATU Control) [0D]: 0000 (Override) [0E]: 0000 (Policy & MGMT Control) [10]: 0000 (Extended Port Control Operation) [11]: 0000 (Extended Port Control Data) [16]: 0000 (LED Control) [17]: 0000 (IP Priority Mapping Table) [18]: 0000 (IEEE Priority Mapping Table) [19]: 0000 (Port Control 3) [1B]: 8000 (Queue Counters) [1C]: 0000 (Queue Control) [1D]: 0000 (Queue Control 2) [1E]: 0000 (Enable & Cut Through) [1F]: 001B (Debug Counters) ======================================== ======================================== Port 3 (SLED1) **************************************** [00]: 100F (Port Status) [01]: 0003 (Physical Control) [02]: 0000 (Flow Control) [03]: 1920 (Switch Identifier) [04]: 007F (Port Control 0) [05]: 0000 (Port Control 1) [06]: 07FD (Port Based VLAN Map) [07]: 0001 (Default VLAN ID & Priority) [08]: 2080 (Port Control 2) [09]: 0001 (Egress Rate Control) [0A]: 8000 (Egress Rate Control 2) [0B]: 0002 (Port Association Vector) [0C]: 0000 (Port ATU Control) [0D]: 0000 (Override) [0E]: 0000 (Policy & MGMT Control) [10]: 0000 (Extended Port Control Operation) [11]: 0000 (Extended Port Control Data) [16]: 0033 (LED Control) [17]: 0000 (IP Priority Mapping Table) [18]: 0000 (IEEE Priority Mapping Table) [19]: 0000 (Port Control 3) [1B]: 8000 (Queue Counters) [1C]: 0000 (Queue Control) [1D]: 0000 (Queue Control 2) [1E]: 0000 (Enable & Cut Through) [1F]: 0000 (Debug Counters) ======================================== ======================================== Port 2 (SLED2) **************************************** [00]: 100F (Port Status) [01]: 0003 (Physical Control) [02]: 0000 (Flow Control) [03]: 1920 (Switch Identifier) [04]: 007F (Port Control 0) [05]: 0000 (Port Control 1) [06]: 07FB (Port Based VLAN Map) [07]: 0001 (Default VLAN ID & Priority) [08]: 2080 (Port Control 2) [09]: 0001 (Egress Rate Control) [0A]: 8000 (Egress Rate Control 2) [0B]: 0004 (Port Association Vector) [0C]: 0000 (Port ATU Control) [0D]: 0000 (Override) [0E]: 0000 (Policy & MGMT Control) [10]: 0000 (Extended Port Control Operation) [11]: 0000 (Extended Port Control Data) [16]: 0033 (LED Control) [17]: 0000 (IP Priority Mapping Table) [18]: 0000 (IEEE Priority Mapping Table) [19]: 0000 (Port Control 3) [1B]: 8000 (Queue Counters) [1C]: 0000 (Queue Control) [1D]: 0000 (Queue Control 2) [1E]: 0000 (Enable & Cut Through) [1F]: 0000 (Debug Counters) ======================================== ======================================== Port 1 (SLED3) **************************************** [00]: 100F (Port Status) [01]: 0003 (Physical Control) [02]: 0000 (Flow Control) [03]: 1920 (Switch Identifier) [04]: 007F (Port Control 0) [05]: 0000 (Port Control 1) [06]: 07F7 (Port Based VLAN Map) [07]: 0001 (Default VLAN ID & Priority) [08]: 2080 (Port Control 2) [09]: 0001 (Egress Rate Control) [0A]: 8000 (Egress Rate Control 2) [0B]: 0008 (Port Association Vector) [0C]: 0000 (Port ATU Control) [0D]: 0000 (Override) [0E]: 0000 (Policy & MGMT Control) [10]: 0000 (Extended Port Control Operation) [11]: 0000 (Extended Port Control Data) [16]: 0033 (LED Control) [17]: 0000 (IP Priority Mapping Table) [18]: 0000 (IEEE Priority Mapping Table) [19]: 0000 (Port Control 3) [1B]: 8000 (Queue Counters) [1C]: 0000 (Queue Control) [1D]: 0000 (Queue Control 2) [1E]: 0000 (Enable & Cut Through) [1F]: 0000 (Debug Counters) ======================================== ======================================== Port 7 (SLED4) **************************************** [00]: 100F (Port Status) [01]: 0003 (Physical Control) [02]: 0000 (Flow Control) [03]: 1920 (Switch Identifier) [04]: 007F (Port Control 0) [05]: 0000 (Port Control 1) [06]: 07EF (Port Based VLAN Map) [07]: 0001 (Default VLAN ID & Priority) [08]: 2080 (Port Control 2) [09]: 0001 (Egress Rate Control) [0A]: 8000 (Egress Rate Control 2) [0B]: 0010 (Port Association Vector) [0C]: 0000 (Port ATU Control) [0D]: 0000 (Override) [0E]: 0000 (Policy & MGMT Control) [10]: 0000 (Extended Port Control Operation) [11]: 0000 (Extended Port Control Data) [16]: 0033 (LED Control) [17]: 0000 (IP Priority Mapping Table) [18]: 0000 (IEEE Priority Mapping Table) [19]: 0000 (Port Control 3) [1B]: 8000 (Queue Counters) [1C]: 0000 (Queue Control) [1D]: 0000 (Queue Control 2) [1E]: 0000 (Enable & Cut Through) [1F]: 0000 (Debug Counters) ======================================== ======================================== Port 6 (SLED5) **************************************** [00]: 1D4F (Port Status) [01]: 0003 (Physical Control) [02]: 0000 (Flow Control) [03]: 1920 (Switch Identifier) [04]: 007F (Port Control 0) [05]: 0000 (Port Control 1) [06]: 07DF (Port Based VLAN Map) [07]: 0001 (Default VLAN ID & Priority) [08]: 2080 (Port Control 2) [09]: 0001 (Egress Rate Control) [0A]: 8000 (Egress Rate Control 2) [0B]: 0020 (Port Association Vector) [0C]: 0000 (Port ATU Control) [0D]: 0000 (Override) [0E]: 0000 (Policy & MGMT Control) [10]: 0000 (Extended Port Control Operation) [11]: 0000 (Extended Port Control Data) [16]: 0033 (LED Control) [17]: 0000 (IP Priority Mapping Table) [18]: 0000 (IEEE Priority Mapping Table) [19]: 0000 (Port Control 3) [1B]: 8000 (Queue Counters) [1C]: 0000 (Queue Control) [1D]: 0000 (Queue Control 2) [1E]: 0000 (Enable & Cut Through) [1F]: 0075 (Debug Counters) ======================================== ======================================== Port 5 (SLED6) **************************************** [00]: 1D4F (Port Status) [01]: 0003 (Physical Control) [02]: 0000 (Flow Control) [03]: 1920 (Switch Identifier) [04]: 007F (Port Control 0) [05]: 0000 (Port Control 1) [06]: 07BF (Port Based VLAN Map) [07]: 0001 (Default VLAN ID & Priority) [08]: 2080 (Port Control 2) [09]: 0001 (Egress Rate Control) [0A]: 8000 (Egress Rate Control 2) [0B]: 0040 (Port Association Vector) [0C]: 0000 (Port ATU Control) [0D]: 0000 (Override) [0E]: 0000 (Policy & MGMT Control) [10]: 0000 (Extended Port Control Operation) [11]: 0000 (Extended Port Control Data) [16]: 0033 (LED Control) [17]: 0000 (IP Priority Mapping Table) [18]: 0000 (IEEE Priority Mapping Table) [19]: 0000 (Port Control 3) [1B]: 8000 (Queue Counters) [1C]: 0000 (Queue Control) [1D]: 0000 (Queue Control 2) [1E]: 0000 (Enable & Cut Through) [1F]: 0058 (Debug Counters) ======================================== Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I3915e0747beeb8f8a3d06d3409ac55ed0cd50b41
2022-10-24meta-bletchley: introduce bletchley-system-state-initPotin Lai5-0/+94
Because Bletchley does not have IPMI between Bmc & Host, the Host init state will set to Off after Bmc booted. We require an extra service to check and set Host state & Chassis power state to correct state before doing any power action or power policy restore. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I680bc62559ea6f7df6dbe171b54d2cda0c7ae0d4
2022-10-24meta-bletchley: enable kernel loadable module supportPotin Lai1-0/+2
In order to add mdio-tools and mdio-netlink package, enable kernel loadable module support. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I7ce0634fdac5e2e400c3eded32ab9fe490794fb4
2022-10-24meta-bletchley: update fsc configuration R06 (inlet)Potin Lai1-44/+50
Update inlet based FSC configuration R06. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I8ad53ec0eace157af47503892beae3820a8520ac
2022-10-14treewide: more obmc-host-ctl cleanupsPatrick Williams2-2/+0
obmc-host-ctl is defined as a MACHINE, DISTRO, and IMAGE feature. The IMAGE feature pulls in a virtual provider only if the COMBINED feature (MACHINE + DISTRO) is enabled. This is only done on openpower machines. There are a lot of other places where machines are half-way disabling this feature and/or changing variables which have zero effect anyhow. Clean up almost all references to `obmc-host-ctl`. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I090d782bb6a34dc4e3c43df97e8ccf6e1812fed5
2022-10-13fb-ipmi-oem: srcrev bump 85ac24de4a..3f6712731cAndrew Geissler1-1/+1
Bonnie Lo (1): oemcommands: set system guid Change-Id: I274b644e69922287393910b49760352f4e54355a Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-10-13treewide: remove pointless abstractionsBrad Bishop1-1/+1
All of these abstractions have exactly one implementation. Remove the indirection to improve at a glance comprehension. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: I5d701aff6d0876fa3b2d16c841cbdcb0433b221f
2022-10-11fb-ipmi-oem: srcrev bump 020ff3e49f..85ac24de4aAndrew Geissler1-1/+1
Karthikeyan Pasupathi (1): greatlakes: Added config files for debug card Change-Id: I514789b3882a5d83095d30fe8da9af84cd90e23f Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-10-10meta-facebook: add emmc dependencies and timeoutPatrick Williams2-1/+3
Add dependencies so that the `emmc-init` service only runs if the device is present. Add a timeout parameter to the fstab entry for the device so that the timeout is a reasonably short amount, since we expect the device to always be immediately available. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I405a6773ff71f9eb047c4bb9d684fdd9b5d97948
2022-10-07meta-facebook: Add json file for health monitor.Jayashree Dhanapal2-0/+57
BMC health monitor json file is added for Facebook platform to monitor the CPU, Memory and Storage usage. It will reboot the target, once it exceeds the critical threshold value. Tested: Tested in Facebook YosemiteV3.5 platform Signed-off-by: Jayashree Dhanapal <jayashree-d@hcl.com> Change-Id: Ieb7486b558de087fac7e9acaba1d88771a5b7626
2022-10-06meta-facebook: bletchley: 32-bit idevicerestore supportPotin Lai3-0/+8
Add a few recipe tweaks in order to enable idevicerestore to run on 32-bit platforms like AST2600. - Add large file support (-D_FILE_OFFSET_BITS=64): - idevicerestore - libzip - Modify usbmuxd.service to discard "--user usbmuxd" and move PIDFile under /run. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I5dc3c925b4b61207b17e3739c42336d6da5c512c Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2022-10-06meta-facebook: add emmc-init packagePotin Lai4-0/+82
Add a service and script for detecting the state of the eMMC device and formatting it if needed. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I4618d1691dedcff582772a0749c5797ad052f238 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2022-10-06meta-facebook: add secondary-emmc featurePotin Lai6-0/+26
* Define a MACHINE_FEATURE that enables a secondary eMMC device. * Add kernel and base-files support for mounting the eMMC device using btrfs. * Enable machine feature for Bletchley. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I3fde3b285720c137c4e5bbbad233e4ef40b84d54