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 ...
kernel - Adjust devlcass arg for DRIVER_MODULE_ORDERED() macro* Adjust the argument to pass in &devclass instead of having the macro add the '&'. This allows NULL to be passed in, for better Fre
kernel - Adjust devlcass arg for DRIVER_MODULE_ORDERED() macro* Adjust the argument to pass in &devclass instead of having the macro add the '&'. This allows NULL to be passed in, for better FreeBSD compatibility.
Use 'sysmsg_result' macro for consistencyDon't directly use the 'sm_result' union member in 'struct sysmsg',consistent with other kernel code.
kernel: Change CFLAGS -> KCFLAGS also in commented out Makefile lines.
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: Add 'static' to some function definitions.The declarations already have it, so no functional difference.
Remove some old architecture handling.Affected #ifdefs:__arm__hp300__ia64____mips____powerpc____sparc64__
Clean up some more after the sys/emulation/linux removal.
kernel - Cleanup gcc warnings* Cleanup gcc warnings at higher optimization levels. This will allow us to build kernels -O2 or -O3.
kernel, world - Remove the remaining vestiges of linux emul* Remove the remaining bits of the 32-bit linux emulation code. This code hasn't been used in ages and we have no plans to implement a
kernel, world - Remove the remaining vestiges of linux emul* Remove the remaining bits of the 32-bit linux emulation code. This code hasn't been used in ages and we have no plans to implement a 64-bit linux emulation.
Add quotes to ${MACHINE_ARCH} checks in Makefiles.Also s/amd64/x86_64/ in one case.
kernel: Use the new auto-created sysctl ctx/tree in various drivers.Everywhere where we formerly rolled a hw.fooX.* per-device ctx/treeourselves.This commit switches it to dev.foo.X.*
kernel/amr: Move amrd (disk) adding before amrp (cam passthrough).This fixes a panic seen when amr/amrp were compiled into the kernel.Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/2575>Rep
kernel/amr: Move amrd (disk) adding before amrp (cam passthrough).This fixes a panic seen when amr/amrp were compiled into the kernel.Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/2575>Reported-by: justinActual-fix-by: sephe
kernel: Remove unused kmalloc types: M_AMRCAM, M_DEVT, M_ZOMBIE.
kernel: Clean up some module Makefiles.Adding missing opt_*.h and use_*.h mostly.
Use C99 __func__ instead of __FUNCTION__.
kernel: Use DEVMETHOD_END in the drivers.
kernel/amr: Extend the visibility of AMR_DEBUG.Half the code was missing the setting of AMR_DEBUG in the config filebecause its visibility was reduced to amr.c only.Reported-by: tuxillo
Replace few more cases where %D format string is used.Also remove a reference to %D in kvcprintf's comment.
kernel: Remove some unused variables in RAID and disk drivers.
kernel: Replace the remaining __amd64__ with __x86_64__ for consistency.
kernel: Use NULL instead of 0 for pointers, part 2/x.Found-with: Coccinelle (http://coccinelle.lip6.fr/)
amr(4): Remove some unused code (amr_timeout()).Taken-from: FreeBSD
amr(4): Remove an extra newline in a debug message.
amr(4): Make AMR_DEBUG a kernel configuration option.
1234