Tag the current round of deprecated drivers.Differential Revision: https://reviews.freebsd.org/D13818
Create a new ISA_PNP_INFO macro. Use this macro every where we haveISA PNP card support (replace by hand version in if_ed). Move moduledeclarations to the end of some files. Fix PCCARD_PNP_INFO to
Create a new ISA_PNP_INFO macro. Use this macro every where we haveISA PNP card support (replace by hand version in if_ed). Move moduledeclarations to the end of some files. Fix PCCARD_PNP_INFO to usenitems(). Remove some stale comments about pc98, turns out the commentwas simply wrong.
show more ...
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.
Remove pc98 support completely.I thank all developers and contributors for pc98.Relnotes: yes
In the same vein as r311350, fix whitespace in handling of XPT_PATH_INQ inseveral more drivers.Sponsored by: Panasas
Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name)The sim_vid, hba_vid, and dev_name fields of struct ccb_pathinq arefixed-length strings. AFAICT the only place they're read is insbin/c
Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name)The sim_vid, hba_vid, and dev_name fields of struct ccb_pathinq arefixed-length strings. AFAICT the only place they're read is insbin/camcontrol/camcontrol.c, which assumes they'll be null-terminated.However, the kernel doesn't null-terminate them. A bunch of copy-pasted codeuses strncpy to write them, and doesn't guarantee null-termination. For atleast 4 drivers (mpr, mps, ciss, and hyperv), the hba_vid field actuallyoverflows. You can see the result by doing "camcontrol negotiate da0 -v".This change null-terminates those fields everywhere they're set in thekernel. It also shortens a few strings to ensure they'll fit within the16-character field.PR: 215474Reported by: CoverityCID: 1009997 1010000 1010001 1010002 1010003 1010004 1010005CID: 1331519 1010006 1215097 1010007 1288967 1010008 1306000CID: 1211924 1010009 1010010 1010011 1010012 1010013 1010014CID: 1147190 1010017 1010016 1010018 1216435 1010020 1010021CID: 1010022 1009666 1018185 1010023 1010025 1010026 1010027CID: 1010028 1010029 1010030 1010031 1010033 1018186 1018187CID: 1010035 1010036 1010042 1010041 1010040 1010039Reviewed by: imp, sephe, slmMFC after: 4 weeksSponsored by: Spectra Logic CorpDifferential Revision: https://reviews.freebsd.org/D9037Differential Revision: https://reviews.freebsd.org/D9038
Redundant parenthesis from r298431.
sys: use our nitems() macro when param.h is available.This should cover all the remaining cases in the kernel.Discussed in: freebsd-current
Migrate many bus_alloc_resource() calls to bus_alloc_resource_anywhere().Most calls to bus_alloc_resource() use "anywhere" as the range, with a givencount. Migrate these to use the new bus_alloc_
Migrate many bus_alloc_resource() calls to bus_alloc_resource_anywhere().Most calls to bus_alloc_resource() use "anywhere" as the range, with a givencount. Migrate these to use the new bus_alloc_resource_anywhere() API.Reviewed by: jhbDifferential Revision: https://reviews.freebsd.org/D5370
Create a generic PCCARD_PNP_INFO from the MODULE_PNP_INFO buildingblock. Use it in all the PNP drivers to export either the current PNPtable. For uart, create a custom table and export it usingMOD
Create a generic PCCARD_PNP_INFO from the MODULE_PNP_INFO buildingblock. Use it in all the PNP drivers to export either the current PNPtable. For uart, create a custom table and export it usingMODULE_PNP_INFO since it's the only one that matches on functionnumber.Differential Review: https://reviews.freebsd.org/D3461
Prevent overflow issues in timeout processingPreviously, any timeout value for which (timeout * hz) will overflow thesigned integer, will give weird results, since callout(9) routines willconvert
Prevent overflow issues in timeout processingPreviously, any timeout value for which (timeout * hz) will overflow thesigned integer, will give weird results, since callout(9) routines willconvert negative values of ticks to '1'. For unsigned integer overflow wewill get sufficiently smaller timeout values than expected.Switch from callout_reset, which requires conversion to int based ticksto callout_reset_sbt to avoid this.Also correct isci to correctly resolve ccb timeout.This was based on the original work done by Eygene Ryabinkin<[email protected]> back in 5 Aug 2011 which used a macro to help avoidthe overlow.Differential Revision: https://reviews.freebsd.org/D1157Reviewed by: mav, davideMFC after: 1 monthSponsored by: Multiplay
Reform the busdma API so that new types may be added without modifyingevery architecture's busdma_machdep.c. It is done by unifying thebus_dmamap_load_buffer() routines so that they may be called
Reform the busdma API so that new types may be added without modifyingevery architecture's busdma_machdep.c. It is done by unifying thebus_dmamap_load_buffer() routines so that they may be called from MIcode. The MD busdma is then given a chance to do any final processingin the complete() callback.The cam changes unify the bus_dmamap_load* handling in cam drivers.The arm and mips implementations are updated to track virtualaddresses for sync(). Previously this was done in a type specificway. Now it is done in a generic way by recording the list ofvirtuals in the map.Submitted by: jeff (sponsored by EMC/Isilon)Reviewed by: kan (previous version), scottl, mjacob (isp(4), no objections for target mode changes)Discussed with: ian (arm changes)Tested by: marius (sparc64), mips (jmallet), isci(4) on x86 (jharris), amd64 (Fabian Keil <[email protected]>)
Add locking to the aic(4) driver and mark it MPSAFE.- Move 'free_scbs' into the softc rather than having it be a global list and convert it to an SLIST instead of a hand-rolled linked-list.- Use
Add locking to the aic(4) driver and mark it MPSAFE.- Move 'free_scbs' into the softc rather than having it be a global list and convert it to an SLIST instead of a hand-rolled linked-list.- Use device_printf() and device_get_unit() instead of storing the unit number in the softc.- Remove use of explicit bus space handles and tags.- Don't call device_set_desc() in the pccard attach routine, instead set a default description during the pccard probe if the matching product doesn't have a name.Tested by: no one
Snip redundant assignment.Approved by: scottlMFC after: 2 weeksCoverity ID: 3863
Prepare for future integration between CAM and newbus. xpt_bus_registernow takes a device_t to be the parent of the bus that is being created.Most SIMs have been updated with a reasonable argument
Prepare for future integration between CAM and newbus. xpt_bus_registernow takes a device_t to be the parent of the bus that is being created.Most SIMs have been updated with a reasonable argument, but a few exceptionsjust pass NULL for now. This argument isn't used yet and the newbusintegration likely won't be ready until after 7.0-RELEASE.
Remove Giant from CAM. Drivers (SIMs) now register a mutex that CAM willuse to synchornize and protect all data objects that are used for thatSIM. Drivers that are not yet MPSAFE register Giant a
Remove Giant from CAM. Drivers (SIMs) now register a mutex that CAM willuse to synchornize and protect all data objects that are used for thatSIM. Drivers that are not yet MPSAFE register Giant and operate asusual. RIght now, no drivers are MPSAFE, though a few will be changedin the coming week as this work settles down.The driver API has changed, so all CAM drivers will need to be recompiled.The userland API has not changed, so tools like camcontrol do not need tobe recompiled.
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@
2nd and final commit that moves us to CAM_NEW_TRAN_CODEas the default.Reviewed by multitudes.
The first of 3 major steps to move the CAM layer forward to usingthe CAM_NEW_TRAN_CODE that has been in the tree for some years now.This first step consists solely of adding to or correctingCAM_N
The first of 3 major steps to move the CAM layer forward to usingthe CAM_NEW_TRAN_CODE that has been in the tree for some years now.This first step consists solely of adding to or correctingCAM_NEW_TRAN_CODE pieces in the kernel source tree suchthat a both a GENERIC (at least on i386) and a LINT buildwith CAM_NEW_TRAN_CODE as an option will compile correctlyand run (at least with some the h/w I have).After a short settle time, the other pieces (makingCAM_NEW_TRAN_CODE the default and updating libcamand camcontrol) will be brought in.This will be an incompatible change in that the size of structuresrelated to XPT_PATH_INQ and XPT_{GET,SET}_TRAN_SETTINGS changein both size and content. However, basic system operation andbasic system utilities work well enough with this change.Reviewed by: freebsd-scsi and specific stakeholders
aic_pccard_products can be static.Noticed by: cscope
Eliminate support for oldcard by removing the compat shims.
Eliminate unused argument in PCMCIA_CARD macro.Provide a backwards compatible way to have the extra macro by definingPCCARD_API_LEVEL 5 before including pccarddevs for driver writers thatwant/nee
Eliminate unused argument in PCMCIA_CARD macro.Provide a backwards compatible way to have the extra macro by definingPCCARD_API_LEVEL 5 before including pccarddevs for driver writers thatwant/need to have the same driver on 5 and 6 with pccard attachments.Approved by: re (dwhite)
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 ifdef PC98.
Start each of the license/copyright comments with /*-, minor shuffle of lines
123