summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2023-05-15Count the number of link down events in the MAC using with LINK_DN_CNT.msaitoh
- Add new event counter "link_dn_cnt" to count the number of link down events in the MAC. - The LINK_DN_CNT register (at 0x0403c) is described only in the Denverton's datasheet, so use it only on ixgbe_mac_X550EM_a.
2023-05-14fix typqpgoyette
2023-05-14Regenpgoyette
2023-05-14Add a Lenovo mouse so we can set the ALWAYS_ON quirk.pgoyette
2023-05-13fix typo in unused definition s/ESA_KDATA_OUEUE_LEFT/ESA_KDATA_QUEUE_LEFT/.andvar
2023-05-13fix typos in comments.andvar
2023-05-13dk(4): Need pdk->dk_openlock to read pdk->dk_wedges.riastradh
2023-05-11Remove unused variablemartin
2023-05-11Fix typo. s/ictxact/ictxatc/. No functional change.msaitoh
2023-05-11 Use WM_IS_ICHPCH(). No functional change.msaitoh
2023-05-11Fix prc511's comment and description.msaitoh
2023-05-11Add SOICZIFDATA (ifconfig -z) support for evcnt(9).msaitoh
First update the statistics data, then clear the event counters, and finally copy and clear if_data via ether_ioctl().
2023-05-11 Move statistics updating code from wm_tick() to new wm_update_stats().msaitoh
- To reuse. - No functional change.
2023-05-11Add some new event counters.msaitoh
Add the following counters for 82575 and newer except 80003, ICHs and PCHs: - Only 82576 document describes about the circuit breaker, so the following two might be only for 82575: - Circuit Breaker TX Manageability Packet - Circuit Breaker RX Dropped Packet - 82575's document doesn't describe the following two, but we can see the same value as GO{T,R}C have: - Host Good Octets RX - Host Good Octets TX - 82575's document doesn't describe the LENERRS (Length Errors) counter. I don't know if it has. - Perhaps Non-SerDes/SGMII devices don't have SCVPC (SerDes/SGMII Code Violation Packet) register. We don't care if it's SerDes/SGMII or not for now. - HRMPC (Header Redirection Missed Packet) appears only once in 8257[56]'s datasheet. FreeBSD's igb counts it, so we do, too. - Count the following two for I350 and newer. I don't know if PCHs have: - EEE TX LPI - EEE RX LPI
2023-05-11 Some statistics registers were replaced with new counters.msaitoh
- 0x403c was CEXTERR(Carrier Extension Error). 82575 and newer except 80003, ICHs and PCHs have HTDPMC(Host Tx Discarded Packets by MAC). I don't really know for 82575. The 82575 datasheet say nothing about it. - The following two are changed for circuit breaker. Only 82576's datasheet describes abut it, so the registers might be only for 82576. Use those registers for 82575 and newer except 80003, ICHs and PCHs just in case. - 0x40fc was TSCTFC(TCP Segmentation Context Tx Fail). It was replaced by the CBRMPC(Circuit Breaker Rx Manageability Packet) register. - 0x4124 was ICRXOC(Interrupt Cause Receiver Overrun). It was replaced by the HTCBDPC(Host Tx Circuit Breaker Dropped Packet) register. - From 0x4104 to 0x4124: - For 0x4124, 82575's datasheet says it's not changed(ICRXOC). I don't know if it's correct. We use new HTCBDPC register for 82575. - 82576 and newer changed the meaning. - I don't know for 80003, ICHs and PCHs. Don't count those registers. At least, those registers in PCH2 and PCH_CNP are all zero.
2023-05-11Don't add "Count" for event counter's description.msaitoh
2023-05-11Fix a bug that the transmit underrun counter is incorrectly counted.msaitoh
The transmit underrun bit in the transmit status filed is only for 82544 (and older?), so don't use the counter for newer chips. The bit is reserved for newer chips, but the bit sometimes set on 82575 at least.
2023-05-11IC{TX,RX}*C registers are for older than 82575.msaitoh
2023-05-11Sort lines. No functional change.msaitoh
Reorder evcnt_attach_dynamic(), WM_EVCNT_ADD() and evcnt_detach() to match.
2023-05-11Sort lines. No functional change.msaitoh
Rearrange the order of the registers so that they are roughly in ascending order.
2023-05-11Add note for the TORL register.msaitoh
The TOR register includes error, flow control and broadcast rejected.
2023-05-11Count some 64bit counters correctly.msaitoh
- Fix calculation of GORC, GOTC, TOR and TOT counters correctly. - Found by knakahara.
2023-05-11Fix missing check for netq->netq_stopping in vioif_rx_intr()yamaguchi
Reported-by: syzbot+5120b7a1f97a3f5ca052@syzkaller.appspotmail.com https://syzkaller.appspot.com/bug?id=243cf4115808e49774a49294f63200770399660b
2023-05-10dk(4): Make it clearer that dkopen EROFS branch doesn't leak.riastradh
It looked like we may need to sometimes call dklastclose in error branch for the case of (flags & ~sc->sc_mode & FWRITE) != 0, but it is not actually possible to reach that case: if the caller requested read/write, and the parent is read-only, and it is the first time we've opened the parent, then dkfirstopen will fail with EROFS so we never get there. But this is confusing and it looked like the error branch is wrong, so let's rearrange the conditional to make it clearer that we cannot goto out after dkfirstopen has succeeded. And then assert that the case cannot happen when we do call dkfirstopen.
2023-05-10opl(4): Use config_detach_children.riastradh
2023-05-10acpi(4): Fix membars in ACPI_ACQUIRE/RELEASE_GLOBAL_LOCK.riastradh
XXX pullup-8 (by patch with membar_enter/exit) XXX pullup-9 (by patch with membar_enter/exit) XXX pullup-10
2023-05-10uts(4): Use config_detach_children.riastradh
2023-05-10udsbr(4): Use config_detach_children.riastradh
2023-05-10irmce(4): Use config_detach_children.riastradh
2023-05-10xirc(4): Use config_detach_children.riastradh
2023-05-10pcmcom(4): Use config_detach_children.riastradh
2023-05-10mhzc(4): Use config_detach_children.riastradh
2023-05-10ismt(4): Use config_detach_children.riastradh
2023-05-10esa(4): Use config_detach_children.riastradh
2023-05-10emuxki(4): Use config_detach_children.riastradh
2023-05-10cxdtv(4): Use config_detach_children.riastradh
2023-05-10auich(4): Use config_detach_children.riastradh
2023-05-10nandemulator(4): Use config_detach_children.riastradh
2023-05-10wb(4): Use config_detach_children.riastradh
2023-05-10spc(4): Use config_detach_children.riastradh
2023-05-10aic(4): Use config_detach_children.riastradh
2023-05-10ims(4): Use config_detach_children.riastradh
2023-05-10hpf1275a(4): Use config_detach_children.riastradh
2023-05-10hilms(4): Use config_detach_children.riastradh
2023-05-10gpiosim(4): Use config_detach_children.riastradh
2023-05-10gpioow(4): Use config_detach_children.riastradh
2023-05-10gpioiic(4): Use config_detach_children.riastradh
2023-05-10acpiwmi(4): Use config_detach_children.riastradh
2023-05-09dk(4): Fix typo: sc_state, not sc_satte.riastradh
Had tested a patch series, but not every patch in it, and I inadvertently fixed the typo in a later patch in the series, not in the one I committed.
2023-05-09dk(4): Omit needless sc_iopend, sc_dkdrn mechanism.riastradh
vdevgone guarantees that all instances are closed by the time it returns, which in turn guarantees all I/O operations (read, write, ioctl, &c.) have completed, and, if the block device is open, vinvalbuf(V_SAVE) -> vflushbuf has completed, which forces all buffered transfers to be issued and waits for them to complete. So by the time vdevgone returns, no further transfers can be submitted and the bufq must be empty.