sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - error
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.
show more ...
sys/dev: minor spelling fixes.Most affect comments, very few have user-visible effects.
- Use the existing driver lock in cdevsw methods and remove D_NEEDGIANT.- Use callout(9) instead of timeout(9).- Use bus_*() instead of bus_space_*().- Don't check for a NULL softc in attach.Tes
- Use the existing driver lock in cdevsw methods and remove D_NEEDGIANT.- Use callout(9) instead of timeout(9).- Use bus_*() instead of bus_space_*().- Don't check for a NULL softc in attach.Tested by: no one
Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCIcommand register. The lazy BAR allocation code in FreeBSD sometimesdisables this bit when it detects a range conflict, and w
Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCIcommand register. The lazy BAR allocation code in FreeBSD sometimesdisables this bit when it detects a range conflict, and will re-enableit on demand when a driver allocates the BAR. Thus, the bit is no longera reliable indication of capability, and should not be checked. Thisresults in the elimination of a lot of code from drivers, and also givesthe opportunity to simplify a lot of drivers to use a helper API to setthe busmaster enable bit.This changes fixes some recent reports of disk controllers and theirassociated drives/enclosures disappearing during boot.Submitted by: jhbReviewed by: jfv, marius, achadd, achimMFC after: 1 day
Improving r249461 by providing a better way to handle the clang warning.PR: kern/177164Reviewed by: jhbApproved by: sbruno (mentor)
Fixing a clang warning indicating uninitialized variable usage.PR: kern/177164Approved by: sbruno (mentor)
Convert a number of drivers to obtaining their parent DMA tag from theirPCI device attachment.
Fix argument order in a call to mtx_init.MFC after: 1 week
Check pointer for NULL before dereferencing it, not after.PR: 138384Submitted by: Patroklos Argyroudis <[email protected]>MFC after: 1 week
Temporarily revert the new-bus locking for 8.0 release. It will bereintroduced after HEAD is reopened for commits by re@.Approved by: re (kib), attilio
Make the newbus subsystem Giant free by adding the new newbus sxlock.The newbus lock is responsible for protecting newbus internIal structures,device states and devclass flags. It is necessary to h
Make the newbus subsystem Giant free by adding the new newbus sxlock.The newbus lock is responsible for protecting newbus internIal structures,device states and devclass flags. It is necessary to hold it when allsuch datas are accessed. For the other operations, softc locking shouldensure enough protection to avoid races.Newbus lock is automatically held when virtual operations on the deviceand bus are invoked when loading the driver or when the suspend/resumetake place. For other 'spourious' operations trying to access/modifythe newbus topology, newbus lock needs to be automatically acquired anddropped.For the moment Giant is also acquired in some key point (modules subsystem)in order to avoid problems before the 8.0 release as module handlers couldmake assumptions about it. This Giant locking should go just afterthe release happens.Please keep in mind that the public interface can be expanded in orderto provide more support, if there are really necessities at some pointand also some bugs could arise as long as the patch needs a bit offurther testing.Bump __FreeBSD_version in order to reflect the newbus lock introduction.Reviewed by: ed, hps, jhb, imp, mav, scottlNo answer by: ariff, thompsa, yongariTested by: pho, G. Trematerra <giovanni dot trematerra at gmail dot com>, Brandon Gooch <jamesbrandongooch at gmail dot com>Sponsored by: Yahoo! IncorporatedApproved by: re (ksmith)
o break newbus api: add a new argument of type driver_filter_t to bus_setup_intr()o add an int return code to all fast handlerso retire INTR_FAST/IH_FASTFor more info: http://docs.freebsd.org
o break newbus api: add a new argument of type driver_filter_t to bus_setup_intr()o add an int return code to all fast handlerso retire INTR_FAST/IH_FASTFor more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-currentReviewed by: manyApproved by: re@
o Add Adaptec ServeRAID 7x IDs. IDs taken from Linux.PR: kern/90012Submitted by: Andrey V. ElsukovMFC after: 1 month
while (0); -> while (0) in multi-line macros
Since DELAY() was moved, most <machine/clock.h> #includes have beenunnecessary.
Shuffle some definitions so that this can be included from userland.
Add some more data structures and definitions for communicating with theServeRAID firmware.
Separate the hardware definitions into ipsreg.h so they can be used byfuture userland tools.
Fix build.
Report status in hex, not decimal.
Overhaul error handling in the IPS driver. Don't use a magic value fordriver-induced errors, instead be better about propagating error statusupwards. Add more error definitions, courtesy of the l
Overhaul error handling in the IPS driver. Don't use a magic value fordriver-induced errors, instead be better about propagating error statusupwards. Add more error definitions, courtesy of the linux driver. Fixa command leak in the ioctl handler. Re-arrange some of the command handlersto localize error handling.MFC After: 3 days
Remove bus_{mem,p}io.h and related code for a micro-optimization on i386and amd64. The optimization is a trivial on recent machines.Reviewed by: -arch (imp, marcel, dfr)
Remove an extra mutex unlock in the morpheus interrupt handler.PR: 80246Submitted by: Dean StrikMFC After: 3 days
Use BUS_PROBE_DEFAULT for pci probe return value
Add crashdump support to the ips driver. It only works for the more modernServeRAID 4 - 7 models right now. Support for older cards is possible, butI don't have any hardware to experiment with.
Add crashdump support to the ips driver. It only works for the more modernServeRAID 4 - 7 models right now. Support for older cards is possible, butI don't have any hardware to experiment with.Thanks to Jack Hammer at Adaptec for providing debugging hints.Sponsored by: ImproWare AG, Switzerland
123