summaryrefslogtreecommitdiff
path: root/hsbp-manager/include
AgeCommit message (Collapse)AuthorFilesLines
2019-10-15Handle power state changesJames Feist1-0/+96
We need to check if power is on as the hsbp goes away during power off. This copies the power logic from dbus-sensors and uses it to avoid scanning when power is off. Tested: Warnings go away Change-Id: Ie949e7a98eb70592318710f3eecdfe766f71f110 Signed-off-by: James Feist <james.feist@linux.intel.com>
2019-10-15Add LED hooks to hsbp managerJames Feist1-0/+6
This adds the led group interface so that they can be activiated by NVMe daemon. Tested: Set using dbus, went and saw drive flashing Change-Id: I2e1aa3f9338609370d9758a7c4874428dac5d4ea Signed-off-by: James Feist <james.feist@linux.intel.com>
2019-10-08Create associations for drives with inventoryJames Feist1-0/+1
This creates associations so that redfish can know which drives map to which configuration items. Tested: root@intel-obmc:~# busctl introspect xyz.openbmc_project.HsbpManager /xyz/openbmc_project/inventory/item/drive/Drive_2 --no-pager NAME TYPE SIGNATURE RESULT/VALUE FLAGS org.freedesktop.DBus.Introspectable interface - - - .Introspect method - s - org.freedesktop.DBus.Peer interface - - - .GetMachineId method - s - .Ping method - - - org.freedesktop.DBus.Properties interface - - - .Get method ss v - .GetAll method s a{sv} - .Set method ssv - - .PropertiesChanged signal sa{sv}as - - xyz.openbmc_project.Association.Definitions interface - - - .Associations property a(sss) 1 "inventory" "drive" "/xyz/openbmc_p... emits-change xyz.openbmc_project.Inventory.Item interface - - - .Present property b true emits-change .PrettyName property s "Drive 2" emits-change xyz.openbmc_project.State.Decorator.OperationalStatus interface - - - .Functional property b true emits-change xyz.openbmc_project.State.Drive interface - - - .Rebuilding property b false emits-change Also show up in mapper Change-Id: Ia050316ac55faa89aad86567c93f9a74594e9180 Signed-off-by: James Feist <james.feist@linux.intel.com>
2019-09-30Add HSBP Manager DaemonFeist, James1-0/+77
This is the initial commit for the hsbp-manager daemon. Currently it reads a json configuration and detects whether the cpld is available. More feaures will be added in small patches. Tested: busctl introspect --no-pager xyz.openbmc_project.HsbpManager /xyz/openbmc_project/inventory/item/hsbp/J85894_HSBP_1 NAME TYPE SIGNATURE RESULT/VALUE FLAGS org.freedesktop.DBus.Introspectable interface - - - .Introspect method - s - org.freedesktop.DBus.Peer interface - - - .GetMachineId method - s - .Ping method - - - org.freedesktop.DBus.Properties interface - - - .Get method ss v - .GetAll method s a{sv} - .Set method ssv - - .PropertiesChanged signal sa{sv}as - - xyz.openbmc_project.Inventory.Item interface - - - .Present property b true emits-change .PrettyName property s "J85894 HSBP 1" emits-change Change-Id: Ibbce272e045f8643af74b778f273168442623919 Signed-off-by: Feist, James <james.feist@linux.intel.com>