From: Mark Lord <liml@rtr.ca>
To: Alan Cox <alan@redhat.com>
Cc: "Richardson, Charlotte" <Charlotte.Richardson@stratus.com>,
jgarzik@pobox.com, "Petrakis, Peter" <Peter.Petrakis@stratus.com>,
"Duval, Dan" <Dan.Duval@stratus.com>,
"Dailey, Nate" <Nate.Dailey@stratus.com>,
linux-ide@vger.kernel.org
Subject: Re: ata-piix.c (and libata.ko) in RHEL5.1 (build 78 currently) - this kernel is 2.6.18 baqsed
Date: Fri, 22 Feb 2008 11:40:43 -0500 [thread overview]
Message-ID: <47BEFB0B.9070808@rtr.ca> (raw)
In-Reply-To: <20080222151010.GC30920@devserv.devel.redhat.com>
Alan Cox wrote:
> On Fri, Feb 22, 2008 at 09:52:45AM -0500, Richardson, Charlotte wrote:
>> There is a hack in its probe routine that disables this. I've disabled the hack and ran a long test of
>> hotplugs yesterday (added and removed a DVD drive connected to the ESB2 IDE - this is Intel
>> device 0x269E) for 26 cycles, and it all appears to function properly. There are other things that do
>
> It ought to work fine for ICH4 or so and later (older ICH you can only warm
> plug). Be sure to test the released RHEL as I know the dev tree has completely
> broken all hot plug disk support and hangs a lot if you do. Jeff I assume
> knows the status of fixing that.
..
I've missed the front part of this thread, but from the above
message it sounds like somebody is trying to do hotplug on ICH4/5/6/..
Correct?
I have previously worked on ICH5 hotplug for a client.
The pieces that were needed there were:
1) Emulate SCR_STATUS reads by reading ICH5 PCS.
If it indicates drive presence, return 0x113 for SCR_STATUS,
otherwise return zero.
2) PCS seems to work fine for detecting *inserted* drives,
but does not find *removed* drives very well. To get it to
see unplug events, We had to first clear the port bit in the PCS,
wait a usec, then write 0x0003 back into PCS.
Then poll PCS for drive present, typically 5-6usec, sometimes longer.
If not present, we're done. Otherwise wait for drive !BUSY (~60msec).
Ugly as all can be, but it worked.
3) It is critical to ensure that the ATA "ctl" register is never
written to when no drive is attached. This means bracketing the SRST
sequence to first do a PCS detection before permitting the SRST.
If "ctl" is accessed with no drive attached, the machine locks up hard.
Or at least that's what we were able to figure out in the time available.
What are you guys doing?
-ml
next prev parent reply other threads:[~2008-02-22 16:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <6853F62BE9A693419863D51D4554A9E3012BE92B@EXNA.corp.stratus.com>
2008-02-22 15:10 ` ata-piix.c (and libata.ko) in RHEL5.1 (build 78 currently) - this kernel is 2.6.18 baqsed Alan Cox
2008-02-22 16:40 ` Mark Lord [this message]
2008-02-22 17:03 ` Alan Cox
2008-02-22 17:37 ` Mark Lord
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=47BEFB0B.9070808@rtr.ca \
--to=liml@rtr.ca \
--cc=Charlotte.Richardson@stratus.com \
--cc=Dan.Duval@stratus.com \
--cc=Nate.Dailey@stratus.com \
--cc=Peter.Petrakis@stratus.com \
--cc=alan@redhat.com \
--cc=jgarzik@pobox.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).