linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: Bryan Fink <bfink@eventmonitor.com>, linux-ide@vger.kernel.org
Subject: Re: Gigabyte i-Ram cards
Date: Thu, 23 Mar 2006 19:50:13 +0900	[thread overview]
Message-ID: <44227D65.9000204@gmail.com> (raw)
In-Reply-To: <4421DDE2.60502@garzik.org>

Jeff Garzik wrote:
> Bryan Fink wrote:
>> Jeff Garzik wrote:
>>
>>> I'm impressed.  I ordered one to help debug BZ#6163, but I think 
>>> these cards will help expose bugs in libata due to their high speed.  
>>> With these cards, we can push more data through libata than would 
>>> normally be possible with a standard disk drive.
>>
>>
>>
>> Hi.  I tried to respond on this topic about a week ago, but I haven't 
>> seen my response show up on any of the mirrors, so I think it must 
>> have not made it through.
>>
>> Anyway, I just wanted to add that I am also fiddling with the Gigabyte 
>> i-Ram.  I haven't tried modifying and recompiling the kernel yet, but 
>> I did have some success another way:
>>
>> My desktop is a Dell Dimension 5150.  In the BIOS, I can set the "SATA 
>> Operation" to either "SATA" or "RAID".  If I set it to RAID, linux 
>> will see the i-RAM just fine (under Ubuntu 5.10 Live CD).  It loads 
>> ahci, and just takes off.  If I have the setting on SATA, then linux 
>> does not load ahci, and does not talk to the i-RAM.
>>
>> Of note is also the fact that Windows has no issue with talking to the 
>> i-RAM when my system is in SATA-mode.
>>
>> So, I guess the question is, are Windows and my BIOS ignoring this 
>> "invalid" feature query reply, or are the prodding the card in some 
>> way other than how linux does, which makes the card respond properly?
> 
> Your description seems to imply this is a BIOS+driver issue, not 
> anything related to the gigabyte card.
> 
> Intel ICH boards can be driven using either the ata_piix or the ahci 
> driver, depending on BIOS mode.  Most likely, when you switched to SATA 
> mode in BIOS, it started programming the motherboard to boot in 
> IDE-compatible mode (ata_piix) rather than SATA FIS mode (ahci).
> 

Hello, Bryan, Jeff.

iRam is not detected if the controller is configured as legacy mode 
because then ata_piix got attached and it checks diagnostic code which 
iRam fails to report properly. On the other hand, if you configure it as 
AHCI (or RAID), the ahci driver gets attached which accidentally doesn't 
check the diagnostic code, so the iRam is detected normally and can be 
used. sata_sil24 also doesn't check the diagnostic code, so iRam would 
work with sil24 too.

Well, apparently, BIOS and Windows driver don't check the diagnostic 
code and that's probably why gigabyte missed it. I'm voting for joining 
the crowd and ignoring it (with a warning). We have plenty of other 
mechanisms to verify attached devices and giving users an opportunity to 
try seemingly failing device isn't a bad idea.

-- 
tejun


  reply	other threads:[~2006-03-23 22:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-21  2:24 Gigabyte i-Ram cards Jeff Garzik
2006-03-21  3:09 ` Eric D. Mudama
2006-03-21 22:53 ` Jure Pečar
2006-04-07 21:10   ` Jure Pečar
2006-03-22  7:24 ` Mogens Valentin
2006-03-22  7:33 ` Jens Axboe
2006-03-22 13:22 ` Bryan Fink
2006-03-22 23:29   ` Jeff Garzik
2006-03-23 10:50     ` Tejun Heo [this message]
2006-03-23 19:16     ` Mogens Valentin

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=44227D65.9000204@gmail.com \
    --to=htejun@gmail.com \
    --cc=bfink@eventmonitor.com \
    --cc=jeff@garzik.org \
    --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).