sos
9410cb311e
Properly check malloc returns.
2004-08-24 10:39:00 +00:00
sos
be94cde364
Workaround devices that responds with registers as *both* master & slave,
...
but fail utterly when we try to talk to the "fake" device.
2004-08-22 15:54:08 +00:00
sos
61ba3ee1cb
Correct the args to busdma, mostly cosmetic.
2004-08-20 19:05:22 +00:00
sos
3e33988307
DONT PANIC
...
Only call dmainit() if there is a valid busmaster resource.
2004-08-20 06:19:25 +00:00
sos
2f36723c3d
Improve (hopefully) on the workaround code for devices that doesn't
...
interrupt when command is done, ie some ATAPI CD drives with no
media loaded.
2004-08-16 09:32:35 +00:00
sos
0c3597671a
Fix Promise sx4/sx4000 support that broke on the latest race fixes.
2004-08-16 09:29:46 +00:00
sos
6f119c28ba
Allow the use of a supplied function to set the PRD table. This is
...
needed for new chips that supports 64bit addressing.
2004-08-13 08:14:27 +00:00
sos
a71e43e2c6
Change the order of ata_dmainit/ata_allocate in preparation of
...
supporting new chipsets where this is needed.
2004-08-12 08:20:36 +00:00
sos
ee3f3a009a
Fix bad free() usage.
...
Submitted by: Pawel Jakub Dawidek
2004-08-09 14:22:58 +00:00
sos
7d8a7cc8a3
Close a race in ata_reinit().
2004-08-09 12:02:32 +00:00
jmg
895cafe317
make sure that ioctl's to ata use the proper cmd IOCATA...
...
Reviewed by: sos
2004-08-09 06:47:53 +00:00
phk
d8d2b01380
Tag all geom classes in the tree with a version number.
2004-08-08 07:57:53 +00:00
sos
c483b63711
Correct the last commit so it works in error situations as well.
2004-08-07 12:49:28 +00:00
njl
d9ff05bfb1
Fix a panic in ata_generic_transaction(). The DMA pointer of the channel
...
was being unconditionally dereferenced but was NULL for PIO requests.
Check the request flags for a DMA transaction before dereferencing.
Reported by: ceri
Tested by: Radek Kozlowski <radek -at- raadradd.com>
2004-08-06 22:23:53 +00:00
sos
6016d1505d
Try to narrow down the race window on HW that does not have ways to
...
poll for which channel actually pulled the irq line.
2004-08-05 21:13:41 +00:00
sos
54e7375090
Add firmware revision to probe printf.
2004-08-05 21:11:33 +00:00
sos
12d6bd3743
Change the default to switch on DMA on ATAPI devices if they can
...
do UDMA2 (ATA33) mode and beyond.
2004-08-01 12:31:38 +00:00
sos
e95ea22d81
Fix the panic (""memory modified after free") when ata_getparam() fails
...
and retries.
Found by: Nate Lawson
2004-07-31 10:29:29 +00:00
sos
9ad7d89c48
Fix the reset sequence for sx4/sx4000 type controllers, it could hang the
...
chip in an indefinite state.
2004-07-30 13:33:09 +00:00
sos
a33b996095
Refine the wait for ATAPI_RESET.
...
Properly wait for not busy and introduce a timeout for devices not
setting busy (as they should).
Leave a printf in there that states how long the wait was, as I'd like
to get an idea of the variations here. The time needed seems also to be
affected by whether a medium is present or not.
2004-07-24 19:03:28 +00:00
sos
13128d7277
Dont expect interrupt from ATAPI_RESET, it doesn't deliver one.
2004-07-23 17:01:47 +00:00
sos
7eac47804a
Dont set "address setup timing" on newer VIA chips.
...
closes PR: 69180
2004-07-17 14:48:46 +00:00
sos
4997cbe712
Attempt to handle suspend/resume better.
2004-07-12 10:50:50 +00:00
sos
a600480444
Remove leftover debug output.
2004-06-30 09:22:47 +00:00
sos
2c69c72b78
Add support for LSI type software RAID's.
...
Made possible by: John Cagle @ HP
2004-06-25 21:21:59 +00:00
sos
166655f4a8
Use the right ordering of args on mtx_init(). No functional changes
...
since the args in question was all zero's.
Found by: Jimmy Olgeni <olgeni@FreeBSD.org>
2004-06-22 11:18:25 +00:00
green
acfb823f3f
Call the detach function with g_waitfor_event() so that it can access
...
the GEOM topology.
There are still issues with not detaching from cam correctly such that
upon a device detach there's an invalid pointer dereference from the
later call to cam_rescan().
2004-06-21 20:42:03 +00:00
sos
86c6c2575c
Up SiI reset wait a bit, some devices got lost.
2004-06-17 21:36:10 +00:00
green
16b3d5deee
atapicam(4) is currently off by three orders of magnitude regarding the
...
timeout values in the CAM CCBs. Divide by 1000 to get values in seconds
which are what ata(4) timeouts internally use.
This does lose granularity, though, and small values can now round down
to zero. It's probably worth making all ata(4) timeouts in terms of
hz/ticks/milliseconds/something.
2004-06-17 07:29:56 +00:00
phk
dfd1f7fd50
Do the dreaded s/dev_t/struct cdev */
...
Bump __FreeBSD_version accordingly.
2004-06-16 09:47:26 +00:00
sos
ca830264a9
Oops, backout debug code..
2004-06-15 11:38:48 +00:00
sos
3ebcca508c
Dont set prefetch etc on VIA chips, causes problems on newer chips and
...
ATAPI devices.
2004-06-15 11:16:36 +00:00
sos
153630cb88
Increase robustness of SATA handling.
2004-06-15 11:02:09 +00:00
sos
f7faebf7e4
Back out the last change as that broke some SATA devices.
...
Now we are cleaing up remove a few lines of unused code.
2004-06-11 07:39:15 +00:00
phk
9db9f1379c
Add missing <sys/module.h> includes currently relying on nested include
...
in <sys/kernel.h>
2004-06-03 06:10:02 +00:00
sos
1a40a5a65c
When waiting for drive to become ready, reinit the request params as they
...
might get trashed by autosensing.
2004-06-01 12:28:45 +00:00
sos
a6ddd03408
Use the right cmd+errorcode if we are in autosense/not.
2004-06-01 12:26:08 +00:00
sos
70c10dad98
Only set and report error if not set already.
2004-06-01 11:37:24 +00:00
sos
2fbc4845f9
Dont retry on devices that left the system.
...
Ignore "fake" devices that has 0x7f status.
2004-06-01 11:34:46 +00:00
imp
5f2befc69a
Fix disordering of pccarddevs.h noticed by bde. Also remove a few
...
redundant includes and fix some of the include disordering.
Submitted by: bde
2004-05-27 03:49:45 +00:00
imp
1f5642e8bb
Move to generating pccarddevs.h on the fly, both for the kernel and
...
the modules.
Also generate usbdevs.h automatically now, but a non-kernel file is
stopping that at the moment.
2004-05-26 00:53:10 +00:00
des
1c76db064e
Whitespace cleanup.
2004-05-20 14:49:12 +00:00
sos
f217f52c7f
Rip out the too verbose "spurious interrupt" printf's, they dont serve
...
a purpose any longer.
2004-05-17 17:53:12 +00:00
sos
b4c5462d13
Fix Sii3114 support.
2004-05-10 20:23:25 +00:00
sos
a4daa2d36b
Do at better job at unit numbering.
2004-04-30 18:49:03 +00:00
sos
266c927d2d
Spring cleanup of macros
2004-04-30 16:21:34 +00:00
sos
7b7ea5391b
Reduce the time spent looking for devices on channels that return
...
what looks like garbage.
2004-04-27 15:52:08 +00:00
sos
18295a0f2e
Use pci_get_progif to decide if this is one of the primary/secondary
...
channels. This also work when PCI native mode has been selected
(patch for /sys/dev/pci/pci.c needed for that) since pci_get_progif
uses the saved value for progif, not the one stored after we may have
changed from legacy mode to native PCI mode.
2004-04-27 12:54:59 +00:00
sos
70a39823c7
Try the simplify determining what is ata0 and ata1.
...
Remove the PCI native addressing code, it eed to be run before we even
have control in the ATA driver and should be moved to the pci code.
2004-04-24 16:32:06 +00:00
sos
0eae77e315
Change setup for SiS device to allow PCI native mode.
2004-04-24 15:54:20 +00:00