67 val64 = ipath_read_creg(dd, creg);
68 val = val64 == ~0ULL ? ~0
U : 0;
71 val64 = val = ipath_read_creg32(dd, creg);
97 }
else if (creg == dd->
ipath_cregs->cr_wordrcvcnt) {
103 }
else if (creg == dd->
ipath_cregs->cr_pktsendcnt) {
109 }
else if (creg == dd->
ipath_cregs->cr_pktrcvcnt) {
115 }
else if (creg == dd->
ipath_cregs->cr_ibsymbolerrcnt) {
119 }
else if (creg == dd->
ipath_cregs->cr_iblinkerrrecovcnt) {
143 static u64 last_tot_hdrqfull;
151 blen =
snprintf(buf,
sizeof buf,
"port 0 hdrqfull %u",
157 blen +=
snprintf(buf + blen,
sizeof buf - blen,
175 blen +=
snprintf(buf + blen,
sizeof buf - blen,
176 "%shdrqfull %llu (all ports)",
186 hdrqtail = ipath_get_hdrqtail(pd);
191 "port0 hd=%x tl=%x; port0pkts %llx; write"
207 unsigned long errormask;
208 unsigned long hwerrs;
213 errormask = ipath_read_kreg64(dd, dd->
ipath_kregs->kr_errormask);
219 hwerrs = ipath_read_kreg64(dd, dd->
ipath_kregs->kr_hwerrstatus);
220 ctrl = ipath_read_kreg32(dd, dd->
ipath_kregs->kr_control);
222 ipath_write_kreg(dd, dd->
ipath_kregs->kr_errormask,
228 ipath_write_kreg(dd, dd->
ipath_kregs->kr_hwerrclear, 0ULL);
229 ipath_write_kreg(dd, dd->
ipath_kregs->kr_errorclear, 0ULL);
230 ipath_write_kreg(dd, dd->
ipath_kregs->kr_intclear, 0ULL);
232 "errormask fixed(%u) %lx -> %lx, ctrl %x hwerr %lx\n",
236 ipath_dbg(
"errormask fixed(%u) %lx -> %lx, no freeze\n",
320 "Re-enabling queue full errors (%s)\n",
324 " problem interrupt (%s)\n", ebuf);
329 ipath_write_kreg(dd, dd->
ipath_kregs->kr_errormask,
335 if ((++cnt & 0x10)) {
344 ipath_chk_errormask(dd);