xref: /openbmc/pldm/meson.options (revision 9b402600ea4286a01b7eac313ecd98c7f6077d30)
1cbdc2723SGeorge Liu# PLDM daemon options
2*9b402600SPatrick Williamsoption('tests', type: 'feature', value: 'enabled', description: 'Build tests')
3cbdc2723SGeorge Liu
4cbdc2723SGeorge Liuoption(
5cbdc2723SGeorge Liu    'utilities',
6cbdc2723SGeorge Liu    type: 'feature',
7cbdc2723SGeorge Liu    value: 'enabled',
8*9b402600SPatrick Williams    description: 'Enable debug utilities',
9cbdc2723SGeorge Liu)
10cbdc2723SGeorge Liu
11cbdc2723SGeorge Liuoption(
12cbdc2723SGeorge Liu    'libpldmresponder',
13cbdc2723SGeorge Liu    type: 'feature',
14cbdc2723SGeorge Liu    value: 'enabled',
15*9b402600SPatrick Williams    description: 'Enable libpldmresponder',
16cbdc2723SGeorge Liu)
17cbdc2723SGeorge Liu
18cbdc2723SGeorge Liuoption(
19cbdc2723SGeorge Liu    'systemd',
20cbdc2723SGeorge Liu    type: 'feature',
21cbdc2723SGeorge Liu    value: 'enabled',
22*9b402600SPatrick 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'],
29*9b402600SPatrick 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
45*9b402600SPatrick 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
53*9b402600SPatrick 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,
62cbdc2723SGeorge Liu    value: 10,
63cbdc2723SGeorge Liu    description: '''The max number of pldm messages that can be stored in the
64*9b402600SPatrick 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
75*9b402600SPatrick 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
85*9b402600SPatrick 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
96*9b402600SPatrick 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,
105*9b402600SPatrick 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
117*9b402600SPatrick 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
128*9b402600SPatrick Williams                    requested by the FD, via RequestFirmwareData command''',
129cbdc2723SGeorge Liu)
130cbdc2723SGeorge Liu
13146f352edSArchana Kakani# Bios Attributes option
13246f352edSArchana Kakanioption(
13346f352edSArchana Kakani    'system-specific-bios-json',
13446f352edSArchana Kakani    type: 'feature',
13546f352edSArchana Kakani    value: 'disabled',
136*9b402600SPatrick Williams    description: 'Support for different set of bios attributes for different types of systems',
13746f352edSArchana Kakani)
13846f352edSArchana Kakani
139cbdc2723SGeorge Liu# PLDM Soft Power off options
140cbdc2723SGeorge Liuoption(
141cbdc2723SGeorge Liu    'softoff',
142cbdc2723SGeorge Liu    type: 'feature',
143cbdc2723SGeorge Liu    value: 'enabled',
144*9b402600SPatrick Williams    description: 'Build soft power off application',
145cbdc2723SGeorge Liu)
146cbdc2723SGeorge Liu
147cbdc2723SGeorge Liuoption(
148cbdc2723SGeorge Liu    'softoff-timeout-seconds',
149cbdc2723SGeorge Liu    type: 'integer',
150cbdc2723SGeorge Liu    value: 7200,
151*9b402600SPatrick Williams    description: 'softoff: Time to wait for host to gracefully shutdown',
152cbdc2723SGeorge Liu)
153cbdc2723SGeorge Liu
154cbdc2723SGeorge Liu# Vendor Specific Options
155cbdc2723SGeorge Liu
156cbdc2723SGeorge Liu## OEM IBM Options
157cbdc2723SGeorge Liuoption(
158cbdc2723SGeorge Liu    'oem-ibm',
159cbdc2723SGeorge Liu    type: 'feature',
160cbdc2723SGeorge Liu    value: 'enabled',
161*9b402600SPatrick Williams    description: 'Enable IBM OEM PLDM',
162cbdc2723SGeorge Liu)
163cbdc2723SGeorge Liu
164cbdc2723SGeorge Liuoption(
165cbdc2723SGeorge Liu    'oem-ibm-dma-maxsize',
166cbdc2723SGeorge Liu    type: 'integer',
167cbdc2723SGeorge Liu    min: 4096,
168cbdc2723SGeorge Liu    max: 16773120,
169cbdc2723SGeorge Liu    value: 8384512,
170*9b402600SPatrick Williams    description: 'OEM-IBM: max DMA size',
171cbdc2723SGeorge Liu)
1723c5486d4SThu Nguyen
173a743e384SChau Ly
174a743e384SChau Ly## OEM AMPERE Options
175a743e384SChau Lyoption(
176a743e384SChau Ly    'oem-ampere',
177a743e384SChau Ly    type: 'feature',
178a743e384SChau Ly    description: 'Enable AMPERE OEM PLDM',
17979e097cbSPatrick Williams    value: 'enabled',
180a743e384SChau Ly)
181a743e384SChau Ly
1823c5486d4SThu Nguyen## Default Sensor Update Interval Options
1833c5486d4SThu Nguyenoption(
1843c5486d4SThu Nguyen    'default-sensor-update-interval',
1853c5486d4SThu Nguyen    type: 'integer',
1863c5486d4SThu Nguyen    min: 1,
1873c5486d4SThu Nguyen    max: 4294967295,
1883c5486d4SThu Nguyen    description: '''The default sensor polling interval in milliseconds.
1893c5486d4SThu Nguyen                    The value will be used when the internal is not configured
1903c5486d4SThu Nguyen                    in the PLDM sensor PDRs use `updateInterval` field. `pldmd`
1913c5486d4SThu Nguyen                    will send `GetSensorReading` to get the PLDM sensor values
1923c5486d4SThu Nguyen                    of the monitoring terminus after each configured
1933c5486d4SThu Nguyen                    interval.''',
194*9b402600SPatrick Williams    value: 999,
1953c5486d4SThu Nguyen)
196eac61a4bSGilbert Chen
197eac61a4bSGilbert Chen# Platform-mc configuration parameters
198eac61a4bSGilbert Chen
199eac61a4bSGilbert Chen## Sensor Polling Options
200eac61a4bSGilbert Chenoption(
201eac61a4bSGilbert Chen    'sensor-polling-time',
202eac61a4bSGilbert Chen    type: 'integer',
203eac61a4bSGilbert Chen    min: 1,
204eac61a4bSGilbert Chen    max: 10000,
205eac61a4bSGilbert Chen    description: '''The configured timeout in milliseconds of the common sensor
206eac61a4bSGilbert Chen                    polling timer of each terminus which will trigger the
207eac61a4bSGilbert Chen                    terminus sensor reading task. The task will check
208eac61a4bSGilbert Chen                    whether the sensor in the terminus sensors list need to
209eac61a4bSGilbert Chen                    be updated by comparing the sensor `updateInterval` with the
210eac61a4bSGilbert Chen                    interval between current timestamp and latest updated
211eac61a4bSGilbert Chen                    timestamp of the sensor. The task will send
212eac61a4bSGilbert Chen                    `GetSensorReading` if the sensor need to be updated.''',
213*9b402600SPatrick Williams    value: 249,
214eac61a4bSGilbert Chen)
215