busdma - Remove filter functionality- Remove filtfunc and filtarg arguments from bus_dma_tag_create() and fix all callers. All callers use NULL today for both filterfunc and filterarg with one
busdma - Remove filter functionality- Remove filtfunc and filtarg arguments from bus_dma_tag_create() and fix all callers. All callers use NULL today for both filterfunc and filterarg with one exception: if_jme.- Remove filter functionality internally and parent tag tracking. Without filter functions, we do not need to keep track of tag ancestry. All inheritance of the parent tag's parameters occurs when creating the new child tag.- rename run_filter() to addr_needs_bounce().- FreeBSD keeps the filtfunc and filtarg arguments but requires them to be NULL.- Drop filterfunc usage from if_jme. In case of "JMC260 chip full mask revision 2", which has a hardware bug when it comes to DMA transfers crossing the 4 GB bounday, the parent buffer tag already limits DMA memory to 32bit address space. As such it should be safe to drop the filterfunc. The filterfunc was checking if the lower 32bits of the physical address used for DMA are all 0. In case of a 32bit address space, the only address where all lower 32-bits are all zero is 0 itself and I am here assuming that the physical address 0 is not used for DMA transfers!Mainly obtained from: FreeBSD (commits 7cb028de, 900907f4, 1228b93b, 3933ff56)
show more ...
build - Change '@' symlink to 'dragonfly'* Change the '@' symlink to 'dragonfly', making it easier for #include overlays to chain to dragonfly headers in the future.
sound - Fix panic* Fix panic due to uninitialized variable that can be triggered by a browser under certain circumstances.Reported-by: mwiencek (Michael Wiencek)
Fix various grammatical issues in our messages, documentation etc. (2)
kernel: Remove <sys/mutex.h> from all files that don't need it (2/2).98% of these were remains from porting from FreeBSD which could havebeen removed after converting to lockmgr(), etc.Due to an
kernel: Remove <sys/mutex.h> from all files that don't need it (2/2).98% of these were remains from porting from FreeBSD which could havebeen removed after converting to lockmgr(), etc.Due to an issue in my checking earlier, not everything was cleaned upcorrectly.
kernel: Remove <sys/mutex.h> from all files that don't need it.98% of these were remains from porting from FreeBSD which could havebeen removed after converting to lockmgr(), etc.While here, do
kernel: Remove <sys/mutex.h> from all files that don't need it.98% of these were remains from porting from FreeBSD which could havebeen removed after converting to lockmgr(), etc.While here, do the same for <sys/mutex2.h>.
Revert "Remove unneeded *_if.c from SRCS in kernel module Makefiles that have it."This reverts commit 99bd8089615e30757d8327c0a5afe0b8fe69d337.Oops, this seems to have broken a few things after a
Revert "Remove unneeded *_if.c from SRCS in kernel module Makefiles that have it."This reverts commit 99bd8089615e30757d8327c0a5afe0b8fe69d337.Oops, this seems to have broken a few things after all. I'll investigate better.Reported-by: Peeter Must
Remove unneeded *_if.c from SRCS in kernel module Makefiles that have it.Those are always compiled into the kernel, per NORMAL_M in kern.pre.mk,so they don't need to be in a module's SRCS. This re
Remove unneeded *_if.c from SRCS in kernel module Makefiles that have it.Those are always compiled into the kernel, per NORMAL_M in kern.pre.mk,so they don't need to be in a module's SRCS. This removes the few caseswhere they were added by mistake.
sound/hda: Use driver specific taskqueue, instead of per-cpu taskqueueThis driver is not per-cpu ready, so don't user per-cpu taskqueue,which causes assertion during taskqueue_enqueue. Instead us
sound/hda: Use driver specific taskqueue, instead of per-cpu taskqueueThis driver is not per-cpu ready, so don't user per-cpu taskqueue,which causes assertion during taskqueue_enqueue. Instead use driverspecific taskqueue.
world/kernel: Use the rounddown() macro in various places.Tested-by: zrj
kernel - Rejigger midistat functions to close a race* Make sure lock has full coverage across midistat_open() and midistat_read(). The temporary drop of the lock in midistat_read() lead to a r
kernel - Rejigger midistat functions to close a race* Make sure lock has full coverage across midistat_open() and midistat_read(). The temporary drop of the lock in midistat_read() lead to a race which allows one to read kernel memory beyond the end of the sbuf buffer.* Rejigger the code to remove the global offset and just use uio_offset, which also fixes the same race (but leave the lock coverage in place regardless).Taken-From: FreeBSDSecurity: CVE-2019-5612
kernel: Use NULL for pointers, not 0.
kernel - Add AC256 (sound) quirk* Add quirk for AC256 sound devices.Taken-from: FreeBSDTested-by: drill-use@irc
kernel/sound: Remove local KOBJMETHOD_END defines.
kernel: Remove unused *.h files from SRCS in kernel module Makefiles.They were found by checking the preprocessed code of the filesin SRCS to see if the header was included at some point.After r
kernel: Remove unused *.h files from SRCS in kernel module Makefiles.They were found by checking the preprocessed code of the filesin SRCS to see if the header was included at some point.After removal, the preprocessed source of a build with the oldMakefiles was compared against one with the changes (for variouskernel configurations and when building just from /usr/src) toverify that the commit leads to no functional change.
kernel: Remove more duplicate includes.
kernel: Use NULL for pointers in DRIVER_MODULE().
sound - Allow /dev/sndstat to be opened multiple times from one process.* This still isn't great, but at least it's enough to make pulseaudio's oss module detect the audio devices correctly.* T
sound - Allow /dev/sndstat to be opened multiple times from one process.* This still isn't great, but at least it's enough to make pulseaudio's oss module detect the audio devices correctly.* This now uses the buf->uio_offset, instead of trying to track the read position ourselves in the driver with sndstat_bufptr.
sound - Fix mmap handling for /dev/dsp* devices.* The d_mmap function is expected to return a page index, not an address, the the atop() function for this as usual.
kernel: Port some remaining, yet unused, *_TRYLOCK() functions.This is just for cleanup and obviously changes nothing.
kernel: Fix some wrong porting of *_TRYLOCK() macros.Of these three, only CHN_TRYLOCK() is used in actual, active code,but it is in the SNDCTL_DSP_SYNCSTART ioctl which in turn is notused in base
kernel: Fix some wrong porting of *_TRYLOCK() macros.Of these three, only CHN_TRYLOCK() is used in actual, active code,but it is in the SNDCTL_DSP_SYNCSTART ioctl which in turn is notused in base or in dports.ARCMSR_LOCK_TRY() and PCM_TRYLOCK() are not used at all.
Fix a few typos across the tree.
Replace local array size calculations with NELEM().
kernel: Remove last use cases of "%b" format.Switch to args safe "%pb%i" internal format.
sound/hda: Disable hdac_pcie_snoop struct.It is currently unused.
12345678910>>...13