blob: ddea91cae9d3fefc67009a31f976b3fa4aa09faa [file] [log] [blame]
Duy Truong790f06d2013-02-13 16:38:12 -08001/* Copyright (c) 2012, The Linux Foundation. All rights reserved.
Stepan Moskovchenko07552e12012-02-29 20:09:32 -08002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#include <linux/interrupt.h>
14#include <linux/irq.h>
15#include <linux/platform_device.h>
16#include <linux/module.h>
17#include <linux/errno.h>
18#include <linux/proc_fs.h>
19#include <linux/cpu.h>
Stepan Moskovchenko6482c432012-04-30 13:34:23 -070020#include <linux/io.h>
Stepan Moskovchenko07552e12012-02-29 20:09:32 -080021#include <mach/msm-krait-l2-accessors.h>
Stepan Moskovchenko6482c432012-04-30 13:34:23 -070022#include <mach/msm_iomap.h>
Stepan Moskovchenkoe1aba3d2012-12-06 18:40:25 -080023#include <mach/socinfo.h>
Stepan Moskovchenko6482c432012-04-30 13:34:23 -070024#include <asm/cputype.h>
25#include "acpuclock.h"
Stepan Moskovchenko07552e12012-02-29 20:09:32 -080026
27#define CESR_DCTPE BIT(0)
28#define CESR_DCDPE BIT(1)
29#define CESR_ICTPE BIT(2)
30#define CESR_ICDPE BIT(3)
31#define CESR_DCTE (BIT(4) | BIT(5))
32#define CESR_ICTE (BIT(6) | BIT(7))
33#define CESR_TLBMH BIT(16)
34#define CESR_I_MASK 0x000000CC
35
Stepan Moskovchenkoe1aba3d2012-12-06 18:40:25 -080036#define CESR_VALID_MASK 0x000100FF
37
Stepan Moskovchenkobddae7c2012-04-25 14:48:21 -070038/* Print a message for everything but TLB MH events */
39#define CESR_PRINT_MASK 0x000000FF
40
Stepan Moskovchenko7035f652012-05-31 17:48:01 -070041/* Log everything but TLB MH events */
42#define CESR_LOG_EVENT_MASK 0x000000FF
43
Stepan Moskovchenko07552e12012-02-29 20:09:32 -080044#define L2ESR_IND_ADDR 0x204
45#define L2ESYNR0_IND_ADDR 0x208
46#define L2ESYNR1_IND_ADDR 0x209
47#define L2EAR0_IND_ADDR 0x20C
48#define L2EAR1_IND_ADDR 0x20D
49
50#define L2ESR_MPDCD BIT(0)
51#define L2ESR_MPSLV BIT(1)
52#define L2ESR_TSESB BIT(2)
53#define L2ESR_TSEDB BIT(3)
54#define L2ESR_DSESB BIT(4)
55#define L2ESR_DSEDB BIT(5)
56#define L2ESR_MSE BIT(6)
57#define L2ESR_MPLDREXNOK BIT(8)
58
Stepan Moskovchenkoe9a5dc12012-04-03 20:25:49 -070059#define L2ESR_ACCESS_ERR_MASK 0xFFFC
60
Stepan Moskovchenko07552e12012-02-29 20:09:32 -080061#define L2ESR_CPU_MASK 0x0F
62#define L2ESR_CPU_SHIFT 16
63
64#ifdef CONFIG_MSM_L1_ERR_PANIC
65#define ERP_L1_ERR(a) panic(a)
66#else
67#define ERP_L1_ERR(a) do { } while (0)
68#endif
69
Stepan Moskovchenkoe1aba3d2012-12-06 18:40:25 -080070#ifdef CONFIG_MSM_L1_RECOV_ERR_PANIC
71#define ERP_L1_RECOV_ERR(a) panic(a)
72#else
73#define ERP_L1_RECOV_ERR(a) do { } while (0)
74#endif
75
Stepan Moskovchenko07552e12012-02-29 20:09:32 -080076#ifdef CONFIG_MSM_L2_ERP_PORT_PANIC
77#define ERP_PORT_ERR(a) panic(a)
78#else
79#define ERP_PORT_ERR(a) WARN(1, a)
80#endif
81
82#ifdef CONFIG_MSM_L2_ERP_1BIT_PANIC
83#define ERP_1BIT_ERR(a) panic(a)
84#else
85#define ERP_1BIT_ERR(a) do { } while (0)
86#endif
87
Stepan Moskovchenkoe9a5dc12012-04-03 20:25:49 -070088#ifdef CONFIG_MSM_L2_ERP_PRINT_ACCESS_ERRORS
89#define print_access_errors() 1
90#else
91#define print_access_errors() 0
92#endif
93
Stepan Moskovchenko07552e12012-02-29 20:09:32 -080094#ifdef CONFIG_MSM_L2_ERP_2BIT_PANIC
95#define ERP_2BIT_ERR(a) panic(a)
96#else
97#define ERP_2BIT_ERR(a) do { } while (0)
98#endif
99
100#define MODULE_NAME "msm_cache_erp"
101
Stepan Moskovchenkoaa15fd12012-06-18 16:51:13 -0700102#define ERP_LOG_MAGIC_ADDR 0x6A4
Stepan Moskovchenko7035f652012-05-31 17:48:01 -0700103#define ERP_LOG_MAGIC 0x11C39893
104
Stepan Moskovchenko07552e12012-02-29 20:09:32 -0800105struct msm_l1_err_stats {
106 unsigned int dctpe;
107 unsigned int dcdpe;
108 unsigned int ictpe;
109 unsigned int icdpe;
110 unsigned int dcte;
111 unsigned int icte;
112 unsigned int tlbmh;
113};
114
115struct msm_l2_err_stats {
116 unsigned int mpdcd;
117 unsigned int mpslv;
118 unsigned int tsesb;
119 unsigned int tsedb;
120 unsigned int dsesb;
121 unsigned int dsedb;
122 unsigned int mse;
123 unsigned int mplxrexnok;
124};
125
126static DEFINE_PER_CPU(struct msm_l1_err_stats, msm_l1_erp_stats);
127static struct msm_l2_err_stats msm_l2_erp_stats;
128
129static int l1_erp_irq, l2_erp_irq;
130static struct proc_dir_entry *procfs_entry;
131
Stepan Moskovchenko7035f652012-05-31 17:48:01 -0700132#ifdef CONFIG_MSM_L1_ERR_LOG
133static struct proc_dir_entry *procfs_log_entry;
134#endif
135
Stepan Moskovchenko07552e12012-02-29 20:09:32 -0800136static inline unsigned int read_cesr(void)
137{
138 unsigned int cesr;
139 asm volatile ("mrc p15, 7, %0, c15, c0, 1" : "=r" (cesr));
140 return cesr;
141}
142
143static inline void write_cesr(unsigned int cesr)
144{
145 asm volatile ("mcr p15, 7, %[cesr], c15, c0, 1" : : [cesr]"r" (cesr));
146}
147
148static inline unsigned int read_cesynr(void)
149{
150 unsigned int cesynr;
151 asm volatile ("mrc p15, 7, %0, c15, c0, 3" : "=r" (cesynr));
152 return cesynr;
153}
154
155static int proc_read_status(char *page, char **start, off_t off, int count,
156 int *eof, void *data)
157{
158 struct msm_l1_err_stats *l1_stats;
159 char *p = page;
160 int len, cpu, ret, bytes_left = PAGE_SIZE;
161
162 for_each_present_cpu(cpu) {
163 l1_stats = &per_cpu(msm_l1_erp_stats, cpu);
164
165 ret = snprintf(p, bytes_left,
166 "CPU %d:\n" \
167 "\tD-cache tag parity errors:\t%u\n" \
168 "\tD-cache data parity errors:\t%u\n" \
169 "\tI-cache tag parity errors:\t%u\n" \
170 "\tI-cache data parity errors:\t%u\n" \
171 "\tD-cache timing errors:\t\t%u\n" \
172 "\tI-cache timing errors:\t\t%u\n" \
173 "\tTLB multi-hit errors:\t\t%u\n\n", \
174 cpu,
175 l1_stats->dctpe,
176 l1_stats->dcdpe,
177 l1_stats->ictpe,
178 l1_stats->icdpe,
179 l1_stats->dcte,
180 l1_stats->icte,
181 l1_stats->tlbmh);
182 p += ret;
183 bytes_left -= ret;
184 }
185
186 p += snprintf(p, bytes_left,
187 "L2 master port decode errors:\t\t%u\n" \
188 "L2 master port slave errors:\t\t%u\n" \
189 "L2 tag soft errors, single-bit:\t\t%u\n" \
190 "L2 tag soft errors, double-bit:\t\t%u\n" \
191 "L2 data soft errors, single-bit:\t%u\n" \
192 "L2 data soft errors, double-bit:\t%u\n" \
193 "L2 modified soft errors:\t\t%u\n" \
194 "L2 master port LDREX NOK errors:\t%u\n",
195 msm_l2_erp_stats.mpdcd,
196 msm_l2_erp_stats.mpslv,
197 msm_l2_erp_stats.tsesb,
198 msm_l2_erp_stats.tsedb,
199 msm_l2_erp_stats.dsesb,
200 msm_l2_erp_stats.dsedb,
201 msm_l2_erp_stats.mse,
202 msm_l2_erp_stats.mplxrexnok);
203
204 len = (p - page) - off;
205 if (len < 0)
206 len = 0;
207
208 *eof = (len <= count) ? 1 : 0;
209 *start = page + off;
210
211 return len;
212}
213
Stepan Moskovchenko7035f652012-05-31 17:48:01 -0700214#ifdef CONFIG_MSM_L1_ERR_LOG
215static int proc_read_log(char *page, char **start, off_t off, int count,
216 int *eof, void *data)
217{
218 char *p = page;
219 int len, log_value;
220 log_value = __raw_readl(MSM_IMEM_BASE + ERP_LOG_MAGIC_ADDR) ==
221 ERP_LOG_MAGIC ? 1 : 0;
222
223 p += snprintf(p, PAGE_SIZE, "%d\n", log_value);
224
225 len = (p - page) - off;
226 if (len < 0)
227 len = 0;
228
229 *eof = (len <= count) ? 1 : 0;
230 *start = page + off;
231
232 return len;
233}
234
235static void log_cpu_event(void)
236{
237 __raw_writel(ERP_LOG_MAGIC, MSM_IMEM_BASE + ERP_LOG_MAGIC_ADDR);
238 mb();
239}
240
241static int procfs_event_log_init(void)
242{
243 procfs_log_entry = create_proc_entry("cpu/msm_erp_log", S_IRUGO, NULL);
244
245 if (!procfs_log_entry)
246 return -ENODEV;
247 procfs_log_entry->read_proc = proc_read_log;
248 return 0;
249}
250
251#else
252static inline void log_cpu_event(void) { }
253static inline int procfs_event_log_init(void) { return 0; }
254#endif
255
Stepan Moskovchenko07552e12012-02-29 20:09:32 -0800256static irqreturn_t msm_l1_erp_irq(int irq, void *dev_id)
257{
258 struct msm_l1_err_stats *l1_stats = dev_id;
259 unsigned int cesr = read_cesr();
260 unsigned int i_cesynr, d_cesynr;
Stepan Moskovchenko6482c432012-04-30 13:34:23 -0700261 unsigned int cpu = smp_processor_id();
Stepan Moskovchenkobddae7c2012-04-25 14:48:21 -0700262 int print_regs = cesr & CESR_PRINT_MASK;
Stepan Moskovchenko7035f652012-05-31 17:48:01 -0700263 int log_event = cesr & CESR_LOG_EVENT_MASK;
Stepan Moskovchenko07552e12012-02-29 20:09:32 -0800264
Stepan Moskovchenkobddae7c2012-04-25 14:48:21 -0700265 if (print_regs) {
Stepan Moskovchenko6482c432012-04-30 13:34:23 -0700266 pr_alert("L1 / TLB Error detected on CPU %d!\n", cpu);
267 pr_alert("\tCESR = 0x%08x\n", cesr);
268 pr_alert("\tCPU speed = %lu\n", acpuclk_get_rate(cpu));
269 pr_alert("\tMIDR = 0x%08x\n", read_cpuid_id());
Stepan Moskovchenkobddae7c2012-04-25 14:48:21 -0700270 }
Stepan Moskovchenko07552e12012-02-29 20:09:32 -0800271
272 if (cesr & CESR_DCTPE) {
273 pr_alert("D-cache tag parity error\n");
274 l1_stats->dctpe++;
275 }
276
277 if (cesr & CESR_DCDPE) {
278 pr_alert("D-cache data parity error\n");
279 l1_stats->dcdpe++;
280 }
281
282 if (cesr & CESR_ICTPE) {
283 pr_alert("I-cache tag parity error\n");
284 l1_stats->ictpe++;
285 }
286
287 if (cesr & CESR_ICDPE) {
288 pr_alert("I-cache data parity error\n");
289 l1_stats->icdpe++;
290 }
291
292 if (cesr & CESR_DCTE) {
293 pr_alert("D-cache timing error\n");
294 l1_stats->dcte++;
295 }
296
297 if (cesr & CESR_ICTE) {
298 pr_alert("I-cache timing error\n");
299 l1_stats->icte++;
300 }
301
302 if (cesr & CESR_TLBMH) {
Stepan Moskovchenkobddae7c2012-04-25 14:48:21 -0700303 asm ("mcr p15, 0, r0, c8, c7, 0");
Stepan Moskovchenko07552e12012-02-29 20:09:32 -0800304 l1_stats->tlbmh++;
305 }
306
307 if (cesr & (CESR_ICTPE | CESR_ICDPE | CESR_ICTE)) {
308 i_cesynr = read_cesynr();
309 pr_alert("I-side CESYNR = 0x%08x\n", i_cesynr);
310 write_cesr(CESR_I_MASK);
311
312 /*
313 * Clear the I-side bits from the captured CESR value so that we
314 * don't accidentally clear any new I-side errors when we do
315 * the CESR write-clear operation.
316 */
317 cesr &= ~CESR_I_MASK;
318 }
319
320 if (cesr & (CESR_DCTPE | CESR_DCDPE | CESR_DCTE)) {
321 d_cesynr = read_cesynr();
322 pr_alert("D-side CESYNR = 0x%08x\n", d_cesynr);
323 }
324
Stepan Moskovchenko7035f652012-05-31 17:48:01 -0700325 if (log_event)
326 log_cpu_event();
327
Stepan Moskovchenko07552e12012-02-29 20:09:32 -0800328 /* Clear the interrupt bits we processed */
329 write_cesr(cesr);
330
Stepan Moskovchenkoe1aba3d2012-12-06 18:40:25 -0800331 if (print_regs) {
332 if ((cesr & (~CESR_I_MASK & CESR_VALID_MASK)) ||
333 cpu_is_krait_v1() || cpu_is_krait_v2())
334 ERP_L1_ERR("L1 nonrecoverable cache error detected");
335 else
336 ERP_L1_RECOV_ERR("L1 recoverable error detected\n");
337 }
Stepan Moskovchenko07552e12012-02-29 20:09:32 -0800338
339 return IRQ_HANDLED;
340}
341
342static irqreturn_t msm_l2_erp_irq(int irq, void *dev_id)
343{
344 unsigned int l2esr;
345 unsigned int l2esynr0;
346 unsigned int l2esynr1;
347 unsigned int l2ear0;
348 unsigned int l2ear1;
349 int soft_error = 0;
350 int port_error = 0;
351 int unrecoverable = 0;
Stepan Moskovchenkoe9a5dc12012-04-03 20:25:49 -0700352 int print_alert;
Stepan Moskovchenko07552e12012-02-29 20:09:32 -0800353
354 l2esr = get_l2_indirect_reg(L2ESR_IND_ADDR);
355 l2esynr0 = get_l2_indirect_reg(L2ESYNR0_IND_ADDR);
356 l2esynr1 = get_l2_indirect_reg(L2ESYNR1_IND_ADDR);
357 l2ear0 = get_l2_indirect_reg(L2EAR0_IND_ADDR);
358 l2ear1 = get_l2_indirect_reg(L2EAR1_IND_ADDR);
359
Stepan Moskovchenkoe9a5dc12012-04-03 20:25:49 -0700360 print_alert = print_access_errors() || (l2esr & L2ESR_ACCESS_ERR_MASK);
361
362 if (print_alert) {
363 pr_alert("L2 Error detected!\n");
364 pr_alert("\tL2ESR = 0x%08x\n", l2esr);
365 pr_alert("\tL2ESYNR0 = 0x%08x\n", l2esynr0);
366 pr_alert("\tL2ESYNR1 = 0x%08x\n", l2esynr1);
367 pr_alert("\tL2EAR0 = 0x%08x\n", l2ear0);
368 pr_alert("\tL2EAR1 = 0x%08x\n", l2ear1);
369 pr_alert("\tCPU bitmap = 0x%x\n", (l2esr >> L2ESR_CPU_SHIFT) &
370 L2ESR_CPU_MASK);
371 }
Stepan Moskovchenko07552e12012-02-29 20:09:32 -0800372
373 if (l2esr & L2ESR_MPDCD) {
Stepan Moskovchenkoe9a5dc12012-04-03 20:25:49 -0700374 if (print_alert)
375 pr_alert("L2 master port decode error\n");
Stepan Moskovchenko07552e12012-02-29 20:09:32 -0800376 port_error++;
377 msm_l2_erp_stats.mpdcd++;
378 }
379
380 if (l2esr & L2ESR_MPSLV) {
Stepan Moskovchenkoe9a5dc12012-04-03 20:25:49 -0700381 if (print_alert)
382 pr_alert("L2 master port slave error\n");
Stepan Moskovchenko07552e12012-02-29 20:09:32 -0800383 port_error++;
384 msm_l2_erp_stats.mpslv++;
385 }
386
387 if (l2esr & L2ESR_TSESB) {
388 pr_alert("L2 tag soft error, single-bit\n");
389 soft_error++;
390 msm_l2_erp_stats.tsesb++;
391 }
392
393 if (l2esr & L2ESR_TSEDB) {
394 pr_alert("L2 tag soft error, double-bit\n");
395 soft_error++;
396 unrecoverable++;
397 msm_l2_erp_stats.tsedb++;
398 }
399
400 if (l2esr & L2ESR_DSESB) {
401 pr_alert("L2 data soft error, single-bit\n");
402 soft_error++;
403 msm_l2_erp_stats.dsesb++;
404 }
405
406 if (l2esr & L2ESR_DSEDB) {
407 pr_alert("L2 data soft error, double-bit\n");
408 soft_error++;
409 unrecoverable++;
410 msm_l2_erp_stats.dsedb++;
411 }
412
413 if (l2esr & L2ESR_MSE) {
414 pr_alert("L2 modified soft error\n");
415 soft_error++;
416 msm_l2_erp_stats.mse++;
417 }
418
419 if (l2esr & L2ESR_MPLDREXNOK) {
420 pr_alert("L2 master port LDREX received Normal OK response\n");
421 port_error++;
422 msm_l2_erp_stats.mplxrexnok++;
423 }
424
Stepan Moskovchenkoe9a5dc12012-04-03 20:25:49 -0700425 if (port_error && print_alert)
Stepan Moskovchenko07552e12012-02-29 20:09:32 -0800426 ERP_PORT_ERR("L2 master port error detected");
427
428 if (soft_error && !unrecoverable)
429 ERP_1BIT_ERR("L2 single-bit error detected");
430
431 if (unrecoverable)
432 ERP_2BIT_ERR("L2 double-bit error detected, trouble ahead");
433
434 set_l2_indirect_reg(L2ESR_IND_ADDR, l2esr);
435 return IRQ_HANDLED;
436}
437
438static void enable_erp_irq_callback(void *info)
439{
440 enable_percpu_irq(l1_erp_irq, IRQ_TYPE_LEVEL_HIGH);
441}
442
443static void disable_erp_irq_callback(void *info)
444{
445 disable_percpu_irq(l1_erp_irq);
446}
447
448static int cache_erp_cpu_callback(struct notifier_block *nfb,
449 unsigned long action, void *hcpu)
450{
451 switch (action & (~CPU_TASKS_FROZEN)) {
452 case CPU_STARTING:
453 enable_erp_irq_callback(NULL);
454 break;
455
456 case CPU_DYING:
457 disable_erp_irq_callback(NULL);
458 break;
459 }
460 return NOTIFY_OK;
461}
462
463static struct notifier_block cache_erp_cpu_notifier = {
464 .notifier_call = cache_erp_cpu_callback,
465};
466
467static int msm_cache_erp_probe(struct platform_device *pdev)
468{
469 struct resource *r;
470 int ret, cpu;
471
472 r = platform_get_resource_byname(pdev, IORESOURCE_IRQ, "l1_irq");
473
474 if (!r) {
475 pr_err("Could not get L1 resource\n");
476 ret = -ENODEV;
477 goto fail;
478 }
479
480 l1_erp_irq = r->start;
481
482 ret = request_percpu_irq(l1_erp_irq, msm_l1_erp_irq, "MSM_L1",
483 &msm_l1_erp_stats);
484
485 if (ret) {
486 pr_err("Failed to request the L1 cache error interrupt\n");
487 goto fail;
488 }
489
490 r = platform_get_resource_byname(pdev, IORESOURCE_IRQ, "l2_irq");
491
492 if (!r) {
493 pr_err("Could not get L2 resource\n");
494 ret = -ENODEV;
495 goto fail_l1;
496 }
497
498 l2_erp_irq = r->start;
499 ret = request_irq(l2_erp_irq, msm_l2_erp_irq, 0, "MSM_L2", NULL);
500
501 if (ret) {
502 pr_err("Failed to request the L2 cache error interrupt\n");
503 goto fail_l1;
504 }
505
506 procfs_entry = create_proc_entry("cpu/msm_cache_erp", S_IRUGO, NULL);
507
508 if (!procfs_entry) {
509 pr_err("Failed to create procfs node for cache error reporting\n");
510 ret = -ENODEV;
511 goto fail_l2;
512 }
513
514 get_online_cpus();
515 register_hotcpu_notifier(&cache_erp_cpu_notifier);
516 for_each_cpu(cpu, cpu_online_mask)
517 smp_call_function_single(cpu, enable_erp_irq_callback, NULL, 1);
518 put_online_cpus();
519
520 procfs_entry->read_proc = proc_read_status;
Stepan Moskovchenko7035f652012-05-31 17:48:01 -0700521
522 ret = procfs_event_log_init();
523 if (ret)
524 pr_err("Failed to create procfs node for ERP log access\n");
525
Stepan Moskovchenko07552e12012-02-29 20:09:32 -0800526 return 0;
527
528fail_l2:
529 free_irq(l2_erp_irq, NULL);
530fail_l1:
531 free_percpu_irq(l1_erp_irq, NULL);
532fail:
533 return ret;
534}
535
536static int msm_cache_erp_remove(struct platform_device *pdev)
537{
538 int cpu;
539 if (procfs_entry)
540 remove_proc_entry("cpu/msm_cache_erp", NULL);
541
542 get_online_cpus();
543 unregister_hotcpu_notifier(&cache_erp_cpu_notifier);
544 for_each_cpu(cpu, cpu_online_mask)
545 smp_call_function_single(cpu, disable_erp_irq_callback, NULL,
546 1);
547 put_online_cpus();
548
549 free_percpu_irq(l1_erp_irq, NULL);
550
551 disable_irq(l2_erp_irq);
552 free_irq(l2_erp_irq, NULL);
553 return 0;
554}
555
Stepan Moskovchenko72977ed2012-07-02 12:36:23 -0700556static struct of_device_id cache_erp_match_table[] = {
557 { .compatible = "qcom,cache_erp", },
558 {}
559};
560
Stepan Moskovchenko07552e12012-02-29 20:09:32 -0800561static struct platform_driver msm_cache_erp_driver = {
562 .probe = msm_cache_erp_probe,
563 .remove = msm_cache_erp_remove,
564 .driver = {
565 .name = MODULE_NAME,
566 .owner = THIS_MODULE,
Stepan Moskovchenko72977ed2012-07-02 12:36:23 -0700567 .of_match_table = cache_erp_match_table,
Stepan Moskovchenko07552e12012-02-29 20:09:32 -0800568 },
569};
570
571static int __init msm_cache_erp_init(void)
572{
573 return platform_driver_register(&msm_cache_erp_driver);
574}
575
576static void __exit msm_cache_erp_exit(void)
577{
578 platform_driver_unregister(&msm_cache_erp_driver);
579}
580
581
582module_init(msm_cache_erp_init);
583module_exit(msm_cache_erp_exit);
584MODULE_LICENSE("GPL v2");
585MODULE_DESCRIPTION("MSM cache error reporting driver");