History log of /openbmc/s2600wf-misc/hsbp-manager/include/ (Results 1 – 9 of 9)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
ff1c36e522-Jul-2022 Patrick Williams <patrick@stwcx.xyz>

sdbusplus: use shorter type aliases

The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines. Possible replacements are

sdbusplus: use shorter type aliases

The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines. Possible replacements are for:
* bus_t
* exception_t
* manager_t
* match_t
* message_t
* object_t
* slot_t

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Idf165747d0fd6079ba217992f2c46a388ce2d906

show more ...

26067f6a08-Dec-2021 Jonathan Doman <jonathan.doman@intel.com>

hsbp-manager: fix build against latest sdbusplus

sdbusplus headers changed and now we need to explicitly include the
match header.

Tested: Build succeeds.

Signed-off-by: Jonathan Doman <jonathan.d

hsbp-manager: fix build against latest sdbusplus

sdbusplus headers changed and now we need to explicitly include the
match header.

Tested: Build succeeds.

Signed-off-by: Jonathan Doman <jonathan.doman@intel.com>
Change-Id: I9cd2b12f251434351e5f4f0b92bdf771c6958827

show more ...

d0d36f1021-Nov-2019 James Feist <james.feist@linux.intel.com>

Add Asset and StorageController interface

This makes it so we can populate the storage controller
redfish schema.

Tested: Redfish validator passed

Change-Id: Ie3f5ae7e5abf0e0fd766491ea14939c749882

Add Asset and StorageController interface

This makes it so we can populate the storage controller
redfish schema.

Tested: Redfish validator passed

Change-Id: Ie3f5ae7e5abf0e0fd766491ea14939c7498828c7
Signed-off-by: James Feist <james.feist@linux.intel.com>

show more ...

e881852b04-Nov-2019 James Feist <james.feist@linux.intel.com>

Add drive logging

This adds logging for drive failures and inventory
changes.

Tested:

{
"@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
"@odata.id": "/

Add drive logging

This adds logging for drive failures and inventory
changes.

Tested:

{
"@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/1565674864_1",
"@odata.type": "#LogEntry.v1_4_0.LogEntry",
"Created": "2019-08-13T05:41:04+00:00",
"EntryType": "Event",
"Id": "1565674864_1",
"Message": "Drive 2 with serial number N/A was installed.",
"MessageArgs": [
"Drive",
"2",
"N/A"
],
"MessageId": "OpenBMC.0.1.InventoryAdded",
"Name": "System Event Log Entry",
"Severity": "OK"
},
{
"@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/1565674987",
"@odata.type": "#LogEntry.v1_4_0.LogEntry",
"Created": "2019-08-13T05:43:07+00:00",
"EntryType": "Event",
"Id": "1565674987",
"Message": "Drive Error Occurred: Drive 1.",
"MessageArgs": [
"Drive 1"
],
"MessageId": "OpenBMC.0.1.DriveError",
"Name": "System Event Log Entry",
"Severity": "Warning"
}

Change-Id: Ia23e6f48b753cbeb36c3176c39a28f687ad7061c
Signed-off-by: James Feist <james.feist@linux.intel.com>

show more ...

42b49c1729-Oct-2019 James Feist <james.feist@linux.intel.com>

Update status in Redfish

Create associations when failed to change the
status to Warning.

Tested:

{
"@odata.context": "/redfish/v1/$metadata#Drive.Drive",
"@odata.id": "/redfish/v1/Systems

Update status in Redfish

Create associations when failed to change the
status to Warning.

Tested:

{
"@odata.context": "/redfish/v1/$metadata#Drive.Drive",
"@odata.id": "/redfish/v1/Systems/system/Storage/1/Drive/Drive_1",
"@odata.type": "#Drive.v1_7_0.Drive",
"Status": {
"Health": "Warning",
"HealthRollup": "Warning",
"State": "Enabled"
}
}

Change-Id: I3e5f87dc1253e8f24396a924e79d5474b0e5754a
Signed-off-by: James Feist <james.feist@linux.intel.com>

show more ...

9f6565db09-Oct-2019 James Feist <james.feist@linux.intel.com>

Handle power state changes

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.

Tes

Handle power state changes

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>

show more ...

09dd231409-Oct-2019 James Feist <james.feist@linux.intel.com>

Add LED hooks to hsbp manager

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: I2e1aa3f9338609370d975

Add LED hooks to hsbp manager

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>

show more ...

0b236ab802-Oct-2019 James Feist <james.feist@linux.intel.com>

Create associations for drives with inventory

This creates associations so that redfish can know which
drives map to which configuration items.

Tested:

root@intel-obmc:~# busctl introspect xyz.ope

Create associations for drives with inventory

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>

show more ...

c95cf67129-Aug-2019 Feist, James <james.feist@linux.intel.com>

Add HSBP Manager Daemon

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

Add HSBP Manager Daemon

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>

show more ...