- 13 Dec, 2005 1 commit
-
-
Jeff Garzik authored
Some hardware does not support the PACKET command at all. Other hardware supports ATAPI, but the driver does something nasty such as calling BUG() when an ATAPI command is issued. For these such cases, we mark them with a new flag, ATA_FLAG_NO_ATAPI. Initial version contributed by Ben Collins.
-
- 04 Dec, 2005 1 commit
-
-
Tejun Heo authored
This patch makes ata_scsi_pass_thru() properly set result code and sense data on translation failures. Signed-off-by:
Tejun Heo <htejun@gmail.com> Signed-off-by:
Jeff Garzik <jgarzik@pobox.com>
-
- 14 Nov, 2005 1 commit
-
-
Jeff Garzik authored
- Move ATAPI check-condition handling out of the timeout handler - Use multi-qc-issue feature to issue REQUEST SENSE ATAPI PACKET command upon receiving an ATAPI check-condition. This cleans things up a lot, and eliminates a nasty recursion bug.
-
- 13 Nov, 2005 1 commit
-
-
Mark Lord authored
-
- 11 Nov, 2005 1 commit
-
-
Mike Christie authored
scsi_wait_req does not exist any more in the SCSI layer. This patch makes it so libata can compile again. Signed-off-by:
Mike Christie <michaelc@cs.wisc.edu> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
-
- 10 Nov, 2005 1 commit
-
-
Alan Cox authored
Signed-off-by:
Alan Cox <alan@redhat.com> Signed-off-by:
Jeff Garzik <jgarzik@pobox.com>
-
- 09 Nov, 2005 1 commit
-
-
Randy Dunlap authored
Fix all reported kernel-doc errors in libata. Signed-off-by:
Randy Dunlap <rdunlap@xenotime.net> Signed-off-by:
Jeff Garzik <jgarzik@pobox.com>
-
- 07 Nov, 2005 1 commit
-
-
Jeff Garzik authored
-
- 31 Oct, 2005 1 commit
-
-
Jeff Garzik authored
A lot of power packed into a little patch. This change eliminates the sharing between our controller-wide spinlock and the SCSI core's Scsi_Host lock. As the locking in libata was already highly compartmentalized, always referencing our own lock, and never scsi_host::host_lock. As a side effect, this change eliminates a deadlock from calling scsi_finish_command() while inside our spinlock.
-
- 30 Oct, 2005 1 commit
-
-
Jeff Garzik authored
The second argument to ata_qc_complete() was being used for two purposes: communicate the ATA Status register to the completion function, and indicate an error. On legacy PCI IDE hardware, the latter is often implicit in the former. On more modern hardware, the driver often completely emulated a Status register value, passing ATA_ERR as an indication that something went wrong. Now that previous code changes have eliminated the need to use drv_stat arg to communicate the ATA Status register value, we can convert it to a mask of possible error classes. This will lead to more flexible error handling in the future.
-
- 28 Oct, 2005 1 commit
-
-
Douglas Gilbert authored
- move default mode pages to the front of libata-scsi.c so various functions can access them - partial annotation of these pages, point out divergence from sat-r06 - replace various mode page magic numbers with defines - strengthen MODE SENSE command decoding: handle DBD bit in cdb, yield block descriptor (per sat-r06) and handle mode sub pages Signed-off-by:
Douglas Gilbert <dougg@torque.net> Signed-off-by:
Jeff Garzik <jgarzik@pobox.com>
-
- 22 Oct, 2005 1 commit
-
-
Jeff Garzik authored
Enforce access rules where appropriate. If the compiler is smart enough, this may buy us an optimization or two as a side effect.
-
- 18 Oct, 2005 2 commits
-
-
Albert Lee authored
- merge ata_prot_to_cmd() and ata_dev_set_protocol() as ata_rwcmd_protocol() - pave road for read/write multiple support - remove usage of pre-cached command and protocol values and call ata_rwcmd_protocol() instead Signed-off-by:
Albert Lee <albertcc@tw.ibm.com> ============== Signed-off-by:
Jeff Garzik <jgarzik@pobox.com>
-
Albert Lee authored
move the initialization of taskfile LBA flags "ATA_TFLAG_LBA" and "ATA_TFLAG_LBA48 flags" to the SCSI translation functions Signed-off-by:
Albert Lee <albertcc@tw.ibm.com> ============= Signed-off-by:
Jeff Garzik <jgarzik@pobox.com>
-
- 09 Oct, 2005 3 commits
-
-
Jeff Garzik authored
-
Douglas Gilbert authored
- change "xlat" and "fill" actors in libata-scsi so they are responsible for SCSI status and sense data when they return 1. This allows GOOD status or a specialized error to be set. - yield an error for mode sense requests for saved values [sat-r06] - remove static inlines for ata_bad_scsiop() and ata_bad_cdb() which are no longer used Signed-off-by:
Douglas Gilbert <dougg@torque.net> Signed-off-by:
Jeff Garzik <jgarzik@pobox.com>
-
Douglas Gilbert authored
- add extern ata_scsi_set_sense() to build SCSI fixed sense data and corresponding SCSI status Signed-off-by:
Douglas Gilbert <dougg@torque.net> Signed-off-by:
Jeff Garzik <jgarzik@pobox.com>
-
- 06 Oct, 2005 1 commit
-
-
Jeff Garzik authored
-
- 05 Oct, 2005 4 commits
-
-
Jeff Garzik authored
A few code shuffles, to make merging future code easier. Add (DRIVER_SENSE << 24) to certain result codes, as noted by Douglas Gilbert.
-
Jeff Garzik authored
No content changes, just moving code around.
-
Jeff Garzik authored
1) note urgent bug, that completes command twice 2) only fix up INQUIRY data if the SCSI version is zero (typically indicates ATAPI MMC-ish device) 3) if there is a problem on the ATA bus, don't bother with REQUEST SENSE, just directly handle the error based on Status/Error registers.
-
Jeff Garzik authored
ATAPI needs to be padded to next 4 byte boundary, if misaligned. Original work by me, many fixes from Tejun Heo.
-
- 04 Oct, 2005 5 commits
-
-
Jeff Raubitschek authored
-
Albert Lee authored
-
Albert Lee authored
move the redundant SCSI lba and transfer length calculation code from ata_scsi_verify_xlat() and ata_scsi_rw_xlat() to common functions.
-
Albert Lee authored
-
Jeff Garzik authored
Since our max_lun is unconditionally set to 1, we might as well hardcode a LUN 0 probe, rather than a wildcard LUN scan. The ide-scsi driver sets max_lun to a value greater than under certain conditions: if ((drive->id->last_lun & 0x7) != 7) host->max_lun = (drive->id->last_lun & 0x7) + 1; else host->max_lun = 1; last_lun is Word 126 of IDENTIFY PACKET DEVICE, marked as obsolete and undocumented in non-ancient specs. We'll leave it out for now. Should the need arise to support multi-LUN ATAPI devices, we'll probably want to add the above code. Finally, there have been reports of REPORT LUNS commands locking up ATAPI drives. Eliminating the wildcard LUN scan could help reduce the trouble from problematic drives.
-
- 03 Oct, 2005 1 commit
-
-
Jeff Garzik authored
Replace SCSI's legacy "bang at the door" method of probing with one directly controlled by the underlying ATA transport layer. We now only call scsi_scan_target() for devices we find, rather than probing every possible channel/id within a certain range.
-
- 31 Aug, 2005 1 commit
-
-
Jeff Garzik authored
Dumb typo spotted by Mark Lord.
-
- 30 Aug, 2005 1 commit
-
-
Jeff Garzik authored
ATAPI is getting close to being ready. To increase exposure, we enable the code in the upstream kernel, but default it to off (present behavior). Users must pass atapi_enabled=1 as a module option (if module) or on the kernel command line (if built in) to turn on discovery of their ATAPI devices.
-
- 29 Aug, 2005 1 commit
-
-
Jeff Garzik authored
- changes license of all code from OSL+GPL to plain ole GPL - except for NVIDIA, who hasn't yet responded about sata_nv - copyright holders were already contacted privately - adds info in each driver about where hardware/protocol docs may be obtained - where I have made major contributions, updated copyright dates
-
- 27 Aug, 2005 1 commit
-
-
Jeff Garzik authored
Fix bugs for unlikely edge cases noticed by Douglas Gilbert: - When READ(6)/WRITE(6) sector count == 0, treat it as 256 sectors - For other READ(x)/WRITE(x), when sector count == 0, error. We don't support successfully completing zero-length transfers at this time.
-
- 11 Aug, 2005 1 commit
-
-
Douglas Gilbert authored
-
- 10 Aug, 2005 1 commit
-
-
Tejun Heo authored
Yet another hack due to the fact that libata is the only user of SCSI's ->eh_strategy_handler() hook.
-
- 27 Jun, 2005 1 commit
-
-
Philip Pokorny authored
This is a multi-part message in MIME format.
-
- 22 Jun, 2005 1 commit
-
-
Jeff Garzik authored
-
- 30 May, 2005 1 commit
-
-
Jeff Garzik authored
-
- 15 May, 2005 1 commit
-
-
John W. Linville authored
Avoid changing sdev->host->max_sectors because it can prevent use of non-lba48 drives on other ports of the same adapter. Signed-off-by:
Stuart Hayes <stuart_hayes@Dell.com> Signed-off-by:
John W. Linville <linville@tuxdriver.com>
-
- 12 May, 2005 2 commits
-
-
Jeff Garzik authored
Authors: Brett Russ <russb@emc.com> John W. Linville <linville@tuxdriver.com> Andy Warner <andyw@pobox.com>
-
Albert Lee authored
-