Linux ATA/IDE development
 help / color / mirror / Atom feed
From: Pat LaVarre <p.lavarre@ieee.org>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH] ata_check_bmdma
Date: 03 Jun 2004 07:41:14 -0600	[thread overview]
Message-ID: <1086270073.6502.27.camel@patibmrh9> (raw)
In-Reply-To: <40BE7A53.8020908@pobox.com>

Jeff G:

> applied to 2.4 and 2.6

Thank you.

> ...

What comes next?

Shall we add support for SATAPI Data Not, for example op x00 "TEST UNIT
READY", to the support we have already for SATAPI Data In and SATAPI
Data Out?

As you may recall, when I try Data Not here, I get "kernel: Disabling
IRQ" with the source as is.  After applying the ata_check_bmdma patch,
then a patch like the following three lines seem to help.  Without
understanding, I think I'm seeing:

1) We have to ack an ATA_DMA_INTR even when we have copied no data.

2) We VPRINTK the host_stat although we DPRINTK the drv_stat.

Pat LaVarre

P.S. Would you prefer a patch that acked ATA_DMA_INTR without clearing
ATA_DMA_ERR and ATA_DMA_START?

diff -urp o/include/linux/ata.h linux-2.6.7-rc2-pel/include/linux/ata.h
diff -urp o/include/linux/libata.h linux-2.6.7-rc2-pel/include/linux/libata.h
diff -urp o/drivers/scsi/libata-core.c linux-2.6.7-rc2-pel/drivers/scsi/libata-core.c
--- o/drivers/scsi/libata-core.c	2004-06-03 07:18:39.000000000 -0600
+++ linux-2.6.7-rc2-pel/drivers/scsi/libata-core.c	2004-06-03 07:20:22.694466800 -0600
@@ -2656,9 +2656,11 @@ inline unsigned int ata_host_intr (struc
 	 */
 	case ATA_PROT_ATAPI:
 	case ATA_PROT_NODATA:
+		host_stat = ata_check_bmdma(ap);
+		VPRINTK("BUS_NODATA (host_stat 0x%X)\n", host_stat);
 		status = ata_busy_wait(ap, ATA_BUSY | ATA_DRQ, 1000);
 		DPRINTK("BUS_NODATA (drv_stat 0x%X)\n", status);
-		ata_qc_complete(qc, status);
+		ata_dma_complete(qc, host_stat);
 		handled = 1;
 		break;
 
diff -urp o/drivers/scsi/libata-scsi.c linux-2.6.7-rc2-pel/drivers/scsi/libata-scsi.c



      reply	other threads:[~2004-06-03 13:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-03  1:06 [PATCH] ata_check_bmdma Pat LaVarre
2004-06-03  1:09 ` Jeff Garzik
2004-06-03 13:41   ` Pat LaVarre [this message]

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=1086270073.6502.27.camel@patibmrh9 \
    --to=p.lavarre@ieee.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox