- PHYRDY
- Partial: <10us
- Slumber: <10ms
- DevSleep: <20ms
想知道這個碟機有support什麼樣的power management能力可以看Identify table
Word 76, bit 9: Support HIPM
Word 76, bit 14: Support Device auto slumber
Word 78, bit 3: Support DIPM
Word 78, bit 8: Support DEVSLP
Word 79, bit 3: Enable DIPM
Word 79, bit 8: Enable DEVSLP
以下是控制AHCI controller來做HIPM/DIPM實驗:
HIPM:
Partial:
- PxCMD &= (~CMD_ASP) //mute bit 27
- PxCMD |= CMD_ALPE //set bit 26
- PxSCTL.IPM =0 // mute bit 11~8
Slumber:
- PxCMD |= CMD_ALPE | CMD_ASP //set bit 26 & bit 27
- PxSCTL.IPM =0 // mute bit 11~8
發個ATA command來trigger, 然後Check PxSSTS.IPM 就知道有沒有成功
DIPM:
發ATA command(Set Feature, EFh) 開啟碟機這項功能
沒有留言:
張貼留言