xref: /openbmc/pldm/meson.options (revision 46f352ed)
1cbdc2723SGeorge Liu# PLDM daemon options
2cbdc2723SGeorge Liuoption(
3cbdc2723SGeorge Liu    'tests',
4cbdc2723SGeorge Liu    type: 'feature',
5cbdc2723SGeorge Liu    value: 'enabled',
6cbdc2723SGeorge Liu    description: 'Build tests'
7cbdc2723SGeorge Liu)
8cbdc2723SGeorge Liu
9cbdc2723SGeorge Liuoption(
10cbdc2723SGeorge Liu    'oe-sdk',
11cbdc2723SGeorge Liu    type: 'feature',
127bc0a15eSPatrick Williams    value: 'disabled',
13cbdc2723SGeorge Liu    description: 'Enable OE SDK'
14cbdc2723SGeorge Liu)
15cbdc2723SGeorge Liu
16cbdc2723SGeorge Liuoption(
17cbdc2723SGeorge Liu    'utilities',
18cbdc2723SGeorge Liu    type: 'feature',
19cbdc2723SGeorge Liu    value: 'enabled',
20cbdc2723SGeorge Liu    description: 'Enable debug utilities'
21cbdc2723SGeorge Liu)
22cbdc2723SGeorge Liu
23cbdc2723SGeorge Liuoption(
24cbdc2723SGeorge Liu    'libpldmresponder',
25cbdc2723SGeorge Liu    type: 'feature',
26cbdc2723SGeorge Liu    value: 'enabled',
27cbdc2723SGeorge Liu    description: 'Enable libpldmresponder'
28cbdc2723SGeorge Liu)
29cbdc2723SGeorge Liu
30cbdc2723SGeorge Liuoption(
31cbdc2723SGeorge Liu    'systemd',
32cbdc2723SGeorge Liu    type: 'feature',
33cbdc2723SGeorge Liu    value: 'enabled',
34cbdc2723SGeorge Liu    description: 'Include systemd support'
35cbdc2723SGeorge Liu)
36cbdc2723SGeorge Liu
371ed5f7a6SRashmica Guptaoption(
381ed5f7a6SRashmica Gupta    'transport-implementation',
391ed5f7a6SRashmica Gupta    type: 'combo',
401ed5f7a6SRashmica Gupta    choices: ['mctp-demux', 'af-mctp'],
411ed5f7a6SRashmica Gupta    description: 'transport via af-mctp or mctp-demux'
421ed5f7a6SRashmica Gupta)
431ed5f7a6SRashmica Gupta
44cbdc2723SGeorge Liu# As per PLDM spec DSP0240 version 1.1.0, in Timing Specification for PLDM messages (Table 6),
45cbdc2723SGeorge Liu# the instance ID for a given response will expire and become reusable if a response has not been
46cbdc2723SGeorge Liu# received within a maximum of 6 seconds after a request is sent. By setting the dbus timeout
47cbdc2723SGeorge Liu# value to 5 seconds we ensure that PLDM does not wait for a response from a dbus call even after
48cbdc2723SGeorge Liu# the instance ID has expired. If the option is set to 5 seconds, any dbus call originated from
49cbdc2723SGeorge Liu# PLDM daemon will timeout after 5 seconds.
50cbdc2723SGeorge Liuoption(
51cbdc2723SGeorge Liu    'dbus-timeout-value',
52cbdc2723SGeorge Liu    type: 'integer',
53cbdc2723SGeorge Liu    min: 3,
54cbdc2723SGeorge Liu    max: 10,
55cbdc2723SGeorge Liu    value: 5,
56cbdc2723SGeorge Liu    description: '''The amount of time pldm waits to get a response for a dbus
57cbdc2723SGeorge Liu                    message before timing out'''
58cbdc2723SGeorge Liu)
59cbdc2723SGeorge Liu
60cbdc2723SGeorge Liuoption(
61cbdc2723SGeorge Liu    'heartbeat-timeout-seconds',
62cbdc2723SGeorge Liu    type: 'integer',
63cbdc2723SGeorge Liu    value: 120,
64cbdc2723SGeorge Liu    description: '''The amount of time host waits for BMC to respond to pings
65cbdc2723SGeorge Liu                    from host, as part of host-bmc surveillance'''
66cbdc2723SGeorge Liu)
67cbdc2723SGeorge Liu
68cbdc2723SGeorge Liu# Flight Recorder for PLDM Daemon
69cbdc2723SGeorge Liuoption(
70cbdc2723SGeorge Liu    'flightrecorder-max-entries',
71cbdc2723SGeorge Liu    type:'integer',
72cbdc2723SGeorge Liu    min:0,
73cbdc2723SGeorge Liu    max:30,
74cbdc2723SGeorge Liu    value: 10,
75cbdc2723SGeorge Liu    description: '''The max number of pldm messages that can be stored in the
76cbdc2723SGeorge Liu                    recorder, this feature will be disabled if it is set to 0'''
77cbdc2723SGeorge Liu)
78cbdc2723SGeorge Liu
79cbdc2723SGeorge Liu# PLDM Daemon Terminus options
80cbdc2723SGeorge Liuoption(
81cbdc2723SGeorge Liu    'terminus-id',
82cbdc2723SGeorge Liu    type:'integer',
83cbdc2723SGeorge Liu    min:0,
84cbdc2723SGeorge Liu    max: 255,
85cbdc2723SGeorge Liu    value:1,
86cbdc2723SGeorge Liu    description: '''The terminus id value of the device that is running this
87cbdc2723SGeorge Liu                    pldm stack'''
88cbdc2723SGeorge Liu)
89cbdc2723SGeorge Liu
90cbdc2723SGeorge Liuoption(
91cbdc2723SGeorge Liu    'terminus-handle',
92cbdc2723SGeorge Liu    type:'integer',
93cbdc2723SGeorge Liu    min:0,
94cbdc2723SGeorge Liu    max:65535,
95cbdc2723SGeorge Liu    value:1,
96cbdc2723SGeorge Liu    description: '''The terminus handle value of the device that is running this
97cbdc2723SGeorge Liu                    pldm stack'''
98cbdc2723SGeorge Liu)
99cbdc2723SGeorge Liu
100cbdc2723SGeorge Liu# Timing specification options for PLDM messages
101cbdc2723SGeorge Liuoption(
102cbdc2723SGeorge Liu    'number-of-request-retries',
103cbdc2723SGeorge Liu    type: 'integer',
104cbdc2723SGeorge Liu    min: 2,
105cbdc2723SGeorge Liu    max: 30,
106cbdc2723SGeorge Liu    value: 2,
107cbdc2723SGeorge Liu    description: '''The number of times a requester is obligated to retry a
108cbdc2723SGeorge Liu                    request'''
109cbdc2723SGeorge Liu)
110cbdc2723SGeorge Liu
111cbdc2723SGeorge Liuoption(
112cbdc2723SGeorge Liu    'instance-id-expiration-interval',
113cbdc2723SGeorge Liu    type: 'integer',
114cbdc2723SGeorge Liu    min: 5,
115cbdc2723SGeorge Liu    max: 6,
116cbdc2723SGeorge Liu    value: 5,
117cbdc2723SGeorge Liu    description: 'Instance ID expiration interval in seconds'
118cbdc2723SGeorge Liu)
119cbdc2723SGeorge Liu
120cbdc2723SGeorge Liu# Default response-time-out set to 2 seconds to facilitate a minimum retry of
121cbdc2723SGeorge Liu# the request of 2.
122cbdc2723SGeorge Liuoption(
123cbdc2723SGeorge Liu    'response-time-out',
124cbdc2723SGeorge Liu    type: 'integer',
125cbdc2723SGeorge Liu    min: 300,
126cbdc2723SGeorge Liu    max: 4800,
127cbdc2723SGeorge Liu    value: 2000,
128cbdc2723SGeorge Liu    description: '''The amount of time a requester has to wait for a response
129cbdc2723SGeorge Liu                    message in milliseconds'''
130cbdc2723SGeorge Liu)
131cbdc2723SGeorge Liu
132cbdc2723SGeorge Liu# Firmware update configuration parameters
133cbdc2723SGeorge Liuoption(
134cbdc2723SGeorge Liu    'maximum-transfer-size',
135cbdc2723SGeorge Liu    type: 'integer',
136cbdc2723SGeorge Liu    min: 16,
137cbdc2723SGeorge Liu    max: 4294967295,
138cbdc2723SGeorge Liu    value: 4096,
139cbdc2723SGeorge Liu    description: '''Maximum size in bytes of the variable payload allowed to be
140cbdc2723SGeorge Liu                    requested by the FD, via RequestFirmwareData command'''
141cbdc2723SGeorge Liu)
142cbdc2723SGeorge Liu
143*46f352edSArchana Kakani# Bios Attributes option
144*46f352edSArchana Kakanioption(
145*46f352edSArchana Kakani    'system-specific-bios-json',
146*46f352edSArchana Kakani    type : 'feature',
147*46f352edSArchana Kakani    value: 'disabled',
148*46f352edSArchana Kakani    description : 'Support for different set of bios attributes for different types of systems'
149*46f352edSArchana Kakani)
150*46f352edSArchana Kakani
151cbdc2723SGeorge Liu# PLDM Soft Power off options
152cbdc2723SGeorge Liuoption(
153cbdc2723SGeorge Liu    'softoff',
154cbdc2723SGeorge Liu    type: 'feature',
155cbdc2723SGeorge Liu    value: 'enabled',
156cbdc2723SGeorge Liu    description: 'Build soft power off application'
157cbdc2723SGeorge Liu)
158cbdc2723SGeorge Liu
159cbdc2723SGeorge Liuoption(
160cbdc2723SGeorge Liu    'softoff-timeout-seconds',
161cbdc2723SGeorge Liu    type: 'integer',
162cbdc2723SGeorge Liu    value: 7200,
163cbdc2723SGeorge Liu    description: 'softoff: Time to wait for host to gracefully shutdown'
164cbdc2723SGeorge Liu)
165cbdc2723SGeorge Liu
166cbdc2723SGeorge Liu# Vendor Specific Options
167cbdc2723SGeorge Liu
168cbdc2723SGeorge Liu## OEM IBM Options
169cbdc2723SGeorge Liuoption(
170cbdc2723SGeorge Liu    'oem-ibm',
171cbdc2723SGeorge Liu    type: 'feature',
172cbdc2723SGeorge Liu    value: 'enabled',
173cbdc2723SGeorge Liu    description: 'Enable IBM OEM PLDM'
174cbdc2723SGeorge Liu)
175cbdc2723SGeorge Liu
176cbdc2723SGeorge Liuoption(
177cbdc2723SGeorge Liu    'oem-ibm-dma-maxsize',
178cbdc2723SGeorge Liu    type: 'integer',
179cbdc2723SGeorge Liu    min:4096,
180cbdc2723SGeorge Liu    max: 16773120,
181cbdc2723SGeorge Liu    value: 8384512,
182cbdc2723SGeorge Liu    description: 'OEM-IBM: max DMA size'
183cbdc2723SGeorge Liu)
184