From: Tejun Heo <tj@kernel.org>
To: Lars Michael Jogback <lm@jogback.se>
Cc: linux-ide@vger.kernel.org
Subject: Re: Problem w/ hotplug on sata_sil24 w/ PMP (sil3726)
Date: Wed, 15 Oct 2008 16:03:55 +0900 [thread overview]
Message-ID: <48F595DB.4030301@kernel.org> (raw)
In-Reply-To: <20081014201917.GA5974@cleopatra.jogback.se>
[-- Attachment #1: Type: text/plain, Size: 1699 bytes --]
Lars Michael Jogback wrote:
> * Tejun Heo <tj@kernel.org> [2008-10-14 14:51:54]:
>
>> Hmmm.. drives usually make reset wait while they're spinning up so
>> that's where the spin wait logic is implemented. Strange. Can you
>> post full boot log and the result of "hdparm -I" on the drive? Also,
>> if you first spin up the drive by conneciting only the power connector
>> and then connect the SATA cable a bit later, does it work?
>
> OK, The drives are placed in hotswap-cages in an external enclosure with
> it's own powersupply. I have no possibility to connect the power to the
> actual drive before signal when I'm hotswapping. I don't think that'll
> make a difference though, since I have the same issue when I do a "cold
> boot".
>
> With "cold boot" I mean that I turn the power on the enclosure first and
> then boot the PC. With a "warm boot" I reboot the PC a second time
> without powercycling the disc enclosure or the discs.
Okay, that's enough. That means spinning up doesn't have anything to
do with the detection failure.
> When I boot the first drive on the PMP is detected by the Sil3124. If
> it's a "cold boot", the second drive is not detected in Linux with the
> same error as when I hotplug the drive.
>
> When I "warm boot" everything detects and is fine until I hotplug a
> disc.
>
> Attached is dmesg from cold and warm boot, and hdparm -I on one of the
> disks.
Can you please try the followings?
1. If you swap the drive on the second slot with another one, does the
detection problem stay with the port or follow the drive?
2. Does "libata.force=1.5Gbps" make any difference?
3. Apply the patch and post log after failed hotplug.
Thanks.
--
tejun
[-- Attachment #2: pmp-detection-debug --]
[-- Type: text/plain, Size: 531 bytes --]
---
drivers/ata/sata_sil24.c | 1 +
1 file changed, 1 insertion(+)
Index: tree0/drivers/ata/sata_sil24.c
===================================================================
--- tree0.orig/drivers/ata/sata_sil24.c
+++ tree0/drivers/ata/sata_sil24.c
@@ -978,6 +978,7 @@ static void sil24_error_intr(struct ata_
ehi = &link->eh_info;
ata_ehi_clear_desc(ehi);
+ ata_port_printk(ap, "XXX error_intr irq_stat=0x%x\n", irq_stat);
ata_ehi_push_desc(ehi, "irq_stat 0x%08x", irq_stat);
if (irq_stat & PORT_IRQ_SDB_NOTIFY) {
next prev parent reply other threads:[~2008-10-15 7:05 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-11 14:27 Problem w/ hotplug on sata_sil24 w/ PMP (sil3726) Lars Michael Jogback
2008-10-14 5:51 ` Tejun Heo
2008-10-14 20:19 ` Lars Michael Jogback
2008-10-15 7:03 ` Tejun Heo [this message]
2008-10-18 16:52 ` Lars Michael Jogback
2008-10-23 18:14 ` Lars Michael Jogback
2008-10-27 7:35 ` Tejun Heo
2008-10-27 7:38 ` Tejun Heo
2008-10-27 8:47 ` Lars Michael Jogback
2008-10-27 19:40 ` Lars Michael Jogback
2008-11-10 6:47 ` Tejun Heo
2008-11-10 18:26 ` Lars Michael Jogback
2008-11-11 2:56 ` Tejun Heo
[not found] <359604ECF8F440408B9634E6146249B42923805F@mail.scl.local>
[not found] ` <20110628095723.GC3386@htj.dyndns.org>
2011-06-30 17:53 ` Derry Bryson
2011-07-12 15:01 ` tj
2011-07-12 19:21 ` Derry Bryson
2011-07-13 13:34 ` tj
2011-07-13 14:39 ` tj
2011-07-13 16:23 ` Derry Bryson
2011-07-14 7:14 ` tj
2011-07-14 17:37 ` Derry Bryson
2011-07-21 9:00 ` tj
2011-07-21 16:22 ` Derry Bryson
2011-07-22 9:50 ` tj
2011-07-22 17:29 ` Derry Bryson
2011-07-22 19:34 ` Derry Bryson
2011-07-30 12:54 ` tj
2011-09-30 21:54 ` Mike I
2011-10-06 5:48 ` Gwendal Grignou
[not found] ` <CAMHSBOV8rSW3jumpx8URZrgo8w1He9zruP7yAOw7uhQOaAj3Xg@mail.gmail.com>
2011-10-06 6:07 ` Gwendal Grignou
2011-10-08 18:25 ` Michael Ihrcke
2011-10-12 2:06 ` Michael Ihrcke
2011-10-13 2:09 ` Mike I
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=48F595DB.4030301@kernel.org \
--to=tj@kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=lm@jogback.se \
/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).