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: Tue, 11 Nov 2008 11:56:16 +0900 [thread overview]
Message-ID: <4918F450.50404@kernel.org> (raw)
In-Reply-To: <20081110182628.GA6281@cleopatra.jogback.se>
[-- Attachment #1: Type: text/plain, Size: 897 bytes --]
Lars Michael Jogback wrote:
>> Can you please try the attached patch and see whether anything is
>> different?
>
> Yes, it made it working.
Heh... Okay, that's unexpected.
> You don't think it has something todo with the spin-up time?
>
> The spin-up time on these disks is quite long:
> smartctl -a /dev/sdn | grep Spin_Up_Time
> 3 Spin_Up_Time 0x0007 068 068 011 Pre-fail Always - 10240
Maybe but I don't know. Spin up is usually waited upon by device
readiness wait after SRST which libata does every time it probes or
resets a device behind PMP. The drive is bringing link down briefly
after SRST is complete. It doesn't make much sense. Maybe some
quirkiness in the firmware?
Can you please try the attached patch? If it doesn't work, please
increment the constant 200LU by 100 each time and find out where it
starts to work.
Thanks.
--
tejun
[-- Attachment #2: deb-debug.patch --]
[-- Type: text/x-patch, Size: 969 bytes --]
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 0cd3ad4..7f1a469 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -3799,10 +3799,17 @@ int sata_link_hardreset(struct ata_link *link, const unsigned long *timing,
int sata_std_hardreset(struct ata_link *link, unsigned int *class,
unsigned long deadline)
{
- const unsigned long *timing = sata_ehc_deb_timing(&link->eh_context);
+ const unsigned long *t = sata_ehc_deb_timing(&link->eh_context);
+ unsigned long timing[3] = { t[0], t[1], t[2] };
bool online;
int rc;
+ ata_link_printk(link, KERN_INFO, "XXX0 hardreset debounce %lu %lu %lu\n",
+ timing[0], timing[1], timing[2]);
+ timing[1] = max(timing[1], 200LU);
+ ata_link_printk(link, KERN_INFO, "XXX1 hardreset debounce %lu %lu %lu\n",
+ timing[0], timing[1], timing[2]);
+
/* do hardreset */
rc = sata_link_hardreset(link, timing, deadline, &online, NULL);
return online ? -EAGAIN : rc;
next prev parent reply other threads:[~2008-11-11 2:56 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
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 [this message]
[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=4918F450.50404@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).