linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: infernix <infernix@infernix.net>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Robert Hancock <hancockrwd@gmail.com>, linux-ide@vger.kernel.org
Subject: Re: PATA port not detected when using AHCI on Intel 82801GB/GR/GH
Date: Sat, 23 Jan 2010 14:08:47 +0100	[thread overview]
Message-ID: <4B5AF4DF.4020100@infernix.net> (raw)
In-Reply-To: <20100123101457.7f8cbb3f@lxorguk.ukuu.org.uk>

On 23/01/10 11:14, Alan Cox wrote:
>> Can we force ata_piix to pick up the IDE controller? I mean the old IDE
>> PIIX driver can do it (albeit terribly slow), so why can't ata_piix? I
>
> I doubt PIIX is doing it - the legacy IDE bits are.

You're right:

[    1.606687] Uniform Multi-Platform E-IDE driver
[    1.611276] ide_generic: please use "probe_mask=0x3f" module 
parameter for probing all legacy ISA IDE ports
[    1.908275] hda: TRANSCEND, CFA DISK drive
[    2.584069] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[    3.156052] ide1 at 0x170-0x177,0x376 on irq 15

> What I think is going on is this (and I don't have docs so I am guessing)
>
> 	- The SOHO NAS has the IDE DOM wired to the LPC bus somewhere
> 	  directly (as legacy IDE)
> 	- The PATA port is intentionally disabled by the firmware to make
> 	  room for the DOM.
>
> In which case loading "pata_legacy" ought to make the right magic occur.

PATA_LEGACY Depends on: ATA [=y] && ATA_SFF [=y] && ISA [=n] && 
EXPERIMENTAL [=y]                                            │

So I have to turn on ISA for it to build. But that's not possible on 
x86_64 because it depends on X86_32. I'll try a 32bit build later, but 
I'd really like to be able to stay on x86_64. Is there a workaround?

> If that is the case I suspect the PIIX PATA port is not used at all
> by the sytstem (is it even wired to pins anywhere ?). If it is used then
> presumably the original NAS firmware does something truely hideous along
> the lines of
>
> -	Load boot image from DOM
> -	Turn off DOM/on PIIX
> -	Start using PIIX

Maybe I didn't make this clear enough, but the IDE DOM is not integrated 
in the NAS. I bought it afterwards and inserted it in the PATA port. I 
can just swap it for a 2.5" or 3.5" PATA harddisk if I want to.

Also, in both compatible and enhanced mode, the BIOS has no problem 
booting off the PATA port (with the IDE DOM that i bought). So I guess 
the bios may play some tricks here but when I boot off the PATA port in 
compatible mode, ata_piix is used to access the PATA port, and all is 
well with the world (except that I lose 2 SATA ports in compatible mode).

That would make me think it's actually wired to the ICH. Maybe also to 
the LPC bus but I'm not knowledgeable enough to know if thats even possible.

  reply	other threads:[~2010-01-23 13:08 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-22  3:37 PATA port not detected when using AHCI on Intel 82801GB/GR/GH infernix
2010-01-22  5:01 ` Robert Hancock
2010-01-22 12:57   ` infernix
2010-01-23  1:23     ` Robert Hancock
2010-01-23  2:29       ` infernix
2010-01-23  7:18         ` Robert Hancock
2010-01-23 13:14           ` infernix
2010-01-23 10:14         ` Alan Cox
2010-01-23 13:08           ` infernix [this message]
2010-01-23 13:38             ` Alan Cox
2010-01-23 14:13               ` infernix
2010-01-23 14:30                 ` infernix
2010-02-12 23:30               ` infernix
2010-02-13  0:04                 ` Alan Cox
2010-02-13  0:21                   ` infernix
2010-01-22  5:31 ` Jeff Garzik
  -- strict thread matches above, loose matches on Subject: below --
2010-02-05  2:17 Joe Ceklosky
2010-02-06  1:43 ` Robert Hancock

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=4B5AF4DF.4020100@infernix.net \
    --to=infernix@infernix.net \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=hancockrwd@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).