summaryrefslogtreecommitdiff
path: root/sys/scsi
AgeCommit message (Collapse)Author
2002-04-21Use PR_, not M_ flags to pool_get.Artur Grabowski
2002-03-15Kill #if __STDC__ used to do K&R vs. ANSI varargs/stdarg; just do thingsTodd C. Miller
the ANSI way.
2002-03-14Final __P removal plus some cosmetic fixupsTodd C. Miller
2002-03-14First round of __P removal in sysTodd C. Miller
2002-03-09Be less parochial and remember that others may need to use quirks!Kenneth R Westerback
Just set the SDEV_NOTAGS, SDEV_NOWIDE, SDEV_NOSYNC bits in quirks. DON'T zero all other bits that may have already been set. Noted (and fix tested) by lebel@.
2002-02-28Start quirks off with NOWIDE, NOSYNC and NOTAGS and remove theKenneth R Westerback
restrictions as the results of the INQUIRY command and the quirks table indicate. This should (for drivers that pay attention) make for more successful communication with devices having quirks, by using the lowest common denominator until more information is available. Issue a second TEST_UNIT_READY command after the INQUIRY command has been processed to allow drivers waiting for valid quirks data to set sync/wide/tags asap. Rework a little bit of the logic to ensure that negotiation messages produced by the TEST_UNIT_READY command do not get mixed up with attachment messages. This has the side benefit of putting the negotiation messages before the device description, where they have usually been displayed in the past. If a driver is examining and using quirks data before the INQUIRY command is processed, and not renegotiating after the INQUIRY command, it may now end up with async 8 bit, non-tagged transfers. Before it would have ended up with possibly unusable transfer parameters when talking to a device with quirks. ok costa@
2002-02-16Disable tagged queueing for HP C3725S and IBM DCAS drives whereTodd C. Miller
is is broken.
2002-02-01cdstrategy(): check that media is loaded before doing anything with theHans Insulander
cd. ok art@
2002-01-23Pool deals fairly well with physical memory shortage, but it doesn't dealArtur Grabowski
well (not at all) with shortages of the vm_map where the pages are mapped (usually kmem_map). Try to deal with it: - group all information the backend allocator for a pool in a separate struct. The pool will only have a pointer to that struct. - change the pool_init API to reflect that. - link all pools allocating from the same allocator on a linked list. - Since an allocator is responsible to wait for physical memory it will only fail (waitok) when it runs out of its backing vm_map, carefully drain pools using the same allocator so that va space is freed. (see comments in code for caveats and details). - change pool_reclaim to return if it actually succeeded to free some memory, use that information to make draining easier and more efficient. - get rid of PR_URGENT, noone uses it.
2002-01-07pass the proc* down the ioctl chain to controller; mjacob@ csapuntz@ okMichael Shalayeff
2001-11-23Typo in comment.Miod Vallat
2001-11-11Add missing values for SCSI status byte. Add new name for 0x28 toKenneth R Westerback
reflect SCSI-3 editorial change from QUEUE FULL to TASK SET FULL. Use same names as NetBSD where possible. Some from NetBSD, some from Ashley M, some from SCSI-3 docs. Now to edit drivers to use new constants instead of their own.
2001-11-02In scsi_strvis(), collapse adjacent whitespace/NUL chars to a singleTodd C. Miller
space to get the most info with the least amount of wasted space. OK krw@, niklas@
2001-10-26Remove unused #define INUSE. It was rendered superfluous by theKenneth R Westerback
move to pools in SCSI layer.
2001-10-25Allow an empty cd to be opened (raw device/whole disk) primarily toDale Rahn
allow empty CD caddies to be ejected. Original diff from Alexander Guy. "pretty much straight from NetBSD" Addition to allow eject (mt) to eject an empty tray. ok csapuntz@
2001-10-08Add a new quirk type, SDEV_NOCDB6, some USB devices like ATAPIDale Rahn
do not support 6 byte CDBs. This quirk is used for OLYMPUS USB cameras. Loosely based on code in FreeBSD. ok costa@
2001-08-26Don't restrict MICROP 4421-07 quirk to a specific firmware revisionTodd C. Miller
2001-08-26remove useless INUSE references from scsi_xfer->flags; art@ miod@ ok.Federico G. Schwindt
2001-08-25Change scsi_[free|get]_xs to use pool(9); art@ krw@ miod@ ok.Federico G. Schwindt
2001-08-19More old timeouts removal, mainly affected unused/unmaintained code.Miod Vallat
2001-08-18Make siop pay attention to quirks table. This not only eliminates theKenneth R Westerback
ugly INQUIRY snooping but avoids adding even uglier #ifdef's to turn off stuff, e.g. tagged queuing. Add two disk drives now known to lie about supporting tagged queuing to quirks table. One from millert@ (<MICROP, 4421-07 0329SJ, 0329>) and one from Hakan Olsson (<SEAGATE, ST150176LW, 0002>). Add field 'inquiry_flags2' to struct scsi_link to hold flags2 field from struct scsi_inquiry_data. These flags relate to SCSI-3 specific features. Clean up some logic, eliminating need for TARF_PPR flag.
2001-08-06Remove legacy __BDEVSW_DUMP_OLD_TYPE code.Miod Vallat
2001-06-24cold is in systm nowMichael Shalayeff
2001-06-22KNFTheo de Raadt
2001-05-24Check malloc() return value, from tedu@heorot.stanford.eduAngelos D. Keromytis
2001-04-30Pass IOCTL to adapter device if not understood by SCSI layer.Constantine Sapuntzakis
2001-04-08Add one more 1 byte (reserved, as defined in spc-2) field to theKenneth R Westerback
scsi_inquiry_data structure. The last commit made the structure 57 bytes long, an odd number. This caused problems with at least two drivers, which were not prepared to handle the IGNORE WIDE RESIDUE message during probing. This message apparently being generated during probes of non-existant LUNs. Problem found on siop by Rev. Chris Cappuccio and on iha by Andreas Gunnarsson <andreas@zzlevo.net>.
2001-04-02Add padding and new field 'flags2' to struct scsi_inquiry_data,Kenneth R Westerback
bringing it in line with the spc-2 definition of standard inquiry data. scsi_inquiry_data grows from 50 to 57 bytes in size. The new 'flags2' field gives access to PPR related information, the IUS, QAS and DT bits, used in negotiating Ultra3 transfers. Also add PPR related extended message defines. ok deraadt@
2001-03-25Support for several HP scanners; from jmartin@ugrad.cs.ualberta.ca, krw@ ok.Federico G. Schwindt
2001-03-15Move status reads to chopen- there's no need to hang up the bootmjacob
process finding out the changer parameters. Print out changer parameters only if they're changed from the last read of changer parameters. This works for the first time, and for 99.9% of all other cases will be silent ever after. The only time this will then be chatty afterwards is if you change something within the changer (add a drive, etc.).
2001-02-18In scsi_print_sense, add 0x when printing the opcode to clarify it'sFederico G. Schwindt
base 16; suggested by Quentin Barnes <qbarnes@urbana.css.mot.com>, ok by costa@.
2001-01-29Prepend SCSI_ to some of the SCSI opcodes to aid in sharing code w/NetBSDConstantine Sapuntzakis
2001-01-25spellingTodd T. Fries
2001-01-22ATAPI CD-ROMs BCD-16X and BCD-24X have troubles starting and stopping their ↵Constantine Sapuntzakis
disks
2001-01-22Reduce # of retries on scsi_test_unit_ready to 5. This means that devicesConstantine Sapuntzakis
that don't support it will only hang the system in boot-up for 50 seconds as opposed to 500 seconds. Return 0 from scsi_start if the device doesn't support START/STOP unit.
2001-01-09Typo: dome -> someKenneth R Westerback
2000-12-13move back to unlimitted openingsMichael Shalayeff
2000-11-23fix lun support, not as nice as i would likeTheo de Raadt
2000-11-20limit luns on usbTheo de Raadt
2000-10-13Matthew Jacob <mjacob@feral.com>:Michael Shalayeff
Mickey did the right thing, but we'll have to figure out what that broke as well.
2000-09-21do not limit openings to defined SDOUTSTANDING value of 4, since many ↵Michael Shalayeff
controllers can do more; presumably all the cotrollers initialize openings to the right value; also replace some spaces w/ tabs
2000-09-20make SDOUTSTANDING redefinable, since some controller can handle more than 4 ↵Michael Shalayeff
xfers simultaneously; deraadt@ ok
2000-08-05remove staticsNiklas Hallqvist
2000-07-18Thanks to miod@ for finding bug in cd_scsi_{get,set}modeConstantine Sapuntzakis
Pass length of mode page, not length of fixed header
2000-07-18Update cd_size to handle failure of READ_CD_CAPACITY by returningConstantine Sapuntzakis
some default values
2000-07-06Add in a timeout structure to the scsi_xfer structure so that HBA's canmjacob
watchdog per command. Reserve 4 bits of the flags field for the HBA's private use (e.g., for saying whether the commands in the middle of being watchdogged....).
2000-06-16take MIN/MAX from param.h, okay theo@Niels Provos
2000-04-18cd detachConstantine Sapuntzakis
2000-04-18sd and scsibus detachConstantine Sapuntzakis
cdlock/cdunlock now through disk_lock/disk_unlock
2000-04-09Don't trust the TOC coming from the drive so much.Constantine Sapuntzakis
Be better about handling failures of SCSI CD READ TOC command.