blob: 531f9d48531efb4f457ccffb7c90c44d10f90bd0 [file] [log] [blame]
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +05301# PLDM daemon options
Patrick Williams9b402602025-02-01 08:37:20 -05002option('tests', type: 'feature', value: 'enabled', description: 'Build tests')
Lei YU31fc47e2020-02-27 11:41:45 +08003
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +05304option(
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +05305 'utilities',
6 type: 'feature',
7 value: 'enabled',
Patrick Williams9b402602025-02-01 08:37:20 -05008 description: 'Enable debug utilities',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +05309)
Brad Bishopadbb2452021-08-19 16:33:53 -040010
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +053011option(
12 'libpldmresponder',
13 type: 'feature',
14 value: 'enabled',
Patrick Williams9b402602025-02-01 08:37:20 -050015 description: 'Enable libpldmresponder',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +053016)
Sagar Srinivasa6a8ccd2021-04-01 07:58:33 -050017
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +053018option(
19 'systemd',
20 type: 'feature',
21 value: 'enabled',
Patrick Williams9b402602025-02-01 08:37:20 -050022 description: 'Include systemd support',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +053023)
Manojkiran Edacc5f1582021-09-29 17:03:06 +053024
Rashmica Gupta1ed5f7a2023-05-22 13:56:42 +100025option(
26 'transport-implementation',
27 type: 'combo',
28 choices: ['mctp-demux', 'af-mctp'],
Patrick Williams9b402602025-02-01 08:37:20 -050029 description: 'transport via af-mctp or mctp-demux',
Rashmica Gupta1ed5f7a2023-05-22 13:56:42 +100030)
31
vkaverap@in.ibm.comc0b0e7b2023-07-18 00:06:40 -050032# As per PLDM spec DSP0240 version 1.1.0, in Timing Specification for PLDM messages (Table 6),
33# the instance ID for a given response will expire and become reusable if a response has not been
34# received within a maximum of 6 seconds after a request is sent. By setting the dbus timeout
35# value to 5 seconds we ensure that PLDM does not wait for a response from a dbus call even after
36# the instance ID has expired. If the option is set to 5 seconds, any dbus call originated from
37# PLDM daemon will timeout after 5 seconds.
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +053038option(
39 'dbus-timeout-value',
40 type: 'integer',
41 min: 3,
42 max: 10,
43 value: 5,
44 description: '''The amount of time pldm waits to get a response for a dbus
Patrick Williams9b402602025-02-01 08:37:20 -050045 message before timing out''',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +053046)
47
48option(
49 'heartbeat-timeout-seconds',
50 type: 'integer',
51 value: 120,
52 description: '''The amount of time host waits for BMC to respond to pings
Patrick Williams9b402602025-02-01 08:37:20 -050053 from host, as part of host-bmc surveillance''',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +053054)
55
56# Flight Recorder for PLDM Daemon
57option(
58 'flightrecorder-max-entries',
Patrick Williams9b402602025-02-01 08:37:20 -050059 type: 'integer',
60 min: 0,
61 max: 30,
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +053062 value: 10,
63 description: '''The max number of pldm messages that can be stored in the
Patrick Williams9b402602025-02-01 08:37:20 -050064 recorder, this feature will be disabled if it is set to 0''',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +053065)
66
67# PLDM Daemon Terminus options
68option(
69 'terminus-id',
Patrick Williams9b402602025-02-01 08:37:20 -050070 type: 'integer',
71 min: 0,
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +053072 max: 255,
Patrick Williams9b402602025-02-01 08:37:20 -050073 value: 1,
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +053074 description: '''The terminus id value of the device that is running this
Patrick Williams9b402602025-02-01 08:37:20 -050075 pldm stack''',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +053076)
77
78option(
79 'terminus-handle',
Patrick Williams9b402602025-02-01 08:37:20 -050080 type: 'integer',
81 min: 0,
82 max: 65535,
83 value: 1,
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +053084 description: '''The terminus handle value of the device that is running this
Patrick Williams9b402602025-02-01 08:37:20 -050085 pldm stack''',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +053086)
87
88# Timing specification options for PLDM messages
89option(
90 'number-of-request-retries',
91 type: 'integer',
92 min: 2,
93 max: 30,
94 value: 2,
95 description: '''The number of times a requester is obligated to retry a
Patrick Williams9b402602025-02-01 08:37:20 -050096 request''',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +053097)
98
99option(
100 'instance-id-expiration-interval',
101 type: 'integer',
102 min: 5,
103 max: 6,
104 value: 5,
Patrick Williams9b402602025-02-01 08:37:20 -0500105 description: 'Instance ID expiration interval in seconds',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +0530106)
107
108# Default response-time-out set to 2 seconds to facilitate a minimum retry of
109# the request of 2.
110option(
111 'response-time-out',
112 type: 'integer',
113 min: 300,
114 max: 4800,
115 value: 2000,
116 description: '''The amount of time a requester has to wait for a response
Patrick Williams9b402602025-02-01 08:37:20 -0500117 message in milliseconds''',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +0530118)
Manojkiran Edacc5f1582021-09-29 17:03:06 +0530119
Tom Josephef90b0d2021-08-17 07:12:49 -0700120# Firmware update configuration parameters
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +0530121option(
122 'maximum-transfer-size',
123 type: 'integer',
124 min: 16,
125 max: 4294967295,
126 value: 4096,
127 description: '''Maximum size in bytes of the variable payload allowed to be
Patrick Williams9b402602025-02-01 08:37:20 -0500128 requested by the FD, via RequestFirmwareData command''',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +0530129)
130
Archana Kakani46f352e2024-03-17 08:21:08 -0500131# Bios Attributes option
132option(
133 'system-specific-bios-json',
Patrick Williams9b402602025-02-01 08:37:20 -0500134 type: 'feature',
Archana Kakani46f352e2024-03-17 08:21:08 -0500135 value: 'disabled',
Patrick Williams9b402602025-02-01 08:37:20 -0500136 description: 'Support for different set of bios attributes for different types of systems',
Archana Kakani46f352e2024-03-17 08:21:08 -0500137)
138
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +0530139# PLDM Soft Power off options
140option(
141 'softoff',
142 type: 'feature',
143 value: 'enabled',
Patrick Williams9b402602025-02-01 08:37:20 -0500144 description: 'Build soft power off application',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +0530145)
146
147option(
148 'softoff-timeout-seconds',
149 type: 'integer',
150 value: 7200,
Patrick Williams9b402602025-02-01 08:37:20 -0500151 description: 'softoff: Time to wait for host to gracefully shutdown',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +0530152)
153
154# Vendor Specific Options
155
156## OEM IBM Options
157option(
158 'oem-ibm',
159 type: 'feature',
160 value: 'enabled',
Patrick Williams9b402602025-02-01 08:37:20 -0500161 description: 'Enable IBM OEM PLDM',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +0530162)
163
164option(
165 'oem-ibm-dma-maxsize',
166 type: 'integer',
Patrick Williams9b402602025-02-01 08:37:20 -0500167 min: 4096,
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +0530168 max: 16773120,
169 value: 8384512,
Patrick Williams9b402602025-02-01 08:37:20 -0500170 description: 'OEM-IBM: max DMA size',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +0530171)
Thu Nguyen3c5486d2024-08-01 08:03:08 +0000172
Chau Lya743e382024-10-26 11:12:22 +0000173
174## OEM AMPERE Options
175option(
176 'oem-ampere',
177 type: 'feature',
178 description: 'Enable AMPERE OEM PLDM',
Patrick Williams79e097c2024-11-06 13:44:04 -0500179 value: 'enabled',
Chau Lya743e382024-10-26 11:12:22 +0000180)
181
Thu Nguyen3c5486d2024-08-01 08:03:08 +0000182## Default Sensor Update Interval Options
183option(
184 'default-sensor-update-interval',
185 type: 'integer',
186 min: 1,
187 max: 4294967295,
188 description: '''The default sensor polling interval in milliseconds.
189 The value will be used when the internal is not configured
190 in the PLDM sensor PDRs use `updateInterval` field. `pldmd`
191 will send `GetSensorReading` to get the PLDM sensor values
192 of the monitoring terminus after each configured
193 interval.''',
Patrick Williams9b402602025-02-01 08:37:20 -0500194 value: 999,
Gilbert Cheneac61a42022-02-23 20:56:19 +0000195)
196
197# Platform-mc configuration parameters
198
199## Sensor Polling Options
200option(
201 'sensor-polling-time',
202 type: 'integer',
203 min: 1,
204 max: 10000,
205 description: '''The configured timeout in milliseconds of the common sensor
206 polling timer of each terminus which will trigger the
207 terminus sensor reading task. The task will check
208 whether the sensor in the terminus sensors list need to
209 be updated by comparing the sensor `updateInterval` with the
210 interval between current timestamp and latest updated
211 timestamp of the sensor. The task will send
212 `GetSensorReading` if the sensor need to be updated.''',
Patrick Williams9b402602025-02-01 08:37:20 -0500213 value: 249,
Gilbert Cheneac61a42022-02-23 20:56:19 +0000214)