public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Patch(2.4.5): Fix PCMCIA ATA/IDE freeze (w/ PCI add-in cards)
@ 2001-06-28  1:05 Andries.Brouwer
  2001-06-28  3:39 ` Andre Hedrick
  2001-06-30 10:05 ` Jens Axboe
  0 siblings, 2 replies; 14+ messages in thread
From: Andries.Brouwer @ 2001-06-28  1:05 UTC (permalink / raw)
  To: alan, andre; +Cc: Gunther.Mayer, dhinds, linux-kernel

    From: Andre Hedrick <andre@aslab.com>

    You know yourself first and all the screwed up ATAPI products that are
    still using SFF-8020 that has been obsoleted before I start maintaining
    the subsystem three plus years ago. 

Hi Andre -

Why precisely is complying to SFF-8020 broken?
That was the standard. The standard that Microsoft required.
Other people made a different standard, and claimed that theirs
was better or more official or whatever, but reality is that
the products were not manufactured following this so-called
better standard.
You are a good disciple of Hale, but it is no use ignoring the
fact that a very large number of devices was made following SFF-8020.
These devices are not necessarily screwed, they tend to work fine,
although both ATA and ATAPI devices have their quirks.

SFF-8020, later INF-8020, became part of ATA/ATAPI-4 (1998).
The T13 people that merged SFF-8020 and produced ATA/ATAPI-4
changed a few details about how a master is supposed to react
when a nonexistent slave is selected. Nobody really noticed,
and ATA/ATAPI-5 still had the same requirements. But then long
discussions about this difference caused ATA/ATAPI-6 to go back
to the original SFF-8020 requirements. Do you disagree with this
description of history? If you agree then it is not SFF-8020
but ATA/ATAPI-4 and ATA/ATAPI-5 that today must be considered broken
in this respect. I am referring to Section 9.16.1 of these standards.

Maybe there are other things in SFF-8020 that you consider broken?

Andries



^ permalink raw reply	[flat|nested] 14+ messages in thread
* Patch(2.4.5): Fix PCMCIA ATA/IDE freeze (w/ PCI add-in cards)
@ 2001-06-26 20:20 Gunther Mayer
  2001-06-27  7:29 ` Andre Hedrick
  0 siblings, 1 reply; 14+ messages in thread
From: Gunther Mayer @ 2001-06-26 20:20 UTC (permalink / raw)
  To: linux-kernel, dhinds; +Cc: andre

Hi,

this patch fixes the hard hang (no SYSRQ) on inserting
any PCMCIA ATA/IDE card (e.g. CompactFlash, Clik40 etc)
to a PCI-Cardbus bridge add-in card.

Thanks David for his valuable explanation about what happens:
ide-probe registers it's irq handler too late! After it
triggers the interrupt during the probe the (shared) irq
loops forever, effectively wedging the machine completely.

Regards, Gunther



--- linux245.orig/drivers/ide/ide-cs.c  Fri Feb  9 20:40:02 2001
+++ linux/drivers/ide/ide-cs.c  Tue Jun 26 21:22:19 2001
@@ -324,6 +324,9 @@
     if (link->io.NumPorts2)
        release_region(link->io.BasePort2, link->io.NumPorts2);
 
+    outb(0x02, ctl_base); // Set nIEN = disable device interrupts
+                         // else it hangs on PCI-Cardbus add-in cards, wedging irq
+
     /* retry registration in case device is still spinning up */
     for (i = 0; i < 10; i++) {
        hd = ide_register(io_base, ctl_base, link->irq.AssignedIRQ);
--- linux245.orig/drivers/ide/ide-probe.c       Sun Mar 18 18:25:02 2001
+++ linux/drivers/ide/ide-probe.c       Tue Jun 26 21:25:07 2001
@@ -685,6 +685,8 @@
 #else /* !CONFIG_IDEPCI_SHARE_IRQ */
                int sa = (hwif->chipset == ide_pci) ? SA_INTERRUPT|SA_SHIRQ : SA_INTERRUPT;
 #endif /* CONFIG_IDEPCI_SHARE_IRQ */
+
+               outb(0x00, hwif->io_ports[IDE_CONTROL_OFFSET]); // clear nIEN == enable irqs
                if (ide_request_irq(hwif->irq, &ide_intr, sa, hwif->name, hwgroup)) {
                        if (!match)
                                kfree(hwgroup);

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2001-06-30 10:12 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-28  1:05 Patch(2.4.5): Fix PCMCIA ATA/IDE freeze (w/ PCI add-in cards) Andries.Brouwer
2001-06-28  3:39 ` Andre Hedrick
2001-06-30 10:05 ` Jens Axboe
  -- strict thread matches above, loose matches on Subject: below --
2001-06-26 20:20 Gunther Mayer
2001-06-27  7:29 ` Andre Hedrick
2001-06-27 11:25   ` Alan Cox
2001-06-27 16:54     ` Andre Hedrick
2001-06-27 17:21       ` Alan Cox
2001-06-27 20:01         ` Andre Hedrick
2001-06-27 20:51           ` Gunther Mayer
2001-06-27 21:55             ` Andre Hedrick
2001-06-27 16:03   ` David Hinds
2001-06-27 16:56     ` Andre Hedrick
2001-06-27 16:23   ` Gunther Mayer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox