summaryrefslogtreecommitdiff
path: root/meta-facebook/meta-bletchley
AgeCommit message (Collapse)AuthorFilesLines
2023-11-02meta-bletchley: update host state monitoring mechanismPotin Lai1-13/+25
The original checking mechanism only checks whether the current state is different from the previous state. It does not consider the state changes during the state check count, so user will see that the final state is different from the state at the time of the check count. Add a new array for storing temp host state so that we can notice the state changes during checking and reset the check count. Also incerease the check count to 8 to avoid host state changes frequently. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I4713b16becd9787d09f1575fa8df91bbb80e9c5c
2023-10-25meta-bletchley: kernel: update config for ast2600 pwm tach driverPotin Lai1-3/+2
Remove old Aspeed PWM & TACH configs and update new config to support latest version of ast2600-pwm-tach (v9) on lore. Link: https://lore.kernel.org/all/20230918064111.2221594-1-billy_tsai@aspeedtech.com/ Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Ide776a84e59f1982b1af3979b029e3fed91ee8e5
2023-10-04fb-ipmi-oem: srcrev bump 7bb4592af7..03498f7f35Andrew Geissler1-1/+0
Patrick Williams (2): meson: rename options file me: remove support Potin Lai (1): storagecommands: Extended I2C bus size to 16-bit cchoux (2): selcommands: fix the exception when parsing SEL timestamp support specifying MB FRU eeprom path Change-Id: I77100c61e5122f0875bcc7a534cd188bec710a9d Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-09-26linux-aspeed: Move to Linux v6.5Joel Stanley1-1/+1
This moves the OpenBMC kernel to a v6.5 base for ASPEED. The 6.5 kernel moved all 32-bit ARM device trees, so our BMC device tress are now under an 'aspeed' subdirectory. This change means systems must describe the KERNEL_DEVICETREE with the aspeed directory prefix. There are 78 patches in the tree, with 40 of those patches not yet queued for merging in v6.6. The remaining out of tree patches include: Andrew Jeffery (6): dt-bindings: hwmon: pmbus: Add Maxim MAX31785 documentation pmbus (max31785): Add support for devicetree configuration pmbus (core): One-shot retries for failure to set page pmbus (max31785): Wrap all I2C accessors in one-shot failure handlers ARM: dts: aspeed: witherspoon: Update max31785 node ipmi: kcs_bmc: Add a "raw" character device interface Cédric Le Goater (1): /dev/mem: add a devmem kernel parameter to activate the device Eddie James (16): ARM: dts: aspeed: bonnell: Add reserved memory for TPM event log dt-bindings: soc: Add Aspeed XDMA Engine soc: aspeed: Add XDMA Engine Driver soc: aspeed: xdma: Add user interface soc: aspeed: xdma: Add reset ioctl soc: aspeed: xdma: Add trace events i2c: core: Add mux root adapter operations iio: si7020: Lock root adapter to wait for reset eeprom: ee1004: Enable devices on multiple busses dt-bindings: trivial-devices: Add Atmel AT30TSE004A serial eeprom eeprom: ee1004: Add OF matching support leds: pca955x: Refactor with helper functions and renaming leds: pca955x: Use pointers to driver data rather than I2C client leds: pca955x: Optimize probe led selection leds: pca955x: Add HW blink support leds: Ensure hardware blinking turns off when requested Jae Hyun Yoo (1): clk: ast2600: enable BCLK for PCI/PCIe bus always Joel Stanley (14): net: ftgmac100: Ensure tx descriptor updates are visible ARM: aspeed: Add debugfs directory ARM: soc: aspeed: Add secure boot controller support dt-bindings: trivial-devices: Remove Infineon SLB9673 TPM ARM: dts: nuvoton: npmc750-evb: Add default console tpm: tis-i2c: Add more compatible strings leds: pca955x: Revert "Remove the unused function pca95xx_num_led_regs()" arm64: configs: Add Nuvoton NPCM defconfig ARM: configs: aspeed: Add new FSI drivers ARM: config: aspeed_g5: Enable SSIF BMC driver ARM: config: aspeed: Remove FIRMWARE_MEMMAP ARM: config: aspeed: Add Ampere SMPro drivers ARM: config: Add openbmc defconfig ARM: config: openbmc: Add HPE GPX and Nuvoton 7xx Johannes Holland (1): dt-bindings: tpm: Add schema for TIS I2C devices Potin Lai (1): mtd: spi-nor: winbond: Add support for w25q01jvq Change-Id: Ib97af192391af6e71c96fe14e12cfc88c23d7a7d Signed-off-by: Joel Stanley <joel@jms.id.au>
2023-08-07meta-facebook: move virtual sensor config json into platform layersDelphine CC Chiu1-8/+3
Description: Most platforms need some sort of phosphor-virtual-sensor config, but some install multiple. Modify the common bbappend so it can be reused and with a minimal bbappend most platforms can add their own config in the platform layer. Tested: Build service on changed platforms- pass Change-Id: I77f4be1519325c0ebb00d0dc9a2f4e104601f62b Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2023-08-07meta-facebook: generate ipmb configPatrick Williams1-0/+1
Rather than having each system provide a (possibly empty) IPMB config, generate the `ipmb_channels.json` in the Yocto recipe. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Iab42f4aa7c3c91f610d99c3742aada82aa5b9138
2023-08-07meta-facebook: move nvme_config.json into project layerDelphine CC Chiu2-0/+43
Description: Very few machines use phosphor-nvme and the current common meta-facebook bbappend forces every machine to create a bogus empty JSON file in order to prevent bitbake missing SRC_URI errors. Move these configs out of the common layer and into the machine-specific layer. Change-Id: Ie8558db2ed394a414e9dce70f73d2eb8693448f9 Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2023-07-20ipmi-fru-parser: srcrev bump 06514028f8..7153343816Andrew Geissler1-3/+1
Patrick Williams (6): clang-format: copy latest and re-format writefrudata: remove vla strgfnhandler: suppress unused parameter warnings frup: suppress stringop-truncation warning scripts: accept absolute paths to YAML build: enable meson builds build: install strgfnhandler into ipmi-providers dir Vernon Mauery (1): Set new maintainer as Patrick Williams Willy Tu (1): fru-parser: Remove the use of mktime Switch to Meson. Change-Id: Iec9c41cc17a72f84248b8cd75f70353e053f17e2 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-06-08meta-bletchley: power-ctrl: increase power off button delay to 10 secondsPotin Lai1-1/+1
In latest host OS version, it requires holding power button al least 10 seconds to perform force power off. Increase the delay time to meet requirements. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I99a5e4117dcc1ce78c886f7170b8c2a1f984b8e4
2023-04-14meta-facebook: fix up new shellcheck warningsAndrew Geissler2-7/+7
New docker container is flagging some issues in this shell script: ``` SC2004 (style): $/${} is unnecessary on arithmetic variables. SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ``` Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I9806a097ca417d8677374efd666f2a8865a0a2fd
2023-04-11meta-bletchley: add bletchley-net-utilPotin Lai2-0/+104
Add bletchley-net-util for link status checking and port registers dumping. Test results: - show link status ``` root@bmc:~# bletchley-net-util --link-st ======================================== Link Status ======================================== Switch: Port 10 (BMC): up Port 3 (SLED1): down Port 2 (SLED2): down Port 1 (SLED3): down Port 7 (SLED4): up Port 6 (SLED5): down Port 5 (SLED6): down Retimer: Inner Port (XFI): up Outer Port (SFI): up ======================================== ``` - show port registers dumping ``` root@bmc:~# bletchley-net-util --port-reg-dump ======================================== Port 10 (BMC) **************************************** [00]: 0F4D [01]: 0003 ... [1E]: 0000 [1F]: 005D ======================================== ======================================== Port 3 (SLED1) **************************************** [00]: 100F [01]: 0003 ... [1E]: 0000 [1F]: 0000 ======================================== ======================================== Port 2 (SLED2) **************************************** [00]: 100F [01]: 0003 ... [1E]: 0000 [1F]: 0000 ======================================== ======================================== Port 1 (SLED3) **************************************** [00]: 100F [01]: 0003 ... [1E]: 0000 [1F]: 0000 ======================================== ======================================== Port 7 (SLED4) **************************************** [00]: DE4F [01]: 0003 ... [1E]: 0000 [1F]: 0166 ======================================== ======================================== Port 6 (SLED5) **************************************** [00]: 100F [01]: 0003 ... [1E]: 0000 [1F]: 0000 ======================================== ======================================== Port 5 (SLED6) **************************************** [00]: 100F [01]: 0003 ... [1E]: 0000 [1F]: 0000 ======================================== ``` Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Ic4464c0b466b4d6c02246d013fc4d99ca857cbdc
2023-03-22meta-bletchley: remove bletchley-switch-diag toolPotin Lai2-41/+0
Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I7b26c6ed3bebe259eeb2787420b682273a168082
2023-03-11meta-facebook: add BMC compatible strings for all platformsPatrick Williams1-0/+2
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Idedb1dd9459b649cacbbb31284e137cc3f52327c
2023-03-10meta-bletchley: phosphor-nvme: add nvme config scriptPotin Lai3-0/+93
In Bletchley, we use PCIE_PWR_EN pin as NVME power good pin from each interposer board. Because PCIE_PWR_EN is form the I/O expander, it won't have fixed GPIO pin number. Add script to generate a nvme_config.json with correct GPIO pin number before nvme management service start. Tested: - nvme_config.json generated ``` root@bletchley:~# cat /etc/nvme/nvme_config.json { "config": [ { "NVMeDriveIndex": 1, "NVMeDriveBusID": 0, "NVMeDrivePwrGoodPin": 779 }, { "NVMeDriveIndex": 2, "NVMeDriveBusID": 1, "NVMeDrivePwrGoodPin": 759 }, { "NVMeDriveIndex": 3, "NVMeDriveBusID": 2, "NVMeDrivePwrGoodPin": 739 }, { "NVMeDriveIndex": 4, "NVMeDriveBusID": 3, "NVMeDrivePwrGoodPin": 719 }, { "NVMeDriveIndex": 5, "NVMeDriveBusID": 4, "NVMeDrivePwrGoodPin": 699 }, { "NVMeDriveIndex": 6, "NVMeDriveBusID": 5, "NVMeDrivePwrGoodPin": 679 } ], "threshold": [ { "criticalHigh": 68, "criticalLow": 0, "warningHigh": 67, "warningLow": 1, "maxValue": 127, "minValue": -127 } ] } ``` - nvme sensor available (host on) ``` root@bletchley:~# busctl introspect xyz.openbmc_project.nvme.manager \ < /xyz/openbmc_project/sensors/temperature/nvme6 \ < xyz.openbmc_project.Sensor.Value NAME TYPE SIGNATURE RESULT/VALUE FLAGS xyz.openbmc_project.Sensor.Value interface - - - .MaxValue property d 127 emits-change writable .MinValue property d -127 emits-change writable .Unit property s "xyz.openbmc_project.Sensor.Value.Uni... emits-change writable .Value property d 36 emits-change writable root@bletchley:~# busctl introspect xyz.openbmc_project.nvme.manager \ > /xyz/openbmc_project/sensors/temperature/nvme6 \ > xyz.openbmc_project.State.Decorator.Availability NAME TYPE SIGNATURE RESULT/VALUE FLAGS .Available property b true emits-change writable ``` - nvme sensor not available (host off) ``` root@bletchley:~# busctl introspect xyz.openbmc_project.nvme.manager \ > /xyz/openbmc_project/sensors/temperature/nvme6 \ > xyz.openbmc_project.Sensor.Value NAME TYPE SIGNATURE RESULT/VALUE FLAGS .MaxValue property d 127 emits-change writable .MinValue property d -127 emits-change writable .Unit property s "xyz.openbmc_project.Sensor.Value.Uni... emits-change writable .Value property d -127 emits-change writable root@bletchley:~# busctl introspect xyz.openbmc_project.nvme.manager \ > /xyz/openbmc_project/sensors/temperature/nvme6 \ > xyz.openbmc_project.State.Decorator.Availability NAME TYPE SIGNATURE RESULT/VALUE FLAGS .Available property b false emits-change writable ``` Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I2cda2e5e252fdfdd66ba6f9e0ea006c425cbf43b
2023-03-10meta-bletchley: elimiate gpiomon event messagesPotin Lai1-1/+1
Add silent option to elimiate event log messages from gpiomon command. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I15726bdeb510b7b7771a040656a41d84aae64d7f
2023-03-10meta-bletchley: move chassis and host power control service into ↵Potin Lai13-35/+57
phosphor-state-manager Move chassis and host power control services as part of PSM package to align with other platforms in meta-facebook. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I6e6afc0ad62d3b872b330202a4696b704d245911
2023-02-24meta-bletchley: use gpiomon instead of polling gpio valuePotin Lai3-32/+22
Remove gpio polling of switch detect pin in power-ctrl and motor-init. Use gpiomon and timeout commands instead to improve performance and timing issue. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I9e1eb26b070a57f424b341890733dc63c170bf79
2023-02-16meta-facebook: bletchley: reduce mapper-waitsPatrick Williams2-42/+30
There is not much value in the mapper-wait invocations since the providing service is well-known. Wait directly on the service. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I9be5922229778faedf3cd6b85fba928866583672
2023-02-13Revert "meta-bletchley: phosphor-network: temporary revert SRCREV"Patrick Williams1-2/+0
This reverts commit 7503b441052575d49568f80c236a228edc8d2aae. There is a proposed fix now in phosphor-networkd as change Icf18e3d80f6d1f8c4567603fe51d774e9090334c. Remove the bletchley-specific SRCREV in prep for the merge of this commit. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ida0b77f5bf0cc6a94e2341888b545a4226e59bf8
2023-02-10meta-bletchley: add 99-platform-initPotin Lai2-0/+25
Add 99-platform-init to archive following items 1. Disable FMC_WDT2 AST2600 use FMC_WDT2 to archive ABR feature. Disable FMC_WDT2 before systemd start. 2. Detect boot flash source Write boot source into /run/media/slot 0: boot from primary 1: boot from alternate Tested result: - In u-boot, FMC_WDT2 is enabled and timer is counting down ``` U-Boot 2019.04 (Nov 10 2022 - 00:12:58 +0000) SOC: AST2620-A3 RST: WDT1 SOC PCI RST: #2 RST: External FMC 2nd Boot (ABR): Enable, Dual flashes, Source: Primary Set FMC_WDT2 timer reload value to 0x0BB8 eSPI Mode: SIO:Enable : SuperIO-2e Eth: MAC0: RMII/NCSI, MAC1: RMII/NCSI, MAC2: RGMII, MAC3: RMII/NCSI Model: Facebook Bletchley BMC DRAM: already initialized, 2 GiB (capacity:2048 MiB, VGA:0 MiB, ECC:off) MMC: Loading Environment from SPI Flash... SF: Detected w25q01jv with page size 256 Bytes, erase size 4 KiB, total 128 MiB *** Warning - bad CRC, using default environment In: serial@1e784000 Out: serial@1e784000 Err: serial@1e784000 Model: Facebook Bletchley BMC Net: Could not get PHY for eth2: addr 0 Failed to initialize PHY: -19 eth-1: ftgmac@1e670000 Hit any key to stop autoboot: 0 ast# md.l 0x1e620064 2 1e620064: 00000001 0b560bb8 ......V. ``` - After BMC boot into Linux OS, FMC_WDT2 is disabled ``` bletchley login: root Password: root@bletchley:~# devmem 0x1e620064 0x00000000 root@bletchley:~# devmem 0x1e620068 0x0BB80BB8 ``` - check boot source (primary) ``` root@bletchley:~# cat /run/media/slot 0 ``` Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: If5e41dd9745ba5c4ec45637772136e847954c56e
2023-02-10meta-facebook: bletchley: board-type-checker: use /var/lib for sensor configPatrick Williams1-1/+5
phosphor-virtual-sensors now supports loading the config json from a `/var/lib` as high precedence over `/usr/share` and since `/var` is a writable file system, we should prefer this location for adding the config symlink. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Idfddd091e126b812ac68bbd06acc626ee137e437
2023-02-10meta-facebook: enable static no-rootfs image for bletchleyPatrick Williams1-0/+1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Iab4db4492e15f0c637fb5f9c0ba7fd93a4471d4c
2023-02-09meta-bletchley: phosphor-state-manager: fix BMC not readyPotin Lai1-0/+8
Temproary workaround for fixing some services stuck on waiting non-existing objecj path. phosphor-reset-chassis-running@{}.service |--> mapper-wait@-org-openbmc-control-power%i.service Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I61130d03b7cabc3cc94c662062b19526b4a50a8a
2023-02-09meta-bletchley: apply power restore policy when host ac-onPotin Lai1-0/+1
We need to apply power restore policy when host ac from off to on. Add post command in host-ac-on@.service to restart phosphor-discover-system-state@.service. Tested results: ``` root@bletchley:~# busctl set-property xyz.openbmc_project.Settings /xyz/openbmc_project/control/host6/power_restore_policy xyz.openbmc_project.Control.Power.RestorePolicy PowerRestorePolicy s xyz.openbmc_project.Control.Power.RestorePolicy.Policy.AlwaysOn root@bletchley:~# busctl get-property xyz.openbmc_project.Settings /xyz/openbmc_project/control/host6/power_restore_policy xyz.openbmc_project.Control.Power.RestorePolicy PowerRestorePolicy s "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.AlwaysOn" root@bletchley:~# obmcutil -i=6 chassisoff 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:~# obmcutil -i=6 chassison 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 ``` Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I57dd159725dd75da651beec2c72410c187f9fc17
2023-02-08meta-bletchley: phosphor-pid-control: remove fan configurationPotin Lai2-350/+1
Move fan configuration to EM. This commit relies on the commit listed below: https://gerrit.openbmc.org/c/openbmc/entity-manager/+/59525 Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Ie04abd9b64af8270ee74d764fd687d83daf67676
2023-02-06meta-bletchley: update led manager configPotin Lai1-32/+109
Update led manager config to match the new LED behavior table. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Ie7db06c4cff51455fe970e7bee8e4ae935a4a225
2023-01-13yocto:mickledore: add support for new yocto layerAndrew Geissler1-1/+1
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-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-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 Lai1-0/+1
Add bletchley health monitor configuration. Remove reboot.target from CPU critical threshold. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I9bff26dd47591f4384797fd91a6cea3307227190
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-07meta-facebook: phosphor-led-manager: enable lamp testingPotin Lai1-1/+0
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-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-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-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-44/+0
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-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