1. You may have noticed things look a little different around here - we've switched to a new platform (XenForo) and have some new forum styles and features. This how-to guide will help you find your way around. If you find anything that looks strange, post it in this thread.

Tutorial : How to switch from IRRT to AHCI mode - E6400/E6500 (Vista)

Discussion in 'Dell Latitude, Vostro, and Precision' started by MiB, Feb 3, 2009.

  1. MiB

    MiB Notebook Consultant

    Reputations:
    188
    Messages:
    272
    Likes Received:
    14
    Trophy Points:
    31
    If you're still using the Dell factory Vista image that came installed on your notebook, you can simply change the bios setting from IRRT(default) to AHCI and reboot. The Dell image already contains the AHCI drivers and enum info, so nothing to see here move along :)

    Issue

    If you reinstalled Vista at some point while the system bios was in IRRT mode (default as shipped from Dell) and later tried to change to AHCI you'll find that the system blue screens booting into Vista.

    Microsoft kb922976 says you need to enable the native MS AHCI driver in the registry for this to work, but you'll quickly find out that it's not so simple and the system still blue screens going into Vista.

    Why switch from IRRT to AHCI ?
    IRRT mode introduces some issues and added latency to the system. I suspect this is caused by the Intel raid monitor drivers constantly polling the ports for raid drives, which I also beleive reduces battery life. Intel tried to fix that with the 8.7 drivers, but that seems to cause other issues including more latency spikes and poor audio.

    I've also found that AHCI improves boot speed and overall responsiveness of the system is considerably improved. No scientific basis, just personal observation.

    Cause
    I had some time over my morning coffee to figure out why the MS kb fix doesn't work and how to fix it.

    The problem stems from the fact that Vista can't properly identify the GM45 AHCI SATA ports because this chipset is only a few month old and Vista doesn't know what to do with it on detection.

    Solution
    The solution is to help Vista identify the chipset, then let it load the default MS AHCI drivers so it can boot into Vista and then you can install the Intel AHCI drivers.

    How to

    Disclaimer: This involves making some minor changes to the system registry so the usual be careful disclaimers apply. Backup your system first and if you don't know what you're doing get a friend who does to help you. Proceed at your own risk.

    Ok, now with that out the way, let's get started:

    With the system still running in IRRT mode;

    1. Safety first: Create a system restore point that you can revert to in case.

    2. Download Dell's - Intel 8.2.2.1001 SATA driver application to your desktop. Don't run it yet, you'll need it later.

    3. Click on start and type regedit in the search box. Select the registry editor program on the menu.

    4. Follow the steps in MS kb922976
    -In the registry navigate to;
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Msahci

    -In the right pane, right-click Start in the Name column, and then click Modify.

    -In the Value data box, type 0, and then click OK.

    -On the File menu, click Exit to close Registry Edito

    5. Now we need to add Intel's GM45's AHCI enum info to the registry so Vista can identify it on startup (so it doesn't bluescreen)

    We do this by adding the following key

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_2929&CC_0106]
    "ClassGUID"="{4d36e96a-e325-11ce-bfc1-08002be10318}"
    "Service"="iaStor"
    "Security"=hex:01,00,04,90,00,00,00,00,00,00,00,00,00,00,00,00,14,00,00,00,02,\
    00,4c,00,03,00,00,00,00,00,14,00,ff,01,1f,00,01,01,00,00,00,00,00,05,12,00,\
    00,00,00,00,18,00,ff,01,1f,00,01,02,00,00,00,00,00,05,20,00,00,00,20,02,00,\
    00,00,00,18,00,9f,01,12,00,01,02,00,00,00,00,00,05,20,00,00,00,21,02,00,00

    But that's a lot of numbers to enter manually, so I've created a reg entry and attached it to this post to make it much easier. Just unzip it to your desktop (you can right click and select edit if your paranoid and want to see the contents). Otherwise just right click on the file and select Merge to add the keys into the registry.

    Or you can cut and past the above and create your own registry key.

    6. Now that the system knows to start the msahci driver on startup and with the reg entry in #4, it can properly identify and enum the GM45 AHCI chipset. In case you're wondering PCI#VEN_8086 is Intel.

    -Shutdown the system.
    -Boot into the bios by pressing F12.
    -Change the SATA mode from IRRT to AHCI in the bios, APPLY and exit.

    System will boot, but might take a short while longer while it dectects the new chipset for the first time and then boots to the Vista desktop.

    7. At this point, you'll see an icon in the system tray showing new device detected installing drivers. This is installing the MSACHI drivers. After it's done DO NOT RESTART yet, even if it asks you to.

    Find the Intel SATA driver application you downloaded in step 2 and run it.
    It'll detect the system in AHCI mode and install and setup the appropriate drivers. Once done go into device manager and you'll see the Intel (R)ICH9M-E/M SATA AHCI Controller now listed and running correctly.

    8. Restart your system

    If anything went wrong along the way, you should just be able to change the bios setting back to IRRT and run system restore which created in Step 1.

    After these steps, you'll be able to switch back and forth between IRRT and AHCI as you please, both can now be correctly identified by the system.

    Hope you'll find this info useful :)
     

    Attached Files:

  2. PerComp

    PerComp Notebook Consultant

    Reputations:
    24
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    30
    @MiB - I'm assuming that your instructions are appropriate for the M4400 as well (since the machines are mostly the same). Thank you for the howto - very informative, and just what I was looking for.
     
  3. ulub81

    ulub81 Notebook Enthusiast

    Reputations:
    91
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    15
    Worked for me!

    THANK YOU SO MUCH! I was looking for this since I bought my e6400 in October.

    Is there a way to switch to ATA without reinstalling?
     
  4. SpeedyMods

    SpeedyMods Notebook Deity

    Reputations:
    167
    Messages:
    1,336
    Likes Received:
    0
    Trophy Points:
    55
    Excellent Tutorial.

    Greg
     
  5. MiB

    MiB Notebook Consultant

    Reputations:
    188
    Messages:
    272
    Likes Received:
    14
    Trophy Points:
    31
    Yes it should work just fine for the M series as well.
    I say should because I haven't tested it myself but I'm quite certain it's the same Intel GM45 chipset as the E series Latitude.

    In fact it should also work for any notebook using the GM45 chipset like the Lenovos, but shhhhhh :)
     
  6. LPTP-LVR

    LPTP-LVR Notebook Deity

    Reputations:
    298
    Messages:
    1,794
    Likes Received:
    0
    Trophy Points:
    55
    Ehm...is this all necessary!?!

    When i switched from IRRT to AHCI i just did so in the BIOS and done.
     
  7. PerComp

    PerComp Notebook Consultant

    Reputations:
    24
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    30
    I'm guessing that your OS is Dell installed. I have an aftermarket hard drive with a clean Vista install. When I changed to AHCI in the BIOS, I immediately got a BSOD because Vista did not recognize the controller. In my case this howto is an absolute must.
     
  8. MiB

    MiB Notebook Consultant

    Reputations:
    188
    Messages:
    272
    Likes Received:
    14
    Trophy Points:
    31

    You're very welcome, glad it helped.

    Haven't looked into what's needed to go to basic ATA, but I don't think you'd want to downgrade to ATA mode anyways as you'd lose SMART, hot plug eSATA and enhanced power savings features that you'd get with AHCI.
     
  9. MiB

    MiB Notebook Consultant

    Reputations:
    188
    Messages:
    272
    Likes Received:
    14
    Trophy Points:
    31
    Yes, unfortunately Vista predates the GM45 chipset so it can't properly identify it if you switch from IRRT to AHCI on a reinstalled OS.

    The Dell factory image has this enum info slipstreamed in so you wouldn't need to make any modifications other than change the bios setting.

    I think it was clear in the tutorial why and when this applies, but maybe not :)
     
  10. ulub81

    ulub81 Notebook Enthusiast

    Reputations:
    91
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    15
    ATA is good for SSDs. They perform a lot better than in AHCI Mode.
     
  11. hgratt

    hgratt Notebook Consultant

    Reputations:
    0
    Messages:
    171
    Likes Received:
    0
    Trophy Points:
    30
    Is there any documentation on this performance hit? Also, doesn't ATA mode turn off the eSATA port? I also wanted to use an external eSATA HDD.

    Harvey
     
  12. ulub81

    ulub81 Notebook Enthusiast

    Reputations:
    91
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    15
    AHCI's Native Command Queuing is mostly not supported on SSDs.
    AHCI can cause stuttering with some SSDs using JMF602 Controller (i.e. OCZ Core-Series oder Transcend MLC or Supertalent Masterdrive Series).

    On other SSDs with better Controllers (like Mtron Mobi Series) you can see increased performance on about 10% Read/Write with AHCI.
     
  13. nystateofmind27

    nystateofmind27 Notebook Consultant

    Reputations:
    23
    Messages:
    189
    Likes Received:
    0
    Trophy Points:
    30
    Any idea how the Samsung 1.8 inch SSD's play with AHCI?
     
  14. ndawg25

    ndawg25 Notebook Enthusiast

    Reputations:
    0
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    5
    I was successful in switching to the AHCI mode...but my audio continues to stutter. Do you think there is a way to switch to ATA mode without the BSOD? Thanks!
     
  15. ulub81

    ulub81 Notebook Enthusiast

    Reputations:
    91
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    15
    I had a Samsung SLC 64GB (Read/Write 100/80). This was really good in AHCI but I never tested it on ATA only heard of others (OCZ Core etc.) having problems on AHCI.
     
  16. MiB

    MiB Notebook Consultant

    Reputations:
    188
    Messages:
    272
    Likes Received:
    14
    Trophy Points:
    31
    There were some NCQ performance issues with Vista's native AHCI drivers & some SSD drives last year, but not when using Intel's Matrix Drivers (IMSM), which work just fine.

    In addition to IMSM AHCI's faster overall performance due to NCQ and other improvements, Smart monitoring etc, you also benefit from significant LPM/DIPM power savings over legacy IDE which according to tests I've read give a 20% advantage to AHCI.

    So I don't see any benefit to using legacy IDE.

    Edit:
    Found documentation at Intel that also confirms Vista's AHCI driver bug with SSDs. In fact Intel recommends using AHCI with their SSD's.

    Scroll to the middle of the page to Do Intel SSDs need special driver support?


    Do Intel SSDs need special driver support?No, the standard drivers for any HDD will support Intel SSDs as drop-in components, such as those bundled with Windows*. However, for best performance, a driver that supports SATA Native Command Queuing (NCQ) is recommended, such as the Intel® Matrix Storage Manager (IMSM) driver from Intel.

    Note: The Windows Vista* driver has a bug which does not allow NCQ on Intel SSDs. For Vista*, only IMSM is recommended. An update will be provided when this issue has been resolved.


    Is the Intel SSD a drop-in replacement for SATA Hard Disk drives?
    Yes, providing rugged, reliable performance at lower power. Intel SSDs support the ATA-7 command sets and the SATA II command extensions. AHCI must be supported and enabled by both the system BIOS and OS (May require F6 installation of compatible windows storage driver like IMSM. Note: Vista AHCI support is native
    )
     
  17. PerComp

    PerComp Notebook Consultant

    Reputations:
    24
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    30
    @MiB - WORKED PERFECTLY!!! Thank you!
     
  18. MiB

    MiB Notebook Consultant

    Reputations:
    188
    Messages:
    272
    Likes Received:
    14
    Trophy Points:
    31
    Great ! So it works for the M series as well.
    Thanks for confirming.
     
  19. PerComp

    PerComp Notebook Consultant

    Reputations:
    24
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    30
    My DCP Latency spikes are now COMPLETELY GONE!!!! :D :D :D
     
  20. MiB

    MiB Notebook Consultant

    Reputations:
    188
    Messages:
    272
    Likes Received:
    14
    Trophy Points:
    31
    Exactly :)
     

Share This Page