Xorg Memory Leak with Matrox G200eR2

Issues related to hardware problems
Post Reply
ludovic
Posts: 2
Joined: 2016/05/06 10:08:04

Xorg Memory Leak with Matrox G200eR2

Post by ludovic » 2016/05/06 12:02:18

Hi,
I've installed CentOS7 on a DELL PowerEdge R530 with a matrox graphic card.
I have a memory leak with Xorg.

I've tried to blacklist mgag200 module but it is still used even if it appears as blacklisted with modprobe.

How to use the vesa driver instead of mgag200 ?

Any help will be usefull
Thanks

Code: Select all

lspci | grep VGA
 VGA compatible controller: Matrox Electronics Systems Ltd. G200eR2 (rev 01)

Code: Select all

lshw -c video
  *-display
       description: VGA compatible controller
       product: G200eR2
       vendor: Matrox Electronics Systems Ltd.
       physical id: 0
       bus info: pci@0000:0b:00.0
       version: 01
       width: 32 bits
       clock: 33MHz
       capabilities: vga_controller bus_master cap_list rom
       configuration: driver=mgag200 latency=64 maxlatency=32 mingnt=16
       resources: irq:17 memory:90000000-90ffffff memory:91800000-91803fff memory:91000000-917fffff

Code: Select all

modinfo mgag200
filename:       /lib/modules/3.10.0-327.13.1.el7.x86_64/kernel/drivers/gpu/drm/mgag200/mgag200.ko
license:        GPL
description:    MGA G200 SE
author:         Matthew Garrett
rhelversion:    7.2
srcversion:     E0BA9C24310638942075572
alias:          pci:v0000102Bd00000534sv*sd*bc*sc*i*
alias:          pci:v0000102Bd00000533sv*sd*bc*sc*i*
alias:          pci:v0000102Bd00000532sv*sd*bc*sc*i*
alias:          pci:v0000102Bd00000530sv*sd*bc*sc*i*
alias:          pci:v0000102Bd00000524sv*sd*bc*sc*i*
alias:          pci:v0000102Bd00000522sv*sd*bc*sc*i*
depends:        drm,drm_kms_helper,ttm,syscopyarea,i2c-core,sysfillrect,sysimgblt,i2c-algo-bit
intree:         Y
vermagic:       3.10.0-327.13.1.el7.x86_64 SMP mod_unload modversions
signer:         CentOS Linux kernel signing key
sig_key:        6F:33:78:18:7D:83:CD:18:A4:3B:2E:0A:C4:9A:ED:8A:EF:FC:3A:C7
sig_hashalgo:   sha256
parm:           modeset:Disable/Enable modesetting (int)

Code: Select all

dmesg | grep mga
[    2.410126] fb: conflicting fb hw usage mgag200drmfb vs EFI VGA - removing generic driver
[    2.482989] fbcon: mgadrmfb (fb0) is primary device
[    2.626495] mgag200 0000:0b:00.0: fb0: mga drmfb frame buffer device
[    2.626496] mgag200 0000:0b:00.0: registered panic notifier
[    2.626505] [drm] Initialized mgag200 1.0.0 20110418 for 0000:0b:00.0 on minor 0
[   28.191259] mgag200 0000:0b:00.0: Video card doesn't support cursors with partial transparency.
[   28.191265] mgag200 0000:0b:00.0: Not enabling hardware cursor.

User avatar
TrevorH
Site Admin
Posts: 32872
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Xorg Memory Leak with Matrox G200eR2

Post by TrevorH » 2016/05/06 12:56:07

If you created a file to blacklist it under /etc/modprobe.d then you will probably need to rebuild your initramfs file with dracut.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ludovic
Posts: 2
Joined: 2016/05/06 10:08:04

Re: Xorg Memory Leak with Matrox G200eR2

Post by ludovic » 2016/05/07 07:54:12

Thanks! It works now.
I've blacklisted mgag200 and use dracut to regenerate a initramfs as you said and I don't have memory leaks with Xorg anymore.

This mgag200 driver seems to be problematic.
Should I post it to matrox ?

poky
Posts: 108
Joined: 2013/03/27 12:18:03

Re: Xorg Memory Leak with Matrox G200eR2

Post by poky » 2016/05/22 15:56:47

I have tower server Dell PowerEdge T110 with integrated Matrox® G200eW w/ 8MB memory card.
Server sometimes totaly hang/freeze with this card.

Readme: ftp://ftp.matrox.com/pub/mga/archive/li ... DME143.txt:

... we recommend using a VESA mode instead ...
... Crash at Xorg startup when SELinux is set to enforcing. SELinux in enforcing mode prevents the mapping of low address memory needed by the driver. To allow mapping of low address memory, issue the following command before starting X:

# setsebool -P mmap_low_allowed 1 [enter]

Well, for sure I bought new NVIDIA graphic card and now I have not any problems. ;)

User avatar
TrevorH
Site Admin
Posts: 32872
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Xorg Memory Leak with Matrox G200eR2

Post by TrevorH » 2016/10/06 18:17:38

The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply