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 - Rewrite the callout_*() API* Rewrite the entire API from scratch and improve compatibility with FreeBSD. This is not an attempt to achieve full API compatibility, as FreeBSD's API has
kernel - Rewrite the callout_*() API* Rewrite the entire API from scratch and improve compatibility with FreeBSD. This is not an attempt to achieve full API compatibility, as FreeBSD's API has unnecessary complexity that coders would frequently make mistakes interpreting.* Remove the IPI mechanisms in favor of fine-grained spin-locks instead.* Add some robustness features in an attempt to track down corrupted callwheel lists due to originating subsystems freeing structures out from under an active callout.* The code supports a full-blown type-stable/adhoc-reuse structural separation between the front-end and the back-end, but this feature is currently not operational and may be removed at some future point. Instead we currently just embed the struct _callout inside the struct callout.* Replace callout_stop_sync() with callout_cancel().* callout_drain() is now implemented as a synchronous cancel instead of an asynchronous stop, which is closer to the FreeBSD API and expected operation for ported code (usb stack in particular). We will just have to fix any deadlocks which we come across.* Retain our callout_terminate() function as the 'better' way to stop using a callout, as it will not only cancel the callout but also de-flag the structure so it can no longer be used.
kernel - Change callout in struct ccb_hdr* Change the callout declaration in struct ccb_hdr from an embedded structure to a pointer, add padding to get the whole structure to its original size
kernel - Change callout in struct ccb_hdr* Change the callout declaration in struct ccb_hdr from an embedded structure to a pointer, add padding to get the whole structure to its original size (prior to the recent callout patch).* This removes an improper ABI dependency on the kernel struct callout structure which was causing 'camcontrol', and 'smartctl' (from smartmontools) to fail.Testing: dillon, tuxillo
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/disk: Remove use of "%b" format.Switch to args safe "%pb%i" internal format.
kernel - Cleanup gcc warnings* Cleanup gcc warnings at higher optimization levels. This will allow us to build kernels -O2 or -O3.
i386 removal, part 27/x: Remove i386 specific stuff from the RAID drivers.pst(4) goes completely.
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.*
ciss(4): Add forgotten D_MPSAFE to dev_ops and use callout_init_mp().
kernel: Use callout_stop_sync() in a number of drivers.
Use C99 __func__ instead of __FUNCTION__.
ciss(4): Fix build with CISS_DEBUG.
kernel: Use DEVMETHOD_END in the drivers.
kernel: Handle some variables only used in debug output.
kern - More work replacing %DUse hexncpy() for special cases where, for example,a different separator might be needed.
kernel: Remove some unused variables in RAID and disk drivers.
kernel: Replace the remaining __amd64__ with __x86_64__ for consistency.
ciss(4): Sync with FreeBSD.Tons of good stuff. MPSAFEness, MSI interrupts, better performance,and a lot more (I'm too lazy to go through FreeBSD's logs :P).Support for a number of adapters has b
ciss(4): Sync with FreeBSD.Tons of good stuff. MPSAFEness, MSI interrupts, better performance,and a lot more (I'm too lazy to go through FreeBSD's logs :P).Support for a number of adapters has been added, too:* HP Smart Array P220i* HP Smart Array P222* HP Smart Array P420* HP Smart Array P420i* HP Smart Array P421* HP Smart Array P700m* HP Smart Array P712m* HP Smart Array P721m* HP Smart Array P822I've tested it with a HP Smart Array P212.Many thanks to FreeBSD.
kernel: Remove newlines from the panic messages that have one.panic() itself will add a newline.
kernel: Use NULL for DRIVER_MODULE()'s evh & arg (which are pointers).This is just cosmetics for easier reading.
kernel: Remove most definitions of CDEV_MAJOR.These are no longer needed since we have devfs.A few are left in because they are added to the order in SYSINIT()s.This needs further investigation.
kernel - gcc -Os/-O2 warnings pass* This is just a partial pass on the code to start cleaning up gcc warnings at higher optimization levels.
kernel - unwind kthread_create() mplock* All kthread_create*() calls and kproc_start() calls now create threads which do not hold the mplock at startup.* Add get_mplock()/rel_mplock() to thread
kernel - unwind kthread_create() mplock* All kthread_create*() calls and kproc_start() calls now create threads which do not hold the mplock at startup.* Add get_mplock()/rel_mplock() to threads which are not yet mpsafe.* Remove rel_mplock() calls from thread startups which were making themselves mpsafe by releasing the mplock.* Kernel eventhandler API is now MPSAFE* Kernel kproc API is now MPSAFE* Rename a few thread procedures to make their function more obvious.
ciss(4): Use a more proper fix to silence the ciss_print0() warning.The real problem was that -DCISS_DEBUG=0 in the Makefile still definedCISS_DEBUG which isn't supposed to be defined by default.
123