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 - Fix bug in mpt_scsi_tgt_status()* Function overwrote the 'rsp' pointer instead of zero'ing a portion of the rsp target.
kernel/mpt: Fix evaluation of args in macro.
kernel - Cleanup gcc warnings* Cleanup gcc warnings at higher optimization levels. This will allow us to build kernels -O2 or -O3.
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.*
mpt(4): Add D_MPSAFE to ops.
mpt(4): Sync with FreeBSD.Nothing big, as far as I can tell. Some fixes and removal of oldcompatibility code.While here, use callout_init_mp() and callout_stop_sync().
kernel: Remove some more unused kmalloc types.M_MPSSASM_MPTUSERM_NETGRAPH_ITEMM_NWFSMNTM_PDUM_RDRANDM_SMBDATAM_SMBFSMNT
kernel/raid: CAM_NEW_TRAN_CODE is default for over 5 years.
kernel/dev: Remove some #include duplicates.
mpt(4): Use cam_calc_geometry() directly.
kernel/mpt: Remove empty macros.
kernel/mpt: Fix two operator precedence mistakes.
kernel: Use DEVMETHOD_END in the drivers.
mpt(4): Fix a panic in RAID operation.I ported it wrongly. FreeBSD uses callout_init_mtx() here.
mpt(4): Mark two functions __printflike.
kernel: Remove unneeded #include <sys/devicestat.h> in disk/RAID drivers.
kernel: Use NULL instead of 0 for pointers, part 1/x.Found-with: Coccinelle (http://coccinelle.lip6.fr/)
mpt(4): We don't have MOD_QUIESCE.
mpt(4): Fix a porting mistake I did in 6d259fc1.I left in both the code of the "#if __FreeBSD_version" as well as that ofits "#else". This caused the geometry to be calculated twice.
mpt(4): Use MSI on SAS adapters that support it.The hw.mpt.msi.enable tunable can be used to override this behavior.Tested-by: ftigeot
Fix more wrong sizeof() usages, part 2/xTake the size of the struct instead of the size of its address.Found-with: Coccinelle (http://coccinelle.lip6.fr/)
kernel: Remove the inclusion of opt_ddb.h from where it is unnecessary.None of these files uses DDB, DDB_UNATTENDED or GDB_REMOTE_CHAT (whichis what opt_ddb.h defines).
1234