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 - 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: Don't include <sys/mutex.h> in some drivers that don't need it.
Remove some old architecture handling.Affected #ifdefs:__arm__hp300__ia64____mips____powerpc____sparc64__
i386 removal, part 34/x: Remove some i386 traces from the kernel.
kernel/sym: Remove an extra semicolon in a #define.
Remove a bunch of unnecessary semicolons.
kernel: Use DEVMETHOD_END in the drivers.
kernel/disk: Remove some unused variables and add __debugvar.
kernel: Remove some bogus casts to the own type.
kernel: Remove some bogus casts of NULL to something.
kernel: Remove newlines from the panic messages that have one.panic() itself will add a newline.
sym(4): Sync with FreeBSD.This fixes disk detection issues in QEMU, among other things. It is alsoavailable as a module now.Tested-by: tuxillo
kernel: Use NULL for pointers.
sym(4): Remove excessive semicolons.They are provided by the macro definition.This is the same what FreeBSD did in r118472.
Move static & inline to the beginnings of declarations.
kernel: Use NULL for DRIVER_MODULE()'s evh & arg (which are pointers).This is just cosmetics for easier reading.
kernel: Fix the remaining gcc44 warnings for the kernel.
kernel: Use NELEM() where we can.
kernel: Remove a number of unnecessary use_*.h inclusions.
rename amd64 architecture to x86_64The rest of the world seems to call amd64 x86_64. Bite the bullet andrename all of the architecture files and references. This willhopefully make pkgsrc build
rename amd64 architecture to x86_64The rest of the world seems to call amd64 x86_64. Bite the bullet andrename all of the architecture files and references. This willhopefully make pkgsrc builds less painful.Discussed-with: dillon@
Revert "rename amd64 architecture to x86_64"This reverts commit c1543a890188d397acca9fe7f76bcd982481a763.I'm reverting it because: 1) the change didn't get properly discussed 2) it was based on
Revert "rename amd64 architecture to x86_64"This reverts commit c1543a890188d397acca9fe7f76bcd982481a763.I'm reverting it because: 1) the change didn't get properly discussed 2) it was based on false premises: "The rest of the world seems to call amd64 x86_64." 3) no pkgsrc bulk build was done to test the change 4) the original committer acted irresponsibly by committing such a big change just before going on vacation.
Generally use NULL instead of explicitly casting 0 to some pointer type (part2).
12