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 ...
raid - disallow handles < -1 (-2, -3, etc)* Disallow illegal handles.* Note that this driver may soon be removed entirely.
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: Add 'static' to some function definitions.The declarations already have it, so no functional difference.
kernel: Generate miidevs.h, pccarddevs.h and pcidevs.h on the fly.It removes the need to regenerate those header file after first editingthe associated list of IDs (miidevs, pccarddevs or pcidevs)
kernel: Generate miidevs.h, pccarddevs.h and pcidevs.h on the fly.It removes the need to regenerate those header file after first editingthe associated list of IDs (miidevs, pccarddevs or pcidevs). After thiscommit, editing the list alone is enough to add IDs.We already did it like that for usb4bsd's usbdevs.h before. This commitadjusts things for the remaining ID lists.
iir: Prevent namespace collision with INTEL_VENDOR_IDUse the existing PCI_VENDOR_INTEL #define instead of the localINTEL_VENDOR_ID and avoid a conflict with the one in specialreg.h
kernel: Use DEVMETHOD_END in the drivers.
kernel: Handle some variables only used in debug output.
iir(4): Clean up some unused code.
kernel: Use NULL for DRIVER_MODULE()'s evh & arg (which are pointers).This is just cosmetics for easier reading.
iir(4): Sync with FreeBSD.* Remove an unused function.* Fix a wrong check (io was checked for NULL twice, instead of io and irq).
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: Remove some #ident.
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.
DEVFS - remove dev_ops_add(), dev_ops_get(), and get_dev()
Fix the way <sys/ioccom.h> is included throughout our tree.The original intention was to include it only in header files whichdefine ioctl codes and not in .c or .h files which include headerstha
Fix the way <sys/ioccom.h> is included throughout our tree.The original intention was to include it only in header files whichdefine ioctl codes and not in .c or .h files which include headersthat define ioctl codes.Adjust the tree to follow this idea.Pointed-out-by: Guy Harris <guy@alum.mit.edu>Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1334>
Sync iir(4) with FreeBSD.This fixes disk recognition with the Intel RAID Controller SRCU42L, andperhaps a few more other things.Tested-by: Konstantinos Pachnis <kpachnis@freemail.gr>Dragonf
Sync iir(4) with FreeBSD.This fixes disk recognition with the Intel RAID Controller SRCU42L, andperhaps a few more other things.Tested-by: Konstantinos Pachnis <kpachnis@freemail.gr>Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1128>
Sync CAM with FreeBSD using lockmgr locks instead of mutexes.Note: This is mostly a code sync with FreeBSD which improves stabilityin addition to the items listed below. This provides a framework
Sync CAM with FreeBSD using lockmgr locks instead of mutexes.Note: This is mostly a code sync with FreeBSD which improves stabilityin addition to the items listed below. This provides a framework forreleasing the mplock, but for now it's still there.Add an xpt_print function to reduce most of the xpt_print_path/printfpairs. Convert the core code to use it.Initial cut at Basic Domain Validation.Make cam_xpt's pronouncements match camcontrol (Tagged -> Command) Queueing.Pay attention to return value from xpt_bus_register in xpt_init.Add an xpt_rescan function and a thread that will field rescan requests.The purpose of this is to allow a SIM (or other entities) to request a busrescan and have it then fielded in a different (process) context from thecaller.Check the return value from cam_periph_acquire.Drop the periph/sim lock when calling disk_destroy().Drop the topology lock before calling the periph oninvalidate and dtorvectors.For the XPT_SASYNC_CB operation, only decouple the broadcast to the busand device lists instead of decoupling the whole operation. This avoidsproblems with SIMs going away.Split the camisr into per-SIM done queues. This optimizes the locking alittle bit and allows for direct dispatch of the doneq from certaincontexts that would otherwise face recursive locking problems.Zero the CCBs when mallocing them.Only schedule the xpt_finishconfig_task once.Eliminate the use of M_TEMP.Add a helper function for registering async callbacks.Release the bus reference that is acquired when doing a CAMIOCOMMAND ioctl.Zero scsi_readcapacity allocations so we can really tell if there hasbeen data returned.Remove duplicate includes and fix typos.Add a bunch of definitions and structures to support newer drivers.When probing a newly found device, don't automatically assume that thedevice supports retrieving a serial number. Instead, first query thelist of VPD pages it does support, and only query the serial number ifit's supported, else silently move on. This eliminates a lot of noiseduring verbose booting, and will likely eliminate the need for mostNOSERIAL quirks.Reduce diffs from FreeBSD.Obtained-from: FreeBSD
Make CAM_NEW_TRAN_CODE default.As previously mentioned, this makes a huge performance difference for oneof my disks, and future work depends on this change.Obtained-from: FreeBSD
Fixes for CAM_NEW_TRAN_CODE.This commit is taken from a FreeBSD changeset, and is not intended tobe comprehensive. Some drivers will still not compile/work with theCAM_NEW_TRAN_CODE option, but
Fixes for CAM_NEW_TRAN_CODE.This commit is taken from a FreeBSD changeset, and is not intended tobe comprehensive. Some drivers will still not compile/work with theCAM_NEW_TRAN_CODE option, but this opens the door for wider testing.Obtained-from: FreeBSD
Add SHUTDOWN_PRI_DRIVER and move all driver shutdown functions fromSHUTDOWN_PRI_DEFAULT to SHUTDOWN_PRI_DRIVER. This allows the CAM subsystemto shutdown SCSI before individual SCSI drivers shutdow
Add SHUTDOWN_PRI_DRIVER and move all driver shutdown functions fromSHUTDOWN_PRI_DEFAULT to SHUTDOWN_PRI_DRIVER. This allows the CAM subsystemto shutdown SCSI before individual SCSI drivers shutdown.Reported-by: Peter Avalos <pavalos@theshell.com>Dragonfly-bug: <http://bugs.dragonflybsd.org/issue713>
Do any crash dump operation before the shutdown_post_sync event handleris invoked. Move numerous legacy device shutdown event handlers fromshutdown_final to shutdown_post_sync. Note that newer de
Do any crash dump operation before the shutdown_post_sync event handleris invoked. Move numerous legacy device shutdown event handlers fromshutdown_final to shutdown_post_sync. Note that newer devices usesthe device_shutdown DEVMETHOD.
Remove #include <sys/disklabel.h> from various source files which no longerneed it.
Rename printf -> kprintf in sys/ and add some defines where necessary(files which are used in userland, too).
12