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: 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.
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.
arcmsr(4): Upgrade to Areca's Revision 1.40.00.00.This adds support for various adapters: ARC1203, ARC1216, ARC1226, andARC1884.Detailed list of changes:1. fix ADAPTER_TYPE_D scanning device t
arcmsr(4): Upgrade to Areca's Revision 1.40.00.00.This adds support for various adapters: ARC1203, ARC1216, ARC1226, andARC1884.Detailed list of changes:1. fix ADAPTER_TYPE_D scanning device timeout.2. fix ADAPTER_TYPE_D getting configuration data.3. eliminate ending white-space of code.4. align some code for more readable.5. modify code of ADAPTER_TYPE_B for support ARC-12036. add a new ADAPTER_TYPE_E for support ARC-18847. adapter ARC-1215, 1225, 1216, 1226 are belong to ADAPTER_TYPE_C also support in this driver.8. redefine ADAPTER_TYPE_A,B,C,D valueThanks to Areca for actively supporting DragonFly!!Submitted-by: Ching Huang <ching2048@areca.com.tw>Tested-by: kerma (Michael)
kernel: Add 'static' to some function definitions.The declarations already have it, so no functional difference.
kern: Fix [-Werror=aggressive-loop-optimizations]These were basic upper bound checking errors on loops
arcmsr: Make callout locking more robust* The callout subsystem can deadlock if a callout function is holding a lock at the same time callout_stop() is called* Use the new callout_init_lk() fun
arcmsr: Make callout locking more robust* The callout subsystem can deadlock if a callout function is holding a lock at the same time callout_stop() is called* Use the new callout_init_lk() function from DragonFly 4.1 to prevent this situation from occuringReviewed-by: swildner
kernel: Use NULL for pointers.
arcmsr(4): Sync with FreeBSD (1.20.00.25 -> 1.20.00.29).Adds support for ARC1214, ARC1224, ARC1264, ARC1284, and ARC1883, mainly.Unfortunately, lots of style fixes, whitespace adjustment, etc. ar
arcmsr(4): Sync with FreeBSD (1.20.00.25 -> 1.20.00.29).Adds support for ARC1214, ARC1224, ARC1264, ARC1284, and ARC1883, mainly.Unfortunately, lots of style fixes, whitespace adjustment, etc. are mixed upin it too, so it's a rather large commit.Also, this upgrade has so far only been tested with my ARC-1210.
Another typo fixing round (in messages and manpages) across the tree.
kernel/raid: CAM_NEW_TRAN_CODE is default for over 5 years.
kernel: Use DEVMETHOD_END in the drivers.
arcmsr(4): Add missing D_MPSAFE (forgot when porting).
arcmsr(4): Remove some dead code and an unused variable.Interrupts won't be enabled again in arcmsr_shutdown().
Fix some typos (unknow -> unknown).
kernel: Remove unneeded #include <sys/devicestat.h> in disk/RAID drivers.
kernel: Fix some wrong cam_simq_release() calls.Our (refcounted) simq can be released right after allocating the sim.These drivers were not doing it correctly.
arcmsr(4): Sync with FreeBSD (Areca's driver version 1.20.00.25).Some bug fixes and added support for ARC-1213, ARC-1223 and ARC-1882.Thanks to ftigeot for giving it some testing.
arcmsr(4): Use cam_calc_geometry().
arcmsr(4): To check for sense data, use sense_len.Checking the address of a variable or field is going to be always true.
kernel: Remove some bogus casts to the own type.
arcmsr(4): Disable MSI support on the 1880 models.There is definitely MSI related breakage here (resulting in ccbcommand timeout issues). It was verified with an ARC-1880i thatwas kindly provided
arcmsr(4): Disable MSI support on the 1880 models.There is definitely MSI related breakage here (resulting in ccbcommand timeout issues). It was verified with an ARC-1880i thatwas kindly provided by ftigeot.On the other hand, my ARC-1210 works like a charm using MSI.Reported-by: ftigeot
arcmsr(4): Sync with FreeBSD.Updates to 1.20.00.22Some bugfixing (mainly, better timeout handling) and cleanups.
12