diff options
author | Jing Huang <huangj@brocade.com> | 2009-09-23 20:46:15 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-10-02 10:47:40 -0400 |
commit | 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e (patch) | |
tree | df76910891c6b92bf23c06c84955bf600c9d7573 /drivers/scsi/bfa/bfa_log_module.c | |
parent | 5415907af1f5ef80c95147bacbd321b0d4236dd5 (diff) |
[SCSI] bfa: Brocade BFA FC SCSI driver
Add new driver for Brocade Hardware
Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfa_log_module.c')
-rw-r--r-- | drivers/scsi/bfa/bfa_log_module.c | 451 |
1 files changed, 451 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfa_log_module.c b/drivers/scsi/bfa/bfa_log_module.c new file mode 100644 index 000000000000..5c154d341d69 --- /dev/null +++ b/drivers/scsi/bfa/bfa_log_module.c | |||
@@ -0,0 +1,451 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2005-2009 Brocade Communications Systems, Inc. | ||
3 | * All rights reserved | ||
4 | * www.brocade.com | ||
5 | * | ||
6 | * Linux driver for Brocade Fibre Channel Host Bus Adapter. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify it | ||
9 | * under the terms of the GNU General Public License (GPL) Version 2 as | ||
10 | * published by the Free Software Foundation | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, but | ||
13 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
15 | * General Public License for more details. | ||
16 | */ | ||
17 | |||
18 | #include <cs/bfa_log.h> | ||
19 | #include <aen/bfa_aen_adapter.h> | ||
20 | #include <aen/bfa_aen_audit.h> | ||
21 | #include <aen/bfa_aen_ethport.h> | ||
22 | #include <aen/bfa_aen_ioc.h> | ||
23 | #include <aen/bfa_aen_itnim.h> | ||
24 | #include <aen/bfa_aen_lport.h> | ||
25 | #include <aen/bfa_aen_port.h> | ||
26 | #include <aen/bfa_aen_rport.h> | ||
27 | #include <log/bfa_log_fcs.h> | ||
28 | #include <log/bfa_log_hal.h> | ||
29 | #include <log/bfa_log_linux.h> | ||
30 | #include <log/bfa_log_wdrv.h> | ||
31 | |||
32 | struct bfa_log_msgdef_s bfa_log_msg_array[] = { | ||
33 | |||
34 | |||
35 | /* messages define for BFA_AEN_CAT_ADAPTER Module */ | ||
36 | {BFA_AEN_ADAPTER_ADD, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
37 | "BFA_AEN_ADAPTER_ADD", | ||
38 | "New adapter found: SN = %s, base port WWN = %s.", | ||
39 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | 0), 2}, | ||
40 | |||
41 | {BFA_AEN_ADAPTER_REMOVE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
42 | BFA_LOG_WARNING, "BFA_AEN_ADAPTER_REMOVE", | ||
43 | "Adapter removed: SN = %s.", | ||
44 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
45 | |||
46 | |||
47 | |||
48 | |||
49 | /* messages define for BFA_AEN_CAT_AUDIT Module */ | ||
50 | {BFA_AEN_AUDIT_AUTH_ENABLE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
51 | BFA_LOG_INFO, "BFA_AEN_AUDIT_AUTH_ENABLE", | ||
52 | "Authentication enabled for base port: WWN = %s.", | ||
53 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
54 | |||
55 | {BFA_AEN_AUDIT_AUTH_DISABLE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
56 | BFA_LOG_INFO, "BFA_AEN_AUDIT_AUTH_DISABLE", | ||
57 | "Authentication disabled for base port: WWN = %s.", | ||
58 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
59 | |||
60 | |||
61 | |||
62 | |||
63 | /* messages define for BFA_AEN_CAT_ETHPORT Module */ | ||
64 | {BFA_AEN_ETHPORT_LINKUP, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
65 | "BFA_AEN_ETHPORT_LINKUP", | ||
66 | "Base port ethernet linkup: mac = %s.", | ||
67 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
68 | |||
69 | {BFA_AEN_ETHPORT_LINKDOWN, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
70 | "BFA_AEN_ETHPORT_LINKDOWN", | ||
71 | "Base port ethernet linkdown: mac = %s.", | ||
72 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
73 | |||
74 | {BFA_AEN_ETHPORT_ENABLE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
75 | "BFA_AEN_ETHPORT_ENABLE", | ||
76 | "Base port ethernet interface enabled: mac = %s.", | ||
77 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
78 | |||
79 | {BFA_AEN_ETHPORT_DISABLE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
80 | "BFA_AEN_ETHPORT_DISABLE", | ||
81 | "Base port ethernet interface disabled: mac = %s.", | ||
82 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
83 | |||
84 | |||
85 | |||
86 | |||
87 | /* messages define for BFA_AEN_CAT_IOC Module */ | ||
88 | {BFA_AEN_IOC_HBGOOD, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
89 | "BFA_AEN_IOC_HBGOOD", | ||
90 | "Heart Beat of IOC %d is good.", | ||
91 | ((BFA_LOG_D << BFA_LOG_ARG0) | 0), 1}, | ||
92 | |||
93 | {BFA_AEN_IOC_HBFAIL, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_CRITICAL, | ||
94 | "BFA_AEN_IOC_HBFAIL", | ||
95 | "Heart Beat of IOC %d has failed.", | ||
96 | ((BFA_LOG_D << BFA_LOG_ARG0) | 0), 1}, | ||
97 | |||
98 | {BFA_AEN_IOC_ENABLE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
99 | "BFA_AEN_IOC_ENABLE", | ||
100 | "IOC %d is enabled.", | ||
101 | ((BFA_LOG_D << BFA_LOG_ARG0) | 0), 1}, | ||
102 | |||
103 | {BFA_AEN_IOC_DISABLE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
104 | "BFA_AEN_IOC_DISABLE", | ||
105 | "IOC %d is disabled.", | ||
106 | ((BFA_LOG_D << BFA_LOG_ARG0) | 0), 1}, | ||
107 | |||
108 | {BFA_AEN_IOC_FWMISMATCH, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
109 | BFA_LOG_CRITICAL, "BFA_AEN_IOC_FWMISMATCH", | ||
110 | "Running firmware version is incompatible with the driver version.", | ||
111 | (0), 0}, | ||
112 | |||
113 | |||
114 | |||
115 | |||
116 | /* messages define for BFA_AEN_CAT_ITNIM Module */ | ||
117 | {BFA_AEN_ITNIM_ONLINE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
118 | "BFA_AEN_ITNIM_ONLINE", | ||
119 | "Target (WWN = %s) is online for initiator (WWN = %s).", | ||
120 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | 0), 2}, | ||
121 | |||
122 | {BFA_AEN_ITNIM_OFFLINE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
123 | "BFA_AEN_ITNIM_OFFLINE", | ||
124 | "Target (WWN = %s) offlined by initiator (WWN = %s).", | ||
125 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | 0), 2}, | ||
126 | |||
127 | {BFA_AEN_ITNIM_DISCONNECT, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
128 | BFA_LOG_ERROR, "BFA_AEN_ITNIM_DISCONNECT", | ||
129 | "Target (WWN = %s) connectivity lost for initiator (WWN = %s).", | ||
130 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | 0), 2}, | ||
131 | |||
132 | |||
133 | |||
134 | |||
135 | /* messages define for BFA_AEN_CAT_LPORT Module */ | ||
136 | {BFA_AEN_LPORT_NEW, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
137 | "BFA_AEN_LPORT_NEW", | ||
138 | "New logical port created: WWN = %s, Role = %s.", | ||
139 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | 0), 2}, | ||
140 | |||
141 | {BFA_AEN_LPORT_DELETE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
142 | "BFA_AEN_LPORT_DELETE", | ||
143 | "Logical port deleted: WWN = %s, Role = %s.", | ||
144 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | 0), 2}, | ||
145 | |||
146 | {BFA_AEN_LPORT_ONLINE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
147 | "BFA_AEN_LPORT_ONLINE", | ||
148 | "Logical port online: WWN = %s, Role = %s.", | ||
149 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | 0), 2}, | ||
150 | |||
151 | {BFA_AEN_LPORT_OFFLINE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
152 | "BFA_AEN_LPORT_OFFLINE", | ||
153 | "Logical port taken offline: WWN = %s, Role = %s.", | ||
154 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | 0), 2}, | ||
155 | |||
156 | {BFA_AEN_LPORT_DISCONNECT, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
157 | BFA_LOG_ERROR, "BFA_AEN_LPORT_DISCONNECT", | ||
158 | "Logical port lost fabric connectivity: WWN = %s, Role = %s.", | ||
159 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | 0), 2}, | ||
160 | |||
161 | {BFA_AEN_LPORT_NEW_PROP, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
162 | "BFA_AEN_LPORT_NEW_PROP", | ||
163 | "New virtual port created using proprietary interface: WWN = %s, Role = %s.", | ||
164 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | 0), 2}, | ||
165 | |||
166 | {BFA_AEN_LPORT_DELETE_PROP, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
167 | BFA_LOG_INFO, "BFA_AEN_LPORT_DELETE_PROP", | ||
168 | "Virtual port deleted using proprietary interface: WWN = %s, Role = %s.", | ||
169 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | 0), 2}, | ||
170 | |||
171 | {BFA_AEN_LPORT_NEW_STANDARD, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
172 | BFA_LOG_INFO, "BFA_AEN_LPORT_NEW_STANDARD", | ||
173 | "New virtual port created using standard interface: WWN = %s, Role = %s.", | ||
174 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | 0), 2}, | ||
175 | |||
176 | {BFA_AEN_LPORT_DELETE_STANDARD, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
177 | BFA_LOG_INFO, "BFA_AEN_LPORT_DELETE_STANDARD", | ||
178 | "Virtual port deleted using standard interface: WWN = %s, Role = %s.", | ||
179 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | 0), 2}, | ||
180 | |||
181 | {BFA_AEN_LPORT_NPIV_DUP_WWN, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
182 | BFA_LOG_WARNING, "BFA_AEN_LPORT_NPIV_DUP_WWN", | ||
183 | "Virtual port login failed. Duplicate WWN = %s reported by fabric.", | ||
184 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
185 | |||
186 | {BFA_AEN_LPORT_NPIV_FABRIC_MAX, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
187 | BFA_LOG_WARNING, "BFA_AEN_LPORT_NPIV_FABRIC_MAX", | ||
188 | "Virtual port (WWN = %s) login failed. Max NPIV ports already exist in" | ||
189 | " fabric/fport.", | ||
190 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
191 | |||
192 | {BFA_AEN_LPORT_NPIV_UNKNOWN, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
193 | BFA_LOG_WARNING, "BFA_AEN_LPORT_NPIV_UNKNOWN", | ||
194 | "Virtual port (WWN = %s) login failed.", | ||
195 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
196 | |||
197 | |||
198 | |||
199 | |||
200 | /* messages define for BFA_AEN_CAT_PORT Module */ | ||
201 | {BFA_AEN_PORT_ONLINE, BFA_LOG_ATTR_NONE, BFA_LOG_INFO, "BFA_AEN_PORT_ONLINE", | ||
202 | "Base port online: WWN = %s.", | ||
203 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
204 | |||
205 | {BFA_AEN_PORT_OFFLINE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_WARNING, | ||
206 | "BFA_AEN_PORT_OFFLINE", | ||
207 | "Base port offline: WWN = %s.", | ||
208 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
209 | |||
210 | {BFA_AEN_PORT_RLIR, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
211 | "BFA_AEN_PORT_RLIR", | ||
212 | "RLIR event not supported.", | ||
213 | (0), 0}, | ||
214 | |||
215 | {BFA_AEN_PORT_SFP_INSERT, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
216 | "BFA_AEN_PORT_SFP_INSERT", | ||
217 | "New SFP found: WWN/MAC = %s.", | ||
218 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
219 | |||
220 | {BFA_AEN_PORT_SFP_REMOVE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
221 | BFA_LOG_WARNING, "BFA_AEN_PORT_SFP_REMOVE", | ||
222 | "SFP removed: WWN/MAC = %s.", | ||
223 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
224 | |||
225 | {BFA_AEN_PORT_SFP_POM, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_WARNING, | ||
226 | "BFA_AEN_PORT_SFP_POM", | ||
227 | "SFP POM level to %s: WWN/MAC = %s.", | ||
228 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | 0), 2}, | ||
229 | |||
230 | {BFA_AEN_PORT_ENABLE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
231 | "BFA_AEN_PORT_ENABLE", | ||
232 | "Base port enabled: WWN = %s.", | ||
233 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
234 | |||
235 | {BFA_AEN_PORT_DISABLE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
236 | "BFA_AEN_PORT_DISABLE", | ||
237 | "Base port disabled: WWN = %s.", | ||
238 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
239 | |||
240 | {BFA_AEN_PORT_AUTH_ON, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
241 | "BFA_AEN_PORT_AUTH_ON", | ||
242 | "Authentication successful for base port: WWN = %s.", | ||
243 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
244 | |||
245 | {BFA_AEN_PORT_AUTH_OFF, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_ERROR, | ||
246 | "BFA_AEN_PORT_AUTH_OFF", | ||
247 | "Authentication unsuccessful for base port: WWN = %s.", | ||
248 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
249 | |||
250 | {BFA_AEN_PORT_DISCONNECT, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_ERROR, | ||
251 | "BFA_AEN_PORT_DISCONNECT", | ||
252 | "Base port (WWN = %s) lost fabric connectivity.", | ||
253 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
254 | |||
255 | {BFA_AEN_PORT_QOS_NEG, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_WARNING, | ||
256 | "BFA_AEN_PORT_QOS_NEG", | ||
257 | "QOS negotiation failed for base port: WWN = %s.", | ||
258 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
259 | |||
260 | {BFA_AEN_PORT_FABRIC_NAME_CHANGE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
261 | BFA_LOG_WARNING, "BFA_AEN_PORT_FABRIC_NAME_CHANGE", | ||
262 | "Base port WWN = %s, Fabric WWN = %s.", | ||
263 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | 0), 2}, | ||
264 | |||
265 | {BFA_AEN_PORT_SFP_ACCESS_ERROR, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
266 | BFA_LOG_WARNING, "BFA_AEN_PORT_SFP_ACCESS_ERROR", | ||
267 | "SFP access error: WWN/MAC = %s.", | ||
268 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
269 | |||
270 | {BFA_AEN_PORT_SFP_UNSUPPORT, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
271 | BFA_LOG_WARNING, "BFA_AEN_PORT_SFP_UNSUPPORT", | ||
272 | "Unsupported SFP found: WWN/MAC = %s.", | ||
273 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
274 | |||
275 | |||
276 | |||
277 | |||
278 | /* messages define for BFA_AEN_CAT_RPORT Module */ | ||
279 | {BFA_AEN_RPORT_ONLINE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
280 | "BFA_AEN_RPORT_ONLINE", | ||
281 | "Remote port (WWN = %s) online for logical port (WWN = %s).", | ||
282 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | 0), 2}, | ||
283 | |||
284 | {BFA_AEN_RPORT_OFFLINE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
285 | "BFA_AEN_RPORT_OFFLINE", | ||
286 | "Remote port (WWN = %s) offlined by logical port (WWN = %s).", | ||
287 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | 0), 2}, | ||
288 | |||
289 | {BFA_AEN_RPORT_DISCONNECT, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
290 | BFA_LOG_ERROR, "BFA_AEN_RPORT_DISCONNECT", | ||
291 | "Remote port (WWN = %s) connectivity lost for logical port (WWN = %s).", | ||
292 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | 0), 2}, | ||
293 | |||
294 | {BFA_AEN_RPORT_QOS_PRIO, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
295 | "BFA_AEN_RPORT_QOS_PRIO", | ||
296 | "QOS priority changed to %s: RPWWN = %s and LPWWN = %s.", | ||
297 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | | ||
298 | (BFA_LOG_S << BFA_LOG_ARG2) | 0), 3}, | ||
299 | |||
300 | {BFA_AEN_RPORT_QOS_FLOWID, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
301 | "BFA_AEN_RPORT_QOS_FLOWID", | ||
302 | "QOS flow ID changed to %d: RPWWN = %s and LPWWN = %s.", | ||
303 | ((BFA_LOG_D << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | | ||
304 | (BFA_LOG_S << BFA_LOG_ARG2) | 0), 3}, | ||
305 | |||
306 | |||
307 | |||
308 | |||
309 | /* messages define for FCS Module */ | ||
310 | {BFA_LOG_FCS_FABRIC_NOSWITCH, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
311 | BFA_LOG_INFO, "FCS_FABRIC_NOSWITCH", | ||
312 | "No switched fabric presence is detected.", | ||
313 | (0), 0}, | ||
314 | |||
315 | {BFA_LOG_FCS_FABRIC_ISOLATED, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
316 | BFA_LOG_INFO, "FCS_FABRIC_ISOLATED", | ||
317 | "Port is isolated due to VF_ID mismatch. PWWN: %s, Port VF_ID: %04x and" | ||
318 | " switch port VF_ID: %04x.", | ||
319 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_X << BFA_LOG_ARG1) | | ||
320 | (BFA_LOG_X << BFA_LOG_ARG2) | 0), 3}, | ||
321 | |||
322 | |||
323 | |||
324 | |||
325 | /* messages define for HAL Module */ | ||
326 | {BFA_LOG_HAL_ASSERT, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_ERROR, | ||
327 | "HAL_ASSERT", | ||
328 | "Assertion failure: %s:%d: %s", | ||
329 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_D << BFA_LOG_ARG1) | | ||
330 | (BFA_LOG_S << BFA_LOG_ARG2) | 0), 3}, | ||
331 | |||
332 | {BFA_LOG_HAL_HEARTBEAT_FAILURE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
333 | BFA_LOG_CRITICAL, "HAL_HEARTBEAT_FAILURE", | ||
334 | "Firmware heartbeat failure at %d", | ||
335 | ((BFA_LOG_D << BFA_LOG_ARG0) | 0), 1}, | ||
336 | |||
337 | {BFA_LOG_HAL_FCPIM_PARM_INVALID, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
338 | BFA_LOG_INFO, "HAL_FCPIM_PARM_INVALID", | ||
339 | "Driver configuration %s value %d is invalid. Value should be within" | ||
340 | " %d and %d.", | ||
341 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_D << BFA_LOG_ARG1) | | ||
342 | (BFA_LOG_D << BFA_LOG_ARG2) | (BFA_LOG_D << BFA_LOG_ARG3) | 0), 4}, | ||
343 | |||
344 | {BFA_LOG_HAL_SM_ASSERT, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_ERROR, | ||
345 | "HAL_SM_ASSERT", | ||
346 | "SM Assertion failure: %s:%d: event = %d", | ||
347 | ((BFA_LOG_S << BFA_LOG_ARG0) | (BFA_LOG_D << BFA_LOG_ARG1) | | ||
348 | (BFA_LOG_D << BFA_LOG_ARG2) | 0), 3}, | ||
349 | |||
350 | |||
351 | |||
352 | |||
353 | /* messages define for LINUX Module */ | ||
354 | {BFA_LOG_LINUX_DEVICE_CLAIMED, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
355 | BFA_LOG_INFO, "LINUX_DEVICE_CLAIMED", | ||
356 | "bfa device at %s claimed.", | ||
357 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
358 | |||
359 | {BFA_LOG_LINUX_HASH_INIT_FAILED, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
360 | BFA_LOG_INFO, "LINUX_HASH_INIT_FAILED", | ||
361 | "Hash table initialization failure for the port %s.", | ||
362 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
363 | |||
364 | {BFA_LOG_LINUX_SYSFS_FAILED, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
365 | BFA_LOG_INFO, "LINUX_SYSFS_FAILED", | ||
366 | "sysfs file creation failure for the port %s.", | ||
367 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
368 | |||
369 | {BFA_LOG_LINUX_MEM_ALLOC_FAILED, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
370 | BFA_LOG_INFO, "LINUX_MEM_ALLOC_FAILED", | ||
371 | "Memory allocation failed: %s. ", | ||
372 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
373 | |||
374 | {BFA_LOG_LINUX_DRIVER_REGISTRATION_FAILED, | ||
375 | BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
376 | "LINUX_DRIVER_REGISTRATION_FAILED", | ||
377 | "%s. ", | ||
378 | ((BFA_LOG_S << BFA_LOG_ARG0) | 0), 1}, | ||
379 | |||
380 | {BFA_LOG_LINUX_ITNIM_FREE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
381 | "LINUX_ITNIM_FREE", | ||
382 | "scsi%d: FCID: %s WWPN: %s", | ||
383 | ((BFA_LOG_D << BFA_LOG_ARG0) | (BFA_LOG_S << BFA_LOG_ARG1) | | ||
384 | (BFA_LOG_S << BFA_LOG_ARG2) | 0), 3}, | ||
385 | |||
386 | {BFA_LOG_LINUX_ITNIM_ONLINE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
387 | BFA_LOG_INFO, "LINUX_ITNIM_ONLINE", | ||
388 | "Target: %d:0:%d FCID: %s WWPN: %s", | ||
389 | ((BFA_LOG_D << BFA_LOG_ARG0) | (BFA_LOG_D << BFA_LOG_ARG1) | | ||
390 | (BFA_LOG_S << BFA_LOG_ARG2) | (BFA_LOG_S << BFA_LOG_ARG3) | 0), 4}, | ||
391 | |||
392 | {BFA_LOG_LINUX_ITNIM_OFFLINE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
393 | BFA_LOG_INFO, "LINUX_ITNIM_OFFLINE", | ||
394 | "Target: %d:0:%d FCID: %s WWPN: %s", | ||
395 | ((BFA_LOG_D << BFA_LOG_ARG0) | (BFA_LOG_D << BFA_LOG_ARG1) | | ||
396 | (BFA_LOG_S << BFA_LOG_ARG2) | (BFA_LOG_S << BFA_LOG_ARG3) | 0), 4}, | ||
397 | |||
398 | {BFA_LOG_LINUX_SCSI_HOST_FREE, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
399 | BFA_LOG_INFO, "LINUX_SCSI_HOST_FREE", | ||
400 | "Free scsi%d", | ||
401 | ((BFA_LOG_D << BFA_LOG_ARG0) | 0), 1}, | ||
402 | |||
403 | {BFA_LOG_LINUX_SCSI_ABORT, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, BFA_LOG_INFO, | ||
404 | "LINUX_SCSI_ABORT", | ||
405 | "scsi%d: abort cmnd %p, iotag %x", | ||
406 | ((BFA_LOG_D << BFA_LOG_ARG0) | (BFA_LOG_P << BFA_LOG_ARG1) | | ||
407 | (BFA_LOG_X << BFA_LOG_ARG2) | 0), 3}, | ||
408 | |||
409 | {BFA_LOG_LINUX_SCSI_ABORT_COMP, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
410 | BFA_LOG_INFO, "LINUX_SCSI_ABORT_COMP", | ||
411 | "scsi%d: complete abort 0x%p, iotag 0x%x", | ||
412 | ((BFA_LOG_D << BFA_LOG_ARG0) | (BFA_LOG_P << BFA_LOG_ARG1) | | ||
413 | (BFA_LOG_X << BFA_LOG_ARG2) | 0), 3}, | ||
414 | |||
415 | |||
416 | |||
417 | |||
418 | /* messages define for WDRV Module */ | ||
419 | {BFA_LOG_WDRV_IOC_INIT_ERROR, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
420 | BFA_LOG_INFO, "WDRV_IOC_INIT_ERROR", | ||
421 | "IOC initialization has failed.", | ||
422 | (0), 0}, | ||
423 | |||
424 | {BFA_LOG_WDRV_IOC_INTERNAL_ERROR, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
425 | BFA_LOG_INFO, "WDRV_IOC_INTERNAL_ERROR", | ||
426 | "IOC internal error. ", | ||
427 | (0), 0}, | ||
428 | |||
429 | {BFA_LOG_WDRV_IOC_START_ERROR, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
430 | BFA_LOG_INFO, "WDRV_IOC_START_ERROR", | ||
431 | "IOC could not be started. ", | ||
432 | (0), 0}, | ||
433 | |||
434 | {BFA_LOG_WDRV_IOC_STOP_ERROR, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
435 | BFA_LOG_INFO, "WDRV_IOC_STOP_ERROR", | ||
436 | "IOC could not be stopped. ", | ||
437 | (0), 0}, | ||
438 | |||
439 | {BFA_LOG_WDRV_INSUFFICIENT_RESOURCES, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
440 | BFA_LOG_INFO, "WDRV_INSUFFICIENT_RESOURCES", | ||
441 | "Insufficient memory. ", | ||
442 | (0), 0}, | ||
443 | |||
444 | {BFA_LOG_WDRV_BASE_ADDRESS_MAP_ERROR, BFA_LOG_ATTR_NONE | BFA_LOG_ATTR_LOG, | ||
445 | BFA_LOG_INFO, "WDRV_BASE_ADDRESS_MAP_ERROR", | ||
446 | "Unable to map the IOC onto the system address space. ", | ||
447 | (0), 0}, | ||
448 | |||
449 | |||
450 | {0, 0, 0, "", "", 0, 0}, | ||
451 | }; | ||