1 #include <sys/sbd_ioctl.h> 2 static char *sbd_t0[] = { 3 "no error", 4 "Internal error", 5 "Insufficient memory", 6 "Protocol error", 7 "Device busy", 8 "No such device", 9 "Operation already in progress", 10 "I/O error", 11 "Bad address", 12 "No device(s) on board", 13 "Invalid argument", 14 "Invalid state transition", 15 "Device in fatal state", 16 "Outstanding error", 17 "Device failed to suspend", 18 "Device failed to resume", 19 "Cannot stop user thread", 20 "Cannot quiesce realtime thread", 21 "Cannot stop kernel thread", 22 "Failed to off-line", 23 "Failed to on-line", 24 "Failed to start CPU", 25 "Failed to stop CPU", 26 "Invalid component type", 27 "Kernel cage is disabled", 28 "No available memory target", 29 "Hardware programming error", 30 "VM viability test failed", 31 "Memory operation refused", 32 "Non-relocatable pages in span", 33 "Memory operation cancelled", 34 "Memory operation failed", 35 "Can't unconfig cpu if mem online", 36 "Operator confirmation for quiesce is required", 37 "Memory is interleaved across boards", 38 "Can't config memory if not all cpus are online", 39 "Unsafe driver present", 40 "option invalid", 41 }; 42 static char *sbd_t1000[] = { 43 "No error", 44 "Cannot read property value", 45 "Invalid board number", 46 "Cannot proceed; Board is configured or busy", 47 "Solaris failed to probe", 48 "Solaris failed to deprobe", 49 "Firmware move-cpu0 failed", 50 "Operation not supported", 51 "Device driver failure", 52 }; 53 static char *sbd_t1012[] = { 54 "Unrecognized platform command", 55 "drmach parameter is not a valid ID", 56 "drmach parameter is inappropriate for operation", 57 "Unexpected internal condition", 58 "Mailbox framework failure: outgoing", 59 "Mailbox framework failure: incoming", 60 "Board is not in domain ACL", 61 "Board is not assigned to domain", 62 "Board is not active", 63 "Slot is empty", 64 "Board is powered off", 65 "Board is already being tested", 66 "Wait: All SC test resources are in use", 67 "Board requires test prior to use", 68 "Board test has been aborted", 69 "Unknown error type received from SC", 70 "Test completed with unknown status", 71 "Unknown test result returned by SC", 72 "SMS hpost reported error, see POST log for details", 73 "Slot is unavailable to the domain", 74 "Nonzero LPA not yet supported", 75 "Cannot unconfigure I/O board: tunnel switch failed", 76 "No CPU available for I/O cage test.", 77 "SMS reported recoverable error: check SMS status and Retry", 78 "SMS reported unrecoverable error: Board is Unusable", 79 "Cannot unconfigure I/O board: network switch failed", 80 }; 81 static char *sbd_t2000[] = { 82 "No error", 83 "Cannot read property value", 84 "Cannot determine property length", 85 "Invalid board number", 86 "Cannot proceed; Board is configured or busy", 87 "No CPU specified for connect", 88 "Firmware probe failed", 89 "Firmware deprobe failed", 90 "Firmware move-cpu0 failed", 91 "Cannot move SIGB assignment", 92 "Cannot disconnect CPU; SIGB is currently assigned", 93 "Operation not supported", 94 "Device driver failure", 95 "Must specify a CPU on the given board", 96 "No such device", 97 "Memory configured with inter-board interleaving", 98 "Unrecognized platform command", 99 "drmach parameter is not a valid ID", 100 "drmach parameter is inappropriate for operation", 101 "Unexpected internal condition", 102 }; 103 static char *sbd_t3000[] = { 104 "no error", 105 "Internal error", 106 "Didn't receive fru info", 107 "DR is not supported on this board type", 108 "Power on request failed", 109 "Failed to power on", 110 "Operation interrupted", 111 "Board initialization failed", 112 "CPU intialization failed", 113 "Memory operation failed", 114 }; 115 static char *sbd_t4000[] = { 116 "no error", 117 "Internal error", 118 "Invalid argument", 119 "Memory operation failed", 120 "Board probe failed", 121 "Board deprobe failed", 122 "Failed to juggle bootproc", 123 "Not a cpu device", 124 "Cannot find device type", 125 "Bad port id", 126 "Failed to resume device", 127 "Failed to suspend device", 128 "failed to stop kernel thd", 129 "unsafe", 130 "real time threads", 131 "failed to stop user thd", 132 "prom failed attach board", 133 "prom failed detach board", 134 "sc return a failure", 135 "Failed to obtain board information", 136 "Failed to wake up cpu", 137 "Failed to stop cpu", 138 "Hardware Failure", 139 "Board access denied", 140 "Stale components", 141 "Stale objects", 142 "No SEPROM space", 143 "Operation not supported", 144 "No Memory", 145 }; 146 static char *sbd_t5001[] = { 147 "Cannot read property value", 148 "Invalid board number", 149 "Cannot proceed; Board is configured or busy", 150 "Firmware probe failed", 151 "Firmware deprobe failed", 152 "Operation not supported", 153 "Device driver failure", 154 "Unrecognized platform command", 155 "drmach parameter is not a valid ID", 156 "drmach parameter is inappropriate for operation", 157 "Unexpected internal condition", 158 "Firmware cannot find node.", 159 "Cannot setup memory node", 160 "Invalid CPU/core state", 161 "Cannot find mc-opl interface", 162 "Cannot find scf_fmem interface", 163 "Error setting up FMEM buffer", 164 "scf_fmem_start error", 165 "FMEM error", 166 "scf_fmem_cancel error", 167 "xcall timeout", 168 "DR parellel copy timeout", 169 "SCF busy", 170 "SCF IO Retry Error", 171 "FMEM command timeout", 172 "Hardware error", 173 "FMEM operation Terminated", 174 "Memory copy error", 175 "SCF error", 176 "Cannot add SPARC64-VI to domain booted with all SPARC64-VII CPUs", 177 "SCF OFFLINE", 178 }; 179 static char *sbd_t10001[] = { 180 "Cannot read property value", 181 "Invalid board number", 182 "drmach parameter is not a valid ID", 183 "drmach parameter is inappropriate for operation", 184 "Firmware probe failed", 185 "Firmware deprobe failed", 186 "Operation not supported", 187 "Unexpected internal condition", 188 "Cannot proceed, board is configured or busy", 189 "Cannot proceed, board is powered", 190 "Cannot proceed, board is connected", 191 "Invalid argument", 192 "Device driver failure", 193 "Unrecognized platform command", 194 "Failed to allocate processor id", 195 "Failed to release processor id", 196 "Failed to power on board", 197 "Failed to power off board", 198 "Cannot setup memory node", 199 "Cannot walk ACPI namespace", 200 "Failed to check dependency for board", 201 "Board is in failure state", 202 }; 203 sbd_etab_t sbd_etab[] = { 204 { 0, 37, sbd_t0 }, 205 { 1000, 1008, sbd_t1000 }, 206 { 1012, 1037, sbd_t1012 }, 207 { 2000, 2019, sbd_t2000 }, 208 { 3000, 3009, sbd_t3000 }, 209 { 4000, 4028, sbd_t4000 }, 210 { 5001, 5031, sbd_t5001 }, 211 { 10001, 10022, sbd_t10001 }, 212 }; 213 int sbd_etab_len = 8; 214