Bug#426336: xorg: X fails to map legacy ROM on recent IA64 kernels

2007-05-27 Thread Peter Chubb
Package: xorg
Severity: important

Since patch 6d40fc514c9ea886dc18ddd20043a411816b63d1 went into the Linux kernel,
X has failed to work.

The relevant line in Xorg.0.log is:

Fatal server error:
xf86MapDomainMem():  mmap() failure



strace says:

open(/sys/class/pci_bus/:00/legacy_mem, O_RDWR) = 8
mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_SHARED, 8, 0) = -1
EINVAL (Invalid argument)
close(8)= 0
write(2, mmap failure: Invalid argument\n, 31mmap failure: Invalid
argument
) = 31
write(2, \nFatal server error:\n, 21) = 21
write(2, xf86MapDomainMem():  mmap() fail..., 36xf86MapDomainMem():
mmap() failure
) = 36
write(0, xf86MapDomainMem():  mmap() fail..., 36) = 36
write(2, \n, 1
)   = 1
write(0, \n, 1)   = 1

System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: ia64

Kernel: Linux 2.6.21-rc5-g6d40fc51-dirty (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#426336: xorg: X fails to map legacy ROM on recent IA64 kernels

2007-05-27 Thread Brice Goglin
Peter Chubb wrote:
 Package: xorg
 Severity: important

 Since patch 6d40fc514c9ea886dc18ddd20043a411816b63d1 went into the Linux 
 kernel,
 X has failed to work.

 The relevant line in Xorg.0.log is:

 Fatal server error:
 xf86MapDomainMem():  mmap() failure
   

Please send the whole output of
/usr/share/bug/xserver-xorg-core/script 31
(as reportbug is supposed to do automatically).

Brice




 strace says:

 open(/sys/class/pci_bus/:00/legacy_mem, O_RDWR) = 8
 mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_SHARED, 8, 0) = -1
 EINVAL (Invalid argument)
 close(8)= 0
 write(2, mmap failure: Invalid argument\n, 31mmap failure: Invalid
 argument
 ) = 31
 write(2, \nFatal server error:\n, 21) = 21
 write(2, xf86MapDomainMem():  mmap() fail..., 36xf86MapDomainMem():
 mmap() failure
 ) = 36
 write(0, xf86MapDomainMem():  mmap() fail..., 36) = 36
 write(2, \n, 1
 )   = 1
 write(0, \n, 1)   = 1

 System Information:
 Debian Release: lenny/sid
   APT prefers unstable
   APT policy: (990, 'unstable')
 Architecture: ia64

 Kernel: Linux 2.6.21-rc5-g6d40fc51-dirty (SMP w/1 CPU core)
 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
 Shell: /bin/sh linked to /bin/bash


   



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#426336: xorg: X fails to map legacy ROM on recent IA64 kernels

2007-05-27 Thread Peter Chubb
 Brice == Brice Goglin [EMAIL PROTECTED] writes:

Brice Peter Chubb wrote:
 Package: xorg Severity: important
 
 Since patch 6d40fc514c9ea886dc18ddd20043a411816b63d1 went into the
 Linux kernel, X has failed to work.
 
 The relevant line in Xorg.0.log is:
 
 Fatal server error: xf86MapDomainMem(): mmap() failure
 

Brice Please send the whole output of
Brice /usr/share/bug/xserver-xorg-core/script 31 (as reportbug is
Brice supposed to do automatically).

Brice Brice

Here it is.  But the problem is that X is trying to map a 1M region
from location 0; on this machine you can't do that safely, so the
kernel prevents it.

Contents of /var/lib/x11/X.roster:
xserver-xfree86
xserver-xorg

/etc/X11/X target does not match checksum in /var/lib/x11/X.md5sum.

X server symlink status:
lrwxrwxrwx 1 root root 13 Aug 22  2006 /etc/X11/X - /usr/bin/Xorg
-rwxr-xr-x 1 root root 3703048 Mar  8 03:43 /usr/bin/Xorg

Contents of /var/lib/x11/xorg.conf.roster:
xserver-xorg

VGA-compatible devices on PCI bus:
00:00.0 VGA compatible controller: ATI Technologies Inc Radeon RV100 QY [Radeon 
7000/VE]

/etc/X11/xorg.conf does not match checksum in /var/lib/x11/xorg.conf.md5sum.

Xorg X server configuration file status:
-rw-r--r-- 1 root root 3080 May 28 11:37 /etc/X11/xorg.conf

Contents of /etc/X11/xorg.conf:
# xorg.conf.dpkg-new (Xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf.dpkg-new manual page.
# (Type man xorg.conf.dpkg-new at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
#   cp /etc/X11/xorg.conf.dpkg-new /etc/X11/xorg.conf.dpkg-new.custom
#   md5sum /etc/X11/xorg.conf.dpkg-new 
/var/lib/xfree86/xorg.conf.dpkg-new.md5sum
#   dpkg-reconfigure xserver-xorg

Section Files
FontPathunix/:7100# local font server
# if the local font server has problems, we can fall back on these
FontPath/usr/share/fonts/X11/misc
FontPath/usr/share/fonts/X11/cyrillic
FontPath/usr/share/fonts/X11/100dpi/:unscaled
FontPath/usr/share/fonts/X11/75dpi/:unscaled
FontPath/usr/share/fonts/X11/Type1
FontPath/usr/share/fonts/X11/CID
FontPath/usr/share/fonts/X11/100dpi
FontPath/usr/share/fonts/X11/75dpi
EndSection

Section Module
Loadbitmap
Loaddbe
Loadddc
Loaddri
Loadextmod
Loadfreetype
Loadglx
Loadrecord
Loadtype1
Loadvbe
EndSection

Section InputDevice
Identifier  Generic Keyboard
Driver  keyboard
Option  CoreKeyboard
Option  XkbRules  xorg
Option  XkbModel  pc104
Option  XkbLayout us
EndSection

Section InputDevice
Identifier  Configured Mouse
Driver  mouse
Option  CorePointer
Option  Device/dev/input/mice
Option  Protocol  ImPS/2
Option  Emulate3Buttons   true
Option  ZAxisMapping  4 5
EndSection

Section Device
Identifier  Generic Video Card
Driver  ati
EndSection

Section Monitor
Identifier  DELL
Option  DPMS
HorizSync   30-130
VertRefresh 48-170
EndSection
Section Monitor
Identifier  DEC
Option  DPMS
HorizSync   29-82
VertRefresh 50-150
EndSection

Section Screen
Identifier  Default Screen
Device  Generic Video Card
Monitor Dell
DefaultDepth24
SubSection Display
Depth   1
Modes   1920x1440 1600x1200 1280x1024 1024x768
EndSubSection
SubSection Display
Depth   4
Modes   1920x1440 1600x1200 1280x1024 1024x768
EndSubSection
SubSection Display
Depth   8
Modes   1920x1440 1600x1200 1280x1024 1024x768
EndSubSection
SubSection Display
Depth   15
Modes   1920x1440 1600x1200 1280x1024 1024x768
EndSubSection
SubSection Display
Depth   16
Modes   1920x1440 1600x1200 1280x1024 1024x768
EndSubSection
SubSection Display
Depth   24
Modes   1920x1440 

Bug#426336: xorg: X fails to map legacy ROM on recent IA64 kernels

2007-05-27 Thread Brice Goglin
Peter Chubb wrote:
 Here it is.  But the problem is that X is trying to map a 1M region
 from location 0; on this machine you can't do that safely, so the
 kernel prevents it.
   

Right.

Note for the BTS: for the record, see the header of [1], the patch has
been merged in 2.6.22-rc1.

 X Window System Version 7.1.1
 Release Date: 12 May 2006
 X Protocol Version 11, Revision 0, Release 7.1.1
 Build Operating System: UNKNOWN 
 Current Operating System: Linux berry 2.6.21-rc5-g6d40fc51-dirty #20 SMP Mon 
 May 28 10:48:11 EST 2007 ia64
   

Did you patch your 2.6.21-rc5 kernel with patches fron 2.6.22?


The corresponding fix has apparently been committed in Xorg in [2]. So
Xserver 1.2 and above should be ok. You appear to be running Xserver
1.1.1. Is there any chance you try xserver-xorg-core 1.3 currently in
unstable (you'll have to upgrade to libc6 2.5 to do so)? You could also
have tried an earlier xserver-xorg-core 1.2 from snapshot.debian.net but
I don't any 1.2 package built for ia64 there.

Brice


[1]
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=6d40fc514c9ea886dc18ddd20043a411816b63d1
[2]
http://gitweb.freedesktop.org/?p=xorg/xserver.git;a=commit;h=bd0c829654903ca45543dfa59cda967c4fafd8ac


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#426336: xorg: X fails to map legacy ROM on recent IA64 kernels

2007-05-27 Thread Peter Chubb
 Brice == Brice Goglin [EMAIL PROTECTED] writes:

Brice Peter Chubb wrote:
 Here it is.  But the problem is that X is trying to map a 1M region
 from location 0; on this machine you can't do that safely, so the
 kernel prevents it.
 

Brice Right.

Brice Note for the BTS: for the record, see the header of [1], the
Brice patch has been merged in 2.6.22-rc1.

 X Window System Version 7.1.1 Release Date: 12 May 2006 X Protocol
 Version 11, Revision 0, Release 7.1.1 Build Operating System:
 UNKNOWN Current Operating System: Linux berry
 2.6.21-rc5-g6d40fc51-dirty #20 SMP Mon May 28 10:48:11 EST 2007
 ia64
 

Brice Did you patch your 2.6.21-rc5 kernel with patches fron 2.6.22?


I'm running current head-of-tree, as I'm developing patches for the
upstream kernel.

Brice The corresponding fix has apparently been committed in Xorg in
Brice [2]. So Xserver 1.2 and above should be ok. You appear to be

Brice running Xserver 1.1.1. Is there any chance you try
Brice xserver-xorg-core 1.3 currently in unstable (you'll have to
Brice upgrade to libc6 2.5 to do so)? You could also have tried an
Brice earlier xserver-xorg-core 1.2 from snapshot.debian.net but I
Brice don't any 1.2 package built for ia64 there.

I'm trying it now... (for some reason the last apt-get upgrade I did
didn't upgrade this package; I think it was blocking on gcc-4.2-base)

It works.

Thanks for the help.

Shall I close the bug, or will you?

Peter C
--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au   ERTOS within National ICT Australia


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]