All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Andi Kleen <ak@suse.de>
Cc: Jeff Garzik <jgarzik@pobox.com>, linux-ide@vger.kernel.org
Subject: Re: More information on ATI IXP failure in git9
Date: Mon, 26 Jun 2006 17:57:30 +0900	[thread overview]
Message-ID: <449FA17A.3010804@gmail.com> (raw)
In-Reply-To: <449F9D78.7070503@gmail.com>

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

Tejun Heo wrote:
> Hello, Andi.
> 
> Andi Kleen wrote:
>> Still doesn't work with it - see 
>> http://one.firstfloor.org/~andi/sata3.jpg
> 
> * SATA_IRQ bit is stuck (on all other sil controllers, this gets cleared 
> when SError is cleared)
> 
> * whenever interrupt occurs (from itself or from any other ones sharing 
> the IRQ), irq handler sees SATA_IRQ bit set and thus thinks it just 
> received phy status changed IRQ.
> 
> * phy status change aborts the active command, so no command gets 
> completed.
> 
> I'm attaching two patches.  The first one tries to clear SATA_IRQ by 
> writing 1 to it in thaw() assuming the bit is implemented as W1C (which 
> BTW is out of spec).  The second one kills SATA_IRQ handling completely. 
>  I wish the first one works but if not I'll update the second one such 
> that it applies only to ATI IXP.

And another one, just in case they were crazy enough to implement the 
bit as RW.

-- 
tejun

[-- Attachment #2: patch2 --]
[-- Type: text/plain, Size: 546 bytes --]

diff --git a/drivers/scsi/sata_sil.c b/drivers/scsi/sata_sil.c
index bc9f918..0f19645 100644
--- a/drivers/scsi/sata_sil.c
+++ b/drivers/scsi/sata_sil.c
@@ -474,6 +474,10 @@ static void sil_thaw(struct ata_port *ap
 	ata_chk_status(ap);
 	ata_bmdma_irq_clear(ap);
 
+	/* SATA_IRQ has to be cleared manually on some controllers */
+	writel(SIL_DMA_SATA_IRQ, mmio_base + sil_port[ap->port_no].bmdma2);
+	writel(0, mmio_base + sil_port[ap->port_no].bmdma2);
+
 	/* turn on SATA IRQ */
 	writel(SIL_SIEN_N, mmio_base + sil_port[ap->port_no].sien);
 

  reply	other threads:[~2006-06-26  8:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-25 21:59 More information on ATI IXP failure in git9 Andi Kleen
2006-06-25 22:19 ` Jeff Garzik
2006-06-26  5:24   ` Andi Kleen
2006-06-25 23:23 ` Jeff Garzik
2006-06-26  2:10   ` Tejun Heo
2006-06-26  6:18     ` Andi Kleen
2006-06-26  8:40       ` Tejun Heo
2006-06-26  8:57         ` Tejun Heo [this message]
2006-06-26  9:22           ` Andi Kleen
2006-06-26  9:13         ` Andi Kleen
2006-06-26 12:23           ` [PATCH] sata_sil: disable hotplug interrupts on two ATI IXPs Tejun Heo
2006-06-26 16:33             ` Andi Kleen
2006-06-27  1:02             ` Jeff Garzik

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=449FA17A.3010804@gmail.com \
    --to=htejun@gmail.com \
    --cc=ak@suse.de \
    --cc=jgarzik@pobox.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 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.