linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Török Edwin" <edwintorok@gmail.com>
To: linux-ide@vger.kernel.org
Subject: Re: Enabling AHCI on ICH7 without BIOS support
Date: Sun, 19 Aug 2007 06:56:57 +0000 (UTC)	[thread overview]
Message-ID: <loom.20070819T084305-257@post.gmane.org> (raw)
In-Reply-To: 46C7D666.8020700@gmail.com

Tejun Heo <htejun <at> gmail.com> writes:

> ISHIKAWA Mutsumi wrote:
> >  Do you know Edvin's patch?
> > 
> > http://www.bughost.org/pipermail/power/2007-June/000538.html
> > 
> >  I've tested it and works fine on my note
> > (Sony VAIO type S VGN-SZ92PS, ICH7-M)

Thanks for testing.

> 
> Yeah, I've seen it but I'm not sure whether it would worth the risk.
> For one, there are BIOSen which won't assign IO memory region to ABAR at
> all.  There also is a patch to reallocate IO memory regions and make
> room for ABAR but that can break things.
> 

It works fine on 2.6.22 (except that you loose the CD-ROM, and I found no way to
reliably reactivate it), however since 2.6.23-rc it breaks.
I get misrouted IRQs: IRQ 12 (keyboard) is being fired instead of IRQ 18 (ahci),
the kernel disables IRQ 18 because of spurious IRQs, and then IRQ 0 gets fired
instead of IRQ 18. It is an edge-triggered interrupt, and I get the feeling  the
interrupt status isn't cleared after handling it, since I continously get
messages about misrouted IRQs even if the system idle.
It works with irqpoll, but I don't have to tell you how slow that is.

When I'll be back from holiday I will try to compare lspci -xxx outputs, and
then maybe try a git-bisect.

Bottom line is that force-enabling AHCI like this can stop working at any time
with a new kernel version.
If there is a document describing _exactly_ what steps I need to follow to
properly enable the device, I'd be happy to read it, but I guess such
documentation is only available to BIOS developers.

--Edwin


  reply	other threads:[~2007-08-19  7:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-14 13:09 Enabling AHCI on ICH7 without BIOS support Jonathan Bastien-Filiatrault
2007-08-16 12:23 ` Tejun Heo
2007-08-16 12:58   ` Jonathan Bastien-Filiatrault
2007-08-16 13:19     ` Tejun Heo
2007-08-19  1:44     ` ISHIKAWA Mutsumi
2007-08-19  5:34       ` Tejun Heo
2007-08-19  6:56         ` Török Edwin [this message]
2007-08-19  8:07           ` Tejun Heo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20070819T084305-257@post.gmane.org \
    --to=edwintorok@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).