summaryrefslogtreecommitdiffstats
path: root/sys/dev/arcmsr
Commit message (Collapse)AuthorAgeFilesLines
* Make sure we check for CAM_CDB_POINTER for all drivers. Also, for theimp2016-03-151-8/+15
| | | | | | drivers I've touched, filter out CAM_CDB_PHYS. Differential Revision: https://reviews.freebsd.org/D5585
* Replace several bus_alloc_resource() calls with bus_alloc_resource_any()jhibbits2016-02-271-7/+7
| | | | | | | | Most of these are BARs, and we allocate them in their entirety. The one outlier in this is amdsbwd, which calls bus_set_resource() prior. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D5370 (partial)
* Replace several bus_alloc_resource() calls using default arguments with ↵jhibbits2016-02-191-1/+1
| | | | | | | | | bus_alloc_resource_any() Since these calls only use default arguments, bus_alloc_resource_any() is the right call. Differential Revision: https://reviews.freebsd.org/D5306
* Update arcmsr(4) to 1.30.00.00 in order to add support ofdelphij2015-12-022-356/+422
| | | | | | | | | ARC-1203 SATA RAID controllers. Many thanks to Areca for continuing to support FreeBSD. Submitted by: 黃清隆 <ching2048 areca com tw> MFC after: 2 weeks
* Prevent overflow issues in timeout processingsmh2014-11-211-1/+3
| | | | | | | | | | | | | | | | | | | | | Previously, any timeout value for which (timeout * hz) will overflow the signed integer, will give weird results, since callout(9) routines will convert negative values of ticks to '1'. For unsigned integer overflow we will get sufficiently smaller timeout values than expected. Switch from callout_reset, which requires conversion to int based ticks to 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 <rea@freebsd.org> back in 5 Aug 2011 which used a macro to help avoid the overlow. Differential Revision: https://reviews.freebsd.org/D1157 Reviewed by: mav, davide MFC after: 1 month Sponsored by: Multiplay
* Commit 2/2: vendor whitespace changes to the driver.delphij2013-12-182-442/+442
| | | | | | Many thanks to Areca for continuing to support FreeBSD. Submitted by: 黃清隆 <ching2048 areca com tw>
* Commit 1/2: update arcmsr(4) to 1.20.00.29 in order to adddelphij2013-12-182-38/+55
| | | | | | | | support of ARC-1883 SAS 12Gb/s RAID controllers. Many thanks to Areca for continuing to support FreeBSD. Submitted by: 黃清隆 <ching2048 areca com tw>
* Adjust various SCSI drivers to handle either a 32-bit or 64-bit lun_id_t,nwhitehorn2013-10-301-12/+12
| | | | | | | mostly by adjustments to debugging printf() format specifiers. For high numbered LUNs, also switch to printing them in hex as per SAM-5. MFC after: 2 weeks
* Update arcmsr(4) driver to 1.20.00.28 which fixes mutex recursion indelphij2013-09-191-15/+12
| | | | | | | | | | CCB abort codepath. Many thanks to Areca for continuing to support FreeBSD. Submitted by: 黃清隆 <ching2048 areca com tw> MFC after: 2 weeks Approved by: re (?)
* Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCIscottl2013-08-121-2/+1
| | | | | | | | | | | | | | | | | command register. The lazy BAR allocation code in FreeBSD sometimes disables this bit when it detects a range conflict, and will re-enable it on demand when a driver allocates the BAR. Thus, the bit is no longer a reliable indication of capability, and should not be checked. This results in the elimination of a lot of code from drivers, and also gives the opportunity to simplify a lot of drivers to use a helper API to set the busmaster enable bit. This changes fixes some recent reports of disk controllers and their associated drives/enclosures disappearing during boot. Submitted by: jhb Reviewed by: jfv, marius, achadd, achim MFC after: 1 day
* Refresh vendor driver version which fixes command queuedelphij2013-07-062-45/+62
| | | | | | | | | full issue with ARC-1214 and ARC-1224. Many thanks to Areca for continuing to support FreeBSD. Submitted by: 黃清隆 <ching2048 areca com tw> MFC after: 1 day
* MFprojects/camlock r248982:mav2013-04-141-1/+2
| | | | | | | | Stop abusing xpt_periph in random plases that really have no periph related to CCB, for example, bus scanning. NULL value is fine in such cases and it is correctly logged in debug messages as "noperiph". If at some point we need some real XPT periphs (alike to pmpX now), quite likely they will be per-bus, and not a single global instance as xpt_periph now.
* Refresh vendor driver version which adds ARC-1224 support.delphij2013-02-282-26/+126
| | | | | | | Many thanks to Areca for continuing to support FreeBSD. Submitted by: 黃清隆 <ching2048 areca com tw> MFC after: 3 days
* Reform the busdma API so that new types may be added without modifyingkib2013-02-121-47/+9
| | | | | | | | | | | | | | | | | | | | | every architecture's busdma_machdep.c. It is done by unifying the bus_dmamap_load_buffer() routines so that they may be called from MI code. The MD busdma is then given a chance to do any final processing in the complete() callback. The cam changes unify the bus_dmamap_load* handling in cam drivers. The arm and mips implementations are updated to track virtual addresses for sync(). Previously this was done in a type specific way. Now it is done in a generic way by recording the list of virtuals 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 <freebsd-listen@fabiankeil.de>)
* Update arcmsr(4) to vendor version 1.20.00.26, this addsdelphij2012-12-182-894/+1553
| | | | | | | | | support for their new RAID adapter ARC-1214. Many thanks to Areca for continuing to support FreeBSD. Submitted by: 黃清隆 Ching-Lung Huang <ching2048 areca com tw> MFC after: 2 weeks
* Use CAM_DEV_NOT_THERE instead of CAM_SEL_TIMEOUT to report nonexistentjimharris2012-12-181-2/+4
| | | | | | | | | | | | | | LUNs for the virtual processor device. This removes lots of CAM warnings, and follows similar recent changes to tws(4) and twa(4) drivers. Also fix case where CAM_REQ_CMP was getting OR'd with CAM_DEV_NOT_THERE in the nonexistent LUN case, resulting in different CAM status (CAM_UA_TERMIO) getting reported to CAM. This issue existing previously, but was more subtle because it changed CAM_SEL_TIMEOUT to CAM_CMD_TIMEOUT. Sponsored by: Intel Reported and tested by: Willem Jan Withagen <wjw@digiware.nl> MFC after: 1 week
* Fix typo: s/unknow/unknownkevlo2012-10-091-3/+3
|
* Update arcmsr(4) to vendor version 1.20.00.25.delphij2012-09-042-122/+133
| | | | | | | Many thanks to Areca for continuing to support FreeBSD. Submitted by: Ching-Lung Huang <ching2048 areca com tw> MFC after: 2 weeks
* Convert a number of drivers to obtaining their parent DMA tag from theirscottl2012-03-121-1/+1
| | | | PCI device attachment.
* Return BUS_PROBE_DEFAULT instead of 0 because this is an in-tree driver.delphij2012-02-201-1/+1
| | | | MFC after: 1 month
* - Just use cam_calc_geometry(9) on newer version of FreeBSD rather thanmarius2011-11-231-6/+11
| | | | | duplicating it. - In hptmv(4) and hptrr(4) use __FBSDID and DEVMETHOD_END.
* - There's no need to overwrite the default device method with the defaultmarius2011-11-221-4/+6
| | | | | | | | | | one. Interestingly, these are actually the default for quite some time (bus_generic_driver_added(9) since r52045 and bus_generic_print_child(9) since r52045) but even recently added device drivers do this unnecessarily. Discussed with: jhb, marcel - While at it, use DEVMETHOD_END. Discussed with: jhb - Also while at it, use __FBSDID.
* Update arcmsr(4) to 1.20.00.22 to solve recursive acquisition of bufferdelphij2011-08-161-5/+14
| | | | | | | | | | | mutex, which would lead to a deadlock. Many thanks to Areca for their continued support of FreeBSD. Submitted by: Ching Huang <ching2048 areca com tw> Tested by: Willem Jan Withagen <wjw digiware nl> MFC after: 3 days Approved by: re (kib)
* Update arcmsr(4) to vendor version 1.20.00.21. This release primarilydelphij2011-04-062-114/+196
| | | | | | | | | improves command timeout handling. Many thanks to Areca for continuing to support FreeBSD. Submitted by: Ching-Lung Huang <ching2048 areca com tw> MFC after: 2 months
* Workaround build for PAE case for now - revert the PHYSdelphij2010-11-141-0/+4
| | | | | | | | case to previous panic behavior. I have a real fix that changes the sg dma tag allocation to be limited to the under 4GB address space but would prefer to have review before committing.
* Update to vendor release 1.20.00.19.delphij2010-11-132-377/+360
| | | | | | | | | | | | | Bug fixes: * Fixed "inquiry data fails comparion at DV1 step" * Fixed bad range input in bus_alloc_resource for ADAPTER_TYPE_B * Fixed arcmsr driver prevent arcsas support for Areca SAS HBA ARC13x0 Many thanks to Areca for continuing to support FreeBSD. This commit is intended for MFC before 8.2-RELEASE. Submitted by: Ching-Lung Huang <ching2048 areca com tw>
* Apply vendor version 1.20.00.17.delphij2010-07-212-407/+1339
| | | | | | | | | | | | | | This version adds support for ARC1880; additionally this version fixed an issue where all devices on a SAS port gets offlined when any device failed on the port [1]. Many thanks to Areca for continuing to support FreeBSD. PR: kern/148502 [1] Submitted by: Ching-Lung Huang <ching2048 areca com tw> Obtained from: Areca Tested by: Rich Ercolani <rercola acm jhu edu> [1] MFC after: 2 weeks
* Remove extraneous semicolons, no functional changes.mbr2010-01-071-1/+1
| | | | | Submitted by: Marc Balmer <marc@msys.ch> MFC after: 1 week
* Initialize the whole message unit's DMA buffer to zero, this fixes a panicdelphij2009-11-092-2/+4
| | | | | | | | | | | | during boot when ARC1200 is being used with certain motherboard models. This commit brings the driver to the same state of vendor's 1.20.00.16 release. Many thanks to Areca for their continued support to FreeBSD. Reported by: Jirka Mikulas <jiri mikulas com> Submitted by: Erich Chen (Areca) Obtained from: ftp://ftp.areca.com.tw/RaidCards/AP_Drivers/FreeBSD/DRIVER/SourceCode/arcmsr-freebsd-1.20.00.16-91010.zip MFC after: 3 days
* We no longer need to use d_thread_t, migrate to struct thread *.imp2009-05-201-3/+3
|
* Tell CAM that SPI disconnect works, which in turn will let it use tags.scottl2009-02-201-1/+2
| | | | | | | | This fixes the low "max device openings" count that has lead to poor performance in FreeBSD 7.0 and 7.1. Extra thanks goes to Mike Tancsa at Sentex for providing a debug system for this.
* fix arcmsr_attach, probe, detach, and shutdown prototypes to match newbus.imp2009-02-101-9/+9
|
* Replace all calls to minor() with dev2unit().ed2008-09-271-3/+3
| | | | | | | | | | | | | | | After I removed all the unit2minor()/minor2unit() calls from the kernel yesterday, I realised calling minor() everywhere is quite confusing. Character devices now only have the ability to store a unit number, not a minor number. Remove the confusion by using dev2unit() everywhere. This commit could also be considered as a bug fix. A lot of drivers call minor(), while they should actually be calling dev2unit(). In -CURRENT this isn't a problem, but it turns out we never had any problem reports related to that issue in the past. I suspect not many people connect more than 256 pieces of the same hardware. Reviewed by: kib
* Fix an incorrect FreeBSD version test.scottl2007-12-091-1/+1
|
* Modify locking so that a single version of the driver src can be used on 6.xscottl2007-12-091-5/+22
| | | | and beyond.
* Support new ARC120x family of controllers. Many thanks for Areca's continuedscottl2007-12-082-617/+1635
| | | | | | support of FreeBSD. Submitted by: Erich Chen @ Areca
* Make the driver fully MPSAFE. This fixes some serious locking problemsscottl2007-07-311-12/+32
| | | | | | | | that could cause panics and corruption under moderate load. Many thanks to Matt Reimer, Tom McDonald, and the rest of the guys at VPOP.net for their help in identifying and testing this. Approved by: re
* Prepare for future integration between CAM and newbus. xpt_bus_registerscottl2007-06-171-1/+1
| | | | | | | now 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 exceptions just pass NULL for now. This argument isn't used yet and the newbus integration likely won't be ready until after 7.0-RELEASE.
* Remove Giant from CAM. Drivers (SIMs) now register a mutex that CAM willscottl2007-04-151-2/+3
| | | | | | | | | | | use to synchornize and protect all data objects that are used for that SIM. Drivers that are not yet MPSAFE register Giant and operate as usual. RIght now, no drivers are MPSAFE, though a few will be changed in 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 to be recompiled.
* Freeze the simq, not the devq, if we run out of command slots. This fixesscottl2007-04-021-5/+4
| | | | | | the last round of reported instability in the rev 13/14 driver. Approved by: Erich Chen
* Forced commit to note that the previous CVS comment ismjacob2007-03-121-1/+1
| | | | | | incorrect. The MODULE_DEPENDS lines were put in (by me) in 1.14 and removed in 1.15. The facts should be correctly reported.
* Add back in MODULE_DEPEND() lines that were lost in the rev 13 update.scottl2007-03-121-0/+2
|
* Better fix for the errors under high load. Returning CAM_SCSI_BUSY is almostscottl2007-03-062-2/+10
| | | | | | | | | | | | | | | never correct as CAM has no real understanding of it, and will just immediately retry the command. This leads to undesirable cycling of the camisr as well as a high possibility for the command to exhaust its retries before the driver can get around to servicing it. The better fix, as demonstrated here, is to freeze the simq and mark the command as needing to be tried. Then when driver can service the command, the simq gets unfrozen. This is correct, and documented here to help reduce the mystery. However, it also points out a shortcoming in CAM error handling that makes writing drivers harder. Submitted by: Erich Chen
* o break newbus api: add a new argument of type driver_filter_t topiso2007-02-231-1/+1
| | | | | | | | | | | | | bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@
* Fix spurious I/O errors when under high load.scottl2007-02-152-2/+6
| | | | Submitted by: Erich Chen
* Update to version 1.20.00.13 of the arcmsr driver. This fixes many bugsscottl2006-12-132-3070/+2923
| | | | | | | | as well as adds support for newer controllers. Many thanks to Areca for their continued support. Submitted by: Erich Chen
* Add MODULE_DEPENDS for cam, pci, mca, eisa and isa where needed.mjacob2006-12-111-0/+2
| | | | | PR: 106543 MFC after: 3 days
* 2nd and final commit that moves us to CAM_NEW_TRAN_CODEmjacob2006-11-021-12/+0
| | | | | | as the default. Reviewed by multitudes.
* The first of 3 major steps to move the CAM layer forward to usingmjacob2006-10-311-2/+31
| | | | | | | | | | | | | | | | | | | | | the CAM_NEW_TRAN_CODE that has been in the tree for some years now. This first step consists solely of adding to or correcting CAM_NEW_TRAN_CODE pieces in the kernel source tree such that a both a GENERIC (at least on i386) and a LINT build with CAM_NEW_TRAN_CODE as an option will compile correctly and run (at least with some the h/w I have). After a short settle time, the other pieces (making CAM_NEW_TRAN_CODE the default and updating libcam and camcontrol) will be brought in. This will be an incompatible change in that the size of structures related to XPT_PATH_INQ and XPT_{GET,SET}_TRAN_SETTINGS change in both size and content. However, basic system operation and basic system utilities work well enough with this change. Reviewed by: freebsd-scsi and specific stakeholders
* Fix typos: s/rebulid/rebuild/rse2006-08-311-4/+4
| | | | Submitted by: Christoph Schug <chris@schug.net>
OpenPOWER on IntegriCloud