From: Tejun Heo <htejun@gmail.com>
To: Paul Collins <paul@burly.ondioline.org>
Cc: Jeff Garzik <jeff@garzik.org>, linux-kernel@vger.kernel.org
Subject: Re: ata2: SATA link down (SStatus 611 SControl 300)
Date: Tue, 15 Apr 2008 10:53:57 +0900 [thread overview]
Message-ID: <48040AB5.6050300@gmail.com> (raw)
In-Reply-To: <87od8cxg45.fsf@burly.wgtn.ondioline.org>
[-- Attachment #1: Type: text/plain, Size: 1098 bytes --]
Paul Collins wrote:
> I just noticed that my optical drive no longer works with 2.6.25-rc9.
> It works with 2.6.24.3. git bisect claims the culprit is
> c729072459446885c5c200137de1db32da5db4dc ("ata_piix: implement SIDPR SCR
> access").
>
> $ diff -u cd.{ok,no} | grep '^.ata'
> ata_piix 0000:00:1f.2: version 2.12
> -ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
> +ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
> ata1: SATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0x20e0 irq 14
> ata2: SATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0x20e8 irq 15
> +ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
> ata1.00: ATA-7: SAMSUNG HD080HJ/P, ZH100-51, max UDMA/100
> ata1.00: 156301488 sectors, multi 16: LBA48
> ata1.00: configured for UDMA/100
> -ata2.00: ATAPI: HL-DT-ST RW/DVD GCC-H10N, 1.03, max UDMA/100
> -ata2.00: configured for UDMA/100
> +ata2: SATA link down (SStatus 611 SControl 300)
That's very strange. The link is in slumber powersave mode. I wonder
how it got there. Can you please try the attached patch and report
resulting boot log?
--
tejun
[-- Attachment #2: ata_piix-debug.patch --]
[-- Type: text/x-patch, Size: 1254 bytes --]
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c
index fae8404..4bca85d 100644
--- a/drivers/ata/ata_piix.c
+++ b/drivers/ata/ata_piix.c
@@ -1161,9 +1161,12 @@ static int piix_sidpr_scr_write(struct ata_port *ap, unsigned int reg, u32 val)
return -EINVAL;
piix_sidpr_write(&ap->link.device[0], reg, val);
+ ata_port_printk(ap, KERN_INFO, "XXX SCR WRITE master %d:%x\n", reg, val);
- if (ap->flags & ATA_FLAG_SLAVE_POSS)
+ if (ap->flags & ATA_FLAG_SLAVE_POSS) {
piix_sidpr_write(&ap->link.device[1], reg, val);
+ ata_port_printk(ap, KERN_INFO, "XXX SCR WRITE slave %d:%x\n", reg, val);
+ }
return 0;
}
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index be95fdb..4760d9d 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -7172,7 +7172,7 @@ int ata_host_register(struct ata_host *host, struct scsi_host_template *sht)
ehi->probe_mask =
(1 << ata_link_max_devices(&ap->link)) - 1;
ehi->action |= ATA_EH_SOFTRESET;
- ehi->flags |= ATA_EHI_NO_AUTOPSY | ATA_EHI_QUIET;
+ ehi->flags |= ATA_EHI_NO_AUTOPSY/* | ATA_EHI_QUIET*/;
ap->pflags &= ~ATA_PFLAG_INITIALIZING;
ap->pflags |= ATA_PFLAG_LOADING;
diff --git a/drivers/ata/sata_svw.c b/drivers/ata/sata_svw.c
next prev parent reply other threads:[~2008-04-15 1:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-14 21:48 ata2: SATA link down (SStatus 611 SControl 300) Paul Collins
2008-04-15 1:53 ` Tejun Heo [this message]
2008-04-15 2:30 ` Paul Collins
2008-04-15 2:57 ` Tejun Heo
2008-04-15 3:24 ` Paul Collins
2008-04-15 4:01 ` Tejun Heo
2008-04-15 21:12 ` Paul Collins
2008-04-15 22:26 ` Tejun Heo
2008-04-15 22:43 ` Paul Collins
2008-04-16 0:15 ` Tejun Heo
2008-04-16 0:33 ` Tejun Heo
2008-04-16 1:06 ` Paul Collins
2008-04-16 1:27 ` [PATCH #upstream-fixes] libata: force hardreset if the link is in powersave mode 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=48040AB5.6050300@gmail.com \
--to=htejun@gmail.com \
--cc=jeff@garzik.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paul@burly.ondioline.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.