Matthew Garrett ([info]mjg59) wrote,
@ 2008-04-06 16:10:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Entry tags:advogato

Now that I've got a little more time on my hands, I've updated and done some bugfixing on my patch to quirk ICH devices over from PIIX-compatibility mode to AHCI mode. It turns out that ICH8 is a little different to ICH7, and needs an extra bit to be set. Without that being done, the AHCI BAR would still be programmed as i/o ports. Interpreting this as mmio space let to unsurprising crashes. With a bit of luck, this should also fix the "My CD drive is no longer there" issue - you'll still need to load ata_piix in order to access it, but make sure you do it after ahci has bound to the sata controller.

Patch against 2.6.24 is here - let me know if it works for you.

(Context: AHCI provides support for various features that the PIIX compatible mode doesn't, including link-level power saving. This is potentially beneficial for mobile users)



(Post a new comment)

AHCI V ATA mode
(Anonymous)
2008-04-07 09:04 pm UTC (link)
Mr Garrett font of all knowledge. I have a santa rosa (ICH9?) laptop (Dell D630), which has a BIOS setting to switch between operating in AHCI and ATA mode which I'm assumeing are the two modes mentioned in your post. It defaults to ata mode as you need a special driver to run XP in AHCI mode, Ubuntu happily boots in both. I plan to reinstall XP soon will I notice the difference battery life, suspend to RAM/DISK in AHCI mode in Ubuntu?

On an unrelated note, did you beat Mr Srinivasan to being Viva'ed?

(Reply to this)

My dell d620 *LOVES* this patch.
(Anonymous)
2008-04-08 04:26 am UTC (link)
Um, this is astonishingly faster. I just wanted the power savings, but wow. Zoom. Emacs pops up far, far more quickly loading the Debian tons-of-crud. And so far no stability problems (very recent git, with libata-dev/ALL and scsi-misc/master in the mix). THANK YOU!

(Reply to this)(Thread)

Re: My dell d620 *LOVES* this patch.
(Anonymous)
2008-04-08 06:37 am UTC (link)
Oh, and it definitely saves at least one watt. Thank you!

(Reply to this)(Parent)(Thread)

Re: My dell d620 *LOVES* this patch.
(Anonymous)
2008-04-08 04:05 pm UTC (link)
*sniff*

It worked, until it didn't. Then SCSI errors scrolled past so quickly I couldn't read them. The log partition had already been remounted ro, so no saved messages.

Oh well. Damn buggy hardware. Thank you for working on this anyways!

(Reply to this)(Parent)


Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…