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