aboutsummaryrefslogtreecommitdiff
path: root/sbin/camcontrol
Commit message (Collapse)AuthorAgeFilesLines
...
* mdoc: drop redundant .Pp and .LP callsUlrich Spörlein2010-10-081-6/+0
| | | | | | | They have no effect when coming in pairs, or before .Bl/.Bd Notes: svn path=/head/; revision=213573
* MFtbemd:Warner Losh2010-08-231-1/+2
| | | | | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform. Notes: svn path=/head/; revision=211725
* Spelling fixes.Joel Dahl2010-07-311-1/+1
| | | | Notes: svn path=/head/; revision=210702
* Export PCI IDs of ATA/SATA controllers through CAM and ata(4) layers toAlexander Motin2010-07-251-0/+10
| | | | | | | | GEOM. This information needed for proper soft-RAID's on-disk metadata reading and writing. Notes: svn path=/head/; revision=210471
* Correct explanation for idle and standby subcommands' -t argument.Alexander Motin2010-07-011-5/+7
| | | | Notes: svn path=/head/; revision=209625
* Initialize variables before usage.Ulrich Spörlein2010-06-111-0/+1
| | | | | | | | Found by: clang static analyzer Found by: Coverity Prevent[tm] (CID 7736, 7760) Notes: svn path=/head/; revision=209051
* Make SATA XPT negotiate and enable some additional SATA features, such as:Alexander Motin2010-05-021-0/+4
| | | | | | | | | | - device initiated power management (some devices support only this way); - Automatic Partial to Slumber Transition (more power saving); - DMA auto-activation (expected to slightly improve performance). More features could be added later, when hardware supports. Notes: svn path=/head/; revision=207499
* Add -d and -f arguments to `camcontrol cmd`, to execute DMA ATA commands.Alexander Motin2010-05-022-3/+21
| | | | Notes: svn path=/head/; revision=207498
* Improve output for controllers that doesn't report SATA speed.Alexander Motin2010-02-221-0/+2
| | | | Notes: svn path=/head/; revision=204195
* - Give ATA/SATA SIMs info about ATAPI packet size, supported by device.Alexander Motin2010-02-021-2/+14
| | | | | | | | - Make ATA XPT to reject longer SCSI CDBs then supported by device, or any SCSI CDBs, if device doesn't support ATAPI. Notes: svn path=/head/; revision=203376
* - Add -v argument to `camcontrol identify` command. It makes camcontrolAlexander Motin2010-01-202-16/+34
| | | | | | | | print full identify data block. - Improve identify result view and add TRIM support. Notes: svn path=/head/; revision=202694
* MFp4:Alexander Motin2009-11-262-51/+72
| | | | | | | Improve ATA mode/SATA revision control. Notes: svn path=/head/; revision=199821
* MFp4:Alexander Motin2009-11-241-14/+69
| | | | | | | | | | | | | | | - Extend XPT-SIM transfer settings control API. Now it allows to report to SATA SIM number of tags supported by each device, implement ATA mode and SATA revision negotiation for both SATA and PATA SIMs. - Make ahci(4) and siis(4) to use submitted maximum tag number, when scheduling requests. It allows to support NCQ on devices with lower tags count then controller supports. - Make PMP driver to report attached devices connection speeds. - Implement ATA mode negotiation between user settings, device and controller capabilities. Notes: svn path=/head/; revision=199747
* Fix variable type.Alexander Motin2009-11-091-1/+1
| | | | Notes: svn path=/head/; revision=199101
* Add support for ATA Power Management.Alexander Motin2009-11-092-3/+134
| | | | Notes: svn path=/head/; revision=199079
* MFp4:Alexander Motin2009-11-041-0/+4
| | | | | | | | | - Add support for sector size > 512 bytes and physical sector of several logical sectors, introduced by ATA-7 specification. - Remove some obsoleted code. Notes: svn path=/head/; revision=198897
* MFp4:Alexander Motin2009-10-311-40/+57
| | | | | | | | Sync connection speed reporting with kernel. Report speed in identify command, same as done by inquiry. Notes: svn path=/head/; revision=198709
* Switch the default WARNS level for sbin/ to 6.Ruslan Ermilov2009-10-191-2/+0
| | | | | | | Submitted by: Ulrich Spörlein Notes: svn path=/head/; revision=198236
* Fethch more information from IDENTIFY result.Alexander Motin2009-09-271-15/+48
| | | | Notes: svn path=/head/; revision=197545
* MFp4:Alexander Motin2009-09-221-12/+11
| | | | | | | Reduce code duplication. Notes: svn path=/head/; revision=197419
* Add to `camcontrol cmd` support for sending arbitrary ATA commands.Alexander Motin2009-09-042-52/+141
| | | | | | | | | It could be used for broad range of tasks, such as configuring drive power management modes, caching, security and any other features and tasks, not supported by existing drivers. Notes: svn path=/head/; revision=196831
* Short ATA command format has 28bit address, not 36bit.Alexander Motin2009-08-301-2/+2
| | | | | | | | | Rename ata_36bit_cmd() into ata_28bit_cmd(), while it didn't become legacy. MFC after: 2 days Notes: svn path=/head/; revision=196659
* MFp4:Alexander Motin2009-08-301-27/+120
| | | | | | | | | | - Tune protocol version reporting, - Add supported DMA/PIO modes reporting. - Fix IDENTIFY for ATAPI devices. - Remove confusing "-" for NCQ status. Notes: svn path=/head/; revision=196658
* Fix alignment issue with ATA IDENTIFY structure.Scott Long2009-07-101-11/+11
| | | | | | | Approved by: re Notes: svn path=/head/; revision=195573
* Separate the parallel scsi knowledge out of the core of the XPT, andScott Long2009-07-102-6/+263
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | modularize it so that new transports can be created. Add a transport for SATA Add a periph+protocol layer for ATA Add a driver for AHCI-compliant hardware. Add a maxio field to CAM so that drivers can advertise their max I/O capability. Modify various drivers so that they are insulated from the value of MAXPHYS. The new ATA/SATA code supports AHCI-compliant hardware, and will override the classic ATA driver if it is loaded as a module at boot time or compiled into the kernel. The stack now support NCQ (tagged queueing) for increased performance on modern SATA drives. It also supports port multipliers. ATA drives are accessed via 'ada' device nodes. ATAPI drives are accessed via 'cd' device nodes. They can all be enumerated and manipulated via camcontrol, just like SCSI drives. SCSI commands are not translated to their ATA equivalents; ATA native commands are used throughout the entire stack, including camcontrol. See the camcontrol manpage for further details. Testing this code may require that you update your fstab, and possibly modify your BIOS to enable AHCI functionality, if available. This code is very experimental at the moment. The userland ABI/API has changed, so applications will need to be recompiled. It may change further in the near future. The 'ada' device name may also change as more infrastructure is completed in this project. The goal is to eventually put all CAM busses and devices until newbus, allowing for interesting topology and management options. Few functional changes will be seen with existing SCSI/SAS/FC drivers, though the userland ABI has still changed. In the future, transports specific modules for SAS and FC may appear in order to better support the topologies and capabilities of these technologies. The modularization of CAM and the addition of the ATA/SATA modules is meant to break CAM out of the mold of being specific to SCSI, letting it grow to be a framework for arbitrary transports and protocols. It also allows drivers to be written to support discrete hardware without jeopardizing the stability of non-related hardware. While only an AHCI driver is provided now, a Silicon Image driver is also in the works. Drivers for ICH1-4, ICH5-6, PIIX, classic IDE, and any other hardware is possible and encouraged. Help with new transports is also encouraged. Submitted by: scottl, mav Approved by: re Notes: svn path=/head/; revision=195534
* Add SCSI READ CAPACITY support to camcontrol. The new 'readcap' subcommandKenneth D. Merry2007-09-083-5/+283
| | | | | | | | | | | | | | | will automatically issue the 16 byte verison of read capacity if the device in question is larger than 2TB. There are also a number of output options here (last block, number of blocks, human readable) that should meet most needs, and also aid in scripting. Approved by: re (bmah) MFC after: 1 week Notes: svn path=/head/; revision=172093
* typo: s/tranport layer/transport layer/Wilko Bulte2007-01-281-2/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=166324
* It's confusing to say that "Command Queueing Supported" just basedMatt Jacob2006-12-031-3/+2
| | | | | | | | upon the scsi flag validity field. Instead, just say "Command Queueing Enabled" when it is- otherwise remain mute. Notes: svn path=/head/; revision=164842
* 2nd and final commit that moves us to CAM_NEW_TRAN_CODEMatt Jacob2006-11-021-93/+143
| | | | | | | | | as the default. Reviewed by multitudes. Notes: svn path=/head/; revision=163896
* Markup fixes.Ruslan Ermilov2006-09-181-2/+2
| | | | Notes: svn path=/head/; revision=162395
* Implement 'camcontrol reportluns'. This allows users to send the SCSIKenneth D. Merry2006-08-212-2/+300
| | | | | | | | | | | | | | | | | | | | | REPORT LUNS command to a device. camcontrol.[c8]: Implement reportluns. This tries to print the LUNs out in a reasonable format. Only the periph addressing method has been tested, since very little hardware that I know of supports the other methods. scsi_all.[ch]: Revamp the report luns CDB structure and helper functions. This constitutes a little bit of an API change, but since the old CDB length was 10 bytes, and the REPORT LUNS CDB length is actually 12 bytes, it's clear that no one was using this API in the first place. MFC After: 1 week Notes: svn path=/head/; revision=161506
* Markup fixes.Ruslan Ermilov2005-06-141-1/+1
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=147369
* Add "report only" functionality to 'camcontrol format', so users can get aKenneth D. Merry2005-03-262-5/+20
| | | | | | | | | | | | | report on the status of a format already running on a drive. Fix status reporting for 'camcontrol format'. This was broken in rev 1.34 of camcontrol.c, almost 4 years ago! Submitted by: joerg (most of the reportonly changes) MFC after: 3 days Notes: svn path=/head/; revision=144134
* Expand *n't contractions.Ruslan Ermilov2005-02-131-12/+12
| | | | Notes: svn path=/head/; revision=141846
* Deal with double whitespace.Ruslan Ermilov2004-07-031-2/+2
| | | | Notes: svn path=/head/; revision=131506
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-100/+197
| | | | Notes: svn path=/head/; revision=131488
* Use WARNS?=3 for these in the arm case for now, due to toolchain issues.Olivier Houchard2004-05-141-0/+4
| | | | Notes: svn path=/head/; revision=129215
* Fix a couple of camcontrol issues that popped up on sparc64:Kenneth D. Merry2004-03-031-2/+12
| | | | | | | | | | | | | | | - bzero the CCB header in getdevtree() and set the path properly, to avoid having random garbage in the CCB header. - if the lun isn't specified in a device specifier, it should default to 0, not whatever random data happens to be in the lun variable. - move the prototype for getdevtree() out from under #ifndef MINIMALISTIC, since it is used in both cases. Submitted by: Marius Strobl <marius@alchemy.franken.de> (mostly) MFC After: 2 weeks Notes: svn path=/head/; revision=126514
* Userland signed char fixes for PPC build. Problems were using a charPeter Grehan2004-01-221-4/+6
| | | | | | | | | | | | return for getopt() and comparing to -1, ditto with fgetc() and EOF, and using the kg_nice value from <sys/user.h> Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Reviewed by: obrien, bde (a while back) Tested lightly on: ppc, i386, make universe Notes: svn path=/head/; revision=124830
* Fix alignment of the trailing \Warner Losh2003-08-221-1/+1
| | | | Notes: svn path=/head/; revision=119252
* Make this WARNS=6 clean by:Johan Karlsson2003-08-054-41/+41
| | | | | | | | | | | | | | | | | | | | | | | 1: add 'const' to char * where needed; 2: mark unused variables with __unused; 3: remove double prototypes for mode_edit and mode_list. 4: moves the global variables 'bus', 'target', and 'lun' into the main function and protect them with #ifndef MINIMALISTIC, 5: renames 3 variable in order not to shadow other things index -> indx -- in modepage_dump since index is a function from <strings.h.> arglist -> arglst -- in the function parse_btl since arglist is also a global variable convertend -> convertend2 -- in the function editentry_set since that name is used two times within the function. 6: cast 0xffffffff in the macro RESOLUTION_MAX(size) to (int) since it is unsigned otherwise. Tested by: make universe Approved by: ken Notes: svn path=/head/; revision=118478
* Remove MAINTAINER= lines in the makefiles for camcontrol, iostat, libcamKenneth D. Merry2003-06-141-2/+0
| | | | | | | | | | | and libdevstat, since the new way of doing things is to just list maintainership in src/MAINTAINERS. Also, remove duplicate entries in src/MAINTAINERS for those utilities. I already had entries for them. Notes: svn path=/head/; revision=116325
* Set WARNS=1. RESOLUTION_MAX macro has major signed/unsigned issues.David E. O'Brien2003-05-021-0/+1
| | | | Notes: svn path=/head/; revision=114514
* Use __FBSDID.David E. O'Brien2003-05-023-10/+7
| | | | Notes: svn path=/head/; revision=114513
* Fixed (soon might be fatal) -Wformat warnings.Ruslan Ermilov2003-03-151-3/+3
| | | | Notes: svn path=/head/; revision=112254
* Make camcontrol WARNS=2 clean.Johan Karlsson2003-02-204-7/+12
| | | | | | | Approved by: ken Notes: svn path=/head/; revision=111195
* Add PERIPH and XPT debug options to camcontrol. This makes all CAM debugNate Lawson2002-12-172-4/+22
| | | | | | | | | | options tunable from userland. Approved by: ken MFC after: 3 days Notes: svn path=/head/; revision=107966
* Split cam_argmask and move "commands" into cam_cmdmask. This addressesMatthew N. Dodd2002-09-081-94/+102
| | | | | | | | | | the issue of not having any free bits left for additional commands. Approved by: ken MFC after: 4 weeks Notes: svn path=/head/; revision=103092
* Add 'camcontrol load' as a complement to 'camcontrol eject'.Matthew N. Dodd2002-09-062-1/+11
| | | | | | | | Approved by: ken MFC after: 4 weeks Notes: svn path=/head/; revision=103033
* Take care of WARNS=3 warnings by using unsigned/signed variableJohan Karlsson2002-08-201-6/+7
| | | | | | | | | as needed. Approved by: ken, sheldonh (mentor) Notes: svn path=/head/; revision=102192