linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: David Madsen <david.madsen@gmail.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: ASUS P5W motherboard PMP
Date: Sat, 04 Aug 2007 17:48:03 +0900	[thread overview]
Message-ID: <46B43D43.7000107@gmail.com> (raw)
In-Reply-To: <ec7e30370708032338x250c4689j49aabfcac373837f@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

David Madsen wrote:
> Yes, I patched the 2.6.22.1 vanilla kernel with the libata patch from here.
> 
> http://home-tj.org/files/libata-tj-stable/libata-tj-2.6.22.1-20070803.tar.bz2

Hmmm... Can you please apply the attached patch on top of libata-tj and
report the kernel boot log?

-- 
tejun

[-- Attachment #2: debug.patch --]
[-- Type: text/x-patch, Size: 1626 bytes --]

---
 drivers/ata/ahci.c        |    5 ++++-
 drivers/ata/libata-core.c |    6 +++---
 2 files changed, 7 insertions(+), 4 deletions(-)

Index: work/drivers/ata/libata-core.c
===================================================================
--- work.orig/drivers/ata/libata-core.c
+++ work/drivers/ata/libata-core.c
@@ -691,17 +691,17 @@ unsigned int ata_dev_classify(const stru
 	 * identifies a port multiplier and 0x3c/0xc3 a SEMB device.
 	 */
 	if ((tf->lbam == 0) && (tf->lbah == 0)) {
-		DPRINTK("found ATA device by sig\n");
+		printk("found ATA device by sig\n");
 		return ATA_DEV_ATA;
 	}
 
 	if ((tf->lbam == 0x14) && (tf->lbah == 0xeb)) {
-		DPRINTK("found ATAPI device by sig\n");
+		printk("found ATAPI device by sig\n");
 		return ATA_DEV_ATAPI;
 	}
 
 	if ((tf->lbam == 0x69) && (tf->lbah == 0x96)) {
-		DPRINTK("found PMP device by sig\n");
+		printk("found PMP device by sig\n");
 		return ATA_DEV_PMP;
 	}
 
Index: work/drivers/ata/ahci.c
===================================================================
--- work.orig/drivers/ata/ahci.c
+++ work/drivers/ata/ahci.c
@@ -972,6 +972,9 @@ static unsigned int ahci_dev_classify(st
 	tf.lbal		= (tmp >> 8)	& 0xff;
 	tf.nsect	= (tmp)		& 0xff;
 
+	ata_port_printk(ap, KERN_INFO, "XXX sig %02x:%02x:%02x %02x\n",
+			tf.lbal, tf.lbam, tf.lbah, tf.nsect);
+
 	return ata_dev_classify(&tf);
 }
 
@@ -1072,7 +1075,7 @@ static int ahci_do_softreset(struct ata_
 	struct ata_taskfile tf;
 	int rc;
 
-	DPRINTK("ENTER\n");
+	ata_link_printk(link, KERN_INFO, "XXX softresetting pmp=%d\n", pmp);
 
 	if (ata_link_offline(link)) {
 		DPRINTK("PHY reports no device\n");

  reply	other threads:[~2007-08-04  8:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <ec7e30370708031753m668f68a2kd67ad8278eb78675@mail.gmail.com>
     [not found] ` <46B414C0.2060606@gmail.com>
2007-08-04  6:38   ` ASUS P5W motherboard PMP David Madsen
2007-08-04  8:48     ` Tejun Heo [this message]
2007-08-04 19:13       ` David Madsen
2007-08-06 10:02         ` 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=46B43D43.7000107@gmail.com \
    --to=htejun@gmail.com \
    --cc=david.madsen@gmail.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).