Age | Commit message (Collapse) | Author | |
---|---|---|---|
2005-09-11 | Simplify code by changing struct scsi_mode_sense_buf{ union {} | Kenneth R Westerback | |
headers; } to just union scsi_mode_sense_buf {}. No functional change. ok marco@ | |||
2005-09-11 | Some UMASS devices blow up if MODE SENSE buffer length is 0 (aka 256). | Kenneth R Westerback | |
Some blow up if buffer length is not 0. Just fake geometry for all UMASS devices since it's almost always fictitious anyway. One step on the road to eliminate geometry entirely. Fixes Ed Wandasiewicz's 2nd gen iPod mini and Sebastiaan Indesteege's UBest Technology device. ok marco@ | |||
2005-09-08 | free(NULL, ...) is not safe in the kernel. So check for NULL'ness | Kenneth R Westerback | |
before free()'ing buf in sd_get_parms(). Tweak code so there is only one free(buf, ...) to worry about. ok deraadt@. | |||
2005-08-29 | If a buffer larger than the max allowed is offered to scsi_mode_sense() | Kenneth R Westerback | |
or scsi_mode_sense_big(), use as much of it as is allowed. Don't justi mask off the higher bits and possibly leave yourself with 0 space. Fixes problem aoyama@ found on luna88k tape drive. ok deraadt@. | |||
2005-08-29 | Make sure certain architectures/compilers don't round up the size of | Kenneth R Westerback | |
struct scsi_mode_sense_buf to 256, a value which doesn't fit in the 1 byte length field of a scsi command. Found by aoyama@ on luna88k. Suggested by miod@. ok deraadt@. | |||
2005-08-27 | Put in missing parenthesis and thus always pass | Kenneth R Westerback | |
SCSI_IGNORE_ILLEGAL_REQUEST and SCSI_IGNORE_MEDIA_CHANGE flags to scsi_test_unit_ready() and scsi_start() during sdopen(). Re-enables use of devices that don't support START_STOP or TEST_UNIT_READY commands. Noted by and fix tested by Jason Crawford on VMWare disks. ok dlg@ henning@, supportive comments from miod@. | |||
2005-08-24 | dont reject safte devices that have more inquiry information than the | David Gwynne | |
space we want to store it in. thanks to mtu for providing access to hardware for this. ok deraadt@ | |||
2005-08-24 | Test xs->bp before de-referencing it. Initialize it to NULL, not 0. | Kenneth R Westerback | |
ok deraadt@ | |||
2005-08-23 | setting the FAULT flag on a device so the alarm led blinks may have | David Gwynne | |
unwanted side effects, eg, disabling both fc ports and powering the disk down. so remove this knob for now. ok deraadt@ | |||
2005-08-23 | Move uses of struct scsi_mode_sense_buf (255 bytes each) from the | Kenneth R Westerback | |
stack into malloc'd memory. ok deraadt@ | |||
2005-08-23 | Spin up sd units even if TEST_UNIT_READY says they're ready. | Kenneth R Westerback | |
Use consistant scsi_autoconf and SCSI_SILENT flags in scsi_test_unit()/scsi_start() pairs. Fixes some hppa, vax, sparc systems that do not spin up disks automatically. Keeps USB card readers and such reasonably quiet. Noted by millert@ (hppa), henning@ (sparc) and hshoexer@ (vax). ok deraadt@ | |||
2005-08-23 | Test for cold and apply relevant flags for all scsi commands. | Marco Peereboom | |
ok dlg@ krw@ deraadt@ | |||
2005-08-22 | check for scsi_autoconf state, spotted by marco; ok krw | Theo de Raadt | |
2005-08-22 | spell: failture->failure | David Krause | |
2005-08-21 | handle the unblink request; ok dlg marco krw | Theo de Raadt | |
2005-08-21 | Some devices go berserk when asked for mode sense pages they don't | Kenneth R Westerback | |
have. Some devices return four bytes less information than requested for the PAGE_RIGID_GEOMETRY page. Put the two together and older Conner drives don't work because we rejected the short page and asked for the PAGE_FLEX_GEOMETY page. Noted by hshoexer@ and kettenis@. Also should fix the problems with a device miod@ reported that did a similar short PAGE_FLEX_GEOMETRY. ok deraadt@ | |||
2005-08-18 | Only allow blocksizes that are powers of 2 between 512 and 64K. An sd | Kenneth R Westerback | |
device that returns any other value via READ CAPACITY or MODE SENSE will be marked 'drive offline'. Prevents divide by zero when calculating disk size in MB, amoung other interesting possibilities. ok mickey@ dlg@ deraadt@ millert@ marco@ | |||
2005-08-18 | Silly dlg did not read my old code careful enough. Missed 2 bits that are | Marco Peereboom | |
necessary for the blinkenlight magic. Also removed some XXX cruft that was misleading. | |||
2005-08-18 | infrastructure to support blinking controlled via /dev/bio ioctls. the | David Gwynne | |
code to do the actual blink is ifdefed out till marco can figure out what im doing wrong. | |||
2005-08-18 | das blinkenlighten! uses /dev/bio to allow an ioctl to turn identify on | David Gwynne | |
for a particular target | |||
2005-08-17 | add a macro for the WRITE_BUFFER opcode | David Gwynne | |
ok marco@ krw@ | |||
2005-08-17 | Use defines for disk mode page codes. Check returned mode pages to | Kenneth R Westerback | |
ensure they are the ones requested. No functional change unless garbage was being returned. ok marco@ | |||
2005-08-17 | dont increment the offset both in and out of the loop while reading the | David Gwynne | |
config ok deraadt@ marco@ | |||
2005-08-15 | free the right buffer on error | David Gwynne | |
ok deraadt@ | |||
2005-08-13 | Use scsi_do_mode_sense(). Testing on beck@'s new LTO changer. | Kenneth R Westerback | |
ok tdeval@ deraadt@ | |||
2005-08-13 | let safte match on dell enclosures too. ses takes precedence though | David Gwynne | |
ok marco@ deraadt@ | |||
2005-08-12 | rewrite the reading of the status page, which in turn adds support for | David Gwynne | |
monitoring the fans, powersupplies, doorlock, and alarm as well the temps. ok deraadt@ marco@ | |||
2005-08-12 | Move disk mode page structure declarations out of scsi_disk_pages | Kenneth R Westerback | |
union declaration to allow pointers to individual page types. Simplify sd.c code by using individual page type pointers. No functional change. ok tdeval@ | |||
2005-08-11 | typos | David Gwynne | |
2005-08-10 | use the appropriate flags to scsi_scsi_cmd during autoconf so we dont spin | David Gwynne | |
forever on mp kernels problem reported by matthieu baptiste | |||
2005-08-09 | Add Vital Product Data structure. Requested deraadt@ ok dlg@ | Marco Peereboom | |
2005-08-09 | normalise the fan speed output | David Gwynne | |
ok marco@ | |||
2005-08-08 | Fill in device structure, bad dlg@ | Marco Peereboom | |
2005-08-08 | Fill in device structure, bad dlg@ | Marco Peereboom | |
2005-08-05 | report the fan speed as a percentage since it seems all the enclosures we | David Gwynne | |
fill in the rpm fields. your call deraadt@ | |||
2005-08-05 | dont do an inquiry in attach just to print the safte revision number. it | David Gwynne | |
is window dressing. zap it deraadt@ | |||
2005-08-05 | switch safte from using a scsi cmd at softclock to doing the commands | David Gwynne | |
in a kernel thread. very similair to the same change in ses.c. ok marco@ beck@ deraadt@ | |||
2005-08-05 | reorder the allocation of bits in attach to make cleaning up on an error | David Gwynne | |
shorter and less prone to mistakes ok marco@ | |||
2005-08-05 | READ BUFFER is a generic opcode, so dont define our own | David Gwynne | |
2005-08-05 | a define for the scsi READ BUFFER opcode | David Gwynne | |
for and ok marco@ | |||
2005-08-05 | shorten dmesg output | Theo de Raadt | |
2005-08-05 | scsi_safte.c and scsi_safte.h are now known as safte.c and safte.h | David Gwynne | |
respectively ok krw@ deraadt@ marco@ | |||
2005-08-05 | make the naming of the safte files consisten with the rest of the scsi | David Gwynne | |
drivers ok krw@ deraadt@ marco@ | |||
2005-08-04 | this file is now known as ses.h | David Gwynne | |
ok krw@ marco@ beck@ | |||
2005-08-04 | the generic scsi attach line already says we're an enclosure, so why did | David Gwynne | |
i make it say the second line that says the same thing? | |||
2005-08-04 | be nicer to the controller the ses device is attached to by doing the scsi | David Gwynne | |
commands in a kernel thread, not out of softclock with a timeout. help from pascoe@ ok marco@ | |||
2005-08-04 | Add support for dell enclosures that do both SES and SAF-TE. ok dlg@ | Marco Peereboom | |
2005-08-04 | Add SCSI 3 define. ok dlg@ | Marco Peereboom | |
2005-08-03 | Move a couple of 2048+4 byte structures from the stack to the heap. | Kenneth R Westerback | |
Create structures to eliminate 2048+4 magic number everywhere. Mostly adapted from NetBSD. tested by sturm@, beck@. ok beck@ | |||
2005-08-03 | report the state of the power supplies. the value shows if the psu is on | David Gwynne | |
or off, but sysctl doesnt know how to display it (yet). requested by marco@ |