Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66018 - Agpgart stops working with 2.6.8-r5 (possibly due to new hotplug/coldplug scripts)
Summary: Agpgart stops working with 2.6.8-r5 (possibly due to new hotplug/coldplug scr...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-01 05:52 UTC by Matteo Settenvini
Modified: 2004-10-01 06:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matteo Settenvini 2004-10-01 05:52:09 UTC
(I'm using the latest udev, 032.)

After I switched to the new hotplug 23092004 (and tried also coldplug, but it doesn't work either), /dev/agpgart isn't created anymore (I put agpgart in /etc/modules.autoload.d/kernel26). (I tried also compiling it INTO the kernel.)

lsmod shows agpgart isn't used by anyone, so i tried loading i915 for my card (from the new x11-drm pkg), though the latter should be loaded by X when he find agpgart anyway.

so i discovered that i915 built from x11-drm segfaults (before upgrading to 2.6.8-gentoo-r5 & hotplug+coldplug it didn't, so I don't know what one provoked the problem here, gonna check):
--------------
[drm:drm_probe] *ERROR* Cannot initialize the agpgart module.
Unable to handle kernel NULL pointer dereference at virtual address 00000000
 printing eip:
d0e4af32
*pde = 00000000
Oops: 0002 [#1]
PREEMPT
Modules linked in: i915 ppp_synctty ppp_async crc_ccitt ppp_generic slhc iptable_mangle iptable_nat ipt_multiportipt_state ip_conntrack iptable_filter ip_tables snd_intel8x0m snd_intel8x0 snd_ac97_codec snd_mpu401_uart snd_rawmidi snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_pcm snd_page_alloc snd_timer snd_mixer_oss snd capability commoncap agpgart tg3 yenta_socket pcmcia_core thermal processor fan button battery ac usb_storage ehci_hcd usbcore
CPU:    0
EIP:    0060:[<d0e4af32>]    Not tainted
EFLAGS: 00010246   (2.6.8-gentoo-r5)
EIP is at i915_stub_putminor+0x1c/0x127 [i915]
eax: 00000000   ebx: d0e54ca0   ecx: 00000000   edx: 00000000
esi: 00000000   edi: ffffffea   ebp: cf686c00   esp: c663df18
ds: 007b   es: 007b   ss: 0068
Process modprobe (pid: 10480, threadinfo=c663c000 task=ce8976f0)
Stack: d0e54ca0 00000000 d0e54ca0 d0e46a86 00000000 d0e4e34c cf686c00 c023440c
       cf686c68 c01e32a0 cf686c44 c01e36a4 cf686c00 c01e19e2 cf686c00 00000000
       d0e54778 cf686c00 d0e54778 00000002 d0e1012e cf686c00 d0e54778 ffffffff
Call Trace:
 [<d0e46a86>] drm_probe+0x2c0/0x313 [i915]
 [<c023440c>] get_device+0x18/0x21
 [<c01e32a0>] pci_dev_get+0x18/0x28
 [<c01e36a4>] pci_get_subsys+0x6b/0x109
 [<c01e19e2>] pci_request_regions+0x20/0x50
 [<d0e1012e>] drm_init+0x12e/0x1e1 [i915]
 [<c0131382>] sys_init_module+0xf5/0x257
 [<c0105fff>] syscall_call+0x7/0xb
Code: c7 04 02 00 00 00 00 a1 60 6b e5 d0 c7 44 02 04 00 00 00 00 
--------------

agpgart loads fine, anyway:
Linux agpgart interface v0.100 (c) Dave Jones
(no error)

when starting xorg-x11 6.8 however, it says /dev/agpgart isn't found and as a result i've no drm.

What to do then? I reasoned that since modprobe agpgart figured right in dmesg and no error was showed, it's just udev/somewhat-else that doesn't create /dev/agpgart though the module is loaded.

So, I went to /dev/, and typed
mknod agpgart c 10 175

chmod ugo+rwx agpgart
just to be sure it's not a perm problem (only for testing!).

startx reports that no /dev/agpgart is found...
dunno if it helps, but also mplayer doesn't work as it should with the x11 vo:

vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Disabling DPMS
It seems there is no Xvideo support for your video card available.
Run 'xvinfo' to verify its Xv support and read DOCS/HTML/en/devices.html#xv!
See 'mplayer -vo help' for other (non-xv) video out drivers. Try -vo x11
Errore aprendo/inizializzando il dispositivo di output video (-vo) selezionato!

xvinfo:
------------
X-Video Extension version 2.2
screen #0
 no adaptors present

now i'll try again to see if loading i915 segfaults also with the old kernel with the new hotplug.

------------------
Portage 2.0.51_rc7 (default-x86-1.4, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r5 i686)
=================================================================
System uname: 2.6.8-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.5.3
distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apache2 apm arts avi berkdb bitmap-fonts bonobo cdr cjk crypt cups directfb doc dvd emacs encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imap imlib jack java jpeg kde libg++ libwww mad maildirmbox mikmod mmx motif mpeg mysql nas ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl png python qt quicktime readline samba sasl sdl slang spell sse sse2 ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xprint xv zlib video_cards_i915 linguas_it"
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2004-10-01 05:57:33 UTC
You should not load agpgart on 2.6 kernels. Instead you load intel-agp pr ati-agp or something and agpgart gets loaded as dependency.
Comment 2 Matteo Settenvini 2004-10-01 06:20:04 UTC
whoops, nobody told me that, thanks.