linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Markus M?ller <mm@priv.de>
Cc: linux-ide@vger.kernel.org, jgarzik@pobox.com
Subject: Re: sata_sil: write corruption on parallel access of two or more drives on same controller
Date: Thu, 20 Apr 2006 11:25:27 +0900	[thread overview]
Message-ID: <20060420022527.GA3697@htj.dyndns.org> (raw)
In-Reply-To: <4446BE3C.7050902@priv.de>

On Thu, Apr 20, 2006 at 12:48:28AM +0200, Markus M?ller wrote:
> Hi sil_sata.c-Developers,
> 
> I've a problem accessing discs on my SIL 3114 controller: If I write
> to it and if during this any other access (= read or write) to a disc
> on same controller occures, there are write errors.
> 
> The kernel doesn't realise this at all, there is no message about
> that in dmesg or syslog.
> 
[--snip--]
> This problem doesn't occure with this sil controllers and sata
> hdds on a Neo2 Board with AMD64 from MSI so...
> 
> -> Maybe the SIL-Driver isn't useable with the NForce2 Chipset?!

This sounds like something is going wrong on the host bus.

> Please inculde me in answers as CC, cause I am currently
> not on the kernel mailing list.

I used to do the same but you don't have to ask for cc'ing.  It's the
way things are done here.  People are not supposed to trim cc-list
unless there are specific reasons.

Can you try the following patch?  Be careful, I've only compile-tested
it.

diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index 509178c..b785e2b 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -4280,6 +4280,13 @@ inline unsigned int ata_host_intr (struc
 		/* before we do anything else, clear DMA-Start bit */
 		ap->ops->bmdma_stop(qc);
 
+		/* check host bus error */
+		if (host_stat & ATA_DMA_ERR) {
+			printk(KERN_ERR "ata%u: BMDMA host bus error\n",
+			       ap->id);
+			qc->err_mask |= AC_ERR_HOST_BUS;
+		}
+
 		/* fall through */
 
 	case ATA_PROT_ATAPI_NODATA:


  reply	other threads:[~2006-04-20  2:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-19 22:48 sata_sil: write corruption on parallel access of two or more drives on same controller Markus Müller
2006-04-20  2:25 ` Tejun Heo [this message]
2006-04-20  7:07   ` Markus Müller

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=20060420022527.GA3697@htj.dyndns.org \
    --to=htejun@gmail.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=mm@priv.de \
    /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).