summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2021-11-01fix typos, mainly in words minimum and maximum, but also few others.andvar
2021-11-01Trailing whitespaceskrll
2021-10-31remove accidentially committed debug goopmacallan
thanks ryo@
2021-10-30"no affect" -> "no effect" in man pages and comments.andvar
2021-10-30For the DW APB busy bit workaround, only attempt to re-apply LCR and DLBjmcneill
settings for non-console devices. In the console case, simply clear the busy bit and continue. Fixes an interrupt storm observed on Macchiatobin.
2021-10-30actually mmap() the blitter registers when asked to, while there do somemacallan
magic number reduction
2021-10-29Correct an off by one degree error in the temperature conversion.brad
2021-10-29install mgxreg.h so we can use it from Xorgmacallan
2021-10-28Support devices that the PCI subclass is not PCI_SUBCLASS_MULTIMEDIA_HDAUDIO.msaitoh
- Not tested well. - If audioX is not attached, add HDAUDIO_ENABLE_DISPLAYPORT and HDAUDIO_ENABLE_HDMI to your kernel config.
2021-10-28virtio: stop reinit for safety when a device resetting is failedyamaguchi
2021-10-27Add Elkhart Lake support.msaitoh
2021-10-27Regen.msaitoh
2021-10-27Add Intel Elkhart Lake devices.msaitoh
2021-10-27Regen.msaitoh
2021-10-27Add Intel Gemini Lake TXE HECI 1.msaitoh
2021-10-25fix "error: stack usage might be unbounded [-Werror=stack-usage=]" with ↵ryo
COPTS=-O0
2021-10-25regenryo
2021-10-25For "num_critical_sections", now output not only the "static const int" ↵ryo
variable but also macro definition.
2021-10-25fix build failure of "multiple definition"ryo
2021-10-24fix various typos in comments, mainly copypasta.andvar
2021-10-23xhci: Always read/write both halves of 64-bit registersjakllsch
Access the 64-bit registers in their entirety at all times, independent of the AC64 parameter of the hardware implementation. Makes xhci(4) work on SolidRun MACCHIATObin (Marvell 8040 SoC)
2021-10-23Poll only if we don't have an IRQ resource.jmcneill
2021-10-22return 0 in mgx_ioctl()::FBIOG*macallan
now Xorg can find us
2021-10-22rename "setup_interrupts" to "alloc_interrupts"yamaguchi
in virtio_mmio and virtio_acpi This should fix build failure on evbarm.
2021-10-21regenjakllsch
2021-10-21add Edimax N150 adapter; tested on my PBPjnemeth
2021-10-21regenjnemeth
2021-10-21add Edimax N150 adapter; tested on my PBPjnemeth
2021-10-21fix various typos, mainly in comments, but also in man pages and log messages.andvar
2021-10-21Restore 16-byte FIFO for ns16550a, accidentally lost in r1.344.jmcneill
Spotted by msaitoh. Thanks!
2021-10-21virtio: fix missing release of interrupt resourcesyamaguchi
2021-10-21virtio: reconfigure MSI-X vector on re-initializationyamaguchi
This may fix a problem that some interrupts, for example link-state change of vioif(4) are not notified.
2021-10-21divide setup routine of virtio interruptsyamaguchi
into establishment and device configuration
2021-10-21Significant update to the synaptics touchpad driver.blymn
* Accumulate packets for primary, secondary, finger count packets before handing off to pms_synaptics_process_packet. This means that both primary and, possibly, secondary finger locations will be processed at the same time. Previously the processing each packet as it arrived. * Fix the secondary finger position reporting, there was an off by one in the shifts when decoding which effectively halved the reported position. * For a clickpad, make the emulated button region "dead" so that finger movements in this region are ignored. This makes it easier to click a button without accidentally repositioning the cursor. There is a sysctl variable "button_region_movement_enable" that will allow these finger movements to be reported if this is desirable. * Reset the finger ballistics when the number of fingers changes. This stops the annoying position jumps when a second finger touch is added to or removed from the touchpad. * Add a level argument to the DPRINTF macro so one can choose their level of debug spam via the debug sysctl variable.
2021-10-21acpi: com: Honour the reg-shift propertyjmcneill
2021-10-20- fix clang compilation: add "%s" to format stringchristos
- comma is followed by space - KNF multi-line comments - fold long lines - early returns, fixes a missed iic_release_bus() on error. - foo == false -> !foo
2021-10-20Use wm_flush_desc_rings() more.msaitoh
- Use wm_flush_desc_rings() for newer than PCH_SPT, too. Same as other OSes. It seems that some devices has no this errata, but we don't know how to identify it. So just use >= PCH_SPT. - Use wm_flush_desc_rings() before chip reset in wm_resume(), too.
2021-10-20Disable printf()s in wm_flush_desc_rings() because the code is verified.msaitoh
The problem was very rare, so I added those printf()s as we can see. Last week, knakahara and I found a procedure to reproduce the problem and verified it worked correctly. To reproduce the problem: 0) Use I219 V1 to V5. Not all of them have the problem and newer than V5 may have the problem. I used V2 for the test. 1) Define WM_DEBUG or add printf in wm_flush_desc_rings() to see DESCRING_STATUS_FLUSH_REQ bit. 2) Run "iperf -s" on the DUT. 3) Run "iperf3 -R -u -c 192.168.1.110 -w 8m -b 1g" repeatedly on another machine. Note that kern.sbmax should be increased on both machines. 4) run while true; do ifconfig wm0 down up sleep 30 done 5) After DESCRING_STATUS_FLUSH_REQ is set, without wm_flush_desc_rings(), TX stalls and reboot is required to recover from it. With wm_flush_desc_rings(), no device hang. 6) If you can't see the DESCRING_STATUS_FLUSH_REQ is set, change the media to 100BASE-T. Note that if_wm.c rev. 1.710 originally written by chuq is required for the test. Without the change, the device becomes unrecoverable state before wm_flush_desc_rings() and the function doesn't recover from the problem.
2021-10-20Change DMA physical address in wm_flush_desc_rings() to match other OSes.msaitoh
- Even without this change, the workaround works with my machines. - Add comment.
2021-10-20Fix return value of interrupt handler, pointed out by msaitoh@n.o.knakahara
Even if stopping flag is set (and handler do nothing), the interrupt itself should be assume to be processed when ICR is not zero. If not, interrupt count is not incremented correctly.
2021-10-20Uniform INTx/MSI handler's Tx/Rx behavior to MSI-X's one.knakahara
Because the difference has caused INTx/MSI own bugs.
2021-10-20Fix Tx stall, reported and implemented original patch by chs@n.o, thanks.knakahara
Check if_snd queue because if.c::if_transmit() doesn't call ifp->if_start() when IFQ_ENQUEUE failed. Reviewed and tested by chs@n.o and msaitoh@n.o.
2021-10-20- microtime -> microuptimejmcneill
- avoid kpause with timeo=0
2021-10-18Fix llvm build: error: equality comparison with extraneous parentheseschristos
[-Werror,-Wparentheses-equality]
2021-10-18Whitespace nits.simonb
2021-10-18Only print an error about missing I/O BARs for chips that need it.jmcneill
2021-10-18Use a local static variable to hold "pktq_rps_hash_default"hannken
like the other devices do. Kernel ALL/amd64 compiles again. OK: Kengo NAKAHARA <knakahara@netbsd.org>
2021-10-17regenandvar
2021-10-17s/Techonology/Technology/andvar
2021-10-17regenandvar