blob: bd51f70cf474d6741b059251c70d002c5ba4eae2 [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,
P Arun Kumar Reddye090c782025-03-14 14:34:18 +053062 value: 0,
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +053063 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
P Arun Kumar Reddy6fa09e92025-04-25 11:24:06 +0530131option(
132 'update-timeout-seconds',
133 type: 'integer',
134 min: 60,
135 max: 90,
136 value: 60,
137 description: '''Timeout in seconds for the UA to cancel the component update
138 if no command is received from the FD during component image
139 transfer stage''',
140)
141
Archana Kakani46f352e2024-03-17 08:21:08 -0500142# Bios Attributes option
143option(
144 'system-specific-bios-json',
Patrick Williams9b402602025-02-01 08:37:20 -0500145 type: 'feature',
Archana Kakani46f352e2024-03-17 08:21:08 -0500146 value: 'disabled',
Patrick Williams9b402602025-02-01 08:37:20 -0500147 description: 'Support for different set of bios attributes for different types of systems',
Archana Kakani46f352e2024-03-17 08:21:08 -0500148)
149
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +0530150# PLDM Soft Power off options
151option(
152 'softoff',
153 type: 'feature',
154 value: 'enabled',
Patrick Williams9b402602025-02-01 08:37:20 -0500155 description: 'Build soft power off application',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +0530156)
157
158option(
159 'softoff-timeout-seconds',
160 type: 'integer',
161 value: 7200,
Patrick Williams9b402602025-02-01 08:37:20 -0500162 description: 'softoff: Time to wait for host to gracefully shutdown',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +0530163)
164
165# Vendor Specific Options
166
167## OEM IBM Options
168option(
169 'oem-ibm',
170 type: 'feature',
171 value: 'enabled',
Patrick Williams9b402602025-02-01 08:37:20 -0500172 description: 'Enable IBM OEM PLDM',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +0530173)
174
175option(
176 'oem-ibm-dma-maxsize',
177 type: 'integer',
Patrick Williams9b402602025-02-01 08:37:20 -0500178 min: 4096,
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +0530179 max: 16773120,
180 value: 8384512,
Patrick Williams9b402602025-02-01 08:37:20 -0500181 description: 'OEM-IBM: max DMA size',
Manojkiran Edae8fd5fb2023-07-14 18:39:08 +0530182)
Thu Nguyen3c5486d2024-08-01 08:03:08 +0000183
Chau Lya743e382024-10-26 11:12:22 +0000184
185## OEM AMPERE Options
186option(
187 'oem-ampere',
188 type: 'feature',
189 description: 'Enable AMPERE OEM PLDM',
Patrick Williams79e097c2024-11-06 13:44:04 -0500190 value: 'enabled',
Chau Lya743e382024-10-26 11:12:22 +0000191)
192
Thu Nguyen3c5486d2024-08-01 08:03:08 +0000193## Default Sensor Update Interval Options
194option(
195 'default-sensor-update-interval',
196 type: 'integer',
197 min: 1,
198 max: 4294967295,
199 description: '''The default sensor polling interval in milliseconds.
200 The value will be used when the internal is not configured
201 in the PLDM sensor PDRs use `updateInterval` field. `pldmd`
202 will send `GetSensorReading` to get the PLDM sensor values
203 of the monitoring terminus after each configured
204 interval.''',
Patrick Williams9b402602025-02-01 08:37:20 -0500205 value: 999,
Gilbert Cheneac61a42022-02-23 20:56:19 +0000206)
207
208# Platform-mc configuration parameters
209
210## Sensor Polling Options
211option(
212 'sensor-polling-time',
213 type: 'integer',
214 min: 1,
215 max: 10000,
216 description: '''The configured timeout in milliseconds of the common sensor
217 polling timer of each terminus which will trigger the
218 terminus sensor reading task. The task will check
219 whether the sensor in the terminus sensors list need to
220 be updated by comparing the sensor `updateInterval` with the
221 interval between current timestamp and latest updated
222 timestamp of the sensor. The task will send
223 `GetSensorReading` if the sensor need to be updated.''',
Patrick Williams9b402602025-02-01 08:37:20 -0500224 value: 249,
Gilbert Cheneac61a42022-02-23 20:56:19 +0000225)