summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2023-04-19virtio(4): change variable name, nfcyamaguchi
2023-04-19Fix not to allocate unnecessary descriptoryamaguchi
fixes PR/57358
2023-04-19Use enumeration for state of a child driver instead of flagsyamaguchi
and check its detaching by using sc->sc_child in virtio_softc pointed out by riastradh, thanks. fixes PR/57357
2023-04-18sb(4): Fix missing mutex initialization at isapnp and ofisa.riastradh
PR kern/57363 XXX pullup-8 XXX pullup-9 XXX pullup-10
2023-04-17Input and output codecs produce and consume internal audio data, somlelstv
don't byteswap it.
2023-04-16Handle packet scheduling for high/super speed.mlelstv
More UAC2 handling for input/output/feature/selector units. Setting sample rate for UAC2 now works, still no support for clock selectors and multipliers. Added sysctl to set debug level. Minor fixes.
2023-04-16viocon(4): Show error in assertion failure.riastradh
2023-04-16virtio@pci: Fix assertion on detach.riastradh
If the child never attached in the first place, it's OK for it to not have detached. XXX This should not be a set of flags; this should be a state enumeration, because some flags make no sense, like FINISHED|FAILED. XXX This should not be asserted separately in each bus; there should be a single place in virtio.c to assert this, uniformly in all buses. PR kern/57357 XXX pullup-10
2023-04-16Do not create the sysctl tree if the initial setup of the chip fails.brad
2023-04-16DesignWare watchdog ACPI attach gluejmcneill
2023-04-16Separate DesignWare watchdog driver and FDT glue.jmcneill
2023-04-13dk(4): Explain why dk_rawopens can't overflow and assert it.riastradh
2023-04-12ichsmb(4), tco(4): Add support for TCO on newer Intel chipsets.riastradh
TCO (`Total Cost of Ownership', Intel's bizarre name for a watchdog timer) used to hang off the Intel I/O platform controller hub's (ICH) low-pin-count interface bridge (LPC IB), or ichlpcib(4). On newer devices, it hangs off the ICH SMBus instead. Tested on INTEL 100SERIES_SMB (works) and INTEL 100SERIES_LP_SMB (doesn't work, still not sure why). XXX kernel revbump: This breaks the module ABI -- tco(4) modules older than the change to make ta_has_rcba into ta_version will incorrectly attach at buses they do not understand. (However, the tco(4) driver is statically built into GENERIC, so maybe it's safe for pullup since the module wouldn't have worked anyway.)
2023-04-11com(4): Note ttylock in comment, not tty_lock.riastradh
2023-04-11com(4): Note timecounter_lock in lock order comments.riastradh
2023-04-11KNF. No functional change.msaitoh
2023-04-11Test cpuid_level in tprof_intel_ncounters().msaitoh
This function is called before tprof_intel_ident().
2023-04-11usb(9): Assert ud_ifaces is null before we clobber it.riastradh
2023-04-11Obtain the number of general counters from CPUID 0xa.msaitoh
2023-04-10Reduce excessive settle delay.mlelstv
2023-04-10Better descriptor parsing.mlelstv
Add sanity check if no default format is found.
2023-04-10Handle more UAC2 descriptors and add debug output.mlelstv
Fix handling of clock sources (mix.wIndex wasn't set). UAC2 can use separate clock sources (and thus sample rates) for each terminal. That doesn't match the audio(4) model where sample rates are part of an audio format and global. For now, try to match clocks for input and output terminals separately.
2023-04-10Write slinear_le 16bit samples, independent from platform andmlelstv
AUDIO_INTERNAL_BITS.
2023-04-09xhci(4): Avoid crash in suspend/resume/resume if first resume fails.riastradh
Rather than try to recover from this, just make new commands fail so at least we don't deadlock. XXX pullup-9 XXX pullup-10
2023-04-07xhci(4): Defer root intr xfers while polling.riastradh
Root intr xfers require taking adaptive locks, which is forbidden while polling. This is not great -- any USB transfer completion callbacks might try to take adaptive locks, not just uhub_intr, and that will always causes trouble. We get lucky with ukbd_intr because it's not MP-safe, so it relies only on the kernel lock (a spin lock) anyway. But this change brings xhci in line with ehci. PR kern/57326 XXX pullup-8 XXX pullup-9 XXX pullup-10
2023-04-07Rename ARM_PLATFORM to FDT_PLATFORM and make it available outside arm.skrll
2023-04-06Regen.msaitoh
2023-04-06The SAATA device ID for Apollo Lake is not 0x5ae0 but 0x5ae3.msaitoh
2023-04-05remove some double ee typos in comments.andvar
2023-04-05s/esssentially/essentially/ in comment.andvar
2023-04-03Fix typos: s/trough/through/gutteridge
2023-04-03Remove unconditional UAUDIO_DEBUG again.mlelstv
2023-04-03Fix UAUDIO_DEBUG build.mlelstv
2023-04-02Add support for USB Audio Class 2.0.mlelstv
2023-04-02Add code for USB Audio Class 2.0.mlelstv
This is only half of the game as UAC2 devices tend to use 24bit or 32bit samples. This requires more support in audio(4).
2023-03-31Fix wrong variable namesyamaguchi
This fixes build errors in virtio_mmio.c
2023-03-31spkr(4): Avoid some overflow issues.riastradh
XXX pullup-8 XXX pullup-9 XXX pullup-10 Reported-by: syzbot+1a9980f3631bbd710ded@syzkaller.appspotmail.com https://syzkaller.appspot.com/bug?id=ea851fc4688cbac29a567cb49a4fd24d9afff426 Reported-by: syzbot+b4655f9c1734f886d610@syzkaller.appspotmail.com https://syzkaller.appspot.com/bug?id=b61236df29f595e38b12ee533b7b3275c8ec1865
2023-03-31Added flags to store status of attaching a virtio deviceyamaguchi
This prevents a panic on reboot after a virtio device had called virtio_child_attach_failed().
2023-03-31Use descriptor chain for free slots instead of vq_entry listyamaguchi
Descriptors can be chained by themself. And descriptors added to avail ring or used ring are already chained. But it was not used for unused descriptors and another linked list structure named vq_entry was used. The chain is also used for unused descriptors to make virtio(4) simpler.
2023-03-30raidframe: Nix unused parameter to raidwrite_component_area.riastradh
All calls use the same value. Prune dead branches using it.
2023-03-29virtio(4): Use flexible array members, not zero-length arrays.riastradh
This enables the compiler to detect sizeof mistakes like PR kern/57304.
2023-03-29virtio(4): Fix sizing of virtqueue allocation.riastradh
vq->vq_avail[0].ring is a zero-length array, and thus sizeof is zero; likewise vq->vq_used[0].ring. Use vq->vq_avail[0].ring[0] and vq->vq_used[0].ring[0] to fix this and restore the previous allocation sizing logic. XXX We shouldn't use zero-length arrays here -- they are asking for trouble like this, and C99 has a standard way to express what we're actually trying to get at it, flexible array members. PR kern/57304 Reported-by: syzbot+7fb1047f5dfa33b26331@syzkaller.appspotmail.com
2023-03-28s/interrput/interrupt/ and s/accesss/access/ in comments.andvar
2023-03-27Use PRIuBUSSIZE to print bus_size_t variables.nakayama
2023-03-27virtio(4): Avoid name collision with global intrhand on sparc64.riastradh
Pacifies -Werror=shadow. No functional change intended.
2023-03-26fix various typos in documentation, comments and sysctl device description.andvar
mainly aion -> ation and inlude -> include.
2023-03-25s/deteced/detected/ and s/couner/counter/ in comments.andvar
2023-03-25Mark as MPSAFE.mlelstv
2023-03-25Fix 32bit overflow when calculating balloon size.mlelstv
Don't make uvm_pglistalloc wait, it will wait forever. Instead rely on the retries by this driver. This also allows to cancel the request. Increase inflate speed by factor 10 (same as deflate).
2023-03-25A single SCSI request may require multiple slots in the virtio queuemlelstv
but the queue isn't sized for the theoretical maximum. So just use XS_BUSY to pace the scsipi layer.