From: Tejun Heo <tj@kernel.org>
To: Thomas Jackowski <aXe@hadiko.de>
Cc: linux-ide@vger.kernel.org
Subject: Re: Errors on ICH10R with Seagate HDDs
Date: Mon, 29 Jun 2009 23:09:20 +0900 [thread overview]
Message-ID: <4A48CB10.5020409@kernel.org> (raw)
In-Reply-To: <4A4878B3.9020206@hadiko.de>
[-- Attachment #1: Type: text/plain, Size: 201 bytes --]
Thomas Jackowski wrote:
> there is no relevant output in this loop (running about 6 hours).
Hmm... can you please try the attached patch? It should show us who's
issuing the CPM.
Thanks.
--
tejun
[-- Attachment #2: whos-doing-cpm.patch --]
[-- Type: text/x-patch, Size: 1010 bytes --]
diff --git a/block/elevator.c b/block/elevator.c
index 7073a90..93e6575 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -618,6 +618,16 @@ void elv_insert(struct request_queue *q, struct request *rq, int where)
unsigned ordseq;
int unplug_it = 1;
+ if (rq->cmd[0] == 0xa1 || rq->cmd[0] == 0x85) {
+ u8 cmd = rq->cmd[0] == 0xa1 ? rq->cmd[9] : rq->cmd[14];
+
+ if (cmd == 0xe5) {
+ printk("XXX %s: elv_insert(ATA_CHK_POWER)\n",
+ rq->rq_disk ? rq->rq_disk->disk_name : "?");
+ dump_stack();
+ }
+ }
+
trace_block_rq_insert(q, rq);
rq->q = q;
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index 94919ad..a56c53d 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -2722,6 +2722,7 @@ static void ata_eh_park_issue_cmd(struct ata_device *dev, int park)
tf.lbah = 0x55;
} else {
ehc->unloaded_mask &= ~(1 << dev->devno);
+ ata_dev_printk(dev, KERN_INFO, "XXX issuing CHK_POWER for unparking\n");
tf.command = ATA_CMD_CHK_POWER;
}
next prev parent reply other threads:[~2009-06-29 14:09 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-02 11:32 Errors on ICH10R with Seagate HDDs Thomas Jackowski
2009-04-09 18:09 ` Tejun Heo
2009-04-17 9:10 ` Thomas Jackowski
2009-04-19 8:56 ` Tejun Heo
2009-04-25 10:22 ` Thomas Jackowski
2009-04-26 2:00 ` Tejun Heo
2009-06-16 1:59 ` Thomas Jackowski
2009-06-17 6:33 ` Tejun Heo
2009-06-22 18:40 ` Thomas Jackowski
2009-06-26 2:33 ` Tejun Heo
2009-06-29 8:17 ` Thomas Jackowski
2009-06-29 14:09 ` Tejun Heo [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-10-28 15:26 Thomas Jackowski
2009-11-09 15:02 ` Tejun Heo
2009-11-09 19:39 ` Thomas Jackowski
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=4A48CB10.5020409@kernel.org \
--to=tj@kernel.org \
--cc=aXe@hadiko.de \
--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).