git: ahci - Read DevSleep DETO and MDAT parameters using READ LOG EXT command.

Imre Vadasz ivadasz at crater.dragonflybsd.org
Sun Jan 25 09:38:44 PST 2026


commit 602b3a38e000ea68b450602ade9acbbab83a694d
Author: Imre Vadász <imre at vdsz.com>
Date:   Sun Jan 25 17:35:44 2026 +0100

    ahci - Read DevSleep DETO and MDAT parameters using READ LOG EXT command.
    
    * DETO = DevSleep Exit Timeout in milliseconds
      MDAT = Minimum DEVSLP Assertion Time in milliseconds
    
    * In the next step, these parameters will be programmed in the DevSleep
      register, when automatic DevSleep power management is enabled, if
      available. If we failed to get these values, or if they were read as
      zero, we should fall back to the "nominal" values of 20ms for DETO and
      10ms for MDAT listed in the Serial ATA specification.

Summary of changes:
 sys/dev/disk/ahci/ahci.c     | 42 ++++++++++++++++++++++++++++++++++++++++--
 sys/dev/disk/ahci/ahci.h     |  2 ++
 sys/dev/disk/ahci/ahci_cam.c | 35 +++++++++++++++++++++++++++++++++++
 sys/dev/disk/ahci/atascsi.h  | 40 ++++++++++++++++++++++++++++++++++++++--
 4 files changed, 115 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/602b3a38e000ea68b450602ade9acbbab83a694d


-- 
DragonFly BSD source repository


More information about the Commits mailing list