History log of /haiku/src/add-ons/kernel/busses/scsi/ahci/sata_request.h
Revision Date Author Comments
# c2dbeb9d 16-Jul-2018 Augustin Cavalier <waddlesplash@gmail.com>

Revert the cargo-culted changes to sata_request.

This reverts commit ffd36865cf3e66a57f5b1c5e938d53bdbd1c9933.

They didn't fix anything, and on some systems it's reported that they
cause boot failures.

Fixes #14272.


# ffd36865 09-Jul-2018 Augustin Cavalier <waddlesplash@gmail.com>

sata_request: Cargo-cult some behaviors from FreeBSD.

See 13778#comment:3 for information on FreeBSD behaviors.

I didn't manage to locate where the specification talks about this
(but my specification-fu is rather poor), and it didn't fix the check_sense
syslog spamming on my machine.

But it seems to continue to function as before on my hardware as well as
VirtualBox and VMware, so perhaps it might fix something else.

Signed-off-by: Alexander von Gluck IV <kallisti5@unixzen.com>


# 79cb543a 29-Oct-2013 Axel Dörfler <axeld@pinc-software.de>

ahci: Minor coding style cleanup.

* Renamed some methods to camel case.
* Replaced coding error panics with ASSERTs.


# 2e4e1eb2 29-Oct-2013 Axel Doerfler <axeld@pinc-software.de>

ahci: fixed endless loop, and missing bit.

* The value for trim is bit 0, not 0; added sata_request::SetFeature()
to change this.
* The lba range fill loop never ended.
* Thanks to Marcus for proof-reading!


# e01b1808 14-Jun-2013 Jérôme Duval <jerome.duval@gmail.com>

ahci: fixed typo and narrowing conversion warning.

* completition -> completion.


# 1d4c4d3a 12-Jun-2009 Michael Lotz <mmlr@mlotz.ch>

* Call PostReset() at the end of ResetPort() as it's always used in that way.
* Reset the port directly after executing a command failed instead of letting
the next call do the reset first. This is arbitrary but looks cleaner to me.
* Provide a way to check if a given sata_request is a SCSI_OP_TEST_UNIT_READY
over ATAPI and use this info to calm down all error output. This avoids
spamming the syslog with error output on each media status poll when no disk
is present in a ATAPI device.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31014 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d7c32123 01-Jul-2008 Marcus Overhagen <marcusoverhagen@gmail.com>

Set transfer length when doing ATAPI transfers.
Dump ATAPI command packet on error.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26205 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 47386374 21-May-2008 Marcus Overhagen <marcusoverhagen@gmail.com>

The AHCI controller doesn't natively support ATAPI commands.
Instead, one needs to execute the ATA command 0xa0 (PACKET) using
a normal ATA PIO FIS and in addition fill the SCSI CDB into the ACMD
space to transfer the ATAPI PACKET command.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25597 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fd735f9b 20-May-2008 Marcus Overhagen <marcusoverhagen@gmail.com>

More preparation for sending ATAPI PACKET commands (pass through of SCSI commands).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25585 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 56f0b1a0 04-Jan-2008 Marcus Overhagen <marcusoverhagen@gmail.com>

A helper class to easier support Native Command Qeueuing and ATAPI support.
This class either encapsulates scsi_ccb or can be used stand alone.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23249 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 79cb543ae0f372eeb1ff7a9c108d19b9150e76c7 29-Oct-2013 Axel Dörfler <axeld@pinc-software.de>

ahci: Minor coding style cleanup.

* Renamed some methods to camel case.
* Replaced coding error panics with ASSERTs.


# 2e4e1eb2d9d4505cd716151de281319a03695f36 29-Oct-2013 Axel Doerfler <axeld@pinc-software.de>

ahci: fixed endless loop, and missing bit.

* The value for trim is bit 0, not 0; added sata_request::SetFeature()
to change this.
* The lba range fill loop never ended.
* Thanks to Marcus for proof-reading!


# e01b1808b33a937d1f61613eb74cbf946222d701 14-Jun-2013 Jérôme Duval <jerome.duval@gmail.com>

ahci: fixed typo and narrowing conversion warning.

* completition -> completion.


# 1d4c4d3a5bb167a4df0202a1c1d9e44abd4c156d 12-Jun-2009 Michael Lotz <mmlr@mlotz.ch>

* Call PostReset() at the end of ResetPort() as it's always used in that way.
* Reset the port directly after executing a command failed instead of letting
the next call do the reset first. This is arbitrary but looks cleaner to me.
* Provide a way to check if a given sata_request is a SCSI_OP_TEST_UNIT_READY
over ATAPI and use this info to calm down all error output. This avoids
spamming the syslog with error output on each media status poll when no disk
is present in a ATAPI device.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31014 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d7c321236fb72c4044f75bbad7144ecc37cc0a1a 01-Jul-2008 Marcus Overhagen <marcusoverhagen@gmail.com>

Set transfer length when doing ATAPI transfers.
Dump ATAPI command packet on error.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26205 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4738637486e91d326ef8d2fb16b19d9c36bc44ea 21-May-2008 Marcus Overhagen <marcusoverhagen@gmail.com>

The AHCI controller doesn't natively support ATAPI commands.
Instead, one needs to execute the ATA command 0xa0 (PACKET) using
a normal ATA PIO FIS and in addition fill the SCSI CDB into the ACMD
space to transfer the ATAPI PACKET command.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25597 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fd735f9bb07a88b6f0b8c5ec1531106d9c2081b5 20-May-2008 Marcus Overhagen <marcusoverhagen@gmail.com>

More preparation for sending ATAPI PACKET commands (pass through of SCSI commands).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25585 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 56f0b1a01a8d47dcad7c9684285f031f2e6f9994 04-Jan-2008 Marcus Overhagen <marcusoverhagen@gmail.com>

A helper class to easier support Native Command Qeueuing and ATAPI support.
This class either encapsulates scsi_ccb or can be used stand alone.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23249 a95241bf-73f2-0310-859d-f6bbb57e9c96