Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: ATI Mach64

  1. #1
    Join Date
    Jun 2008
    Location
    Moscow, Russia
    Posts
    24

    Default ATI Mach64

    Hi all,

    I need help with mach64 direct rendering. I have compiled (Mandriva mach64 patches for 2.6.31 kernel were used) mach64.ko and it is modprobed successfully. /dev/dri/card0 exists. But Xorg seems not want interact with DRM interface:

    Code:
    # lsmod | grep mach64
    mach64                 43488  0

  2. #2
    Join Date
    Mar 2008
    Location
    Europe
    Posts
    26,258
    Blog Entries
    34

    Default Re: ATI Mach64

    Quote Originally Posted by matwey View Post
    Hi all,

    I need help with mach64 direct rendering. I have compiled (Mandriva mach64 patches for 2.6.31 kernel were used) mach64.ko and it is modprobed successfully. /dev/dri/card0 exists. But Xorg seems not want interact with DRM interface:

    Code:
    # lsmod | grep mach64
    mach64                 43488  0
    I can not help you with the approach you adopted. Frankly compiling from Mandriva mach64 patches reads to be a bad idea for me, unless you are a driver developer.

    But I wrote a practical theory guide here:
    openSUSE Graphic Card Practical Theory Guide for Users - openSUSE Forums
    ... and my research indicates there os a mach64 driver packaged as part of the xorg-x11-driver-video rpm.

    Your custom compile may have messed things up ... and it may not have. It may be necessary for you to re-install xorg-x11-driver-video to put back the original mach64 driver if you want it back.

  3. #3
    Join Date
    Jun 2008
    Location
    Moscow, Russia
    Posts
    24

    Default Re: ATI Mach64

    Quote Originally Posted by oldcpu View Post
    ... and my research indicates there os a mach64 driver packaged as part of the xorg-x11-driver-video rpm.
    X.org mach64 driver packaged but the kernel module of drm interface isn't a part of opensuse kernel.

    Feel the difference between
    /usr/lib/xorg/modules/drivers/*
    and
    /lib/modules/*/kernel/drivers/gpu/drm/*

  4. #4
    Join Date
    Mar 2008
    Location
    Europe
    Posts
    26,258
    Blog Entries
    34

    Default Re: ATI Mach64

    Quote Originally Posted by matwey View Post
    X.org mach64 driver packaged but the kernel module of drm interface isn't a part of opensuse kernel.

    Feel the difference between
    /usr/lib/xorg/modules/drivers/*
    and
    /lib/modules/*/kernel/drivers/gpu/drm/*
    I do not know what you are looking for, but I note my 64-bit openSUSE (where I use nvidia driver) also comes with:
    Code:
    /usr/src/linux-2.6.31.12-0.1/include/video/mach64.h
    /usr/src/linux-2.6.31.12-0.1/drivers/video/aty/mach64_accel.c
    /usr/src/linux-2.6.31.12-0.1/drivers/video/aty/mach64_ct.c
    /usr/src/linux-2.6.31.12-0.1/drivers/video/aty/mach64_cursor.c
    /usr/lib64/dri/mach64_dri.so
    /usr/lib/dri/mach64_dri.so
    /usr/include/drm/mach64_drm.h
    /usr/lib64/xorg/modules/drivers/mach64_drv.la
    /usr/lib64/xorg/modules/drivers/mach64_drv.so
    /usr/src/linux-2.6.31.12-0.1/driver/video/aty/mach64_gx.c
    I know very little as to what SHOULD be the content, but I do KNOW that the mach64 driver does work with X (as I helped a user set it up) with the basic rpms that come with openSUSE. One does not need to compile the way you have, unless one tried the openSUSE packaged mach64 and found it lacking.

  5. #5
    Join Date
    Jun 2008
    Location
    Moscow, Russia
    Posts
    24

    Default Re: ATI Mach64

    Quote Originally Posted by oldcpu View Post
    Code:
    /usr/src/linux-2.6.31.12-0.1/include/video/mach64.h
    /usr/src/linux-2.6.31.12-0.1/drivers/video/aty/mach64_accel.c
    /usr/src/linux-2.6.31.12-0.1/drivers/video/aty/mach64_ct.c
    /usr/src/linux-2.6.31.12-0.1/drivers/video/aty/mach64_cursor.c
    It is a framebuffer driver.

    You are definitely right that mach64 driver does work, but I can't enable direct rendering, glx, and any kind of acceleration.

  6. #6
    Join Date
    Mar 2008
    Location
    Europe
    Posts
    26,258
    Blog Entries
    34

    Default Re: ATI Mach64

    Quote Originally Posted by matwey View Post
    It is a framebuffer driver.

    You are definitely right that mach64 driver does work, but I can't enable direct rendering, glx, and any kind of acceleration.
    OK, ... this is all new to me (I don't have this hardware). I did get this "hit" when doing a google search: DRI Wiki - ATIMach64
    ... is that what you are trying to install ? ... and you say that is different from the mach64 driver that comes with the openSUSE rpm xorg-x11-driver-video ?

  7. #7
    Join Date
    Jun 2008
    Location
    Moscow, Russia
    Posts
    24

    Default Re: ATI Mach64

    There are two different modules. The first one is mach64.so. It is a X.org video driver module that comes with xorg-x11-driver-video and provides Mach64 videochips support. The second module is kernel mach64.ko module. It is a interface for direct rendering. GLX support can't be provided without such driver. This module isn't provided by default due some reasons and I just got sources and built the module.

    At the moment my problem is that X.org module mach64.so doesn't want interact with mach64.so and this way provide me direct rendering support.

  8. #8
    Join Date
    Mar 2008
    Location
    Europe
    Posts
    26,258
    Blog Entries
    34

    Default Re: ATI Mach64

    Quote Originally Posted by matwey View Post
    There are two different modules. The first one is mach64.so. It is a X.org video driver module that comes with xorg-x11-driver-video and provides Mach64 videochips support. The second module is kernel mach64.ko module. It is a interface for direct rendering. GLX support can't be provided without such driver. This module isn't provided by default due some reasons and I just got sources and built the module.

    At the moment my problem is that X.org module mach64.so doesn't want interact with mach64.so and this way provide me direct rendering support.
    Hmmm ... I'm a bit surprised this has not been implemented on openSUSE, or if not implemented that it is not in the many 3rd party repositories.

    I took a look at the content of the latest update (only a week or two ago) xorg-x11-driver-video-7.4.87.91.1.src.rpm file, and its mach64 is from xf86-video-mach64-6.8.2.tar.bz2 ... ie from version 6.8.2.

    I also took a look at the repository
    Code:
    http://download.opensuse.org/repositories/X11:/XOrg:/11.2/openSUSE_11.2/
    and looked inside the src file and it also has the 6.8.2 version.

    ... then I went here:
    Code:
    http://cgit.freedesktop.org/xorg/driver/xf86-video-mach64/
    and again version 6.8.2 is the most recent

    ... I confess to being surprised that this kernel module you speak of is not already packaged by someone.

    Do you have a developer's web site referring to the version of this you are trying to build?

  9. #9
    Join Date
    Mar 2008
    Location
    Europe
    Posts
    26,258
    Blog Entries
    34

    Default Re: ATI Mach64

    Quote Originally Posted by oldcpu View Post
    ... I confess to being surprised that this kernel module you speak of is not already packaged by someone.

    Do you have a developer's web site referring to the version of this you are trying to build?
    I confess to still be very puzzled by the approach you are trying to follow. It simply does not make sense to me, but I do not know enough to give you a replacement approach that would work for certain.

    I was reading here: DRI Wiki - Building and it states the DRI 3D drivers are now built from the Mesa source.

    I note that Mesa and the xorg-x11-driver-video on openSUSE was a bit buggy (saying this tactfully). Why do you not try updating Mesa and xorg-x11-driver-video to the latest cutting edge X11 : xorg version. I have guidance on that in post#11 on this thread: openSUSE Graphic Card Practical Theory Guide for Users - openSUSE Forums ... even IF it is not everything that is needed, at least it will possibly fix one part of the update equation.

  10. #10
    Join Date
    Jun 2008
    Location
    Moscow, Russia
    Posts
    24

    Default Re: ATI Mach64

    I used incorrect videomode. I reduced resolution and everything works well now... except the IRQ deadlocks of kernel module on videomode changing

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •