Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 426406 - sys-kernel/gentoo-sources-3.4.4: kernel module matrox_w1 blocks PCI device, Xorg fails to load mga_drv.so: undefined symbol: MGAStormSync
Summary: sys-kernel/gentoo-sources-3.4.4: kernel module matrox_w1 blocks PCI device, X...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-13 08:47 UTC by Juergen Rose
Modified: 2012-11-07 22:49 UTC (History)
1 user (show)

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


Attachments
xorg.conf (xorg.conf_cheetah,7.73 KB, text/plain)
2012-07-26 13:38 UTC, Juergen Rose
Details
Xorg.0.log with matroxfb in kernel and blacklisted matrox_w1 (Xorg.0.log_cheetah_with_matroxfb,6.15 KB, text/plain)
2012-07-26 13:43 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2012-07-13 08:47:37 UTC
I have a system with a Magtrox Millennium G450. The start of X fails if the module matrox_w1 is loaded with:

[ 44926.708] (II) MGA: driver for Matrox chipsets: mga2064w, mga1064sg, mga2164w,
        mga2164w AGP, mgag100, mgag100 PCI, mgag200, mgag200 PCI,
        mgag200 SE A PCI, mgag200 SE B PCI, mgag200 EV Maxim,
        mgag200 ER SH7757, mgag200 eW Nuvoton, mgag200eH, mgag400, mgag550
[ 44926.710] (++) using VT number 7

[ 44927.037] (EE) mga: The PCI device 0x525 at 01@00:00:0 has a kernel module claiming it.
[ 44927.037] (EE) mga: This driver cannot operate until it has been unloaded.
[ 44927.037] (EE) No devices detected.
[ 44927.037] 
Fatal server error:
[ 44927.037] no screens found


root@cheetah:/root(22)# ll -d /sys/bus/pci/devices/0000\:01\:00.0/driver
lrwxrwxrwx 1 root root 0 Jul 13 09:42 /sys/bus/pci/devices/0000:01:00.0/driver -> ../../../../bus/pci/drivers/matrox_w1/


root@cheetah:/root(23)# lsmod | grep matrox
matrox_w1               1833  0 
wire                   17541  1 matrox_w1


If I unload the matrox_w1 module, X11 starts succesfully. I have the feeling that there was no conflict between matrox_w1 and X11 with older linux versions.
Comment 1 Mario 'Razec' 2012-07-18 18:34:32 UTC
(In reply to comment #0)
Hi Juergen,

I have some points to consider:

1.) Did you follow these instructions: http://en.gentoo-wiki.com/wiki/Matrox_Card? 

In the case your answer was yes, please attach in this bug your xorg.conf and your Xorg.0.log (/var/log/Xorg.0.log). 

2.) Please check if your kernel framebuffer interface is enabled in the device section of the  xorg.conf.

       Option "UseFBDev" "true"

3.) If you have compiled it as a module, you should add *matroxfb* to your /etc/conf.d/modules file.
Comment 2 Juergen Rose 2012-07-25 15:07:06 UTC
Hi Mario,

it seems, that I switched from matrox to vesa framebuffer going from kernel-x86-3.4.0-gentoo to kernel-x86-3.4.4-gentoo:

root@cheetah:/usr/src(49)# egrep "/kernel|[^#]append=|[^#] vga=" /etc/lilo.conf
...
image = /boot/kernel-genkernel-x86-3.3.1
        append="video=matroxfb:vesa:0x11C domdadm dolvm real_root=/dev/md125"
image = /boot/kernel-genkernel-x86-3.3.3
        append="video=matroxfb:vesa:0x11C domdadm dolvm real_root=/dev/md125"
image = /boot/kernel-genkernel-x86-3.3.4-gentoo
        append="video=matroxfb:vesa:0x11C domdadm dolvm real_root=/dev/md125"
image = /boot/kernel-genkernel-x86-3.4.0-gentoo
        append="video=matroxfb:vesa:0x11C domdadm dolvm real_root=/dev/md125"
image = /boot/kernel-genkernel-x86-3.4.4-gentoo
  vga=0x31B
        append="domdadm dolvm real_root=/dev/md125 acpi_enforce_resources=lax"
image = /boot/kernel-genkernel-x86-3.5.0-gentoo
  vga=0x31B
        append="domdadm dolvm real_root=/dev/md125 acpi_enforce_resources=lax"
image = /boot/kernel-genkernel-x86-3.2.14-rt24-rt24
        append="video=matroxfb:vesa:0x11C"


There was any reason that I switched from matroxfb to vesafb, but I forgot the reason. I will try again with matroxfb.
Comment 3 Juergen Rose 2012-07-26 13:33:58 UTC
Yes I removed FB_MATROX from linux-3.4.4:

root@cheetah:/usr/src(7)# diff linux-3.4.0-gentoo/.config linux-3.4.4-gentoo/.config | grep CONFIG_FB
< CONFIG_FB_DDC=m
< # CONFIG_FB_BOOT_VESA_SUPPORT is not set
> # CONFIG_FB_DDC is not set
> CONFIG_FB_BOOT_VESA_SUPPORT=y
< # CONFIG_FB_SYS_FILLRECT is not set
< # CONFIG_FB_SYS_COPYAREA is not set
< # CONFIG_FB_SYS_IMAGEBLIT is not set
> CONFIG_FB_SYS_FILLRECT=m
> CONFIG_FB_SYS_COPYAREA=m
> CONFIG_FB_SYS_IMAGEBLIT=m
> CONFIG_FB_DEFERRED_IO=y
< # CONFIG_FB_VESA is not set
> CONFIG_FB_VESA=y
< CONFIG_FB_MATROX=y
< # CONFIG_FB_MATROX_MILLENIUM is not set
< # CONFIG_FB_MATROX_MYSTIQUE is not set
< CONFIG_FB_MATROX_G=y
< CONFIG_FB_MATROX_I2C=m
< CONFIG_FB_MATROX_MAVEN=m
> # CONFIG_FB_MATROX is not set
> # CONFIG_FB_TMIO is not set

I added it again to linux-3.4.5, but now X fails to start with both linux versions (with vesa and with matrox frambebuffer) with:
[   327.610] (II) LoadModule: "mga"
[   327.611] (II) Loading /usr/lib/xorg/modules/drivers/mga_drv.so
[   327.621] (EE) Failed to load /usr/lib/xorg/modules/drivers/mga_drv.so: /usr/lib/xorg/modules/drivers/mga_drv.so: undefined symbol: MGAStormSync
[   327.621] (II) UnloadModule: "mga"
[   327.621] (II) Unloading mga
[   327.621] (EE) Failed to load module "mga" (loader failed, 7)
[   327.621] (II) LoadModule: "evdev"
[   327.621] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[   327.621] (II) Module evdev: vendor="X.Org Foundation"
[   327.621]    compiled for 1.12.99.902, module version = 2.7.1
[   327.621]    Module class: X.Org XInput Driver
[   327.622]    ABI class: X.Org XInput driver, version 18.0
[   327.622] (EE) No drivers available.
[   327.622] 
Fatal server error:
[   327.622] no screens found
[   327.623] (EE)
Comment 4 Juergen Rose 2012-07-26 13:38:30 UTC
Created attachment 319304 [details]
xorg.conf
Comment 5 Juergen Rose 2012-07-26 13:43:49 UTC
Created attachment 319306 [details]
Xorg.0.log with matroxfb in kernel and blacklisted matrox_w1

root@cheetah:/root(10)# gzip -cd /proc/config.gz | grep -i matrox
CONFIG_W1_MASTER_MATROX=m
CONFIG_FB_MATROX=y
# CONFIG_FB_MATROX_MILLENIUM is not set
# CONFIG_FB_MATROX_MYSTIQUE is not set
CONFIG_FB_MATROX_G=y
CONFIG_FB_MATROX_I2C=m
CONFIG_FB_MATROX_MAVEN=m

root@cheetah:/root(16)# cat /etc/modprobe.d/blacklist.conf 
blacklist matrox_w1
Comment 6 Juergen Rose 2012-07-26 15:27:57 UTC
The last issue (Comment 3) happens with xorg-server-1.12.99.902 and xorg-server-1.12.99.903.


     Fri Jul 13 05:09:39 2012 >>> x11-base/xorg-server-1.12.3
       merge time: 13 minutes and 3 seconds.

     Thu Jul 26 06:57:06 2012 >>> x11-base/xorg-server-1.12.99.902
       merge time: 12 minutes and 37 seconds.

     Thu Jul 26 16:57:54 2012 >>> x11-base/xorg-server-1.12.99.903
       merge time: 12 minutes and 28 seconds.

root@cheetah:/root(35)#  genlop -t xf86-video-mga | tail

     Thu Jul 26 10:58:50 2012 >>> x11-drivers/xf86-video-mga-1.6.1
       merge time: 1 minute and 57 seconds.

     Thu Jul 26 11:19:41 2012 >>> x11-drivers/xf86-video-mga-1.6.1
       merge time: 58 seconds.

     Thu Jul 26 17:22:04 2012 >>> x11-drivers/xf86-video-mga-1.6.1
       merge time: 57 seconds.
Comment 7 Mario 'Razec' 2012-08-10 20:22:35 UTC
Hey Juergen,


I'm just not able to reproduce this bug so far. But I checked this message below (Xorg.0.log) and looks like that are not compiling correctly because some modules is not enabled in the xorg.conf.

[   546.412] (EE) Failed to load /usr/lib/xorg/modules/drivers/mga_drv.so: /usr/lib/xorg/modules/drivers/mga_drv.so: undefined symbol: MGAStormSync


Maybe a solution is:

1.) Download the driver from the vendor
2.) Copy it to /usr/lib/xorg/modules/drivers/ 
3.) Try again

README: http://en.gentoo-wiki.com/wiki/X.Org/Dual_Monitors/Matrox


I saw an interesting post about this issue too, Please take a look in the link below:

http://forums.gentoo.org/viewtopic-p-7101502.html
Comment 8 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-11-07 22:49:34 UTC
Juergen, or other people with the same issue, if you still experience then please try the previous comment 7 and let us know whether that helped.

Relevant link explaining the issue:

https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-mga/+bug/1044797