summaryrefslogtreecommitdiffstats
path: root/sys/dev/tws
Commit message (Collapse)AuthorAgeFilesLines
* MFC r262572:delphij2014-03-143-5/+3
| | | | | | | | Get rid of the 'chan' from softc structure and use the latter directly as sleep channel. PR: kern/174684 Submitted by: jmg
* Re-do r255853. Along with adding back the API/ABI changes from thescottl2013-09-252-5/+6
| | | | | | | | original, this hides the contents of cam_compat.h from ktrace/kdump/truss, avoiding problems there. There are no user-servicable parts in there, so no need for those tools to be groping around in there. Approved by: re
* Revert r255853 pending fixes to build errors in usr.bin/kdumpgjb2013-09-252-6/+5
| | | | Approved by: re (implicit)
* Update the CAM API for FreeBSD 10:scottl2013-09-242-5/+6
| | | | | | | | | | | | | | | | | | | | | | - Remove the timeout_ch field. It's been deprecated since FreeBSD 7.0; MPSAFE drivers should be managing their own timeout storage. The remaining non-MPSAFE drivers have been modified to also manage their own storage, and should be considered for updating to MPSAFE (or removal) during the FreeBSD 10.x lifecycle. - Add fields related to soft timeouts and quality of service, to be used in upcoming work. - Add room for more flags in the CCB header and path_inq structures. - Begin support for extended 64-bit LUNs. - Bump the CAM version number to 0x18, but add compat shims. Tested with camcontrol and smartctl. Reviewed by: nathanw, ken, kib Approved by: re Obtained from: Netflix
* Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCIscottl2013-08-121-15/+2
| | | | | | | | | | | | | | | | | 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
* Fix typo in the definition of the TWS_DATA_CCB.kib2013-05-231-1/+1
| | | | Submitted by: Andreas Turriff <maillist@turriff.net>
* MFprojects/camlock r248982:mav2013-04-141-1/+1
| | | | | | | | 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.
* Slightly tune locking to not call xpt_alloc_ccb() that is allowed to sleepmav2013-04-012-7/+4
| | | | while holding the SIM mutex.
* Fix typo.kevlo2013-03-011-1/+1
|
* Reform the busdma API so that new types may be added without modifyingkib2013-02-122-37/+13
| | | | | | | | | | | | | | | | | | | | | 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>)
* Integrate changes from LSI vendor driver 10.80.00.005 to FreeBSD.delphij2012-10-195-39/+68
| | | | | | PR: kern/172833 Submitted by: "Charles O'Donnell" <cao bus net> MFC after: 1 week
* Use CAM_SEL_TIMEOUT and CAM_DEV_NOT_THERE to report missing targets orjimharris2012-09-241-2/+2
| | | | | | | | | | LUNs respectively. This removes a huge number of error messages from CAM during bus scans. Copied almost verbatim from mav's commit r237460. Submitted by: Mike Tancsa <mike at sentex dot net> MFC after: 3 days
* Specify MTX_RECURSE for the controller's io_lock. Without it, tws(4)jimharris2012-09-241-1/+1
| | | | | | | | | immediately panics on boot with INVARIANTS enabled. The driver already clearly expects to be able to recurse on this mutex - the main I/O is always recursing on this lock. Reported and tested by: Mike Tancsa <mike at sentex dot net> MFC after: 1 week
* Convert a number of drivers to obtaining their parent DMA tag from theirscottl2012-03-121-1/+1
| | | | PCI device attachment.
* Match surrounding style.delphij2012-01-161-1/+1
| | | | Noticed by: avg
* Don't forget to release queue lock when allocation of memory failed.delphij2012-01-031-0/+1
| | | | | | Submitted by: Sascha Wildner <saw online de> Obtained from: DragonFly MFC after: 2 weeks
* Do not define bool/true/false if the symbols already exist.mdf2011-12-121-0/+4
| | | | | MFC after: 2 weeks Sponsored by: Isilon Systems, LLC
* - There's no need to overwrite the default device method with the defaultmarius2011-11-221-6/+4
| | | | | | | | | | 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.
* Don't expose a constant array into global namespace.delphij2011-10-282-2/+1
| | | | | Reported by: Ruslan Yakovlev <quazi bk ru> via yongari MFC after: 3 days
* Return BUS_PROBE_DEFAULT instead of 0 (BUS_PROBE_SPECIFIC), allowingdelphij2011-10-171-1/+1
| | | | | | vendor provided driver to override in kernel driver. MFC after: 3 days
* Add the 9750 SATA+SAS 6Gb/s RAID controller card driver, tws(4). Manydelphij2011-10-049-0/+4544
thanks for their contiued support to FreeBSD. This is version 10.80.00.003 from codeset 10.2.1 [1] Obtained from: LSI http://kb.lsi.com/Download16574.aspx [1]
OpenPOWER on IntegriCloud