Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jan 2000 09:32:03 -0500
From:      Greg Childers <gchil0@pop.uky.edu>
To:        Soren Schmidt <sos@freebsd.dk>
Cc:        current@freebsd.org
Subject:   Re: 4.0 CODE FREEZE WILL BEGIN IN FIVE (5) DAYS
Message-ID:  <4.2.0.58.20000125092146.00961dc0@pop.uky.edu>
In-Reply-To: <200001250719.IAA61546@freebsd.dk>
References:  <4.2.0.58.20000124185659.0095acb0@pop.uky.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
At 08:19 AM 1/25/00 +0100, Soren Schmidt wrote:
> > On some older PCI systems, including my Pentium 66, the driver still=
 detects
> > irq 0 for ata-pci0.  Hardwiring it to irq 14 in the source as suggested=
 recently is the >temporary fix I'm using.=20
>
>Could you send that patch around me please ?
>
>-S=F8ren

The quick fix I'm using is at the end of this email.  The irq was correctly=
 detected before the following commit:

sos         1999/10/09 12:57:15 PDT

    Modified files:
      sys/dev/ata          ata-all.c ata-all.h ata-disk.c ata-disk.h=20
                           ata-dma.c atapi-all.c atapi-all.h=20
                           atapi-cd.c atapi-fd.c atapi-fd.h=20
                           atapi-tape.c atapi-tape.h=20
    Log:
    Add support for the HPT366 chip, this is used on the Abit boards and
    their HotRod controller and on SIIG PCI ultra DMA controller. These
    changes also made lots of the Promise code go away, its all much more
    generic this way.
   =20
    Get rid of atapi_immed_cmd, instead use the queue to move atapi commands
    from interrupt context if nessesary, the entire atapi layer has
    gotten an overhaul.
   =20
    Lots of fixes to utililize the new features in subr_disk.c etc, and
    get rid of the last biots of softc arrays in the drivers, the
    only one left is atadevices which cannot easily go away (yet).
   =20
    Use our own malloc names, its a lot easier to track memory usage this=
 way.
   =20
    General cleanup overall.

Hope this helps!
Greg

--- ata-all.c.orig      Sun Jan 16 17:08:59 2000
+++ ata-all.c   Sun Jan 16 17:09:30 2000
@@ -291,6 +291,11 @@
         iobase_1 =3D pci_read_config(dev, 0x10, 4) & IOMASK;
         altiobase_1 =3D pci_read_config(dev, 0x14, 4) & IOMASK;
         irq1 =3D pci_read_config(dev, PCI_INTERRUPT_REG, 4) & 0xff;
+       if (irq1 !=3D 14) {
+               printf("Detected irq:  %d  ", irq1);
+               printf("Changing to 14!!\n");
+               irq1 =3D 14;
+       }
      }
 =20
      if (pci_get_progif(dev) & PCIP_STORAGE_IDE_MASTERDEV) {




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.2.0.58.20000125092146.00961dc0>