Re: 2.4.0test1-ac6/7, AHA2940, ide_release_dma

From: Marcelo de Paula Bezerra (mosca@roadnet.com.br)
Date: Thu Jun 01 2000 - 11:21:17 EST


Actualy I just saw this when I was compiling 2.4.0test1-ac7 for my 386
that might become my router to the internet via my yet to be installed
cable connection.

The problem occurs when Generic PCI bus-master DMA support, wich wasn't
even selectable since PCI was off.

By the way, the kernel never succeds to boot, maybe becausa PCI being
enabled on a PCI less machine.

The following patch solves the compilation for me, I'll se if that can
succed booting on my 7.91 bogomips powerhorse! :)

--- ide.c-orig Thu Jun 1 13:11:07 2000
+++ ide.c Thu Jun 1 13:12:05 2000
@@ -2012,12 +2012,12 @@
        else
                hwgroup->hwif = HWIF(hwgroup->drive);
-#ifndef CONFIG_DMA_NONPCI
+#ifdef CONFIG_BLK_DEV_IDEDMA_PCI
        if (hwif->dma_base) {
                (void) ide_release_dma(hwif);
                hwif->dma_base = 0;
        }
-#endif /* CONFIG_DMA_NONPCI */
+#endif /* CONFIG_BLK_DEV_DMA_PCI */
        /*
         * Remove us from the kernel's knowledge

Wade Hampton wrote:
>
> Christopher Zimmerman wrote:
> >
> > Wade Hampton wrote:
> >
> > > Notes on some kernel tests of 2.4.0test1-ac6/7.
> > >
> > > On 2.4.0test1-ac6, I have the 2940 driver included, not
> > > as a module. At boot time, I get a SCSI timeout waiting
> > > for target error. This reminds me of some 2940 problems
> > > a long time ago (in the 2.1 series). 2.3.99-pre5 works
> > > fine (my last tested kernel). The configuration is nearly
> > > identical between 2.3.99-pre5 and 2.4.0test1-ac6.
> > >
> > > On 2.4.0test-ac6, the name given to the module directory
> > > is ac5, not ac6. This was fixed with ac7.
> > >
> > > When I try to build ac7, at link time I get an undefined
> > > symbol:
> > >
> > > drivers/ide/idedriver.o: in function: ide_unregister
> > > undefined ref. to ide_release_dma
> >>
> > If you start with a fresh .config file, the undefined ref goes away.
>
> I tried a couple of things. Finally, I removed the entire
> /usr/src/linux directory (2.2.4test), extracted 2.2.4test and
> then applied the patch ac7.
>
> First, make xconfig is broken.
>
> Second, after using make menuconfig on this clean build,
> I got the same ide_release_dma error.
>
> I guess I'll wait until ac8?
>
> Cheers,
> --
> W. Wade, Hampton <whampton@staffnet.com>
> On July 8, 1947, witnesses claim a spaceship with five aliens aboard
> crashed on a sheep and cattle ranch outside Roswell, New Mexico.
> On March 31, 1948, nine months later, Al Gore was born!
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/CC/E/IT/O d--- s: a-- C++++ UL++++ UB->++++ P L++++ E---- W+ K?
w---
PS+++ t+++ X+ D+ G e>++ h! y++>+++++$
------END GEEK CODE BLOCK------

Tekmetrics certified Master Linux Administrator http://www.tekmetrics.com/transcript.jsp?pid=97219

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:12 EST