Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PCIeLink and PCIeTopology DBus Interfaces #130

Open
wants to merge 1 commit into
base: 1110
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions gen/com/ibm/Control/Host/PCIeLink/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Generated file; do not modify.
generated_sources += custom_target(
'com/ibm/Control/Host/PCIeLink__cpp'.underscorify(),
input: [ '../../../../../../yaml/com/ibm/Control/Host/PCIeLink.interface.yaml', ],
output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'aserver.hpp', 'client.hpp', ],
depend_files: sdbusplusplus_depfiles,
command: [
sdbuspp_gen_meson_prog, '--command', 'cpp',
'--output', meson.current_build_dir(),
'--tool', sdbusplusplus_prog,
'--directory', meson.current_source_dir() / '../../../../../../yaml',
'com/ibm/Control/Host/PCIeLink',
],
)

16 changes: 16 additions & 0 deletions gen/com/ibm/Control/Host/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Generated file; do not modify.
subdir('PCIeLink')
generated_others += custom_target(
'com/ibm/Control/Host/PCIeLink__markdown'.underscorify(),
input: [ '../../../../../yaml/com/ibm/Control/Host/PCIeLink.interface.yaml', ],
output: [ 'PCIeLink.md' ],
depend_files: sdbusplusplus_depfiles,
command: [
sdbuspp_gen_meson_prog, '--command', 'markdown',
'--output', meson.current_build_dir(),
'--tool', sdbusplusplus_prog,
'--directory', meson.current_source_dir() / '../../../../../yaml',
'com/ibm/Control/Host/PCIeLink',
],
)

2 changes: 2 additions & 0 deletions gen/com/ibm/Control/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Generated file; do not modify.
subdir('Host')
15 changes: 15 additions & 0 deletions gen/com/ibm/PLDM/PCIeTopology/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Generated file; do not modify.
generated_sources += custom_target(
'com/ibm/PLDM/PCIeTopology__cpp'.underscorify(),
input: [ '../../../../../yaml/com/ibm/PLDM/PCIeTopology.interface.yaml', ],
output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'aserver.hpp', 'client.hpp', ],
depend_files: sdbusplusplus_depfiles,
command: [
sdbuspp_gen_meson_prog, '--command', 'cpp',
'--output', meson.current_build_dir(),
'--tool', sdbusplusplus_prog,
'--directory', meson.current_source_dir() / '../../../../../yaml',
'com/ibm/PLDM/PCIeTopology',
],
)

16 changes: 16 additions & 0 deletions gen/com/ibm/PLDM/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Generated file; do not modify.
subdir('PCIeTopology')
generated_others += custom_target(
'com/ibm/PLDM/PCIeTopology__markdown'.underscorify(),
input: [ '../../../../yaml/com/ibm/PLDM/PCIeTopology.interface.yaml', ],
output: [ 'PCIeTopology.md' ],
depend_files: sdbusplusplus_depfiles,
command: [
sdbuspp_gen_meson_prog, '--command', 'markdown',
'--output', meson.current_build_dir(),
'--tool', sdbusplusplus_prog,
'--directory', meson.current_source_dir() / '../../../../yaml',
'com/ibm/PLDM/PCIeTopology',
],
)

2 changes: 2 additions & 0 deletions gen/com/ibm/meson.build
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Generated file; do not modify.
subdir('Control')
subdir('Dump')
subdir('Hardware')
subdir('License')
subdir('Logging')
subdir('PLDM')
subdir('VPD')
generated_others += custom_target(
'com/ibm/VPD__markdown'.underscorify(),
Expand Down
9 changes: 9 additions & 0 deletions yaml/com/ibm/Control/Host/PCIeLink.interface.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: >
PCIe Link Interface is used to reset the PCIe link.
properties:
- name: linkReset
type: boolean
default: false
description: >
When set to true resets the PCIe Link. The service which monitors this
property moves it back to the default.
15 changes: 15 additions & 0 deletions yaml/com/ibm/PLDM/PCIeTopology.interface.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
description: >
This interface is used by applications on bmc to request the PCIE topology
information.
properties:
- name: PCIeTopologyRefresh
type: boolean
description: >
This property when set to 'true' refreshes the topology information.
The application which uses this should set it to 'false' when a
refresh occurs.
- name: SavePCIeTopologyInfo
type: boolean
description: >
This property when set to 'true' saves the topology information. The
information is saved in the form of a PEL(Error Log).
22 changes: 22 additions & 0 deletions yaml/xyz/openbmc_project/Inventory/Item/Cable.interface.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,28 @@ properties:
interrogation of a cable beyond ignoring the default value of the
empty string.

- name: CableStatus
type: enum[self.Status]
default: "Unknown"
description: >
The status of the cable. The default status is unknown.
enumerations:
- name: Status
description: >
Possible cable status
values:
- name: "Inactive"
description: >
Cable is inactive.
- name: "Running"
description: >
Cable is running.
- name: "PoweredOff"
description: >
Cable is powered off.
- name: "Unknown"
description: >
Cable status is unknown.
associations:
- name: downstream_chassis
description: >
Expand Down
35 changes: 35 additions & 0 deletions yaml/xyz/openbmc_project/Inventory/Item/PCIeSlot.interface.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ properties:
description: >
Whether this PCIe slot supports hotplug

- name: LinkStatus
type: enum[self.Status]
default: "Unknown"
description: >
Status of PCIe bus linked to the slot.

- name: BusId
type: size
description: >
Identifier to detect the PCIe bus linked to the slot.

enumerations:
- name: Generations
description: >
Expand Down Expand Up @@ -98,6 +109,30 @@ enumerations:
description: >
Type of the PCIe slot is unknown

- name: Status
description: >
Possible link status
values:
- name: "Operational"
description: >
Link is operational
- name: "Degraded"
description: >
Link is degraded
- name: "Failed"
description: >
Link failed
- name: "Open"
description: >
Link is open

- name: "Inactive"
description: >
Link is inactive
- name: "Unknown"
description: >
Link status is unknown

association:
name: connected_to
description: >
Expand Down