From 5e059e71c8b09b71aa1f5867725e9a0b097abdf6 Mon Sep 17 00:00:00 2001 From: "Alexandr A. Telyatnikov" Date: Sat, 2 Feb 2019 01:18:15 +0300 Subject: [PATCH] [0.4.11] [UNIATA] Add AHCI revision 1.3.1 Also explicitly print current AHCI revision in debug log. CORE-15643 Should make UniATA work with AHCI controllers of Intel Skylake-generation. cherry picked from commit 0.4.12-dev-592-g 0c7e9684bd25d5d54cee2840f78bca60e46ede7d --- drivers/storage/ide/uniata/id_sata.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/storage/ide/uniata/id_sata.cpp b/drivers/storage/ide/uniata/id_sata.cpp index 6a16c16f095..25fa089ea8b 100644 --- a/drivers/storage/ide/uniata/id_sata.cpp +++ b/drivers/storage/ide/uniata/id_sata.cpp @@ -869,11 +869,12 @@ UniAtaAhciValidateVersion( case 0x00010100: case 0x00010200: case 0x00010300: + case 0x00010301: break; default: KdPrint2((PRINT_PREFIX " Unknown AHCI revision\n")); if(AtapiRegCheckDevValue(deviceExtension, CHAN_NOT_SPECIFIED, DEVNUM_NOT_SPECIFIED, L"CheckAhciRevision", Strict)) { - KdPrint((" AHCI revision excluded\n")); + KdPrint((" AHCI revision excluded %#x\n", version)); return FALSE; } } @@ -966,7 +967,7 @@ UniataAhciDetect( CAP = UniataAhciReadHostPort4(deviceExtension, IDX_AHCI_CAP); CAP2 = UniataAhciReadHostPort4(deviceExtension, IDX_AHCI_CAP2); - KdPrint2((PRINT_PREFIX " AHCI CAP %#x, CAP2 %#x\n", CAP, CAP2)); + KdPrint2((PRINT_PREFIX " AHCI CAP %#x, CAP2 %#x, ver %#x\n", CAP, CAP2, version)); if(CAP & AHCI_CAP_S64A) { KdPrint2((PRINT_PREFIX " 64bit")); //deviceExtension->Host64 = TRUE; // this is just DETECT, do not update anything