| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
most kernels before FreeBSD 9.0. Remove such modules and respective kernel
options: atadisk, ataraid, atapicd, atapifd, atapist, atapicam. Remove the
atacontrol utility and some man pages. Remove useless now options ATA_CAM.
No objections: current@, stable@
MFC after: never
Notes:
svn path=/head/; revision=249083
|
|
|
|
|
|
|
|
|
|
| |
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers
MFC after: 1 week
Notes:
svn path=/head/; revision=233282
|
|
|
|
| |
Notes:
svn path=/head/; revision=230132
|
|
|
|
|
|
|
|
|
|
|
| |
It seems strchr() and strrchr() are used more often than index() and
rindex(). Therefore, simply migrate all kernel code to use it.
For the XFS code, remove an empty line to make the code identical to
the code in the Linux kernel.
Notes:
svn path=/head/; revision=229272
|
|
|
|
|
|
|
|
| |
Suggested by: jhb @ and marius @
MFC after: 1 week
Notes:
svn path=/head/; revision=227849
|
|
|
|
|
|
|
|
|
|
|
| |
to kern/subr_bus.c. Simplify this function so that it no longer
depends on malloc() to execute. Identify a few other places where
it makes sense to use device_delete_all_children().
MFC after: 1 week
Notes:
svn path=/head/; revision=227701
|
|
|
|
|
|
|
|
|
|
| |
string) to the geom_disk config XML so that they are easily accessible from
userland.
MFC after: 1 week
Notes:
svn path=/head/; revision=219056
|
|
|
|
|
|
|
|
| |
PR: bin/148894
Submitted by: olgeni
Notes:
svn path=/head/; revision=215034
|
|
|
|
|
|
|
|
| |
GEOM. This information needed for proper soft-RAID's on-disk metadata
reading and writing.
Notes:
svn path=/head/; revision=210471
|
|
|
|
|
|
|
| |
Submitted by: Mikolaj Golub on fs@
Notes:
svn path=/head/; revision=209977
|
|
|
|
|
|
|
|
|
|
| |
it. This can happen in some cases when plugging in SD/SmartCard PC
Cards with empty slots. It is better to detect this bogosity, and
refuse to attach rather than panic with a division by zero (in one of
many places) down stream.
Notes:
svn path=/head/; revision=209683
|
|
|
|
|
|
|
|
|
|
|
|
| |
hook it up to ada(4) also. While at it, rename *ad_firmware_geom_adjust()
to *ata_disk_firmware_geom_adjust() etc now that these are no longer
limited to ad(4).
Reviewed by: mav
MFC after: 3 days
Notes:
svn path=/head/; revision=208349
|
|
|
|
|
|
|
| |
Submitted by: Grzegorz Bernacki
Notes:
svn path=/head/; revision=200414
|
|
|
|
|
|
|
|
| |
It is required to suppot non-LBA48 devices with MAXPHYS above 128K.
Same is done in ada(4).
Notes:
svn path=/head/; revision=200353
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Introduce ATA_CAM kernel option, turning ata(4) controller drivers into
cam(4) interface modules. When enabled, this options deprecates all ata(4)
peripheral drivers (ad, acd, ...) and interfaces and allows cam(4) drivers
(ada, cd, ...) and interfaces to be natively used instead.
As side effect of this, ata(4) mode setting code was completely rewritten
to make controller API more strict and permit above change. While doing
this, SATA revision was separated from PATA mode. It allows DMA-incapable
SATA devices to operate and makes hw.ata.atapi_dma tunable work again.
Also allow ata(4) controller drivers (except some specific or broken ones)
to handle larger data transfers. Previous constraint of 64K was artificial
and is not really required by PCI ATA BM specification or hardware.
Submitted by: nwitehorn (powerpc part)
Notes:
svn path=/head/; revision=200171
|
|
|
|
|
|
|
|
| |
This fixes SET_MULTI error during boot on devices supporting less then
16 sectors per interrupt.
Notes:
svn path=/head/; revision=199749
|
|
|
|
|
|
|
|
|
| |
command timeout.
Submitted by: keramida
Notes:
svn path=/head/; revision=199050
|
|
|
|
|
|
|
| |
PR: kern/111023
Notes:
svn path=/head/; revision=198486
|
|
|
|
|
|
|
|
|
|
| |
to change when we reconnect the disk in a way that it is accessible through
CAM for example.
Discussed with: trasz
Notes:
svn path=/head/; revision=196822
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Generate fake channel interrupts even if channel busy with previous
request to let it finish. Without this, dumping requests were just queued
and never processed.
- Drop pre-dump requests queue on dumping. ATA code, working in dumping
(interruptless) mode, unable to handle long request queue. Actually, to get
coherent dump we anyway should do as few unrelated actions as possible.
Notes:
svn path=/head/; revision=191717
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and partially r188903. Revert breaks new drives detection on reinit to the
state as it was before me, but fixes series of new bugs reported by some
people.
Unconditional queueing of ata_completed() calls can lead to deadlock if
due to timeout ata_reinit() was called at the same thread by previous
ata_completed(). Calling of ata_identify() on ata_reinit() in current
implementation opens numerous races and deadlocks.
Problems I was touching here are still exist and should be addresed, but
probably in different way.
Notes:
svn path=/head/; revision=189195
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
drivers' probe routines. It allows not to sleep and so not drop Giant inside
ata_identify() critical section and so avoid crash if it reentered on
request timeout. Reentering of probe call checked inside of it.
Give device own knowledge about it's type (ata/atapi/atapicam). It is not
a good idea to ask channel status for device type inside ata_getparam().
Add softc memory deallocation on device destruction.
Notes:
svn path=/head/; revision=189166
|
|
|
|
|
|
|
| |
devices per channel.
Notes:
svn path=/head/; revision=188897
|
|
|
|
|
|
|
| |
to int.
Notes:
svn path=/head/; revision=188126
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Handle cases where dma function pointers may be NULL, and where
the max_iosize can't be derived from a DMA data structure. For
the latter, revert to the prior behaviour of using DFLTPHYS for
the max i/o size when there is no other data.
Reviewed by: marcel
No objection by: sos
Notes:
svn path=/head/; revision=178856
|
|
|
|
|
|
|
|
| |
This avoids calling busdma in the request processing path which caused a traumatic performance degradation.
Allocation has be postponed to after we know how many devices we possible can have on portmulitpliers to save some space.
Notes:
svn path=/head/; revision=178278
|
|
|
|
|
|
|
|
|
|
|
| |
The problem is that the PM support is part of a much larger WIP here, but due to popular demand I decided to get some of it imported.
Also I forgot the mention:
HW sponsored by: Vitsch Electronics / VEHosting
Notes:
svn path=/head/; revision=178114
|
|
|
|
|
|
|
|
|
|
| |
Support is working on the Silicon Image SiI3124/3132.
Support is working on some AHCI chips but far from all.
Remember this is WIP, so test reports and (constructive) suggestions are welcome!
Notes:
svn path=/head/; revision=178067
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
for a configurable number of seconds, spin the disk down. Spin it back
up on the next request.
Notice that the timeout is only armed by a request, so to spin down a
disk you may have to do:
atacontrol spindown ad10 5
dd if=/dev/ad10 of=/dev/null count=1
To disable spindown, set timeout to zero:
atacontrol spindown ad10 0
In order to debug any trouble caused, this code is somewhat noisy on the
console.
Enabling spindown on a disk containing / or /var/log/messages is not
going to do anything sensible.
Spinning a disk up and down all the time will wear it out, use sensibly.
Approved by: sos
Notes:
svn path=/head/; revision=177298
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
set, announce BIO_DELETE capability and issue ATA_CFA_ERASE when we get one.
Once we issue more BIO_DELETE, this will improve lifetime, and
possibly write speed of Flash based devices which have usable flash
adaptation layers.
For now, about the only usage is the newfs(1) -E flag.
Approved by: sos
Notes:
svn path=/head/; revision=175060
|
|
|
|
| |
Notes:
svn path=/head/; revision=173868
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
some false positives but at this moment it is better to add
support then to dont have it at all (comment from Soren).
PR: kern/111516
Submitted by: Thomas Nystrom <thn at saeab dot se>
Approved by: re (kensmith)
Approved by: imp (mentor)
OK'ed by: sos (With the comment noted above about false
positives).
Notes:
svn path=/head/; revision=171054
|
|
|
|
|
|
|
| |
No answer from: sos
Notes:
svn path=/head/; revision=169300
|
|
|
|
|
|
|
|
|
|
|
| |
This workaround the problem in Parallels/VMWare where the emulated drivers are
slower, especially with ATA_FLUSHCACHE. The problem appears much more
frequently with ZFS which use it a lot more.
Approved: sos, pjd
Notes:
svn path=/head/; revision=169058
|
|
|
|
| |
Notes:
svn path=/head/; revision=166878
|
|
|
|
|
|
|
| |
Sponsored by: home.pl
Notes:
svn path=/head/; revision=163834
|
|
|
|
|
|
|
|
|
| |
to use the current_ geometry.
This avoids a panic with BIOS'n that sets these to zero.
Notes:
svn path=/head/; revision=162311
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
of geometry. However, some platforms have a more complicated mapping
of the firmware values to the actual values. pc98 is the only
platform that currently does this. This mapping is necessary for
large disks connected to pc98 boxes, as the firmware labels require do
special hacks to the actual geometry for interoperability. We cannot
do this all in the geom layer because of initialization issues (geom
looks for an already initialized pc98 label, but we need the geometry
information prior to initialization, classic chicken and egg problem).
We pass the disk and the device_t to this function because the
geometry mapping depends on what kind of controller is used.
This hook allows platforms that want to override things to do so, and
has 0 overhead on all other platforms. These patches have been in use
locally for a long time, and received good feedback from the pc98
community and sos@ at various times during their development.
MFC After: 1 week
Notes:
svn path=/head/; revision=161128
|
|
|
|
|
|
|
| |
MFC candidate.
Notes:
svn path=/head/; revision=157329
|
|
|
|
|
|
|
|
| |
On all our platforms intmax == int64_t so simply using %j to print
int64_t's is safe all over, and doesn't pullute the code.
Notes:
svn path=/head/; revision=156473
|
|
|
|
|
|
|
| |
actually "longer" than uintmax_t for the understanding of printf).
Notes:
svn path=/head/; revision=156355
|
|
|
|
| |
Notes:
svn path=/head/; revision=156320
|
|
|
|
|
|
|
| |
Add dump support in ataraid.
Notes:
svn path=/head/; revision=154507
|
|
|
|
| |
Notes:
svn path=/head/; revision=154063
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Prefer '_' to ' ', as it results in more easily parsed results in
memory monitoring tools such as vmstat.
- Remove punctuation that is incompatible with using memory type names
as file names, such as '/' characters.
- Disambiguate some collisions by adding subsystem prefixes to some
memory types.
- Generally prefer lower case to upper case.
- If the same type is defined in multiple architecture directories,
attempt to use the same name in additional cases.
Not all instances were caught in this change, so more work is required to
finish this conversion. Similar changes are required for UMA zone names.
Notes:
svn path=/head/; revision=151897
|
|
|
|
|
|
|
|
| |
The workaround use PIO mode above ~137GB to allow using the disk.
Add the Acer chips with rev < 0xc4 as first candidate.
Notes:
svn path=/head/; revision=149191
|
|
|
|
|
|
|
|
|
|
| |
Dont try to enable read/write caching on devices that doesn't support it,
this reduces the noise from ATA on flash devices and the like.
Approved by: re@ (scottl)
Notes:
svn path=/head/; revision=147627
|
|
|
|
|
|
|
|
|
| |
The most prominent part is that its now possible to issue ata_requests
directly to say acd0, instead of going through the cumbersome /dev/ata
device.
Notes:
svn path=/head/; revision=146266
|
|
|
|
|
|
|
|
|
|
| |
all way through the code down the layers, instead of the mix'n'match that
resulted from the conversion done earlier.
Sponsored by: pair.com
Notes:
svn path=/head/; revision=145713
|
|
|
|
|
|
|
| |
normal ATA device check in ata-disk.c. Add support for the CFA magic.
Notes:
svn path=/head/; revision=145273
|