mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
Kernel: Add logging for E1000 RX buffer overrun
This commit is contained in:
parent
fa434305a7
commit
897f001076
Notes:
sideshowbarker
2024-07-18 19:02:33 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/897f001076e Pull-request: https://github.com/SerenityOS/serenity/pull/6669 Reviewed-by: https://github.com/IdanHo ✅ Reviewed-by: https://github.com/supercomputer7
@ -207,7 +207,7 @@ UNMAP_AFTER_INIT E1000NetworkAdapter::E1000NetworkAdapter(PCI::Address address,
|
||||
initialize_tx_descriptors();
|
||||
|
||||
out32(REG_INTERRUPT_MASK_SET, 0x1f6dc);
|
||||
out32(REG_INTERRUPT_MASK_SET, INTERRUPT_LSC | INTERRUPT_RXT0);
|
||||
out32(REG_INTERRUPT_MASK_SET, INTERRUPT_LSC | INTERRUPT_RXT0 | INTERRUPT_RXO);
|
||||
in32(REG_INTERRUPT_CAUSE_READ);
|
||||
|
||||
enable_irq();
|
||||
@ -232,6 +232,9 @@ void E1000NetworkAdapter::handle_irq(const RegisterState&)
|
||||
if (status & INTERRUPT_RXDMT0) {
|
||||
// Threshold OK?
|
||||
}
|
||||
if (status & INTERRUPT_RXO) {
|
||||
dbgln_if(E1000_DEBUG, "E1000: RX buffer overrun");
|
||||
}
|
||||
if (status & INTERRUPT_RXT0) {
|
||||
receive();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user