Re: [gentoo-user] DRI lost after modular X and gcc-4.1.1

2006-09-25 Thread Sergio Polini
Jerry:
 Which kernel?

2.6.12-r10

(2.6.18 is masked ;-)

 Here, running 2.6.18, I compile the kernel drm, 
 agpgart and ati-agp. I then emerge x11-drm. In
 /etc/modules.autoload.d/kernel-2.6 I add; agpgart, ati-agp, drm
 then radeon. In that specific order. Also, run eselect opengl and
 be sure xorg-x11 is selected.

I can't comile agpgart as a module, nor get ati-agp compiled.
When I make menuconfig:

--- /dev/agpgart (AGP Support)  [I can't select it]
M   Intel 440LX/BX/GX, I8xx and E7x05 chipset support
M Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
M   ATI Radeon

after make, in /usr/src/linux/drivers/char/drm:
[root] ls -l ati*
-rw-r--r-- 1 root root 14061 25 feb  2006 ati-agp.c
[root] ls -l *.o
-rw-r--r-- 1 root root 49283 25 set 08:36 agpgart.o
-rw-r--r-- 1 root root 15728 25 set 08:36 amd64-agp.o
-rw-r--r-- 1 root root 12039 25 set 08:36 backend.o
-rw-r--r-- 1 root root 62203 25 set 08:36 built-in.o
-rw-r--r-- 1 root root 10944 25 set 08:36 frontend.o
-rw-r--r-- 1 root root 26452 25 set 08:36 generic.o
-rw-r--r-- 1 root root  7816 25 set 08:42 intel-agp.mod.o
-rw-r--r-- 1 root root 39056 25 set 08:36 intel-agp.o
-rw-r--r-- 1 root root  5704 25 set 08:36 isoch.o

How did you compile ati-agp?
Thanks
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] DRI lost after modular X and gcc-4.1.1

2006-09-25 Thread Jerry McBride
On Monday 25 September 2006 02:59, Sergio Polini wrote:
 Jerry:
  Which kernel?

 2.6.12-r10

 (2.6.18 is masked ;-)

  Here, running 2.6.18, I compile the kernel drm,
  agpgart and ati-agp. I then emerge x11-drm. In
  /etc/modules.autoload.d/kernel-2.6 I add; agpgart, ati-agp, drm
  then radeon. In that specific order. Also, run eselect opengl and
  be sure xorg-x11 is selected.

 I can't comile agpgart as a module, nor get ati-agp compiled.
 When I make menuconfig:

 --- /dev/agpgart (AGP Support)  [I can't select it]
 M   Intel 440LX/BX/GX, I8xx and E7x05 chipset support
 M Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
 M   ATI Radeon

 after make, in /usr/src/linux/drivers/char/drm:
 [root] ls -l ati*
 -rw-r--r-- 1 root root 14061 25 feb  2006 ati-agp.c
 [root] ls -l *.o
 -rw-r--r-- 1 root root 49283 25 set 08:36 agpgart.o
 -rw-r--r-- 1 root root 15728 25 set 08:36 amd64-agp.o
 -rw-r--r-- 1 root root 12039 25 set 08:36 backend.o
 -rw-r--r-- 1 root root 62203 25 set 08:36 built-in.o
 -rw-r--r-- 1 root root 10944 25 set 08:36 frontend.o
 -rw-r--r-- 1 root root 26452 25 set 08:36 generic.o
 -rw-r--r-- 1 root root  7816 25 set 08:42 intel-agp.mod.o
 -rw-r--r-- 1 root root 39056 25 set 08:36 intel-agp.o
 -rw-r--r-- 1 root root  5704 25 set 08:36 isoch.o

 How did you compile ati-agp?


I selected it and then compiled them with make modules.

Jerry
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] DRI lost after modular X and gcc-4.1.1

2006-09-25 Thread Benno Schulenberg
Sergio Polini wrote:
 I've switched to modular X and gcc-4.1.1,

Better take such big upgrade steps one at a time.  :)

 Kernel 2.6.12-r10
 x11-base/x11--drm 20060608

Do these two go together?  Better upgrade to a newer kernel, at 
least version 2.6.16.

 Any hints?

When you have the new kernel up, look at 'dmesg | egrep agp|drm' 
to see whether the modules loaded correctly.  You may need to set 
AGP_AMD64 as a module, as it should probably load after the drm.

Benno
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] DRI lost after modular X and gcc-4.1.1

2006-09-25 Thread Sergio Polini
Sorry, I can't understand...

Richard Fish:
 If you want DRI, you have two choices:

 1. the open source radeon driver, with the in-kernel DRM driver. 
 For this you need to turn on CONFIG_DRM and CONFIG_DRM_RADEON in
 your kernel configuration.  This doesn't work for all chips yet
 AFAIK.

 2. the proprietary ATI drivers.  For this you don't change the
 kernel configuration, but add fglrx to VIDEO_CARDS, and change
 your xorg.conf driver from radeon to fglrx.

But:
i) as to http://gentoo-wiki.com/HOWTO_DRI_with_ATi_Open-Source_Drivers 
there is a third choise: CONFIG_DRM=n and emerge x11-drm;
ii) in http://www.ati.com/products/catalyst/linux.html:
Q7: What X-Windows versions are supported in this driver?
A7: Driver packages are available for XFree86 versions 4.1, 4.2, and 
4.3, as well as X.Org 6.8.
So they shouldn't work with Xorg 7.* (actually I had DRI working with 
Xorg 6.8)

Jerry McBride:
 I compile the kernel drm, agpgart and 
 ati-agp. I then emerge x11-drm.

But the kernel drm and x11-drm look as they are not to work together.

  me:
  How did you compile ati-agp?

 I selected it and then compiled them with make modules.

But I just can select ATI radeon if I select kernel drm:

M Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
M   ATI Radeon

I do net get ati-agp compiled, and ... make modules should not be 
needed for kernels 2.6.* ;-)

I'm a bit confused.

Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] DRI lost after modular X and gcc-4.1.1

2006-09-25 Thread Richard Fish

On 9/25/06, Sergio Polini [EMAIL PROTECTED] wrote:

i) as to http://gentoo-wiki.com/HOWTO_DRI_with_ATi_Open-Source_Drivers
there is a third choise: CONFIG_DRM=n and emerge x11-drm;


Yes, that is also an option, although I generally prefer the in-kernel
drivers if they support my hardware and there is no compelling reason
to use the out-of-tree versions.


ii) in http://www.ati.com/products/catalyst/linux.html:
Q7: What X-Windows versions are supported in this driver?
A7: Driver packages are available for XFree86 versions 4.1, 4.2, and
4.3, as well as X.Org 6.8.


The FAQ is out of date.  Check the release notes for the current release:

https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/linux_8.29.6.html#172686


I do net get ati-agp compiled, and ... make modules should not be
needed for kernels 2.6.* ;-)


You might want to try a more recent kernel than 2.6.12.  Since you
have a PCIe card/system, and probably have no AGP bridge to begin
with, you really don't need AGP support at all.  A 2.6.18 kernel will
allow you to build the necessary DRM drivers without requiring AGP
support.

-Richard
--
gentoo-user@gentoo.org mailing list



[gentoo-user] DRI lost after modular X and gcc-4.1.1

2006-09-24 Thread Sergio Polini
I need your help ;-)
I've switched to modular X and gcc-4.1.1, and I've lost DRI :-(
My configuration:

HP dv5078EA (laptop)
Gentoo AMD64
Kernel 2.6.12-r10

in /usr/src/linux/.config:
  CONFIG_MTRR=y
  CONFIG_AGP=y
  CONFIG_AGP_AMD64=y
  CONFIG_AGP_INTEL=m
  # CONFIG_DRM is not set

output of lspci | grep VGA:
  01:05.0 VGA compatible controller: ATI Technologies Inc ATI Radeon 
XPRESS 200M 5955 (PCIE)

output of lspci | grep AGP:
  none

sys-apps/portage 2.1.1
media-libs/mesa 6.4.2-r2
x11-base/xorg-x11 7.0-r1
x11-base/x11--drm 20060608

in /etc/make.conf:
VIDEO_CARDS=vga radeon

in /etc/X11/xorg.conf:
  Section Module
Load  dri
Load  dbe
SubSection extmod
Option  omit xfree86-dga
EndSubSection
Load  type1
Load  freetype
Load  synaptics
Load  glx
  EndSection
  Section Device
Identifier  ATI Graphics Adapter
Driver  radeon
Option  AGPFastWrite 1
  EndSection

output of eselect opengl show:
  xorg-x11

output of glxinfo | grep direct:
  direct rendering: No 
  OpenGL renderer string: Mesa GLX Indirect

in /var/log/Xorg.0.log:
  (II) LoadModule: dri
  (II) Loading /usr/lib64/xorg/modules/extensions/libdri.so
  ...
  (II) Loading sub module drm
  (II) LoadModule: drm
  (II) Loading /usr/lib64/xorg/modules/linux/libdrm.so
  ...
  (II) Loading sub module radeon
  (II) LoadModule: radeon
  (II) Reloading /usr/lib64/xorg/modules/drivers/radeon_drv.so
  ...
  (--) RADEON(0): Chipset: ATI Radeon XPRESS 200M 5955 (PCIE) ChipID 
= 0x5955)
  (--) RADEON(0): Linear framebuffer at 0xc000
  (II) RADEON(0): PCI card detected 
  drmOpenDevice: node name is /dev/dri/card0
  drmOpenDevice: open result is -1, (No such device or address)
  drmOpenDevice: open result is -1, (No such device or address)
  drmOpenDevice: Open failed
  drmOpenByBusid: Searching for BusID pci::01:05.0
  drmOpenDevice: node name is /dev/dri/card0
  drmOpenDevice: open result is -1, (No such device)
  drmOpenDevice: open result is -1, (No such device)
  drmOpenDevice: Open failed
  drmOpenByBusid: drmOpenMinor returns -1023
  drmOpenDevice: node name is /dev/dri/card1
  drmOpenDevice: open result is -1, (No such device)
  drmOpenDevice: open result is -1, (No such device)
  drmOpenDevice: Open failed
  ...
  drmOpenDevice: node name is /dev/dri/card14
  drmOpenDevice: open result is -1, (No such device)
  drmOpenDevice: open result is -1, (No such device)
  drmOpenDevice: Open failed
  (EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
  [dri] Disabling DRI.

output of lsmod, first three lines;
  Module  Size  Used by
  radeon123808  0
  drm   101544  1 radeon

output of ls -al /dev/dri:
  total 0

Docs checked:
http://www.gentoo.org/proj/en/desktop/x/x11/modular-x-howto.xml
http://www.gentoo.org/doc/en/gcc-upgrading.xml
http://gentoo-wiki.com/HOWTO_DRI_with_ATi_Open-Source_Drivers

Any hints?

Thanks
Sergio
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] DRI lost after modular X and gcc-4.1.1

2006-09-24 Thread Richard Fish

On 9/24/06, Sergio Polini [EMAIL PROTECTED] wrote:

  # CONFIG_DRM is not set


If you want DRI, you have two choices:

1. the open source radeon driver, with the in-kernel DRM driver.  For
this you need to turn on CONFIG_DRM and CONFIG_DRM_RADEON in your
kernel configuration.  This doesn't work for all chips yet AFAIK.

2. the proprietary ATI drivers.  For this you don't change the kernel
configuration, but add fglrx to VIDEO_CARDS, and change your
xorg.conf driver from radeon to fglrx.

HTH,
-Richard
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] DRI lost after modular X and gcc-4.1.1

2006-09-24 Thread Jerry McBride
On Sunday 24 September 2006 17:33, Sergio Polini wrote:
 I need your help ;-)
 I've switched to modular X and gcc-4.1.1, and I've lost DRI :-(


--snip--


 Any hints?

 Thanks
 Sergio

Which kernel? Here, running 2.6.18, I compile the kernel drm, agpgart and 
ati-agp. I then emerge x11-drm. In /etc/modules.autoload.d/kernel-2.6 I add; 
agpgart, ati-agp, drm then radeon. In that specific order. Also, run eselect 
opengl and be sure xorg-x11 is selected. 

Now, I found it necessary to reboot the machine to reload everything in 
correct order, before dri would work. It works pretty well too.

Cheers.  Jerry
-- 
gentoo-user@gentoo.org mailing list