Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104655 - modprobe sis-agp fails with 2.6.13-gentoo
Summary: modprobe sis-agp fails with 2.6.13-gentoo
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-02 16:56 UTC by Volker Hemmann
Modified: 2007-04-01 22:55 UTC (History)
2 users (show)

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 Volker Hemmann 2005-09-02 16:56:25 UTC
Hi,  
I have a SiS 746FX based motherboard.  
Up untils 2.6.13-gentoo I got agp-support by modprobing the sis-agp module.  
  
With 2.6.13-gentoo the modprobe fails silently.  
The agpgart module is loaded, and no error is shown, but in dmesg the sis-output is missing  
and /proc/drivers/nvidia/agp/status says that AGP is disabled.  
 
modprobe sis-agp should at least do something, but lsmod and dmesg show nothing, and 
there is no error shown either. 

Reproducible: Always
Steps to Reproduce:
1.emerge kernel 2.6.13-gentoo 
2.configure for modular agpgart/sis-agp support 
3.built the kernel, boot and modprobe sis-agp 
 
Actual Results:  
nothing. agpgart.ko gets rightfully loaded, and shows up in dmesg, sis-agp not.  
lsmod does not show sis-agp, rmmod sis-agp fails because of missing module 
in /proc/modules. 

Expected Results:  
I should see some sis-agp related output and AGP should work. OR it should fail with an error. 

lspci   
0000:00:00.0 Host bridge: Silicon Integrated Systems [SiS] 746 Host (rev 02)   
0000:00:01.0 PCI bridge: Silicon Integrated Systems [SiS] SG86C202   
0000:00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS963 [MuTIOL Media IO] (rev   
25)   
0000:00:02.1 SMBus: Silicon Integrated Systems [SiS] SiS961/2 SMBus Controller   
0000:00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE]   
0000:00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)   
0000:00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)   
0000:00:03.2 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller   
0000:00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet   
(rev 90)   
0000:00:0a.0 SCSI storage controller: Adaptec AHA-2944UW / AIC-7884U (rev 01)   
0000:00:0b.0 Multimedia video controller: Brooktree Corporation Bt848 Video Capture (rev   
12)   
0000:00:0c.0 Multimedia audio controller: Fortemedia, Inc Xwave QS3000A [FM801] (rev b2)   
0000:00:0c.1 Input device controller: Fortemedia, Inc Xwave QS3000A [FM801 game port]   
(rev b2)   
0000:00:0d.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)   
0000:01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev   
a1)   
   
   
17180735.184000] Linux agpgart interface v0.101 (c) Dave Jones   
[17180738.624000] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) -> IRQ 21   
[17180738.624000] NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module  1.0-7676  Fri Jul   
29 12:58:54 PDT 2005   
[17180748.820000] ACPI: PCI interrupt for device 0000:01:00.0 disabled   
[17180754.784000] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) -> IRQ 21   
[17180754.784000] NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module  1.0-7676  Fri Jul   
29 12:58:54 PDT 2005   
   
energy ~ # emerge info   
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-gentoo   
i686)   
=================================================================   
System uname: 2.6.13-gentoo i686 AMD Athlon(tm) XP 2000+   
Gentoo Base System version 1.12.0_pre7   
ccache version 2.4 [enabled]   
dev-lang/python:     2.2.3-r5, 2.3.5, 2.4.1-r1   
sys-apps/sandbox:    1.2.11   
sys-devel/autoconf:  2.13, 2.59-r7   
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6   
sys-devel/binutils:  2.16.1   
sys-devel/libtool:   1.5.18-r1   
virtual/os-headers:  2.6.11-r2   
ACCEPT_KEYWORDS="x86 ~x86"   
AUTOCLEAN="yes"   
CBUILD="i686-pc-linux-gnu"   
CFLAGS="-march=athlon-xp -O2 -mmmx -m3dnow -msse -mfpmath=sse -ftracer   
-frename-registers -fweb -fomit-frame-pointer -pipe"   
CHOST="i686-pc-linux-gnu"   
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"   
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"   
CXXFLAGS="-march=athlon-xp -O2 -mmmx -m3dnow -msse -mfpmath=sse -ftracer   
-frename-registers -fweb -fomit-frame-pointer -pipe"   
DISTDIR="/usr/portage/distfiles"   
FEATURES="autoconfig candy ccache distlocks notitles sandbox sfperms strict"   
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://gentoo.oregonstate.edu   
http://www.ibiblio.org/pub/Linux/distributions/gentoo"   
LC_ALL="de_DE@euro"   
LINGUAS="de"   
PKGDIR="/usr/portage/packages"   
PORTAGE_TMPDIR="/var/tmp"   
PORTDIR="/usr/portage"   
PORTDIR_OVERLAY="/usr/local/portage"   
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"   
USE="x86 16bit 3dnow 3dnowext 3ds 7zip S3TC X X509 a52 aac aalib acpi alsa audiofile avi   
bash-completion berkdb bitmap-fonts bl bluetooth bzip2 bzlib cairo caps cdparanoia cdr clamav   
cpudetection crypt css ctype curl dga dio divx4linux dnd dpms dri dvd dvdr dvdread editor edl   
eds emacs-w3 emboss encode exif expat experimental fame fat fb fbcon ffmpeg fftw flac   
fortran freetype ftp gcc-libffi gd gdbm gif gimp glitz glx gnokii graphviz gs gstreamer gtk gtk2   
hal icq imagemagick imlib irmc jack jack-tmpfs java javascript jce joystick jp2 jpeg jpeg2k   
kadmos kde kdeenablefinal kdepim ladcca lesstif libg++ libwww lm_sensors lzw lzw-tiff mad   
maildir maps matroska mikmod mime mjpeg mmap mmx mmxext mng monkey motif mp3   
mpeg mpi mplayer mule music mysql ncurses nls no-htdocs no-old-linux noamazon nocd   
nodrm noflagstrip nosendmail nowin nptl nvidia objc offensive ogg oggvorbis openal opengl   
oscar pam pam_console pam_timestamp pdflib perl physfs pic png posix povray python   
qemu-fast qt quicktime rar readline real reiserfs rogue samba scanner sdl sendfile sensord   
server sharedmem shorten slang sms sndfile snmp sockets sounds speex spell sqlite sse   
sse-filters ssl stencil-buffer subtitles svg sysfs szip tcltk tcpd tga theora threads tiff timidity   
tools transcode truetype truetype-fonts type1-fonts unicode usb userlocales utf8 v4l v4l2   
vanilla vcd videos vidix visualization vorbis win32codecs wmf wsconvert xanim xemacs xine   
xinerama xml2 xmlrpc xmms xosd xpm xrandr xscreensaver xv xvid xvmc yv12 zlib zvbi   
linguas_de userland_GNU kernel_linux elibc_glibc"   
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, MAKEOPTS   
   
  cat /proc/driver/nvidia/agp/status 
Status:          Disabled 
 
AGP initialization failed, please check the ouput 
of the 'dmesg' command and/or your system log file 
for additional information on this problem.
Comment 1 Volker Hemmann 2005-09-02 17:46:53 UTC
Hi,    
    
ok, I found it, it is not the kernel!    
    
good news everybody, it is modprobe.    
    
modprobe sis-agp --> agpgart is loaded, sis-agp not    
insmod /lib/modules/2.6.13-gentoo/kernel/drivers/char/agp/sis-agp.ko --->    
sis-agp&agpgart are loaded, agp works.    
    
but why? I made a depmod -a after the first problems, and it solved not the problem.   
Plus I am using this hardware setup/kernel-config combination for a long time and   
this was the first time that this happened    
  
So I change it to minor - it is 2:45 in the morning and I panic'ed ;)  
Comment 2 Volker Hemmann 2005-09-03 11:32:35 UTC
Hi,  
  
one more point: after sis-agp did not modprobe, I first rebooted, without changes,  
than build a vanilla kernel.org 2.6.13, which after the reboot did not modprobe  
sis-agp too.  
  
After that I rebooted into 2.6.13-gentoo again, did checked the logs, did a lot of  
modprobe than the insmod and bingo, it worked.  
  
My main problem is:  
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2005-09-04 07:57:30 UTC
Please post the output of "modprobe -v sis-agp" and the messages which appear in
dmesg after you run that.
Comment 4 Volker Hemmann 2005-09-04 09:32:44 UTC
Hi,  
  
modprobe -v sis-agp  
insmod /lib/modules/2.6.13-gentoo/kernel/drivers/char/agp/agpgart.ko  
  
dmesg part of that 'event':  
 
[17179693.704000] Linux agpgart interface v0.101 (c) Dave Jones 
 
 
and when I rmmod agpgart and 
insmod /lib/modules/2.6.13-gentoo/kernel/drivers/char/agp/sis-agp.ko 
 
17179739.208000] Linux agpgart interface v0.101 (c) Dave Jones 
[17179757.632000] agpgart: Detected SiS 746 chipset 
[17179757.656000] agpgart: AGP aperture is 256M @ 0xd0000000 
[17179785.332000] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) -> 
IRQ 21 
[17179785.332000] NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module  1.0-7676  
Fri Jul 29 12:58:54 PDT 2005 
[17179785.644000] agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0. 
[17179785.644000] agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode 
[17179785.644000] agpgart: SiS delay workaround: giving bridge time to recover. 
[17179785.660000] agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode 
[17179785.812000] agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0. 
[17179785.812000] agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode 
[17179785.812000] agpgart: SiS delay workaround: giving bridge time to recover. 
[17179785.828000] agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode 
 
 
Comment 5 Volker Hemmann 2005-09-04 10:23:44 UTC
oh, 
 
em, to clear it up a little bit: 
17179739.208000] Linux agpgart interface v0.101 (c) Dave Jones  
[17179757.632000] agpgart: Detected SiS 746 chipset  
[17179757.656000] agpgart: AGP aperture is 256M @ 0xd0000000  
[17179785.332000] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) ->  
IRQ 21  
 
that was after insmod'ing sis-agp.ko and 'standard' output I got with all older 
kernels. 
 
This stuff is just starting X and also totally normal: 
[17179785.332000] NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module  1.0-7676   
Fri Jul 29 12:58:54 PDT 2005  
[17179785.644000] agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0.  
[17179785.644000] agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode  
[17179785.644000] agpgart: SiS delay workaround: giving bridge time to recover.  
[17179785.660000] agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode  
[17179785.812000] agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0.  
[17179785.812000] agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode  
[17179785.812000] agpgart: SiS delay workaround: giving bridge time to recover.  
[17179785.828000] agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode  
 
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2005-09-04 12:06:09 UTC
Which version of module-init-tools is in use?
Comment 7 Volker Hemmann 2005-09-04 12:32:57 UTC
Hi, 
 
emerge -s: 
sys-apps/module-init-tools 
      Latest version available: 3.2_pre7-r1 
      Latest version installed: 3.2_pre7-r1 
 
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2005-09-05 04:58:52 UTC
Looks like a module-init-tools bug, apparently it's not even _trying_ to load
sis-agp when you run "modprobe sis-agp"...
Comment 9 Volker Hemmann 2005-09-05 09:42:33 UTC
Hi, 
 
hmm, if it is a module-init-tool bug, should it not have shown itself with earlier 
kernels? 
 
Because AFAIR 2.6.12-X were working fine with the same module-init-tools version. 
Comment 10 Volker Hemmann 2005-09-05 11:18:00 UTC
Hi, 
I have to correct mmyself - just installed 2.6.12-gentoo-r9 to make sure - and 
modprobe sis-agp does not work there too. 
Comment 11 SpanKY gentoo-dev 2005-09-05 14:37:10 UTC
does it work with older module-init-tools ?
Comment 12 Volker Hemmann 2005-09-06 10:43:15 UTC
Hi, 
 
I tried module-init-tools 3.1-r1 and sis-agp fails there too. 
Comment 13 SpanKY gentoo-dev 2005-09-06 10:46:55 UTC
if you have a minute, think you could take a look at this issue for us rusty ?
Comment 14 Rusty Russell 2005-09-06 19:02:13 UTC
This seems very strange; I suspect the kernel is trying to load modules itself,
confusing the issue.

I suggest creating a simple script in /tmp/modprobe, like so:
 #! /bin/sh
 echo ARGS: "$@" >> /tmp/modprobe.log
 exec /sbin/modprobe "$@"

Then chmod a+x /tmp/modprobe, and echo /tmp/modprobe >
/proc/sys/kernel/modrpobe.  Now, you'll get a message in /tmp/modprobe.log if
the kernel is trying to load things.  If you do a modprobe -v sis-agp, what
happens now?

Puzzled,
Rusty.
Comment 15 Volker Hemmann 2005-09-06 19:20:49 UTC
Hi, 
 
I did and there was no modprobe.log in /tmp. 
when I did modprobe -v sis-agp 
 
If I do it I get this: 
modprobe -v sis-agp 
insmod /lib/modules/2.6.13-gentoo/kernel/drivers/char/agp/agpgart.ko 
 
but no /tmp/modprobe.log 
 
BUT 
 
when I start X, I have suddenly the modprobe.log, which has this: 
cat /tmp/modprobe.log 
ARGS: nvidia 
 
so at least it works - for nvidia&co but not for sis-agp 
Comment 16 Volker Hemmann 2005-09-12 20:58:41 UTC
Hi, 
 
I just updated to 2.6.13-gentoo-r1 and upon reboot, sis-agp.ko was modprobed correctly. 
 
Comment 17 Jonathan Hudson 2005-10-10 10:18:44 UTC
Fails for me with 2.6.13-gentoo-r3,r2 (and vanilla 2.6.14-rc3), and "an
indeterminate number of" previous gentoo kernels. Specific insmod works as
listed in the other reports in this thread.

Mobo is ugly. cheap K7S5A.
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2007-04-01 22:11:50 UTC
Stale bug. Reopen if you can reproduce this w/ current module-init-tools and uptodate kernels. Thanks.
Comment 19 Volker Hemmann 2007-04-01 22:55:35 UTC
I don't have the hardware anymore, so testing is impossible ... I am fine with closing it. If anybody still using sis-boards would have had hit this bug, he would have left a comment... so I am pretty sure, that this bug died a long time ago (and I completly forgot its existence).