diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-10-23 14:16:15 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-10-31 12:51:54 -0400 |
commit | e829ea9a5ea05c6dedd91f741f91cb8723e50b19 (patch) | |
tree | bb554a4ec31b3b5501189993de990d2419306c2f /manual | |
parent | 825e4069655065ffd49bcc9ec64b53f1225e8186 (diff) | |
download | rockbox-e829ea9a5ea05c6dedd91f741f91cb8723e50b19.tar.gz rockbox-e829ea9a5ea05c6dedd91f741f91cb8723e50b19.zip |
ata: Rework how flushing, sleeping, and power off interacts
* FLUSH_EXT is used if featureflag is set and we are using LBA48
(unconditionally used for CE-ATA on ipod6g)
* FLUSH is used if featureflag is set (ATA6+) or if device claims to be ATA5+
* Rename ata_disk_can_power_off() to ata_disk_can_sleep() as that is
what it actually tests for. Only use it to gate issuing the
STANDBY IMMEDIATE command.
* Restore behavior of ata_disk_is_active() to return 1 if drive is
"spinning" or powered up.
* Allow poweroff if drive claims PM support OR we are able to issue
FLUSH/FLUSH_EXT commands.
* Added ata_flush() to explicitly trigger a flush operation, and hook it
up to storage_flush() in the device shutdown path. (Flushes were
only previously used in the storage device power management path)
* After issuing all settings, re-issue IDENTIFY_DEVICE to make sure
it reflects everything we've enabled.
* Update manual section on Flash/SSD mods.
Change-Id: I6770a54ef3a87f4c47120bcb96c944a6652f1bf4
Diffstat (limited to 'manual')
-rw-r--r-- | manual/getting_started/installation.tex | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/manual/getting_started/installation.tex b/manual/getting_started/installation.tex index 1b09ce1f22..b42fcc47e6 100644 --- a/manual/getting_started/installation.tex +++ b/manual/getting_started/installation.tex | |||
@@ -305,14 +305,15 @@ For example, the stock Apple firmware on earlier 6th generation iPod Classic mod | |||
305 | robust, but tend to be expensive and not available in larger sizes. | 305 | robust, but tend to be expensive and not available in larger sizes. |
306 | \item[SATA.] These are fast, reliable, and available in high capacities, but are typically optimized for high performance | 306 | \item[SATA.] These are fast, reliable, and available in high capacities, but are typically optimized for high performance |
307 | at the expense of power consumption.. However, as they implement the full ATA command set, we are able | 307 | at the expense of power consumption.. However, as they implement the full ATA command set, we are able |
308 | to aggressively power them down when not being actively used. | 308 | to minimize their power consumption and power them down when not being actively used. |
309 | \item[Single Secure Digital (SD).] While these adapters come in different form factors from multiple vendors, | 309 | \item[Single Secure Digital (SD).] While these adapters come in different form factors from multiple vendors, |
310 | they are all based on the same basic design. The ATA command set is incompletely emulated, notably lacking | 310 | they are all based on the same basic design. The ATA command set is incompletely emulated, notably lacking |
311 | support for the \emph{mandatory} ATA power management commands that Rockbox uses to flush caches and safely | 311 | support for \emph{mandatory} ATA power management commands that Rockbox uses to safely |
312 | transition the device in and out of low power states. Additionally, SD cards vary widely in quality | 312 | transition the device in and out of low power states. Additionally, SD cards vary widely in quality |
313 | and power consumption with the resultant effects on data longevity and battery life. Finally, these SD adapters do not support 2TiB or larger SDUC cards. | 313 | and power consumption with the resultant effects on data longevity and battery life. Finally, these SD adapters |
314 | do not support 2TiB or larger SDUC cards. | ||
314 | \item[Dual/Quad SD.] These are similar to the above, only allowing use of mulitiple SD cards to | 315 | \item[Dual/Quad SD.] These are similar to the above, only allowing use of mulitiple SD cards to |
315 | increase the overall storage capacity. While typically described as JBOD\footnote{Just a Bunch Of Disks}, this is not accurate as each card is not individually accessable. Instead, the adapter claims to be to be a single logical drive of the combined capacity of the individual cards in a RAID0-like manner. Consquently, if any one card fails, all data on all other cards is most likely permenantly lost. Given the quality and power management concerns mentioned earlier, this means use of multiple SD cards in one of these adapters is the least reliable/robust and the most power hungry of the various SSD mods. Finally, in another violation of the ATA specification, these ATA-SD adapters fail to properly support LBA48 addressing, meaning that no matter which combination of cards is used, they simply will not work if their combined capacity exceeds 2TiB. | 316 | increase the overall storage capacity. While typically described as JBOD\footnote{Just a Bunch Of Disks}, this is not accurate as each card is not individually accessable. Instead, the adapter claims to be to be a single logical drive of the combined capacity of the individual cards in a RAID0-like manner. Consquently, if any one card fails, all data on all other cards may be rendered inacessible. Given the quality concerns mentioned earlier, this means use of multiple SD cards in one of these adapters is the least reliable/robust of the various SSD mods. Finally, in another violation of the ATA specification, these ATA-SD adapters fail to properly support LBA48 addressing, meaning that no matter what combination of cards is used, if their combined capacity exceeds 2TiB, the extra capacity will not be usable, and the device may even present as having (considerably) less space. |
316 | \end{description} | 317 | \end{description} |
317 | 318 | ||
318 | \note{All of these flash/SSD mods take up less physical space in the device enclosure than the original hard drive, so care must be taken to ensure they are securely mounted and resistant to the vibration and impacts that typically occur in portable devices. Ribbon cables are particularly vulnerable.} | 319 | \note{All of these flash/SSD mods take up less physical space in the device enclosure than the original hard drive, so care must be taken to ensure they are securely mounted and resistant to the vibration and impacts that typically occur in portable devices. Ribbon cables are particularly vulnerable.} |