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 ...
Use ${} instead of $() in various makefilesAlso use ${.TARGET} and ${.ALLSRC] wherever impossible.Minor style adjustment in at(1)'s makefiles.
world/kernel: Use the rounddown2() macro in various places.Tested-by: zrj
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: 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/hpt*: Mangle names of foreign binary objects.We already do it for the firmware objects (.fwo). Explictly handleunpacked precompiled objects to separate them from other generic ones.These a
kernel/hpt*: Mangle names of foreign binary objects.We already do it for the firmware objects (.fwo). Explictly handleunpacked precompiled objects to separate them from other generic ones.These are not device firmware and they do run on CPU, also they havedifferent osabi tag, so without adjustment the ld.gold (default ld)will change osabi for the whole linked object.Having them seprated from the rest simplifies the depend logic, suchobjects have no source or headers dependencies other than hardcodedone in Makefiles. Add missing dependencies on .uu in kernel modules.
kernel/hpt*: Avoid empty macros.Suppresses 14 -Wempty-body warnings.
sys: Avoid extended ASCII.Use UTF-8 where needed, use plain ASCII where possible.Minor cleanup in dev/raid/arcmsr/arcmsr.h (for readability).No functional change.
kernel: Remove some semicolons at the end of macro definitions.
kernel/hptmv: Use __DragonFly__ instead of __DragonFly_version.
kernel: Fix wrong indentation in a few places.
kernel: Add 'static' to some function definitions.The declarations already have it, so no functional difference.
build - Separate out CFLAGS for kernel & module build* Make COPTFLAGS apply to module builds in addition to kernel builds.* Implement a new make variable, KCFLAGS, for specifying overrides for
build - Separate out CFLAGS for kernel & module build* Make COPTFLAGS apply to module builds in addition to kernel builds.* Implement a new make variable, KCFLAGS, for specifying overrides for kernel and module builds.* Fixup the module build infrastructure to use KCFLAGS, and get rid of infiltration from the more generic CFLAGS onto the kernel & modules build.
Remove FreeBSD OS/ABI from raid driver blobs.This fixes kgdb issues when the kernel was linked with ld.gold.The problem was caused by ld.gold's behaviour of setting the OS/ABI inthe output binar
Remove FreeBSD OS/ABI from raid driver blobs.This fixes kgdb issues when the kernel was linked with ld.gold.The problem was caused by ld.gold's behaviour of setting the OS/ABI inthe output binary to FreeBSD when any of the input objects is taggedwith the FreeBSD OS/ABI.The hpt27xx, hptmv and hptrr raid-drivers are using binary blobs, withthe FreeBSD OS/ABI flag, so we should just set the OS/ABI of theseobjects to none after uudecode-ing them.
kernel: Use NULL for pointers in DRIVER_MODULE* calls.
i386 removal, part 27/x: Remove i386 specific stuff from the RAID drivers.pst(4) goes completely.
i386 removal, part 5/x: Remove i386 parts of the HighPoint RAID drivers.
kernel/hptmv: Don't mess up the struct by copying too much.VendorId is only 8 chars.
kernel/hptmv: Use __offsetof().
kernel: Use our offsetof() from <sys/types.h> instead of a local one.On GCC 4.1 and later, our offsetof() winds up being __builtin_offsetof(),which is constant to GCC, so as a nice benefit this co
kernel: Use our offsetof() from <sys/types.h> instead of a local one.On GCC 4.1 and later, our offsetof() winds up being __builtin_offsetof(),which is constant to GCC, so as a nice benefit this commit also fixes twoGCC 4.7 warnings:.../dirhash.h:97:95: warning: variably modified 'dh_firstfree' at file scope.../vdevice.h:145:2: warning: variably modified '_ArrayTables' at file scopeThere are more offsetof() candidates I need to get to but since those twofix warnings, I commit them now.
kernel: Use DEVMETHOD_END in the drivers.
kernel: Use M_ZERO instead of bzero()ing.
kernel: Remove unneeded #include <sys/devicestat.h> in disk/RAID drivers.
kernel: Use NULL instead of 0 for pointers, part 2/x.Found-with: Coccinelle (http://coccinelle.lip6.fr/)
kernel: Use NULL instead of 0 for pointers, part 1/x.Found-with: Coccinelle (http://coccinelle.lip6.fr/)
12