| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
in fact use the ATA_DELAY macro directly.
Coverity CID 1453008.
OK sthen@, kn@
|
|
|
|
| |
ok deraadt@ krw@
|
|
|
|
| |
ok millert@ krw@
|
|
|
|
|
| |
to AT_POLL, which some chip driver underneath cannot handle.
tested by bluhm also
|
|
|
|
| |
ok mpi@
|
| |
|
|
|
|
| |
part of a diff from Imre Vadasz via sf@
|
|
|
|
| |
from Imre Vadasz via sf@
|
|
|
|
|
|
|
| |
Currently implemented for wd and sd.
Initially ported from netbsd by pedro@
ok deraadt@
|
|
|
|
|
|
| |
the random subsystem as entropy. This value is pretty much unknown,
and anyways our entropy input ring does not saturate from knowns.
ok mikeb djm
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
|
|
| |
instead of using magic numbers. No binary change.
Diff from Martin Natano.
ok deraadt@
|
|
|
|
| |
Pointed out by mlarkin@
|
|
|
|
|
|
|
|
|
|
|
| |
7Y250M0, refuse to do DMA unless the transfer mode has been set. This causes
reads (and presumably writes) to time out.
Unlike the wdc code, this only sets the UltraDMA transfer mode. If we ever
want to support ancient PATA drivers through the atascsi layer, we probably
need to set the PIO and/or MWDMA transfer modes as well.
ok jmatthew@, dlg@)
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
ST-506 support. Remove redundant 'precomp' variables/fields and rename
remaining few to 'features' to be consistant with the rest of the code.
Consensus that no ST-506 disks (requiring ISA cards, <120MB, usually
rife with bad sectors that can't be worked around) are still running
OpenBSD.
|
|
|
|
|
|
|
|
| |
and ata_free.
this makes them consistent with the rest of the members, and lets
me #define free to weird debug things in the kernel without screwing
these files up.
|
|
|
|
|
|
|
|
|
|
| |
support drivers that do not need any specific suspend/resume magic and
do not have an activate function.
config_suspend() will automagically propagate the event to the children
of the driver. Needed at least by kauaiata(4/macppc).
ok deraadt@, mlarkin@
|
|
|
|
|
|
|
| |
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
when workqs were introduced, we provided a second argument so you
could pass a thing and some context to work on it in. there were
very few things that took advantage of the second argument, so when
i introduced pools i suggested removing it. since tasks were meant
to replace workqs, it was requested that we keep the second argument
to make porting from workqs to tasks easier.
now that workqs are gone, i had a look at the use of the second
argument again and found only one good use of it (vdsp(4) on sparc64
if you're interested) and a tiny handful of questionable uses. the
vast majority of tasks only used a single argument. i have since
modified all tasks that used two args to only use one, so now we
can remove the second argument.
so this is a mechanical change. all tasks only passed NULL as their
second argument, so we can just remove it.
ok krw@
|
|
|
|
| |
ok deraadt@ tedu@
|
|
|
|
| |
ok mpi@ kspillner@
|
|
|
|
| |
after discussions with beck deraadt kettenis.
|
| |
|
|
|
|
| |
ok miod@, deraadt@, tedu@
|
|
|
|
| |
so its now reliable.
|
|
|
|
|
|
|
| |
by passing a start/length in the HIB_INIT op. Then rebase all
hibernate-time block offsets to be relative to the start of that partition.
This simplifies things a lot.
ok mlarkin
|
|
|
|
| |
wdsize() return value.
|
|
|
|
|
|
| |
variable and not (usually) an int.
ok miod@
|
|
|
|
|
| |
of sectors to write by one value and increment the address
the next i/o will start at by a different amount.
|
| |
|
|
|
|
|
|
|
|
| |
address by using the DL_BLKTOSEC() and DL_SECTOBLK() defines rather
than handrolling the equivalent. Fixes current addition of a 512-byte
block value (b_blkno) to a disk hardware address (DL_GETPOFFSET()).
Tested on real wd(4) hardware by guenther@.
|
|
|
|
|
| |
test period; i think 3 years ago the last bugs fell out.
ok otto beck others
|
|
|
|
|
|
| |
IO to the disk, DVACT_RESUME the controller back to normal operation. That
allows us to do the full DVACT_POWERDOWN sequence afterwards.
ok mlarkin
|
|
|
|
|
|
|
|
|
|
| |
paths are reflexive. It is now possible to fail part-way through a
suspend sequence, and recover along the resume code path.
Split DVACT_SUSPEND by adding a new DVACT_POWERDOWN method is used
after hibernate (and suspend too) to finish the job. Some drivers
must be converted at the same time to use this instead of shutdown hooks
(the others will follow at a later time)
ok kettenis mlarkin
|
|
|
|
| |
from Tobias Ulmer (tobiasu at tmux.org); ok jmc@, krw@
|
|
|
|
| |
instead of 1.
|
|
|
|
|
|
|
| |
ahci_hibernate_io, a skeleton of which is also provided in this diff.
This code is from deraadt@. Tested on a few wd machines to ensure it works
there as well.
|
|
|
|
|
|
| |
groundwork for *_hibernate_io functions other than wd_hibernate_io
These changes were sent to me by deraadt@
|
|
|
|
|
| |
for talking to the disk driver snuck in.
ok mlarkin
|
|
|
|
| |
unmap handling.
|
|
|
|
|
|
| |
is causing problems when trying to boot sparc64 from an isp(4).
Verified to fix the sparc64/isp(4) regression by krw@; ok deraadt@
|
|
|
|
|
| |
errata for the Serverworks SATA chipset found on the macppc xserve G5.
ok jmc
|
|
|
|
|
|
|
|
|
|
| |
support via the thin provisioning page.
this emul is a bit unreliable since atascsi needs to allocate memory for
the TRIM command to use, but we figure that the world wont end if we lose
a TRIM unlink real io.
ok matthew@
|
|
|
|
|
|
|
|
|
| |
adapter_buswidth to sc_targets): gdt(4) and atascsi(4) still used it
in other ways.
Apply appropriate fixes; tested on ahci(4).
ok krw@
|
|
|
|
|
|
| |
saa_luns instead of adapter_buswidth and luns in the prototype link.
ok dlg@, miod@
|
|
|
|
|
|
|
| |
device signature so i left it blank, and the identify is the cached copy
in the port structure.
i filled the SAT vendor stuff in as "OpenBSD", "atascsi", osrelease.
|
|
|
|
| |
to do WRITE SAME 16 for now (which is all we do).
|
| |
|