Age | Commit message (Collapse) | Author |
|
OK deraadt@ and millert@
|
|
Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.
OK deraadt@
|
|
RAW_PART will always be 0 -> disksize, so the bounds check will always
pass for i/o's to valid addresses. Now the i/o will be properly truncated
if it goes past the end of the device. This prevents various adverse
impacts of issuing i/o's for data past the end of the device.
Repeatedly requested by todd@.
ok weingart@ deraadt@
|
|
set the flags and quirks for a device. Should fix weird issues where
the device after an ATAPI device gets marked as ATAPI. First reported
on misc@ by Daniel Wade, who also provided some useful testing.
ok dlg@
|
|
|
|
from NetBSD
ok krw thib henning, tested by many
|
|
|
|
not a good idea.
found by simon@ who plugged a sata dvd drive into ahci.
|
|
device before issuing scsi commands to it, but it was never implemented,
never used, and no hba actually filled them in. i came along and added
another two function pointers for the same thing.
this cleans up the extra pointers.
ok krw@ marco@ miod@ deraadt@
|
|
|
|
|
|
disk provides a wwn, use it, otherwise do our best to generate an id from
the model and serial number.
|
|
serial number and split the vpd header out for use in other places. while
here define the device identification page bits too.
ok krw@ marco@
|
|
to the completions for some scsi commands we simply ack in the disk_cmd
handler.
|
|
used to allocated xfers out of a pool rather than as part of the hbas ccb
structure.
|
|
on if supported as per the wd changes. Some drives don't
do this for us and it helps performance by a large amount.
ok dlg@
|
|
them to be properly polled.
Fixes previously problematic machines of form and ckuethe.
ok marco@
|
|
the result in the ata_port struct. use this cached inquiry data
when building the replies to scsi commands rather than fetching a
new copy of ata inq every time.
this shrinks the code by 100 lines. it also avoids a malloc in a
scsi io path, which could be issued at a time when malloc isnt
guaranteed to succeed, but a real scsi io definitely should.
|
|
to continually go to splbio to ensure its safe to work on them. shrinks
code a little.
|
|
the disk rather than depending on the disk to have it on.
A bunch of people have suggested this should go in.
|
|
the midlayer(s) what to do.
|
|
if a device is there before doing any scsi commands. also implement a free
path for when devices are detached. software hotplug has been tested on
sili, and ahci is still working according to claudio@
|
|
to clean up the atascsi stuff, and has sili call it when its going away.
tested on an expresscard sili variant by kettenis@
|
|
for the ata ioctl used by atactl. i dont know how this worked before.
|
|
number. lets bioctl against an atascsi disk see the serial number.
continually requested by henning@
|
|
id known about it when i wrote atascsi. anyway.
it says we should claim SPC-3 when we fake INQUIRY.
|
|
layer. i intended to write better ways to deal with disks, but i have been
too slack. shame on me.
this is less code than the equivilent in wdc/pciide, which amuses me
greatly.
|
|
obvious.
|
|
cpu_disklabel can go away, since nothing anymore needs to use it; ok miod
|
|
|
|
|
|
OK deraadt.
|
|
type of all variables to daddr64_t. this includes the APIs for XXsize()
and XXdump(), all range checks inside bio drivers, internal variables
for disklabel handling, and even uvm's swap offsets. re-read numerous
times by otto, miod, krw, thib to look for errors
|
|
to size. tested on almost all machines, double checked by miod and krw
next comes the type handling surrounding these values
|
|
readdisklabel(), since all readdisklabel()'s do that already.
ok deraadt@
|
|
into using DOS geometry by calling it twice. And don't ignore the
drive state if readdisklabel() returns a non-NULL value.
ok weingart@ grange@
|
|
number (wd.c), and the uses are to find the minimum minor to be
detached.
|
|
ones. No change to wd.o.
ok deraadt@ marco@
|
|
geometry in the disklabel when there is a BIOS geometry to provide.
This removes the option to set a disklabel to 'BIOS' geometry via the
'g b' command in the editor.
Makes reported geometry more consistant and moves MD code to MD land
where it should be.
Doc help from jmc@, Feedback from millert@, marco@, weingart@,
kettenis@.
ok deraadt@
|
|
it. returning an error to the scsi midlayer is all we need to do, which in
turn will do the right thing.
|
|
that leave the security set on by default.
"looks sane" grange@, "looks ok" pascoe@, "put it in" dlg@
|
|
|
|
ok dlg@
|
|
|
|
|
|
definitions of them here. this starts with the SStatus register.
|
|
active commands when an error is encountered.
ok dlg@
|
|
was right. There is another path that ends up avoiding the disk_unbusy
call I inserted.... tested by robert too
|
|
it should not; ok dlg
problem spotted using zaurus soft-drive-led diff which is pending
i think i convinced jsg now that this fix is better than putting it
in wdrestart
|
|
|