xref: /openbmc/pldm/meson.options (revision 6fa09e9621b4e8ad3f4ed935a23f665ec9bcfed8)
1cbdc2723SGeorge Liu# PLDM daemon options
29b402600SPatrick Williamsoption('tests', type: 'feature', value: 'enabled', description: 'Build tests')
3cbdc2723SGeorge Liu
4cbdc2723SGeorge Liuoption(
5cbdc2723SGeorge Liu    'utilities',
6cbdc2723SGeorge Liu    type: 'feature',
7cbdc2723SGeorge Liu    value: 'enabled',
89b402600SPatrick Williams    description: 'Enable debug utilities',
9cbdc2723SGeorge Liu)
10cbdc2723SGeorge Liu
11cbdc2723SGeorge Liuoption(
12cbdc2723SGeorge Liu    'libpldmresponder',
13cbdc2723SGeorge Liu    type: 'feature',
14cbdc2723SGeorge Liu    value: 'enabled',
159b402600SPatrick Williams    description: 'Enable libpldmresponder',
16cbdc2723SGeorge Liu)
17cbdc2723SGeorge Liu
18cbdc2723SGeorge Liuoption(
19cbdc2723SGeorge Liu    'systemd',
20cbdc2723SGeorge Liu    type: 'feature',
21cbdc2723SGeorge Liu    value: 'enabled',
229b402600SPatrick Williams    description: 'Include systemd support',
23cbdc2723SGeorge Liu)
24cbdc2723SGeorge Liu
251ed5f7a6SRashmica Guptaoption(
261ed5f7a6SRashmica Gupta    'transport-implementation',
271ed5f7a6SRashmica Gupta    type: 'combo',
281ed5f7a6SRashmica Gupta    choices: ['mctp-demux', 'af-mctp'],
299b402600SPatrick Williams    description: 'transport via af-mctp or mctp-demux',
301ed5f7a6SRashmica Gupta)
311ed5f7a6SRashmica Gupta
32cbdc2723SGeorge Liu# As per PLDM spec DSP0240 version 1.1.0, in Timing Specification for PLDM messages (Table 6),
33cbdc2723SGeorge Liu# the instance ID for a given response will expire and become reusable if a response has not been
34cbdc2723SGeorge Liu# received within a maximum of 6 seconds after a request is sent. By setting the dbus timeout
35cbdc2723SGeorge Liu# value to 5 seconds we ensure that PLDM does not wait for a response from a dbus call even after
36cbdc2723SGeorge Liu# the instance ID has expired. If the option is set to 5 seconds, any dbus call originated from
37cbdc2723SGeorge Liu# PLDM daemon will timeout after 5 seconds.
38cbdc2723SGeorge Liuoption(
39cbdc2723SGeorge Liu    'dbus-timeout-value',
40cbdc2723SGeorge Liu    type: 'integer',
41cbdc2723SGeorge Liu    min: 3,
42cbdc2723SGeorge Liu    max: 10,
43cbdc2723SGeorge Liu    value: 5,
44cbdc2723SGeorge Liu    description: '''The amount of time pldm waits to get a response for a dbus
459b402600SPatrick Williams                    message before timing out''',
46cbdc2723SGeorge Liu)
47cbdc2723SGeorge Liu
48cbdc2723SGeorge Liuoption(
49cbdc2723SGeorge Liu    'heartbeat-timeout-seconds',
50cbdc2723SGeorge Liu    type: 'integer',
51cbdc2723SGeorge Liu    value: 120,
52cbdc2723SGeorge Liu    description: '''The amount of time host waits for BMC to respond to pings
539b402600SPatrick Williams                    from host, as part of host-bmc surveillance''',
54cbdc2723SGeorge Liu)
55cbdc2723SGeorge Liu
56cbdc2723SGeorge Liu# Flight Recorder for PLDM Daemon
57cbdc2723SGeorge Liuoption(
58cbdc2723SGeorge Liu    'flightrecorder-max-entries',
59cbdc2723SGeorge Liu    type: 'integer',
60cbdc2723SGeorge Liu    min: 0,
61cbdc2723SGeorge Liu    max: 30,
62e090c783SP Arun Kumar Reddy    value: 0,
63cbdc2723SGeorge Liu    description: '''The max number of pldm messages that can be stored in the
649b402600SPatrick Williams                    recorder, this feature will be disabled if it is set to 0''',
65cbdc2723SGeorge Liu)
66cbdc2723SGeorge Liu
67cbdc2723SGeorge Liu# PLDM Daemon Terminus options
68cbdc2723SGeorge Liuoption(
69cbdc2723SGeorge Liu    'terminus-id',
70cbdc2723SGeorge Liu    type: 'integer',
71cbdc2723SGeorge Liu    min: 0,
72cbdc2723SGeorge Liu    max: 255,
73cbdc2723SGeorge Liu    value: 1,
74cbdc2723SGeorge Liu    description: '''The terminus id value of the device that is running this
759b402600SPatrick Williams                    pldm stack''',
76cbdc2723SGeorge Liu)
77cbdc2723SGeorge Liu
78cbdc2723SGeorge Liuoption(
79cbdc2723SGeorge Liu    'terminus-handle',
80cbdc2723SGeorge Liu    type: 'integer',
81cbdc2723SGeorge Liu    min: 0,
82cbdc2723SGeorge Liu    max: 65535,
83cbdc2723SGeorge Liu    value: 1,
84cbdc2723SGeorge Liu    description: '''The terminus handle value of the device that is running this
859b402600SPatrick Williams                    pldm stack''',
86cbdc2723SGeorge Liu)
87cbdc2723SGeorge Liu
88cbdc2723SGeorge Liu# Timing specification options for PLDM messages
89cbdc2723SGeorge Liuoption(
90cbdc2723SGeorge Liu    'number-of-request-retries',
91cbdc2723SGeorge Liu    type: 'integer',
92cbdc2723SGeorge Liu    min: 2,
93cbdc2723SGeorge Liu    max: 30,
94cbdc2723SGeorge Liu    value: 2,
95cbdc2723SGeorge Liu    description: '''The number of times a requester is obligated to retry a
969b402600SPatrick Williams                    request''',
97cbdc2723SGeorge Liu)
98cbdc2723SGeorge Liu
99cbdc2723SGeorge Liuoption(
100cbdc2723SGeorge Liu    'instance-id-expiration-interval',
101cbdc2723SGeorge Liu    type: 'integer',
102cbdc2723SGeorge Liu    min: 5,
103cbdc2723SGeorge Liu    max: 6,
104cbdc2723SGeorge Liu    value: 5,
1059b402600SPatrick Williams    description: 'Instance ID expiration interval in seconds',
106cbdc2723SGeorge Liu)
107cbdc2723SGeorge Liu
108cbdc2723SGeorge Liu# Default response-time-out set to 2 seconds to facilitate a minimum retry of
109cbdc2723SGeorge Liu# the request of 2.
110cbdc2723SGeorge Liuoption(
111cbdc2723SGeorge Liu    'response-time-out',
112cbdc2723SGeorge Liu    type: 'integer',
113cbdc2723SGeorge Liu    min: 300,
114cbdc2723SGeorge Liu    max: 4800,
115cbdc2723SGeorge Liu    value: 2000,
116cbdc2723SGeorge Liu    description: '''The amount of time a requester has to wait for a response
1179b402600SPatrick Williams                    message in milliseconds''',
118cbdc2723SGeorge Liu)
119cbdc2723SGeorge Liu
120cbdc2723SGeorge Liu# Firmware update configuration parameters
121cbdc2723SGeorge Liuoption(
122cbdc2723SGeorge Liu    'maximum-transfer-size',
123cbdc2723SGeorge Liu    type: 'integer',
124cbdc2723SGeorge Liu    min: 16,
125cbdc2723SGeorge Liu    max: 4294967295,
126cbdc2723SGeorge Liu    value: 4096,
127cbdc2723SGeorge Liu    description: '''Maximum size in bytes of the variable payload allowed to be
1289b402600SPatrick Williams                    requested by the FD, via RequestFirmwareData command''',
129cbdc2723SGeorge Liu)
130cbdc2723SGeorge Liu
131*6fa09e96SP Arun Kumar Reddyoption(
132*6fa09e96SP Arun Kumar Reddy    'update-timeout-seconds',
133*6fa09e96SP Arun Kumar Reddy    type: 'integer',
134*6fa09e96SP Arun Kumar Reddy    min: 60,
135*6fa09e96SP Arun Kumar Reddy    max: 90,
136*6fa09e96SP Arun Kumar Reddy    value: 60,
137*6fa09e96SP Arun Kumar Reddy    description: '''Timeout in seconds for the UA to cancel the component update
138*6fa09e96SP Arun Kumar Reddy                    if no command is received from the FD during component image
139*6fa09e96SP Arun Kumar Reddy                    transfer stage''',
140*6fa09e96SP Arun Kumar Reddy)
141*6fa09e96SP Arun Kumar Reddy
14246f352edSArchana Kakani# Bios Attributes option
14346f352edSArchana Kakanioption(
14446f352edSArchana Kakani    'system-specific-bios-json',
14546f352edSArchana Kakani    type: 'feature',
14646f352edSArchana Kakani    value: 'disabled',
1479b402600SPatrick Williams    description: 'Support for different set of bios attributes for different types of systems',
14846f352edSArchana Kakani)
14946f352edSArchana Kakani
150cbdc2723SGeorge Liu# PLDM Soft Power off options
151cbdc2723SGeorge Liuoption(
152cbdc2723SGeorge Liu    'softoff',
153cbdc2723SGeorge Liu    type: 'feature',
154cbdc2723SGeorge Liu    value: 'enabled',
1559b402600SPatrick Williams    description: 'Build soft power off application',
156cbdc2723SGeorge Liu)
157cbdc2723SGeorge Liu
158cbdc2723SGeorge Liuoption(
159cbdc2723SGeorge Liu    'softoff-timeout-seconds',
160cbdc2723SGeorge Liu    type: 'integer',
161cbdc2723SGeorge Liu    value: 7200,
1629b402600SPatrick Williams    description: 'softoff: Time to wait for host to gracefully shutdown',
163cbdc2723SGeorge Liu)
164cbdc2723SGeorge Liu
165cbdc2723SGeorge Liu# Vendor Specific Options
166cbdc2723SGeorge Liu
167cbdc2723SGeorge Liu## OEM IBM Options
168cbdc2723SGeorge Liuoption(
169cbdc2723SGeorge Liu    'oem-ibm',
170cbdc2723SGeorge Liu    type: 'feature',
171cbdc2723SGeorge Liu    value: 'enabled',
1729b402600SPatrick Williams    description: 'Enable IBM OEM PLDM',
173cbdc2723SGeorge Liu)
174cbdc2723SGeorge Liu
175cbdc2723SGeorge Liuoption(
176cbdc2723SGeorge Liu    'oem-ibm-dma-maxsize',
177cbdc2723SGeorge Liu    type: 'integer',
178cbdc2723SGeorge Liu    min: 4096,
179cbdc2723SGeorge Liu    max: 16773120,
180cbdc2723SGeorge Liu    value: 8384512,
1819b402600SPatrick Williams    description: 'OEM-IBM: max DMA size',
182cbdc2723SGeorge Liu)
1833c5486d4SThu Nguyen
184a743e384SChau Ly
185a743e384SChau Ly## OEM AMPERE Options
186a743e384SChau Lyoption(
187a743e384SChau Ly    'oem-ampere',
188a743e384SChau Ly    type: 'feature',
189a743e384SChau Ly    description: 'Enable AMPERE OEM PLDM',
19079e097cbSPatrick Williams    value: 'enabled',
191a743e384SChau Ly)
192a743e384SChau Ly
1933c5486d4SThu Nguyen## Default Sensor Update Interval Options
1943c5486d4SThu Nguyenoption(
1953c5486d4SThu Nguyen    'default-sensor-update-interval',
1963c5486d4SThu Nguyen    type: 'integer',
1973c5486d4SThu Nguyen    min: 1,
1983c5486d4SThu Nguyen    max: 4294967295,
1993c5486d4SThu Nguyen    description: '''The default sensor polling interval in milliseconds.
2003c5486d4SThu Nguyen                    The value will be used when the internal is not configured
2013c5486d4SThu Nguyen                    in the PLDM sensor PDRs use `updateInterval` field. `pldmd`
2023c5486d4SThu Nguyen                    will send `GetSensorReading` to get the PLDM sensor values
2033c5486d4SThu Nguyen                    of the monitoring terminus after each configured
2043c5486d4SThu Nguyen                    interval.''',
2059b402600SPatrick Williams    value: 999,
2063c5486d4SThu Nguyen)
207eac61a4bSGilbert Chen
208eac61a4bSGilbert Chen# Platform-mc configuration parameters
209eac61a4bSGilbert Chen
210eac61a4bSGilbert Chen## Sensor Polling Options
211eac61a4bSGilbert Chenoption(
212eac61a4bSGilbert Chen    'sensor-polling-time',
213eac61a4bSGilbert Chen    type: 'integer',
214eac61a4bSGilbert Chen    min: 1,
215eac61a4bSGilbert Chen    max: 10000,
216eac61a4bSGilbert Chen    description: '''The configured timeout in milliseconds of the common sensor
217eac61a4bSGilbert Chen                    polling timer of each terminus which will trigger the
218eac61a4bSGilbert Chen                    terminus sensor reading task. The task will check
219eac61a4bSGilbert Chen                    whether the sensor in the terminus sensors list need to
220eac61a4bSGilbert Chen                    be updated by comparing the sensor `updateInterval` with the
221eac61a4bSGilbert Chen                    interval between current timestamp and latest updated
222eac61a4bSGilbert Chen                    timestamp of the sensor. The task will send
223eac61a4bSGilbert Chen                    `GetSensorReading` if the sensor need to be updated.''',
2249b402600SPatrick Williams    value: 249,
225eac61a4bSGilbert Chen)
226