Files
linux-apfs/drivers/ata
Mark Lord 39f25e70ca libata-pmp: clear hob for pmp register accesses
>> Mark Lord wrote:
>>> Tejun, I've added PMP to sata_mv, and am now trying to get it
>>> to work with a Marvell PM attached.
>>>
>>> And the behaviour I see is very bizarre.
>>>
>>> After hard+soft resets, the PM signature is found,
>>> and libata interrogates the PM registers.
>>>
>>> It successfully reads register 0, and then register 1.
>>> But all subsequent registers read out (incorrectly) as zeros.
...

This behavior has been confirmed by Marvell with a SATA analyzer.
The Marvell port-multiplier apparently likes to see clean HOB
information when accessing PMP registers.

Since sata_mv uses PIO shadow register access, this doesn't happen
automatically, as it might in a more purely FIS-based driver (eg. ahci).

One way to fix this is to flag these commands with ATA_TFLAG_LBA48,
forcing libata to write out the HOB fields with known (zero) values.

Signed-off-by: Saeed Bishara <saeed@marvell.com>
Acked-by: Mark Lord <mlord@pobox.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2008-02-24 00:28:23 -05:00
..
2008-01-23 05:24:17 -05:00
2008-02-01 12:26:37 -05:00
2008-01-31 11:25:51 +11:00
2008-01-23 05:24:10 -05:00
2008-02-15 13:51:24 -05:00
2008-02-03 17:08:11 +02:00
2007-10-20 01:02:48 +02:00
2008-02-03 17:08:11 +02:00
2008-01-23 05:24:13 -05:00
2007-11-23 19:33:27 -05:00
2008-02-03 17:08:11 +02:00
2008-01-31 11:25:51 +11:00
2008-02-11 14:30:07 -05:00
2008-01-23 05:24:15 -05:00
2008-02-15 13:51:22 -05:00
2008-02-03 17:08:11 +02:00
2008-01-23 05:24:17 -05:00
2008-01-23 05:24:14 -05:00
2008-01-23 05:24:15 -05:00
2008-01-23 05:24:14 -05:00
2008-01-23 05:24:10 -05:00
2008-01-23 05:24:15 -05:00
2007-07-02 10:17:42 -04:00