#439 i180 wake_up(&virt_to_page(page)->wait);

Build/Compile Fails
open
5
2002-05-24
2002-05-23
Anonymous
No

It would appear that somewhere along the line the wait
structure used in wake_up is no longer a part of the
page structure.

When I commented out this code

wake_up(&virt_to_page(page)->wait); line 290 of i180_dma.c

the code compiles and everything seems to work fine.

I've tried it with the lastest build for the i810
hardware.

Just thought I'd mention it.

Discussion

  • Jose Fonseca

    Jose Fonseca - 2002-05-24

    Logged In: YES
    user_id=80087

    From which XFree86 tree have you taken the kernel modules
    source?

    The current trunk from DRI CVS already has updated sources
    for the recent kernels.

    Please compile from CVS or download a snapshot from
    http://dri.sourceforge.net/snapshots/

     
  • Nobody/Anonymous

    Logged In: NO

    I am pulling this code off the
    http://dri.sourceforge.net/download.phtml page.

    I'm selecting the i810 bzip tar ball.

    I was using snapshot 20020521

     
  • Nobody/Anonymous

    Logged In: NO

    Okay I've compiled the latest snapshot for my card
    (i810-20020523-linux.i386.tar.bz2)

    I'm using XFree86 4.2.0 compiled from source. Here is the
    dri.log contents

    cc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align
    -Wstrict-prototypes -Wnested-externs -Wpointer-arith
    -D__KERNEL__ -DMODULE -fomit-frame-pointer -DCONFIG_AGP
    -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -DEXPORT_SYMTAB
    -I/lib/modules/2.4.19-pre8/build/include -c i810_drv.c -o
    i810_drv.o
    In file included from i810_drv.c:35:
    drmP.h:168: warning: static declaration for
    `vmalloc_to_page' follows non-static
    cc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align
    -Wstrict-prototypes -Wnested-externs -Wpointer-arith
    -D__KERNEL__ -DMODULE -fomit-frame-pointer -DCONFIG_AGP
    -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS
    -I/lib/modules/2.4.19-pre8/build/include -c i810_dma.c -o
    i810_dma.o
    In file included from i810_dma.c:35:
    drmP.h:168: warning: static declaration for
    `vmalloc_to_page' follows non-static
    i810_dma.c: In function `i810_free_page':
    i810_dma.c:289: structure has no member named `wait'
    i810_dma.c: In function `i810_wait_ring':
    i810_dma.c:355: warning: implicit declaration of function
    `udelay'
    i810_dma.c:340: warning: unused variable `i'
    make: *** [i810_dma.o] Error 1

    I'm using Kernel 2.4.19-pre8 but I was having the same
    problem with 2.4.18.

    I didn't have any compile problems until I'd say first week
    of April....if that narrows the snapshot down a little.
    I've been using source from March because I didn't have any
    time to spend on it until yesterday.

    Anyway, when I commented out that line (i810_dma.c line 290)
    I was able to compile and have been using the module
    successfully for 2 days.

    I've tested it by playing lots of Unreal and Quake 3 after
    work ;-)

    marco@halo.wox.org

     
  • Jose Fonseca

    Jose Fonseca - 2002-05-24
    • assigned_to: nobody --> keithw
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks