LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Radeon kms works! (https://www.linuxquestions.org/questions/slackware-14/radeon-kms-works-760963/)

dolphin77 12-21-2009 04:11 AM

Code:

#!/bin/sh

PKGNAM=util-macros
VERSION=$(date +%Y%m%d)_git
ARCH=${ARCH:-x86_64}
BUILD=${BUILD:-1}

NUMJOBS=${NUMJOBS:--j8}
CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-util-macros

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

rm -rf $PKG
mkdir -p $TMP $PKG
cd macros
git pull
#git checkout

# Make sure ownerships and permissions are sane:
chown -R root:root .
find . \
  \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
  -exec chmod 755 {} \; -o \
  \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
  -exec chmod 644 {} \;
make clean

./autogen.sh

CFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --build=$ARCH-slackware-linux

make $NUMJOBS
make install DESTDIR=$PKG

mkdir -p $PKG/install

cd $PKG
/sbin/makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz
mv $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz  $CWD


BroX 12-21-2009 10:46 AM

Radeon Mobility 7500 - AGP 1x mode
 
I enabled kms on my Thinkpad T41 with a Radeon Mobility 7500, which should be supported, right?

For some reason agp gets put in 1x mode (instead of 4x), fps in glxgears drop to about half of normal and there are problems with transparancy. No errors or warnings in Xorg.0.log.

intel_agp is built as module and gets loaded before radeon.

Code:

Linux agpgart interface v0.103
agpgart-intel 0000:00:00.0: Intel 855PM Chipset
agpgart-intel 0000:00:00.0: AGP aperture is 256M @ 0xd0000000
agpgart-intel 0000:00:00.0: AGP 2.0 bridge
agpgart-intel 0000:00:00.0: putting AGP V2 device into 1x mode
radeon 0000:01:00.0: putting AGP V2 device into 1x mode

Is this a know problem with this card? Google didn't help much. Except for specifying AGPMode in xorg.conf, but that would defeat the whole point of enabling kms. Is there some boot parameter to force 4x mode?

adamk75 12-21-2009 10:59 AM

Well, bear in mind that 3D with KMS is still slower than 3D without KMS. It's possible that it's being put into agp mode 1x because of known stability issues. However, you can force it to another speed with the radeon.agpmode kernel option. For 4x, it would be 'radeon.agpmode=4'. Not sure how/why that would impact transparency, so I don't expect it to solve that problem. Maybe you could describe what you mean by that or, even better, grab a screenshot.

Adam

BroX 12-21-2009 01:29 PM

1 Attachment(s)
Quote:

Originally Posted by adamk75 (Post 3800086)
Well, bear in mind that 3D with KMS is still slower than 3D without KMS. It's possible that it's being put into agp mode 1x because of known stability issues. However, you can force it to another speed with the radeon.agpmode kernel option. For 4x, it would be 'radeon.agpmode=4'. Not sure how/why that would impact transparency, so I don't expect it to solve that problem. Maybe you could describe what you mean by that or, even better, grab a screenshot.

Adam

Thanks. Indeed, setting agp to 4x does not increase the fps.

I attached a screenshot to illustrate the problem with transparency on the desktop. The task manager at the bottom is transparent but does not show anything when I enable composite using OpenGL (KDE4 desktop effects). If I use Xrender it looks ok but everything gets very sluggish. Besides this, darkening of the parent window (seen in the screenshot when there is a pup-up in firefox) colours the parent window pink... :doh:

One more thing, thefollowing pops up when running glxgears:
Code:

*********************************WARN_ONCE*********************************
File radeon_tcl.c function radeon_run_tcl_render line 499
Rendering was 96 commands larger than predicted size. We might overflow  command buffer.
***************************************************************************

I don't care too much about the eye candy, but I do like to find out why things are wrong.

Cheers, Leon.

BroX 12-21-2009 02:39 PM

Quote:

Originally Posted by dolphin77 (Post 3799154)
there is a bug in 2.6.32.2. I've seen a patch for it somewhere, but I am to busy for now. Try Googling if you want, or better stick to 2.6.32 or 2.6.32.1 for a while.

Would that be this patch?

http://patchwork.kernel.org/patch/69076/

adamk75 12-21-2009 02:52 PM

If I had to guess, I'd say you've hit a bug in Mesa, unfortunately. Are you using a specific release of Mesa, or did you update from git?

Adam

BroX 12-21-2009 03:05 PM

Quote:

Originally Posted by adamk75 (Post 3800347)
If I had to guess, I'd say you've hit a bug in Mesa, unfortunately. Are you using a specific release of Mesa, or did you update from git?

Adam

Updated from git 20091221. Is it a known bug?

mkoco 12-21-2009 04:37 PM

After building the packages and installing them, startx boots up to a garbled and unworking desktop, with the errors:

Code:

(EE) AIGLX error: dlopen of /usr/lib/xorg/modules/dri/r300_dri.so failed (/usr/lib/xorg/modules/dri/r300_dri.so: cannot open shared object file: No such file or directory)
(EE) AIGLX: reverting to software rendering
(II) AIGLX: Screen 0 is not DRI capable
(EE) AIGLX error: dlopen of /usr/lib/xorg/modules/dri/swrast_dri.so failed (/usr/lib/xorg/modules/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
(EE) GLX: could not load software renderer
(II) GLX: no usable GL providers found for screen 0

But after installing these packages, these modules are in /usr/local/lib/dri. They are part of the mesa package which I got from git. In fact, almost everything from that package went into /usr/local.

Should I just move it all into the normal location? Fix the package? I tried symlinks, but that didn't work either.

adamk75 12-21-2009 04:46 PM

It's not a bug I know of. When building from git, you should pass the option --with-dri-driverdir=/usr/lib/xorg/modules/dri/ (or /usr/lib64/xorg/modules/dri/ on Slackware 64) to configure (or autogen.sh) to have the drivers installed in the proper location.

Adam

mkoco 12-21-2009 07:14 PM

Well, X starts up okay now, no errors. Buts is a garbled and useless desktop. So I'm assuming this doesn't work with older drivers? I have an ATI Mobility Radeon x1400. Its a r520 chipset, which wants to use the r300 module.

In any case, anyone else with a similar chipset have success?

adamk75 12-21-2009 07:19 PM

I have used KMS on a radeon x1900, x1300, and x1650, all of which use the r300 DRI driver. Can you show us the /var/log/Xorg.0.log file that is generated?

Adam

mkoco 12-21-2009 07:53 PM

Sure, here it is:

Code:


X.Org X Server 1.6.3
Release Date: 2009-7-31
X Protocol Version 11, Revision 0
Build Operating System: Slackware 13.0 Slackware Linux Project
Current Operating System: Linux waterStone 2.6.32.2 #5 SMP Mon Dec 21 01:19:21 EST 2009 i686
Build Date: 03 August 2009  06:51:50PM
 
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Dec 21 20:50:04 2009
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Simple Layout"
(**) |-->Screen "Wide Screen" (0)
(**) |  |-->Monitor "<default monitor>"
(**) |  |-->Device "card0"
(==) No monitor specified for screen "Wide Screen".
        Using a default monitor configuration.
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/local" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/CID" does not exist.
        Entry deleted from font path.
(==) FontPath set to:
        /usr/share/fonts/TTF,
        /usr/share/fonts/OTF,
        /usr/share/fonts/Type1,
        /usr/share/fonts/misc,
        /usr/share/fonts/75dpi/:unscaled,
        /usr/share/fonts/100dpi/:unscaled,
        /usr/share/fonts/75dpi,
        /usr/share/fonts/100dpi,
        /usr/share/fonts/cyrillic,
        built-ins
(==) ModulePath set to "/usr/lib/xorg/modules"
(II) Cannot locate a core pointer device.
(II) The server relies on HAL to provide the list of input devices.
        If no devices become available, reconfigure HAL or disable AllowEmptyInput.
(WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
(WW) Disabling Mouse0
(WW) Disabling Keyboard0
(II) Loader magic: 0x1de0
(II) Module ABI versions:
        X.Org ANSI C Emulation: 0.4
        X.Org Video Driver: 5.0
        X.Org XInput driver : 4.0
        X.Org Server Extension : 2.0
(II) Loader running on linux
(--) using VT number 7

(--) PCI:*(0:1:0:0) 1002:7145:1028:2002 rev 0, Mem @ 0xd0000000/268435456, 0xefdf0000/65536, I/O @ 0x0000ee00/256, BIOS @ 0x????????/131072
(II) Open ACPI successful (/var/run/acpid.socket)
(II) System resource ranges:
        [0] -1        0        0xffffffff - 0xffffffff (0x1) MX[B]
        [1] -1        0        0x000f0000 - 0x000fffff (0x10000) MX[B]
        [2] -1        0        0x000c0000 - 0x000effff (0x30000) MX[B]
        [3] -1        0        0x00000000 - 0x0009ffff (0xa0000) MX[B]
        [4] -1        0        0x0000ffff - 0x0000ffff (0x1) IX[B]
        [5] -1        0        0x00000000 - 0x00000000 (0x1) IX[B]
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions//libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
        compiled for 1.6.3, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions//libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
        compiled for 1.6.3, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions//libglx.so
(II) Module glx: vendor="X.Org Foundation"
        compiled for 1.6.3, module version = 1.0.0
        ABI class: X.Org Server Extension, version 2.0
(==) AIGLX enabled
(II) Loading extension GLX
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions//libdri.so
(II) Module dri: vendor="X.Org Foundation"
        compiled for 1.6.3, module version = 1.0.0
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension XFree86-DRI
(II) LoadModule: "dri2"
(II) Loading /usr/lib/xorg/modules/extensions//libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
        compiled for 1.6.3, module version = 1.1.0
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(II) LoadModule: "radeon"
(II) Loading /usr/lib/xorg/modules/drivers//radeon_drv.so
(II) Module radeon: vendor="X.Org Foundation"
        compiled for 1.6.3, module version = 6.12.99
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 5.0
(II) RADEON: Driver for ATI Radeon chipsets:
        ATI Radeon Mobility X600 (M24) 3150 (PCIE), ATI FireMV 2400 (PCI),
        ATI Radeon Mobility X300 (M24) 3152 (PCIE),
        ATI FireGL M24 GL 3154 (PCIE), ATI Radeon X600 (RV380) 3E50 (PCIE),
        ATI FireGL V3200 (RV380) 3E54 (PCIE), ATI Radeon IGP320 (A3) 4136,
        ATI Radeon IGP330/340/350 (A4) 4137, ATI Radeon 9500 AD (AGP),
        ATI Radeon 9500 AE (AGP), ATI Radeon 9600TX AF (AGP),
        ATI FireGL Z1 AG (AGP), ATI Radeon 9800SE AH (AGP),
        ATI Radeon 9800 AI (AGP), ATI Radeon 9800 AJ (AGP),
        ATI FireGL X2 AK (AGP), ATI Radeon 9600 AP (AGP),
        ATI Radeon 9600SE AQ (AGP), ATI Radeon 9600XT AR (AGP),
        ATI Radeon 9600 AS (AGP), ATI FireGL T2 AT (AGP), ATI Radeon 9650,
        ATI FireGL RV360 AV (AGP), ATI Radeon 7000 IGP (A4+) 4237,
        ATI Radeon 8500 AIW BB (AGP), ATI Radeon 8500 AIW BC (AGP),
        ATI Radeon IGP320M (U1) 4336, ATI Radeon IGP330M/340M/350M (U2) 4337,
        ATI Radeon Mobility 7000 IGP 4437, ATI Radeon 9000/PRO If (AGP/PCI),
        ATI Radeon 9000 Ig (AGP/PCI), ATI Radeon X800 (R420) JH (AGP),
        ATI Radeon X800PRO (R420) JI (AGP),
        ATI Radeon X800SE (R420) JJ (AGP), ATI Radeon X800 (R420) JK (AGP),
        ATI Radeon X800 (R420) JL (AGP), ATI FireGL X3 (R420) JM (AGP),
        ATI Radeon Mobility 9800 (M18) JN (AGP),
        ATI Radeon X800 SE (R420) (AGP), ATI Radeon X800XT (R420) JP (AGP),
        ATI Radeon X800 VE (R420) JT (AGP), ATI Radeon X850 (R480) (AGP),
        ATI Radeon X850 XT (R480) (AGP), ATI Radeon X850 SE (R480) (AGP),
        ATI Radeon X850 PRO (R480) (AGP), ATI Radeon X850 XT PE (R480) (AGP),
        ATI Radeon Mobility M7 LW (AGP),
        ATI Mobility FireGL 7800 M7 LX (AGP),
        ATI Radeon Mobility M6 LY (AGP), ATI Radeon Mobility M6 LZ (AGP),
        ATI FireGL Mobility 9000 (M9) Ld (AGP),
        ATI Radeon Mobility 9000 (M9) Lf (AGP),
        ATI Radeon Mobility 9000 (M9) Lg (AGP), ATI Radeon 9700 Pro ND (AGP),
        ATI Radeon 9700/9500Pro NE (AGP), ATI Radeon 9600TX NF (AGP),
        ATI FireGL X1 NG (AGP), ATI Radeon 9800PRO NH (AGP),
        ATI Radeon 9800 NI (AGP), ATI FireGL X2 NK (AGP),
        ATI Radeon 9800XT NJ (AGP),
        ATI Radeon Mobility 9600/9700 (M10/M11) NP (AGP),
        ATI Radeon Mobility 9600 (M10) NQ (AGP),
        ATI Radeon Mobility 9600 (M11) NR (AGP),
        ATI Radeon Mobility 9600 (M10) NS (AGP),
        ATI FireGL Mobility T2 (M10) NT (AGP),
        ATI FireGL Mobility T2e (M11) NV (AGP), ATI Radeon QD (AGP),
        ATI Radeon QE (AGP), ATI Radeon QF (AGP), ATI Radeon QG (AGP),
        ATI FireGL 8700/8800 QH (AGP), ATI Radeon 8500 QL (AGP),
        ATI Radeon 9100 QM (AGP), ATI Radeon 7500 QW (AGP/PCI),
        ATI Radeon 7500 QX (AGP/PCI), ATI Radeon VE/7000 QY (AGP/PCI),
        ATI Radeon VE/7000 QZ (AGP/PCI), ATI ES1000 515E (PCI),
        ATI Radeon Mobility X300 (M22) 5460 (PCIE),
        ATI Radeon Mobility X600 SE (M24C) 5462 (PCIE),
        ATI FireGL M22 GL 5464 (PCIE), ATI Radeon X800 (R423) UH (PCIE),
        ATI Radeon X800PRO (R423) UI (PCIE),
        ATI Radeon X800LE (R423) UJ (PCIE),
        ATI Radeon X800SE (R423) UK (PCIE),
        ATI Radeon X800 XTP (R430) (PCIE), ATI Radeon X800 XL (R430) (PCIE),
        ATI Radeon X800 SE (R430) (PCIE), ATI Radeon X800 (R430) (PCIE),
        ATI FireGL V7100 (R423) (PCIE), ATI FireGL V5100 (R423) UQ (PCIE),
        ATI FireGL unknown (R423) UR (PCIE),
        ATI FireGL unknown (R423) UT (PCIE),
        ATI Mobility FireGL V5000 (M26) (PCIE),
        ATI Mobility FireGL V5000 (M26) (PCIE),
        ATI Mobility Radeon X700 XL (M26) (PCIE),
        ATI Mobility Radeon X700 (M26) (PCIE),
        ATI Mobility Radeon X700 (M26) (PCIE),
        ATI Radeon X550XTX 5657 (PCIE), ATI Radeon 9100 IGP (A5) 5834,
        ATI Radeon Mobility 9100 IGP (U3) 5835,
        ATI Radeon XPRESS 200 5954 (PCIE),
        ATI Radeon XPRESS 200M 5955 (PCIE), ATI Radeon 9250 5960 (AGP),
        ATI Radeon 9200 5961 (AGP), ATI Radeon 9200 5962 (AGP),
        ATI Radeon 9200SE 5964 (AGP), ATI FireMV 2200 (PCI),
        ATI ES1000 5969 (PCI), ATI Radeon XPRESS 200 5974 (PCIE),
        ATI Radeon XPRESS 200M 5975 (PCIE),
        ATI Radeon XPRESS 200 5A41 (PCIE),
        ATI Radeon XPRESS 200M 5A42 (PCIE),
        ATI Radeon XPRESS 200 5A61 (PCIE),
        ATI Radeon XPRESS 200M 5A62 (PCIE),
        ATI Radeon X300 (RV370) 5B60 (PCIE),
        ATI Radeon X600 (RV370) 5B62 (PCIE),
        ATI Radeon X550 (RV370) 5B63 (PCIE),
        ATI FireGL V3100 (RV370) 5B64 (PCIE),
        ATI FireMV 2200 PCIE (RV370) 5B65 (PCIE),
        ATI Radeon Mobility 9200 (M9+) 5C61 (AGP),
        ATI Radeon Mobility 9200 (M9+) 5C63 (AGP),
        ATI Mobility Radeon X800 XT (M28) (PCIE),
        ATI Mobility FireGL V5100 (M28) (PCIE),
        ATI Mobility Radeon X800 (M28) (PCIE), ATI Radeon X850 5D4C (PCIE),
        ATI Radeon X850 XT PE (R480) (PCIE),
        ATI Radeon X850 SE (R480) (PCIE), ATI Radeon X850 PRO (R480) (PCIE),
        ATI unknown Radeon / FireGL (R480) 5D50 (PCIE),
        ATI Radeon X850 XT (R480) (PCIE),
        ATI Radeon X800XT (R423) 5D57 (PCIE),
        ATI FireGL V5000 (RV410) (PCIE), ATI Radeon X700 XT (RV410) (PCIE),
        ATI Radeon X700 PRO (RV410) (PCIE),
        ATI Radeon X700 SE (RV410) (PCIE), ATI Radeon X700 (RV410) (PCIE),
        ATI Radeon X700 SE (RV410) (PCIE), ATI Radeon X1800,
        ATI Mobility Radeon X1800 XT, ATI Mobility Radeon X1800,
        ATI Mobility FireGL V7200, ATI FireGL V7200, ATI FireGL V5300,
        ATI Mobility FireGL V7100, ATI Radeon X1800, ATI Radeon X1800,
        ATI Radeon X1800, ATI Radeon X1800, ATI Radeon X1800,
        ATI FireGL V7300, ATI FireGL V7350, ATI Radeon X1600, ATI RV505,
        ATI Radeon X1300/X1550, ATI Radeon X1550, ATI M54-GL,
        ATI Mobility Radeon X1400, ATI Radeon X1300/X1550,
        ATI Radeon X1550 64-bit, ATI Mobility Radeon X1300,
        ATI Mobility Radeon X1300, ATI Mobility Radeon X1300,
        ATI Mobility Radeon X1300, ATI Radeon X1300, ATI Radeon X1300,
        ATI RV505, ATI RV505, ATI FireGL V3300, ATI FireGL V3350,
        ATI Radeon X1300, ATI Radeon X1550 64-bit, ATI Radeon X1300/X1550,
        ATI Radeon X1600, ATI Radeon X1300/X1550, ATI Mobility Radeon X1450,
        ATI Radeon X1300/X1550, ATI Mobility Radeon X2300,
        ATI Mobility Radeon X2300, ATI Mobility Radeon X1350,
        ATI Mobility Radeon X1350, ATI Mobility Radeon X1450,
        ATI Radeon X1300, ATI Radeon X1550, ATI Mobility Radeon X1350,
        ATI FireMV 2250, ATI Radeon X1550 64-bit, ATI Radeon X1600,
        ATI Radeon X1650, ATI Radeon X1600, ATI Radeon X1600,
        ATI Mobility FireGL V5200, ATI Mobility Radeon X1600,
        ATI Radeon X1650, ATI Radeon X1650, ATI Radeon X1600,
        ATI Radeon X1300 XT/X1600 Pro, ATI FireGL V3400,
        ATI Mobility FireGL V5250, ATI Mobility Radeon X1700,
        ATI Mobility Radeon X1700 XT, ATI FireGL V5200,
        ATI Mobility Radeon X1700, ATI Radeon X2300HD,
        ATI Mobility Radeon HD 2300, ATI Mobility Radeon HD 2300,
        ATI Radeon X1950, ATI Radeon X1900, ATI Radeon X1950,
        ATI Radeon X1900, ATI Radeon X1900, ATI Radeon X1900,
        ATI Radeon X1900, ATI Radeon X1900, ATI Radeon X1900,
        ATI Radeon X1900, ATI Radeon X1900, ATI Radeon X1900,
        ATI AMD Stream Processor, ATI Radeon X1900, ATI Radeon X1950,
        ATI RV560, ATI RV560, ATI Mobility Radeon X1900, ATI RV560,
        ATI Radeon X1950 GT, ATI RV570, ATI RV570, ATI FireGL V7400,
        ATI RV560, ATI Radeon X1650, ATI Radeon X1650, ATI RV560,
        ATI Radeon 9100 PRO IGP 7834, ATI Radeon Mobility 9200 IGP 7835,
        ATI Radeon X1200, ATI Radeon X1200, ATI Radeon X1200,
        ATI Radeon X1200, ATI Radeon X1200, ATI RS740, ATI RS740M, ATI RS740,
        ATI RS740M, ATI Radeon HD 2900 XT, ATI Radeon HD 2900 XT,
        ATI Radeon HD 2900 XT, ATI Radeon HD 2900 Pro, ATI Radeon HD 2900 GT,
        ATI FireGL V8650, ATI FireGL V8600, ATI FireGL V7600,
        ATI Radeon 4800 Series, ATI Radeon HD 4870 x2,
        ATI Radeon 4800 Series, ATI Radeon HD 4850 x2,
        ATI FirePro V8750 (FireGL), ATI FirePro V7760 (FireGL),
        ATI Mobility RADEON HD 4850, ATI Mobility RADEON HD 4850 X2,
        ATI Radeon 4800 Series, ATI FirePro RV770, AMD FireStream 9270,
        AMD FireStream 9250, ATI FirePro V8700 (FireGL),
        ATI Mobility RADEON HD 4870, ATI Mobility RADEON M98,
        ATI Radeon 4800 Series, ATI Radeon 4800 Series, ATI FirePro M7750,
        ATI M98, ATI M98, ATI M98, ATI Mobility Radeon HD 4650,
        ATI Radeon RV730 (AGP), ATI Mobility Radeon HD 4670,
        ATI FirePro M5750, ATI Radeon RV730 (AGP),
        ATI RV730XT [Radeon HD 4670], ATI RADEON E4600,
        ATI Radeon HD 4600 Series, ATI RV730 PRO [Radeon HD 4650],
        ATI FirePro V7750 (FireGL), ATI FirePro V5700 (FireGL),
        ATI FirePro V3750 (FireGL), ATI Mobility Radeon HD 4830,
        ATI Mobility Radeon HD 4850, ATI FirePro M7740, ATI RV740,
        ATI Radeon HD 4770, ATI Radeon HD 4700 Series, ATI Radeon HD 4770,
        ATI FirePro M5750, ATI RV610, ATI Radeon HD 2400 XT,
        ATI Radeon HD 2400 Pro, ATI Radeon HD 2400 PRO AGP, ATI FireGL V4000,
        ATI RV610, ATI Radeon HD 2350, ATI Mobility Radeon HD 2400 XT,
        ATI Mobility Radeon HD 2400, ATI RADEON E2400, ATI RV610,
        ATI FireMV 2260, ATI RV670, ATI Radeon HD3870,
        ATI Mobility Radeon HD 3850, ATI Radeon HD3850,
        ATI Mobility Radeon HD 3850 X2, ATI RV670,
        ATI Mobility Radeon HD 3870, ATI Mobility Radeon HD 3870 X2,
        ATI Radeon HD3870 X2, ATI FireGL V7700, ATI Radeon HD3850,
        ATI Radeon HD3690, AMD Firestream 9170, ATI Radeon HD 4550,
        ATI Radeon RV710, ATI Radeon RV710, ATI Radeon HD 4350,
        ATI Mobility Radeon 4300 Series, ATI Mobility Radeon 4500 Series,
        ATI Mobility Radeon 4500 Series, ATI FirePro RG220, ATI RV630,
        ATI Mobility Radeon HD 2600, ATI Mobility Radeon HD 2600 XT,
        ATI Radeon HD 2600 XT AGP, ATI Radeon HD 2600 Pro AGP,
        ATI Radeon HD 2600 XT, ATI Radeon HD 2600 Pro, ATI Gemini RV630,
        ATI Gemini Mobility Radeon HD 2600 XT, ATI FireGL V5600,
        ATI FireGL V3600, ATI Radeon HD 2600 LE,
        ATI Mobility FireGL Graphics Processor, ATI Radeon RV710,
        ATI Radeon HD 3470, ATI Mobility Radeon HD 3430,
        ATI Mobility Radeon HD 3400 Series, ATI Radeon HD 3450,
        ATI Radeon HD 3450, ATI Radeon HD 3430, ATI Radeon HD 3450,
        ATI FirePro V3700, ATI FireMV 2450, ATI FireMV 2260, ATI FireMV 2260,
        ATI Radeon HD 3600 Series, ATI Radeon HD 3650 AGP,
        ATI Radeon HD 3600 PRO, ATI Radeon HD 3600 XT,
        ATI Radeon HD 3600 PRO, ATI Mobility Radeon HD 3650,
        ATI Mobility Radeon HD 3670, ATI Mobility FireGL V5700,
        ATI Mobility FireGL V5725, ATI Radeon HD 3200 Graphics,
        ATI Radeon 3100 Graphics, ATI Radeon HD 3200 Graphics,
        ATI Radeon 3100 Graphics, ATI Radeon HD 3300 Graphics,
        ATI Radeon HD 3200 Graphics, ATI Radeon 3000 Graphics,
        ATI Radeon HD 4200, ATI Radeon 4100, ATI Mobility Radeon HD 4200,
        ATI Mobility Radeon 4100, ATI RS880
(II) Primary Device is: PCI 01@00:00:0
(II) resource ranges after xf86ClaimFixedResources() call:
        [0] -1        0        0xffffffff - 0xffffffff (0x1) MX[B]
        [1] -1        0        0x000f0000 - 0x000fffff (0x10000) MX[B]
        [2] -1        0        0x000c0000 - 0x000effff (0x30000) MX[B]
        [3] -1        0        0x00000000 - 0x0009ffff (0xa0000) MX[B]
        [4] -1        0        0x0000ffff - 0x0000ffff (0x1) IX[B]
        [5] -1        0        0x00000000 - 0x00000000 (0x1) IX[B]
(II) [KMS] Kernel modesetting enabled.
(II) resource ranges after probing:
        [0] -1        0        0xffffffff - 0xffffffff (0x1) MX[B]
        [1] -1        0        0x000f0000 - 0x000fffff (0x10000) MX[B]
        [2] -1        0        0x000c0000 - 0x000effff (0x30000) MX[B]
        [3] -1        0        0x00000000 - 0x0009ffff (0xa0000) MX[B]
        [4] 0        0        0x000a0000 - 0x000affff (0x10000) MS[B]
        [5] 0        0        0x000b0000 - 0x000b7fff (0x8000) MS[B]
        [6] 0        0        0x000b8000 - 0x000bffff (0x8000) MS[B]
        [7] -1        0        0x0000ffff - 0x0000ffff (0x1) IX[B]
        [8] -1        0        0x00000000 - 0x00000000 (0x1) IX[B]
        [9] 0        0        0x000003b0 - 0x000003bb (0xc) IS[B]
        [10] 0        0        0x000003c0 - 0x000003df (0x20) IS[B]
(II) Setting vga for screen 0.
(**) RADEON(0): Depth 24, (--) framebuffer bpp 32
(II) RADEON(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
(==) RADEON(0): Default visual is TrueColor
(==) RADEON(0): RGB weight 888
(II) RADEON(0): Using 8 bits per RGB (8 bit DAC)
(--) RADEON(0): Chipset: "ATI Mobility Radeon X1400" (ChipID = 0x7145)
(II) RADEON(0): PCIE card detected
(II) RADEON(0): KMS Color Tiling: disabled
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 10, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 10, (OK)
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 10, (OK)
drmOpenByBusid: drmOpenMinor returns 10
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
(II) [drm] DRM interface version 1.3
(II) [drm] DRM open master succeeded.
(II) RADEON(0): Output VGA-0 using monitor section External LCD
(**) RADEON(0): Option "RightOf" "Integrated LCD"
(II) RADEON(0): Output LVDS using monitor section Integrated LCD
(II) RADEON(0): Output S-video has no monitor section
(II) RADEON(0): Output DVI-0 has no monitor section
(II) RADEON(0): EDID vendor "DEL", prod id 12295
(II) RADEON(0): Using EDID range info for horizontal sync
(II) RADEON(0): Using EDID range info for vertical refresh
(II) RADEON(0): Printing DDC gathered Modelines:
(II) RADEON(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz)
(II) RADEON(0): Modeline "800x600"x0.0  40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz)
(II) RADEON(0): Modeline "640x480"x0.0  31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz)
(II) RADEON(0): Modeline "640x480"x0.0  25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz)
(II) RADEON(0): Modeline "720x400"x0.0  28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz)
(II) RADEON(0): Modeline "1280x1024"x0.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz)
(II) RADEON(0): Modeline "1024x768"x0.0  78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz)
(II) RADEON(0): Modeline "1024x768"x0.0  65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz)
(II) RADEON(0): Modeline "800x600"x0.0  49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz)
(II) RADEON(0): Output VGA-0 connected
(II) RADEON(0): Output LVDS connected
(II) RADEON(0): Output S-video disconnected
(II) RADEON(0): Output DVI-0 disconnected
(II) RADEON(0): Using user preference for initial modes
(II) RADEON(0): Output VGA-0 using initial mode 1280x1024
(II) RADEON(0): Output LVDS using initial mode 1280x854
(II) RADEON(0): mem size init: gart size :20000000 vram size: s:8000000 visible:7c00000
(II) RADEON(0): EXA: Driver will allow EXA pixmaps in VRAM
(**) RADEON(0): Display dimensions: (340, 270) mm
(**) RADEON(0): DPI set to (203, 96)
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib/xorg/modules//libfb.so
(II) Module fb: vendor="X.Org Foundation"
        compiled for 1.6.3, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.4
(==) RADEON(0): Using gamma correction (1.0, 1.0, 1.0)
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
(II) Loading sub module "exa"
(II) LoadModule: "exa"
(II) Loading /usr/lib/xorg/modules//libexa.so
(II) Module exa: vendor="X.Org Foundation"
        compiled for 1.6.3, module version = 2.4.0
        ABI class: X.Org Video Driver, version 5.0
(--) Depth 24 pixmap format is 32 bpp
(II) do I need RAC?  No, I don't.
(II) resource ranges after preInit:
        [0] -1        0        0xffffffff - 0xffffffff (0x1) MX[B]
        [1] -1        0        0x000f0000 - 0x000fffff (0x10000) MX[B]
        [2] -1        0        0x000c0000 - 0x000effff (0x30000) MX[B]
        [3] -1        0        0x00000000 - 0x0009ffff (0xa0000) MX[B]
        [4] 0        0        0x000a0000 - 0x000affff (0x10000) MS[B]
        [5] 0        0        0x000b0000 - 0x000b7fff (0x8000) MS[B]
        [6] 0        0        0x000b8000 - 0x000bffff (0x8000) MS[B]
        [7] -1        0        0x0000ffff - 0x0000ffff (0x1) IX[B]
        [8] -1        0        0x00000000 - 0x00000000 (0x1) IX[B]
        [9] 0        0        0x000003b0 - 0x000003bb (0xc) IS[B]
        [10] 0        0        0x000003c0 - 0x000003df (0x20) IS[B]
(II) RADEON(0): [DRI2] Setup complete
(II) RADEON(0): Front buffer size: 11008K
(II) RADEON(0): VRAM usage limit set to 104371K
(==) RADEON(0): Backing store disabled
(II) RADEON(0): Direct rendering enabled
(II) RADEON(0): Render acceleration enabled for R300/R400/R500 type cards.
(II) RADEON(0): Setting EXA maxPitchBytes
(II) EXA(0): Driver allocated offscreen pixmaps
(II) EXA(0): Driver registered support for the following operations:
(II)        Solid
(II)        Copy
(II)        Composite (RENDER acceleration)
(II)        UploadToScreen
(II)        DownloadFromScreen
(II) RADEON(0): Acceleration enabled
(II) RADEON(0): DPMS enabled
(==) RADEON(0): Silken mouse enabled
(II) RADEON(0): Set up textured video
(II) RADEON(0): RandR 1.2 enabled, ignore the following RandR disabled message.
(--) RandR disabled
(II) Setting vga for screen 0.
(II) Initializing built-in extension Generic Event Extension
(II) Initializing built-in extension SHAPE
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension BIG-REQUESTS
(II) Initializing built-in extension SYNC
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-MISC
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) AIGLX: enabled GLX_MESA_copy_sub_buffer
(II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
(II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
(II) AIGLX: Loaded and initialized /usr/lib/xorg/modules/dri/r300_dri.so
(II) GLX: Initialized DRI2 GL provider for screen 0
(II) RADEON(0): Setting screen physical size to 734 x 275
(II) RADEON(0): Allocate new frame buffer 2560x1024 stride 2560
(II) RADEON(0): VRAM usage limit set to 105062K
(II) config/hal: Adding input device Macintosh mouse button emulation
(II) LoadModule: "evdev"
(II) Loading /usr/lib/xorg/modules/input//evdev_drv.so
(II) Module evdev: vendor="X.Org Foundation"
        compiled for 1.6.3, module version = 2.2.5
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 4.0
(**) Macintosh mouse button emulation: always reports core events
(**) Macintosh mouse button emulation: Device: "/dev/input/event4"
(II) Macintosh mouse button emulation: Found 3 mouse buttons
(II) Macintosh mouse button emulation: Found x and y relative axes
(II) Macintosh mouse button emulation: Configuring as mouse
(**) Macintosh mouse button emulation: YAxisMapping: buttons 4 and 5
(**) Macintosh mouse button emulation: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Macintosh mouse button emulation" (type: MOUSE)
(**) Macintosh mouse button emulation: (accel) keeping acceleration scheme 1
(**) Macintosh mouse button emulation: (accel) filter chain progression: 2.00
(**) Macintosh mouse button emulation: (accel) filter stage 0: 20.00 ms
(**) Macintosh mouse button emulation: (accel) set acceleration profile 0
(II) Macintosh mouse button emulation: initialized for relative axes.
(II) config/hal: Adding input device SynPS/2 Synaptics TouchPad
(II) LoadModule: "synaptics"
(II) Loading /usr/lib/xorg/modules/input//synaptics_drv.so
(II) Module synaptics: vendor="X.Org Foundation"
        compiled for 1.6.3, module version = 1.1.3
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 4.0
(II) Synaptics touchpad driver version 1.1.3
(**) Option "Device" "/dev/input/event6"
(II) SynPS/2 Synaptics TouchPad: x-axis range 1472 - 5472
(II) SynPS/2 Synaptics TouchPad: y-axis range 1408 - 4448
(II) SynPS/2 Synaptics TouchPad: pressure range 0 - 255
(II) SynPS/2 Synaptics TouchPad: finger width range 0 - 0
(II) SynPS/2 Synaptics TouchPad: buttons: left right middle double triple
(--) SynPS/2 Synaptics TouchPad: touchpad found
(**) SynPS/2 Synaptics TouchPad: always reports core events
(II) XINPUT: Adding extended input device "SynPS/2 Synaptics TouchPad" (type: TOUCHPAD)
(**) SynPS/2 Synaptics TouchPad: (accel) keeping acceleration scheme 1
(**) SynPS/2 Synaptics TouchPad: (accel) filter chain progression: 2.00
(**) SynPS/2 Synaptics TouchPad: (accel) filter stage 0: 20.00 ms
(**) SynPS/2 Synaptics TouchPad: (accel) set acceleration profile 0
(--) SynPS/2 Synaptics TouchPad: touchpad found
(II) config/hal: Adding input device AT Translated Set 2 keyboard
(**) AT Translated Set 2 keyboard: always reports core events
(**) AT Translated Set 2 keyboard: Device: "/dev/input/event5"
(II) AT Translated Set 2 keyboard: Found keys
(II) AT Translated Set 2 keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(**) Option "xkb_options" "terminate:ctrl_alt_bksp"
(II) config/hal: Adding input device Microsoft Microsoft Wireless Optical Mouse® 1.00
(**) Microsoft Microsoft Wireless Optical Mouse® 1.00: always reports core events
(**) Microsoft Microsoft Wireless Optical Mouse® 1.00: Device: "/dev/input/event7"
(II) Microsoft Microsoft Wireless Optical Mouse® 1.00: Found 9 mouse buttons
(II) Microsoft Microsoft Wireless Optical Mouse® 1.00: Found x and y relative axes
(II) Microsoft Microsoft Wireless Optical Mouse® 1.00: Found scroll wheel(s)
(II) Microsoft Microsoft Wireless Optical Mouse® 1.00: Configuring as mouse
(**) Microsoft Microsoft Wireless Optical Mouse® 1.00: YAxisMapping: buttons 4 and 5
(**) Microsoft Microsoft Wireless Optical Mouse® 1.00: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Microsoft Microsoft Wireless Optical Mouse® 1.00" (type: MOUSE)
(**) Microsoft Microsoft Wireless Optical Mouse® 1.00: (accel) keeping acceleration scheme 1
(**) Microsoft Microsoft Wireless Optical Mouse® 1.00: (accel) filter chain progression: 2.00
(**) Microsoft Microsoft Wireless Optical Mouse® 1.00: (accel) filter stage 0: 20.00 ms
(**) Microsoft Microsoft Wireless Optical Mouse® 1.00: (accel) set acceleration profile 0
(II) Microsoft Microsoft Wireless Optical Mouse® 1.00: initialized for relative axes.
(II) config/hal: Adding input device Video Bus
(**) Video Bus: always reports core events
(**) Video Bus: Device: "/dev/input/event3"
(II) Video Bus: Found keys
(II) Video Bus: Configuring as keyboard
(II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(**) Option "xkb_options" "terminate:ctrl_alt_bksp"
(II) RADEON(0): EDID vendor "LPL", prod id 0
(II) RADEON(0):    EDID quirk: Detailed timings give sizes in cm.
(II) RADEON(0): Printing DDC gathered Modelines:
(II) RADEON(0): Modeline "1440x900"x0.0  96.21  1440 1504 1536 1760  900 901 904 912 -hsync -vsync (54.7 kHz)
(II) Macintosh mouse button emulation: Close
(II) UnloadModule: "evdev"
(II) UnloadModule: "synaptics"
(II) AT Translated Set 2 keyboard: Close
(II) UnloadModule: "evdev"
(II) Microsoft Microsoft Wireless Optical Mouse® 1.00: Close
(II) UnloadModule: "evdev"
(II) Video Bus: Close
(II) UnloadModule: "evdev"


adamk75 12-22-2009 03:59 AM

Well your log file looks perfectly normal, but did you see on page 3 of this thread where the OP mentions that there's a bug with 2.6.32.2? You may want to try a different kernel.

Adam

mkoco 12-22-2009 12:46 PM

Well, everything is functioning with 2.6.32.1! I need to read more carefully.

Its a bit sluggish with xcompmgr-- windows are rendering very buggy; disappearing/re-appearing, and conky is playing hide and seek. But at least all the rest of it works. glxgears shows better framerates without KMS, but the window rendering and general performance seems better anyway.

Well, at least that's done.. time to clean my desk my desk, I think.. oi..

:newbie:

BrZ 12-22-2009 04:54 PM

Mesa 7.6.1 and 7.7 are out today =]

mkoco 12-23-2009 12:19 AM

Well! I'll give those a whirl.

Josh000 12-24-2009 12:35 AM

1 Attachment(s)
Hello,

I am worried I may not be following the instructions entirely correctly.

libdrm compiled and a package was installed, but is it correct that there should be no description, and the package was created within the same directory as the slackbuild and not in /tmp?

I can't get mesa to compile at all...I have uploaded the output of trying to run the mesa.Slackbuild. From what I can tell, the system type is not set, although it should be set in the build?

dolphin77 12-24-2009 02:03 AM

Hi,

missing of decription files is one of 'simplifyings'. It is normal from my point of view. It shouldn't affect working of the software.

Are you on 32 bit? my scripts by default assumes 64 bit system. Modify $ARCH to suit your system.

Josh000 12-24-2009 02:54 AM

Yes, I am on 64bit, and my ARCH is always set to "x86_64".

dolphin77 12-24-2009 03:35 AM

Quote:

Originally Posted by Josh000 (Post 3803289)
Yes, I am on 64bit, and my ARCH is always set to "x86_64".

The log you provided is incomplete. I didn't find the source of problem there. Maybe I missed something.

Generally yo need to install in this order:

libdrm
xf86-video-ati
mesa

after you build each package, you should upgrade it in your system. Since each following package depends on previous one.
The last line in my scripts moves package from /tmp to current dir. I did it for my personal preference. You are free to remove it if you prefer /tmp.

For newer (up to date) xf86-video-ati you need to update util-macros package. look above for the building script and git clone reference.

Josh000 12-24-2009 03:40 AM

OK,

I was trying to compile mesa after libdrm, just because in the first posts I think that was the order and I didn't notice any order to the contrary.

I will update util-macros and then try xf86-video-ati and mesa.

Thanks for your help.

Josh000 12-24-2009 07:20 PM

OK, I have built and installed the latest util-macros package, as well as the libdrm and xf86-video-ati packages from the provided slackbuilds.

When trying to run the mesa slackbuild however, I get the following error

Code:

checking for DRI2PROTO... configure: error: Package requirements (dri2proto >= 1.99.3) were not met:

No package 'dri2proto' found

I did not find anything about dri2proto in this thread...should I grab it from git or somewhere as well?

dolphin77 12-25-2009 02:02 AM

Quote:

Originally Posted by Josh000 (Post 3803959)
OK, I have built and installed the latest util-macros package, as well as the libdrm and xf86-video-ati packages from the provided slackbuilds.

When trying to run the mesa slackbuild however, I get the following error

Code:

checking for DRI2PROTO... configure: error: Package requirements (dri2proto >= 1.99.3) were not met:

No package 'dri2proto' found

I did not find anything about dri2proto in this thread...should I grab it from git or somewhere as well?

No. It is in slackware64/x/ directory.

BroX 12-25-2009 04:30 AM

Quote:

Originally Posted by dolphin77 (Post 3803323)
Generally you need to install in this order:

Correct me if I'm wrong, but I think the right build order is
libdrm -> mesa -> xf86-video-ati

dolphin77 12-25-2009 05:18 AM

Yoop.

Just checked again. For newer xorg the right order should be libdrm, xf86-video-ati, mesa.

But for the slackware shipped stuff, xf86-video-ati will not build without mesa installed (it will argue about some missing GL stuff).

But mesa should be installed later than xf86-video-ati, otherwise it is linked wrongly...

It is kind of linked circle.

Not sure how 'coshere' is this, but what I did (when installed this stuff for the first time):
1) removepkg libdrm mesa xf86-video-ati
2) build and installed libdrm
3) build and installed mesa
4) build and installed xf86-video-ati
5) build and upgraded --reinstalled mesa

Once again I am not expert, but I read a lot of x.org wikies, phoronix and etc and they argue, that mesa should be installed later.

BroX 12-25-2009 07:07 AM

Quote:

Originally Posted by dolphin77 (Post 3804220)
Yoop.

Just checked again. For newer xorg the right order should be libdrm, xf86-video-ati, mesa.
---cut---
Once again I am not expert, but I read a lot of x.org wikies, phoronix and etc and they argue, that mesa should be installed later.

Neither am I, thanks for the correction!

Josh000 12-28-2009 02:24 AM

2 Attachment(s)
Hmm, I'm having some problems compiling xf86-video-ati.

It seems to be an issue with the sourcetree not being included, is this correct?

I have uploaded both my xorg.log and the errors from running the slackbuild script for xf86-video-ati

dolphin77 12-28-2009 07:43 AM

did you upgrade util-macros as specified above in this thread?

Josh000 12-28-2009 08:14 AM

Yes, exactly as above

dolphin77 12-28-2009 09:33 AM

it looks like it doesnt run autogen.sh or configure. try to manualy
cd src/xf86-video-ati
./autogen.sh

and see if it is running or not, does it give any missing stuff errors etc. If it runs normally, configure file will be created.

Josh000 12-29-2009 06:04 AM

1 Attachment(s)
OK, I tried autorun.sh by itself and got the same error about it needing the source tree, and util-macros is definitely installed and fine.

I have uploaded the error log, but it is the same as previously posted. Am I possibly missing a package?

rvdboom 12-29-2009 09:37 AM

Yep. For some reason, you need to have the xserver source tree somewhere on your disk and pass the path of it to configure. I already ran into that problem once.

adamk75 12-29-2009 09:51 AM

You really don't. I've not needed the full Xorg source to build xf86-video-ati from git on Slackware 13.0. There is something very odd going on here.

Josh000, your log file shows (among other things):

checking for dri.h... no
checking whether to include DRI support... no
checking exa.h usability... no
checking exa.h presence... no
checking for exa.h... no

All those were yes on my build. Does /usr/include/xorg/exa.h exist? How about /usr/include/xorg/dri.h?

Wait a second here.... Now I remember you... http://www.linuxquestions.org/questi...nstall-762485/

Perhaps this is why you shouldn't go around installing what you believe to be the minimum number of packages necessary for a functioning X :-)

Adam

Josh000 12-29-2009 10:03 AM

Hmmm,

I'm sure I have installed the necessary packages...not least to compile libdri and mesa. I wouldnt be surprised if I have left of a needed package, but I don't actually think that is the cause here.

I can't check for the presence of the files right now, but will as soon as I can.

Josh000 12-30-2009 05:24 AM

Yes, exa.h and dri.h both exist in /us/include/xorg, as well as a whole host of other header files.

adamk75 12-30-2009 05:40 AM

Attach the config.log file to a post here.

Adam

BrZ 12-30-2009 08:43 AM

1 Attachment(s)
I'm using the attached script to build the video driver standalone on both 32 and 64bit...

Josh000 12-30-2009 12:41 PM

2 Attachment(s)
Hi Adam,

I was missing XI.h, which was inputproto. Installed that and ran again, and now it states there is no sys/endian.h

There certainly is no endian.h in /usr/include/sys, although there is one in /usr/include

Out of the few files that contain a file named endian.h, I have them installed or they don't seem appropriate. I certainly have glibc and kernel headers installed.

I have uploaded the config.log and the output of trying to run the slackbuild.

Thanks for your help!

adamk75 12-30-2009 12:52 PM

From your build:

Code:

radeon.h:76:23: error: GL/glxint.h: No such file or directory
From my system:

Code:

[adamk@camaris packages]$ grep glxint.h *
glproto-1.4.10-noarch-1:usr/include/GL/glxint.h

glproto, another package you apparently decided you didn't need to install.

Adam

Josh000 12-31-2009 09:38 AM

Quote:

Originally Posted by adamk75 (Post 3809110)
From your build:
glproto, another package you apparently decided you didn't need to install.

Adam

I wouldn't have normally except I am recompiling some of this X stuff.

Even so, installing a few extra proto packages is still a lot less than everything.

Thanks for your help though

dolphin77 01-07-2010 09:22 AM

1) Kernel part
Slackware current now has kernel 2.6.32.2. KMS is disabled by default. So in order to use KMS we need to rebuild the kernel with CONFIG_DRM_RADEON_KMS=y (this could be found in Device Drivers --->[*] Staging drivers --->[*] Enable modesetting on radeon by default.

But at least for R600 based chips kernel 2.6.32.2 will not work. There is a bug in this version. We can use 2.6.32.3 (which was released yesterday) instead.

/slackware64-current/source/k/config-generic-2.6.32.2 is a good start. Copy it to /usr/src/linux-2.6.32.3/.config.
Code:

cd /usr/src/linux-2.6.32.3/
make oldconfig

After that make menuconfig and switch on KMS for radeon as described above. It is also recommended that all the framebuffer devices are disabled the only FB options left in kernel:
Code:

root@darkstar:/# grep FB /usr/src/linux/.config |grep [m,y]
CONFIG_IFB=m
CONFIG_VIDEO_FB_IVTV=m
CONFIG_FB=y
CONFIG_FB_CFB_FILLRECT=m
CONFIG_FB_CFB_COPYAREA=m
CONFIG_FB_CFB_IMAGEBLIT=m
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_TILEBLITTING=y
CONFIG_FB_UDL=m

Code:

make bzImage modules modules_install
cp arch/x86_64/boot/bzImage /boot/vmlinuz-generic-2.6.32.3
cp System.map /boot/System.map-generic-2.6.32.3
cp .config /boot/config-generic-2.6.32.3

do not forget to makeinitrd for your root fs module.

and create appropriate lilo section in /etc/lilo.conf

next step is to blacklist radeon frame buffer and radeon modules. We need to do this to avoid firmware initialisation problem, if it is not accessable before rrot FS is mounted. This should be added to /etc/modprobe.d/blacklist.conf:
Code:

blacklist radeonfb
blacklist radeon

And then we will load module from /etc/rc.d/rc.modules:
Code:

/sbin/modprobe radeon
2) Libdrm, Mesa and xf86-video-ati from git.

lets create a directory, where all the scripts and source will live. For example /usr/src/dri/. There will be two subdirectories /usr/src/dri/src and /usr/src/dri/packages. One for source trees and one for ready packages.

Code:

# cd /usr/src/dri/src
# git clone git://cgit.freedesktop.org/mesa/drm
# git clone git://cgit.freedesktop.org/git/mesa/mesa
# git clone git://cgit.freedesktop.org/git/xorg/driver/xf86-video-ati
# git clone git://anongit.freedesktop.org/git/xorg/util/macros

We will need to update util-macros in order to be able to build git version of xf86-video-ati.

util-macros.SlackBuild:

Code:

#!/bin/sh

PKGNAM=util-macros
VERSION=$(date +%Y%m%d)_git
ARCH=${ARCH:-x86_64}
BUILD=${BUILD:-1}

NUMJOBS=${NUMJOBS:--j8}
CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-util-macros

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

rm -rf $PKG
mkdir -p $TMP $PKG
cd src/macros
git pull
#git checkout

# Make sure ownerships and permissions are sane:
chown -R root:root .
find . \
  \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
  -exec chmod 755 {} \; -o \
  \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
  -exec chmod 644 {} \;
make clean

./autogen.sh

CFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --build=$ARCH-slackware-linux

make $NUMJOBS
make install DESTDIR=$PKG

mkdir -p $PKG/install

cd $PKG
/sbin/makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz
mv $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz  $CWD/packages

run the script and upgrade the package.
upgradepkg packages/util-macros*.t?z

Now we are ready to build the important staff. Here are the same scripts, slightly modified (mesa now corrected as in slackware64-current.

libdrm.SlackBuild:
Code:

#!/bin/sh

PKGNAM=libdrm
VERSION=$(date +%Y%m%d)_git
ARCH=${ARCH:-x86_64}
NUMJOBS=${NUMJOBS:-" -j7 "}
BUILD=${BUILD:-1_vt}

CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-${PKGNAM}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
fi

rm -rf $PKG
mkdir -p $TMP $PKG
cd src/drm
git pull
#git checkout

# Make sure ownerships and permissions are sane:
chown -R root:root .
find . \
  \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
  -exec chmod 755 {} \; -o \
  \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
  -exec chmod 644 {} \;

make clean

# Configure:
CFLAGS="$SLKCFLAGS" \
./autogen.sh \
  --prefix=/usr \
  --enable-radeon-experimental-api \
  --disable-intel \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --build=$ARCH-slackware-linux
 

CFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --enable-radeon-experimental-api \
  --disable-intel \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --build=$ARCH-slackware-linux

# Build and install:
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1

# Strip binaries:
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null

mkdir -p $PKG/install

cd $TMP/package-${PKGNAM}
/sbin/makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz

mv $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz  $CWD/packages/


xf86-video-ati.SlackBuild:
Code:

#!/bin/sh

PKGNAM=xf86-video-ati
VERSION=$(date +%Y%m%d)_git
ARCH=${ARCH:-x86_64}
BUILD=${BUILD:-1.vt}

NUMJOBS=${NUMJOBS:--j8}
CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-xf86-video-ati

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

rm -rf $PKG
mkdir -p $TMP $PKG
cd src/$PKGNAM
git pull
#git checkout

# Make sure ownerships and permissions are sane:
chown -R root:root .
find . \
  \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
  -exec chmod 755 {} \; -o \
  \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
  -exec chmod 644 {} \;
make clean

./autogen.sh

CFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --build=$ARCH-slackware-linux

make $NUMJOBS
make install DESTDIR=$PKG

mkdir -p $PKG/install

cd $PKG
/sbin/makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz
mv $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz  $CWD/packages/


mesa.SlackBuild:
Code:

#!/bin/sh

PKGNAM=mesa
VERSION=$(date +%Y%m%d)_git
ARCH=${ARCH:-x86_64}
BUILD=${BUILD:-1_vt}

# Be sure this list is up-to-date:
DRI_DRIVERS="r600,swrast"

NUMJOBS=${NUMJOBS:--j8}

CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-mesa

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

rm -rf $PKG
mkdir -p $TMP $PKG
cd src/mesa
git pull
#git checkout

# Make sure ownerships and permissions are sane:
chown -R root:root .
find . \
  \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
  -exec chmod 755 {} \; -o \
  \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
  -exec chmod 644 {} \;
make clean
CFLAGS="$SLKCFLAGS" \
./autogen.sh \
  --prefix=/usr \
  --sysconfdir=/etc \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --mandir=/usr/man \
  --docdir=/usr/doc/mesa-$VERSION \
  --with-dri-driverdir=/usr/lib${LIBDIRSUFFIX}/xorg/modules/dri \
  --with-dri-drivers="$DRI_DRIVERS" \
  --disable-gallium \
  --enable-debug \
  --build=$ARCH-slackware-linux


CFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --mandir=/usr/man \
  --docdir=/usr/doc/mesa-$VERSION \
  --with-dri-driverdir=/usr/lib${LIBDIRSUFFIX}/xorg/modules/dri \
  --with-dri-drivers=r600 \
  --enable-debug \
  --disable-gallium \
  --build=$ARCH-slackware-linux

make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1

# Install gears and glinfo:
mkdir -p $PKG/usr/bin
cp -a progs/demos/gears $PKG/usr/bin/gears
cp -a progs/demos/glinfo $PKG/usr/bin/glinfo

# Install some "demos":
( cd progs/xdemos
  cp glthreads glxcontexts glxdemo glxgears glxgears_fbconfig glxheads \
    glxinfo glxpbdemo glxpixmap \
    $PKG/usr/bin
)

# Strip binaries:
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null

mkdir -p $PKG/install

cd $PKG
/sbin/makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz
mv $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz  $CWD/packages/

And the script to build and upgrade all the a.m. packages. Let's call it build.sh:
Code:

./libdrm.SlackBuild && upgradepkg --reinstall packages/libdrm-`date +%Y%m%d`_git-x86_64-1_vt.t?z
./xf86-video-ati.SlackBuild && upgradepkg --reinstall packages/xf86-video-ati-`date +%Y%m%d`_git-x86_64-1_vt.t?z
./mesa.SlackBuild && upgradepkg --reinstall packages/mesa-`date +%Y%m%d`_git-x86_64-1_vt.t?z

Make all the above scripts executable. And now to build and install everything, simply run:
./build.sh


To check if the above git trees updated, without building all the packages, I use the script which look like this:
Code:

cd src
for i in drm mesa xf86-video-ati ;
 do cd $i ; make clean ; cd  .. ;
done

for i in drm mesa xf86-video-ati ;
 do echo 'Checking' $i; cd $i ; git pull; cd  .. ;
done

cd ..


Josh000 01-07-2010 12:55 PM

Awesome update :)

Just a quick question, but why should FB devices be disabled? I quite like having a high res console display..., can you have this with KMS without an fb?

adamk75 01-07-2010 01:09 PM

You need to disable all the specific framebuffer drivers, but enable the framebuffer console option, just as dolphin77 said. The DRM radeon kernel module is the driver that will hook into the framebuffer console.

dolphin77 01-07-2010 01:45 PM

alright. here comes a bit more. I tried for a long time to test 2.6.33-rc branch. But up till now there was a problem for my chipset with horizontal flickering lines (5-10mm) all over the screen. Today updated 2.6.33-rc3-git2 already solves this problem.

The reason to try 2.6.33 stuff - it has interrupt support. But if you want to try, you have to download this firmware files:
http://people.freedesktop.org/~agd5f/radeon_ucode/

and put them into /lib/firmware/radeon. Otherwise when you reboot with this kernel, it will hang for abt 20-30 seconds and complain about missing firmware.

BrZ 01-07-2010 08:31 PM

Xorg-server 1.7.4 was released:
Quote:

X.Org X Server 1.7.4
Release Date: 2010-01-08
X Protocol Version 11, Revision 0
Build Operating System: Slackware 13.0 Slackware Linux Project
Current Operating System: Linux 2.6.32.3 #1 PREEMPT Thu Jan 7 19:41:22 BRST 2010 x86_64
Kernel command line: BOOT_IMAGE=Linux-2 ro root=803 vt.default_utf8=0 resume=/dev/sda2
Build Date: 07 January 2010 11:54:09PM
Just waiting for 2.6.33 to try KMS... You guys (and gals) are awesome. Thanks.

forum1793 01-07-2010 10:02 PM

Quote:

Originally Posted by Josh000 (Post 3817813)
Awesome update :)

Just a quick question, but why should FB devices be disabled? I quite like having a high res console display..., can you have this with KMS without an fb?

Yes, you can get the same resolution in console as you get in X. It can be so tiny you can't barely see it. Since your basically at the higher resolution already, starting X should be faster. I can attest that exiting X back to console is almost instant.

My only issue so far is that with 2.6.33 you can get sound over hdmi but in both -rc2 and -rc3 I have audio stuttering in xine but not mplayer. Whereas sound over hdmi with both programs using catalyst with 2.6.29.6 worked fine. It also worked fine using the prekms drm/mesa/...ati packages from git. Also no stuttering using the headphones with xine. Truly odd.

Old_Fogie 01-08-2010 02:53 AM

I'm not using kms, just stock radeon from xorg for my 9600xt.

Was wondering two things:

1. can anyone here get unreal tournament 2004 to play with kms? as it won't run with stock xorg radeon driver. will the game even launch?

2. if the performance is less with kms, then what advantage is there?

dolphin77 01-08-2010 03:16 AM

If you have LCD panel (most laptops do have), then with KMS runs console on native resolution of your panel. If you find letters to small, just pick up bigger font (terminus from slackbuilds.org is excelent choice and have a lot of different sizes. It is better solution than to change resolution down, since each pixel is drown with three thin film transistors (red, green, blue) without 'interlapping'


For the games - no i didn't try and don't have time to build and try this. Maybe on weekend will try for my kid.

to BzR:
I didn't get it. You built new Xorg yourself?

adamk75 01-08-2010 03:49 AM

I've played ut2004 with and without KMS on a radeon 4350, radeon x850, and radeon x1900.

Adam

gtludwig 01-08-2010 04:27 AM

1 Attachment(s)
hello,

I followed dolphin77 post #91 to the letter on a fresh -current install. But something went wrong. I just can't build ATi's proprietary video driver.

The excerpt from # lspci that tells what video card I got is:
Code:

01:05.0 VGA compatible controller: ATI Technologies Inc Radeon 3100 Graphics
I edited kernel 2.6.32.3 so its .config returns:
Code:

root@cpc-5564:/home/gtl# grep FB /usr/src/linux/.config |grep [m,y]
CONFIG_IFB=m
CONFIG_VIDEO_FB_IVTV=m
CONFIG_FB=y
CONFIG_FB_CFB_FILLRECT=m
CONFIG_FB_CFB_COPYAREA=m
CONFIG_FB_CFB_IMAGEBLIT=m
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_TILEBLITTING=y
CONFIG_FB_UDL=m

Attached is the new kernel (2.6.32.3) .config file.

Maybe this helps too:
Code:

root@cpc-5564:/home/gtl# less /var/log/Xorg.0.log | grep EE
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(II) Loading extension MIT-SCREEN-SAVER
(EE) fglrx(0): atiddxDriScreenInit failed, GPS not been initialized.
(EE) fglrx(0): XMM failed to open CMMQS connection.
root@cpc-5564:/home/gtl# less /var/log/Xorg.0.log | grep WW
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(WW) The directory "/usr/share/fonts/local" does not exist.
(WW) The directory "/usr/share/fonts/CID" does not exist.
(WW) Falling back to old probe method for fglrx
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:17:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:18:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:18:1) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:18:2) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:19:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:19:1) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:19:2) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:2) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:3) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:4) found
(WW) fglrx(0): board is an unknown third party board, chipset is supported
(WW) fglrx(0): Hasn't establisted DRM connection
(WW) fglrx(0): No DRM connection for driver fglrx.
(WW) fglrx(0): could not detect X server version (query_status=-1)
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed!                  *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO)            *
(WW) fglrx(0): * no 3D acceleration available                *
(WW) fglrx(0): ********************************************* *
(WW) fglrx(0): Textured Video not supported without DRI enabled.
(WW) fglrx(0): Option "VendorName" is not used
(WW) fglrx(0): Option "ModelName" is not used



Please advice! Thanks in advance!

gtludwig


All times are GMT -5. The time now is 03:54 PM.