summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2022-05-07Add support for Apple silicon NVME. Ported from OpenBSD.skrll
2022-05-07Fix typos.msaitoh
2022-05-07s/contrller/controller/ in comment.msaitoh
2022-05-05Whitespace.msaitoh
2022-05-05Add some code for the SKINNY variant to make Dell PERC H310 work.msaitoh
2022-05-04Regenmartin
2022-05-04Rename one of the XEONSC_RAS entries slightly to avoid conflictsmartin
2022-05-04fix various typos in comments and log messages.andvar
2022-05-04s/entires/entries/andvar
2022-05-04regennia
2022-05-04More Xeon Scalable / Skylake-E devicesnia
2022-05-04White space KNF nits.simonb
2022-05-03fix various typos, mainly s/trasfering/transferring/ and s/theese/these/.andvar
2022-05-03if_wm.c: various spelling and grammar fixesgutteridge
2022-05-01attach the other pciid for intel 100 series KT serial.mrg
seen on a thinkpad 460s.
2022-04-28be lazy about clearing the cursor - in most cases we're about to overwrite itmacallan
anyway. Same logic as with VCONS_DONT_READ. visible speedup in things like systat and top
2022-04-27I have been using this for a while and forgot to commit it. This addbrad
a number of KERNEL_LOCK() calls and at the very least prevents gpioiic from panicing the system. This may be a fix for kern/56438.
2022-04-27After testing with a couple of more samples of the SHT3x sensor chipbrad
it was found that the datasheet does not appear to provide enough information to make use of the alarm and interrupt function work. So actually remove the dead code that was an attempt at making that all work. Adjust the man page to mention that this.
2022-04-27Regen.msaitoh
2022-04-27Update some AMD devices:msaitoh
- Rename AMD 15h/6xh devices. - Add some devices. - Use OHCI for OHCI device. - Use EHCI for EHCI device. - and some minor changes.
2022-04-25Add missing num_{tx,rx}_desc sysctl to sync with ixgbe.c.msaitoh
2022-04-25Add missing num_tx_desc sysctl.msaitoh
2022-04-25Limit {tx,rx}_process_limit sysctl values from 1 to num_{tx,rx}_desc.msaitoh
2022-04-25Use cached rx_copy_len in ixgbe_rxeof().msaitoh
2022-04-25Modify comment for consistency. No functional change.msaitoh
2022-04-25Update firmware for Intel Centrino Advanced-N 6205 WiFi cardsgutteridge
Use the final version of firmware provided for these cards. This has been tested with both variants of impacted iwn(4) cards (6005_2X2_1 and 6005_2X2_2, as found in a Dell E6230 and a Lenovo T420), improvements noted.
2022-04-24virtio: cosmetics - use (*pfn)(...) syntax.uwe
Some people prefer to call function pointers without an explicit dereference (that is purely cosmetic in this position), especially to create faux c++ s->pfn(...) with function pointers in struct members. Some prefer explicit dereference (that requires parens around it). (pfn)(...) without dereference but with parens looks odd to both, so make it conform to one of the established alternatives. Same object code is generated.
2022-04-24Add missing argument to debug printf.hannken
2022-04-24Trailing whitespaceskrll
2022-04-23Need vnode locked fot VOP_FDISCARD().hannken
2022-04-23audio(4): Fix a typo in comment. Remove several old comments.isaki
2022-04-23audio(4): Clean up about audio_realloc().isaki
- audio_realloc() never returns NULL, so there is no need to check it. - audio_free() is no point in this case.
2022-04-23audio(4): Remove no longer used counters.isaki
These were used at very early phase of development.
2022-04-23audio(4): Restore(implement) AUDIO_GETIOFFS ioctl.isaki
2022-04-23audio(4): Fix an (unintended) minor behavior on AUDIO_FLUSH.isaki
On NetBSD7, when AUDIO_FLUSH was issued, .offset of AUDIO_GETOOFFS was reinitialized (to one block ahead from zero) or unchanged depend on whether the user encoding is hardware native or not (probably). I don't believe that it's intended or we need to maintain it. Now, AUDIO_FLUSH always clears the offset to zero.
2022-04-22Regenskrll
2022-04-22Add some Broadcom devices. From OpenBSD.skrll
2022-04-21s/substract/subtract/ in comments and error message.andvar
s/obtainted/obtained/ in one comment.
2022-04-21#if 0 now unused audio_track_is_record() to appease clangmacallan
2022-04-20vio9p: avoid null pointer dereference on attach.uwe
Pass "vqs" argument to virtio_child_attach_start(). The virtio API is not quite clear to me here - there's also a separate setter virtio_child_attach_set_vqs that performs some additional actions. Queue setup for Virtio 1.0 accesses virtio_softc::sc_vqs and we didn't set it. QEMU exposes only the old virtio interface, so it doesn't trigger the problem.
2022-04-20audio(4): Rework AUDIO_GETOOFFS.isaki
- Count .samples/.deltablks in blocks. It makes .deltablks integer wrap around safe. - Remove suspicious one block offset from .offset. I added the offset because it was observed so on NetBSD7. But according to manpage, it should not be. And it looks fine without the offset. - Related to that, remove a comment in AUDIO_WSEEK. Limit the user-visible buffer to usrbuf only.
2022-04-20audio(4): Make recording buffer more robust.isaki
Previously, main buffer in recording track was usrbuf, which is the closest buffer to the userland. Because, this buffer arrangement was symmetrical with the playback track, and had affinity with the past implementation. However, in the current implementation, read(2) (from user application) takes recorded block out from inputbuf, which is the closest buffer to rmixer, to usrbuf. So it was not good way to use the usrbuf as main buffer. Now, usrbuf in recording track holds only fragment bytes in order to transfer to the userland, and main buffer in recording track is the inputbuf, the closest to rmixer. Buffer size of the inputbuf is also modified. Previously, it was less than 64KB or at least 4 blocks. This had affinity with playback track and the past implementation. But this was not appropriate for both formats with too large frames or too small frames. In large frames (for example, 192kHz/12ch), 184KB buffer would be allocated but it corresponds to only 40msec. In opposite, in small frames (for example, 8000Hz/1ch), 64KB buffer would be allocated and it corresponds to 4.1 seconds. But for such machines that have 8000Hz/1ch device, in-kernel 64KB memory would probably be expensive. Now, inputbuf will always be allocated 16(NBLKIN) blocks, regardless of its hardware format. It corresponds to 160msec on modern archs (if blk_ms=10), or 640msec on antique archs (if blk_ms=40).
2022-04-20audio(4): Make debug messages better in audio_ioctl() and mixier_ioctl().isaki
Divide by case. Reduce to one line if possible.
2022-04-19audio(4): Wait for opens to drain in detach.riastradh
Otherwise detach may barge ahead and start freeing things before open has finished and is about to use them after free. Reported-by: syzbot+31d2619e72c2c8436cc9@syzkaller.appspotmail.com
2022-04-19umcs(4): Avoid using uninitialized data if register read fails.riastradh
Reported-by: syzbot+511b32f415150b469250@syzkaller.appspotmail.com
2022-04-18Do not attach if the parent bus failed to provide an ISA chipset tag.jmcneill
2022-04-17fix various typos in comments.andvar
2022-04-17umb(4): Use memcpy, not potentially unaligned/aliased casts.riastradh
2022-04-17umb(4): Validate descriptor lengths.riastradh
2022-04-17uvideo(4): Parse descriptors more robustly.riastradh
Validate lengths and types before barging ahead. Not sure exactly which missing validation syzbot tripped on here, but I'm pretty sure I caught all the cases. Reported-by: syzbot+60f0a25c077b67547f57@syzkaller.appspotmail.com