edac_mce_amd.c 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. #include <linux/module.h>
  2. #include "edac_mce_amd.h"
  3. /*
  4. * string representation for the different MCA reported error types, see F3x48
  5. * or MSR0000_0411.
  6. */
  7. const char *tt_msgs[] = { /* transaction type */
  8. "instruction",
  9. "data",
  10. "generic",
  11. "reserved"
  12. };
  13. EXPORT_SYMBOL_GPL(tt_msgs);
  14. const char *ll_msgs[] = { /* cache level */
  15. "L0",
  16. "L1",
  17. "L2",
  18. "L3/generic"
  19. };
  20. EXPORT_SYMBOL_GPL(ll_msgs);
  21. const char *rrrr_msgs[] = {
  22. "generic",
  23. "generic read",
  24. "generic write",
  25. "data read",
  26. "data write",
  27. "inst fetch",
  28. "prefetch",
  29. "evict",
  30. "snoop",
  31. "reserved RRRR= 9",
  32. "reserved RRRR= 10",
  33. "reserved RRRR= 11",
  34. "reserved RRRR= 12",
  35. "reserved RRRR= 13",
  36. "reserved RRRR= 14",
  37. "reserved RRRR= 15"
  38. };
  39. EXPORT_SYMBOL_GPL(rrrr_msgs);
  40. const char *pp_msgs[] = { /* participating processor */
  41. "local node originated (SRC)",
  42. "local node responded to request (RES)",
  43. "local node observed as 3rd party (OBS)",
  44. "generic"
  45. };
  46. EXPORT_SYMBOL_GPL(pp_msgs);
  47. const char *to_msgs[] = {
  48. "no timeout",
  49. "timed out"
  50. };
  51. EXPORT_SYMBOL_GPL(to_msgs);
  52. const char *ii_msgs[] = { /* memory or i/o */
  53. "mem access",
  54. "reserved",
  55. "i/o access",
  56. "generic"
  57. };
  58. EXPORT_SYMBOL_GPL(ii_msgs);
  59. /*
  60. * Map the 4 or 5 (family-specific) bits of Extended Error code to the
  61. * string table.
  62. */
  63. const char *ext_msgs[] = {
  64. "K8 ECC error", /* 0_0000b */
  65. "CRC error on link", /* 0_0001b */
  66. "Sync error packets on link", /* 0_0010b */
  67. "Master Abort during link operation", /* 0_0011b */
  68. "Target Abort during link operation", /* 0_0100b */
  69. "Invalid GART PTE entry during table walk", /* 0_0101b */
  70. "Unsupported atomic RMW command received", /* 0_0110b */
  71. "WDT error: NB transaction timeout", /* 0_0111b */
  72. "ECC/ChipKill ECC error", /* 0_1000b */
  73. "SVM DEV Error", /* 0_1001b */
  74. "Link Data error", /* 0_1010b */
  75. "Link/L3/Probe Filter Protocol error", /* 0_1011b */
  76. "NB Internal Arrays Parity error", /* 0_1100b */
  77. "DRAM Address/Control Parity error", /* 0_1101b */
  78. "Link Transmission error", /* 0_1110b */
  79. "GART/DEV Table Walk Data error" /* 0_1111b */
  80. "Res 0x100 error", /* 1_0000b */
  81. "Res 0x101 error", /* 1_0001b */
  82. "Res 0x102 error", /* 1_0010b */
  83. "Res 0x103 error", /* 1_0011b */
  84. "Res 0x104 error", /* 1_0100b */
  85. "Res 0x105 error", /* 1_0101b */
  86. "Res 0x106 error", /* 1_0110b */
  87. "Res 0x107 error", /* 1_0111b */
  88. "Res 0x108 error", /* 1_1000b */
  89. "Res 0x109 error", /* 1_1001b */
  90. "Res 0x10A error", /* 1_1010b */
  91. "Res 0x10B error", /* 1_1011b */
  92. "ECC error in L3 Cache Data", /* 1_1100b */
  93. "L3 Cache Tag error", /* 1_1101b */
  94. "L3 Cache LRU Parity error", /* 1_1110b */
  95. "Probe Filter error" /* 1_1111b */
  96. };
  97. EXPORT_SYMBOL_GPL(ext_msgs);