summaryrefslogtreecommitdiff
path: root/meta-facebook
AgeCommit message (Collapse)AuthorFilesLines
2023-02-02meta-facebook: Add service for power control initialization in ↵Delphine CC Chiu3-1/+46
phosphor-state-manager Description: Add service to for power control initialization use. Test Case: Get corresponding BMC register configuration. Change-Id: I8d227da66ddca4e38142744606ee130c1ce7aa7f Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
2023-02-02meta-facebook: phosphor-state-manager: support host power reset and chassis ↵Delphine CC Chiu7-4/+128
power cycle Summary: Add service and script to support host reset and chassis power cycle. Tested: Change property to trigger host and chassis target and check the power status. Change-Id: Ie21903f5bc5bbebeaf31153c52d1605cd35619a0 Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
2023-02-02greatlakes: support SoL on multi-hostDelphine CC Chiu19-0/+270
Description: - Support Meta greatlakes SoL on multi-host Design: - We designed by 4 clients on port 2200~2203 represents Host1 ~ Host4, and 4 clients on port 2300~2303 represents BIC1 ~ BIC4, the clients will use socket-id to connect to corresponding server. - For switching between Host/BIC, each client will manipulate the UART mux by the cpld driver before connect to the server. The script for switching the mux can be implemented in project layer. Limitation: - Since the CPLD device driver is not ready yet, we currently use raw commands (i2ctransfer) to manipulate the register value, we will adapt to the interface on CPLD device drvier when it's ready. Issue: - None Test Case: 1. Check ssh -p 2200 ${ip} should successfully connect to Slot 1 Host. - pass 2. Check ssh -p 2300 ${ip} should successfully connect to Slot 1 BIC. - pass 3. Check ssh -p 2201 ${ip} should successfully connect to Slot 2 Host. - pass 4. Check ssh -p 2301 ${ip} should successfully connect to Slot 2 BIC. - pass 5. Check ssh -p 2202 ${ip} should successfully connect to Slot 3 Host. - pass 6. Check ssh -p 2302 ${ip} should successfully connect to Slot 3 BIC. - pass 7. Check ssh -p 2203 ${ip} should successfully connect to Slot 4 Host. - pass 8. Check ssh -p 2303 ${ip} should successfully connect to Slot 4 BIC. - pass Change-Id: I3ebe12d4cabb01b401220c053cced089141e79e8 Signed-off-by: Bonnie Lo <Bonnie_Lo@wiwynn.com>
2023-01-26fb-ipmi-oem: srcrev bump 8ee95d69fb..41027b9698Andrew Geissler1-1/+1
Bonnie Lo (2): IPMI OEM Get BIC GPIO State IPMI set CurrentHostState property Change-Id: I4e5b875df6fb42a2c1b5076365c7b4b094a6225f Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-01-25meta-facebook: disable LDAPPatrick Williams1-3/+5
We don't have any use for the LDAP config in our deployment, so disable it entirely. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I3661424146148b4910163f3c4b3006e1fa75cb12
2023-01-25meta-facebook: greatlakes: fix overriding issue in DEFAULT_TARGETS variableKarthikeyan Pasupathi1-3/+4
The existing implementation completely override the DEFAULT_TARGETS in /meta-phosphor/recipes-phosphor it seems like error and that changes doesn't get in the platform. now instead of overriding have append to the original DEFAULT_TARGETS with bb_append. Testing: The soft links are created properly and the transition change and target mappings are also verified successfully. change-Id: I950e04891cd1438fb24f688231143be966b3a4c9 Signed-off-by: Karthikeyan Pasupathi <pkarthikeyan1509@gmail.com>
2023-01-13yocto:mickledore: add support for new yocto layerAndrew Geissler5-5/+5
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I8e54833ac78e540e9dd5011533d53ff9a3af6763
2023-01-09meta-bletchley: phosphor-network: temporary revert SRCREVPotin Lai1-0/+2
Temporary revert phosphor-network SRCREV back to the commit sync-mac feature still working. Tesed result: ``` root@bletchley:~# journalctl -u xyz.openbmc_project.Network Jan 09 05:01:04 bletchley systemd[1]: Starting Phosphor Network Manager... Jan 09 05:01:05 bletchley phosphor-network-manager[539]: Force sync enabled, check VPD for MAC Jan 09 05:01:08 bletchley systemd[1]: Started Phosphor Network Manager. Jan 09 05:01:09 bletchley phosphor-network-manager[539]: Refreshing the objects. Jan 09 05:01:09 bletchley phosphor-network-manager[539]: Unable to get the value of Network[DHCP] from /etc/systemd/network/00-bmc-eth0.network Jan 09 05:01:09 bletchley phosphor-network-manager[539]: Unable to get the value of Network[IPv6AcceptRA] from /etc/systemd/network/00-bmc-eth0.network Jan 09 05:01:16 bletchley phosphor-network-manager[539]: Unable to get the value of DHCP[UseDNS] from /etc/systemd/network/00-bmc-lo.network Jan 09 05:01:16 bletchley phosphor-network-manager[539]: Unable to get the value of DHCP[UseNTP] from /etc/systemd/network/00-bmc-lo.network Jan 09 05:01:16 bletchley phosphor-network-manager[539]: Unable to get the value of DHCP[UseHostname] from /etc/systemd/network/00-bmc-lo.network Jan 09 05:01:16 bletchley phosphor-network-manager[539]: Unable to get the value of DHCP[SendHostname] from /etc/systemd/network/00-bmc-lo.network Jan 09 05:01:16 bletchley phosphor-network-manager[539]: Refreshing complete. Jan 09 05:01:16 bletchley phosphor-network-manager[539]: Wrote networkd file: /etc/systemd/network/00-bmc-eth0.network Jan 09 05:01:17 bletchley phosphor-network-manager[539]: Set the MAC on Jan 09 05:01:17 bletchley phosphor-network-manager[539]: Removing the match for ethernet interfaces Jan 09 05:01:19 bletchley phosphor-network-manager[539]: Sending networkd reload Jan 09 05:01:19 bletchley phosphor-network-manager[539]: Done networkd reload root@bletchley:~# busctl introspect xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/bmc/ethernet xyz.openbmc_project.Inventory.Item.NetworkInterface NAME TYPE SIGNATURE RESULT/VALUE FLAGS .MACAddress property s "C01850F1D796" emits-change writable root@bletchley:~# ifconfig eth0 eth0 Link encap:Ethernet HWaddr C0:18:50:F1:D7:96 inet addr:10.10.11.126 Bcast:10.10.255.255 Mask:255.255.0.0 inet6 addr: 2019:7::c218:50ff:fef1:d796/64 Scope:Global inet6 addr: fe80::c218:50ff:fef1:d796/64 Scope:Link inet6 addr: 2018:5::c9d3/128 Scope:Global UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:98845 errors:0 dropped:30955 overruns:0 frame:0 TX packets:267 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:9565630 (9.1 MiB) TX bytes:32516 (31.7 KiB) Interrupt:34 ``` Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Ie32fd892a711f74a52f3a51e9e20634f69c416e7
2023-01-06fb-ipmi-oem: srcrev bump e1ff81fa6c..8ee95d69fbAndrew Geissler1-1/+1
Potin Lai (2): oemcommands: update getIPObject() search method storagecommands: fix getSensorMap() error Change-Id: Iaf318e816df70873fded8298f75200251bb7c579 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
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