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