linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: msundius@u1.netgate.com
To: linux-ide@vger.kernel.org
Cc: msundius@sundius.com
Subject: AHCI: using bios after linux
Date: Fri, 12 Oct 2007 15:40:58 +0000 (GMT)	[thread overview]
Message-ID: <20071012154058.BEDDF47008A@web2mail.com> (raw)

--------------------------------------------------
Here is a message for you from http://web2mail.com
The easy way to read and send POP email on the web
--------------------------------------------------

My employer is using Linux as a boot-loader of sorts which eventually boots
another OS. We have some proprietary code which runs in real mode between the
time Linux runs and the next operating system is chain-booted (we use kexec
return to real mode after Linux). This proprietary code makes use of the BIOS
disk calls via int13. In short we need to the BIOS Int13 after Linux.

Our system seems to work well on most machines, however it does not work on any
machine that make use of AHCI. As soon as we make the first Int13 call after the 
Linux AHCI driver has been initialized, the machine goes off into the weeds. 

I been looking though your archives and reading the AHCI spec. It seems clear
that the hardware has at least some state contained within it; I'm wondering if
there is any hope of putting the chip back to a known state that the BIOS will
be able to handle. 

1)In reading the AHCI spec, I notice in chapter 10.6 they talk about a bit that
when set by the OS driver, control of the AHCI hardware is irrevocably passed to
the OS, your driver does not seem to touch that bit so I'm hoping that it is
reasonable to pass back control to the BIOS by either resetting the chip or
simply placing it into a quiescent state.
2)I also have noticed that you do not do anything special when the AHCI module
is removed. That is, you simply use the ata_pci_remove_one() function instead of
one particular to the AHCI chip. 

Could anyone lend some guidance as to what has to be done to put the hardware
back into a sane state for BIOS, or if there is a good reason that this is not
achievable. 

Any prior work or manuals that I should “rtfm” or other wisdom would be greatly
appreciated.

Thank you.

Mike

             reply	other threads:[~2007-10-12 16:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-12 15:40 msundius [this message]
2007-10-12 16:27 ` AHCI: using bios after linux Alan Cox
  -- strict thread matches above, loose matches on Subject: below --
2007-10-12 18:27 msundius
2007-10-12 20:57 ` Alan Cox
2007-10-12 21:02   ` Jeff Garzik
2007-10-12 21:55   ` Xiang Xu
2007-10-23  8:26     ` 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=20071012154058.BEDDF47008A@web2mail.com \
    --to=msundius@u1.netgate.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=msundius@sundius.com \
    /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).