Bug#509733: This bug is also present in xen-linux-system-2.6.26-1-xen-amd64
This bug is also present in xen-linux-system-2.6.26-1-xen-amd64. Or at
least, the symptoms are very similar (Radeon X xerver fails to start,
and causes dmesg output) and the test program mmap-mem fails identically
This makes X incompatible with xen, at least on my machine. I don't
know if its radeon-specific
:; lspci -v | grep -A 7 -F VGA
01:00.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon
9200 PRO] (rev 01) (prog-if 00 [VGA controller])
Subsystem: PC Partner Limited Device 0130
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 11
Memory at e8000000 (32-bit, prefetchable) [size=128M]
I/O ports at a000 [size=256]
Memory at fd200000 (32-bit, non-prefetchable) [size=64K]
Expansion ROM at fd100000 [disabled] [size=128K]
Capabilities: <access denied>
:; sudo ./mmap-mem 0xe8000000 4096
Failed to mmap () /dev/mem: Invalid argument
# dmesg says
[19017.495615] CPA: called for zero pte. vaddr = ffff880075ee0000
cpa->vaddr = f
fff880075ee0000
[19017.495749] ------------[ cut here ]------------
[19017.495836] WARNING: at arch/x86/mm/pageattr-xen.c:571
__change_page_attr_set
_clr+0x84/0xa7f()
[19017.495939] Modules linked in: xt_tcpudp xt_physdev iptable_filter
ip_tables
x_tables netloop bridge ppdev lp nfsd auth_rpcgss exportfs nfs lockd
nfs_acl sun
rpc ipv6 vfat fat nls_base fuse loop snd_via82xx snd_via82xx_modem
gameport snd_
ac97_codec ac97_bus snd_pcm_oss snd_mixer_oss snd_pcm snd_mpu401_uart
parport_pc
parport snd_seq_dummy snd_seq_oss snd_seq_midi pcspkr psmouse
serio_raw snd_raw
midi k8temp snd_seq_midi_event snd_seq snd_timer snd_seq_device snd
snd_page_all
oc i2c_viapro i2c_core soundcore usblp button shpchp pci_hotplug evdev
ext3 jbd
mbcache raid1 md_mod ide_cd_mod cdrom sd_mod ata_generic ide_pci_generic
ehci_hc
d uhci_hcd via82cxxx ide_core sata_via skge sata_promise libata scsi_mod
dock oh
ci1394 ieee1394 thermal processor fan thermal_sys
[19017.501786] Pid: 18798, comm: mmap-mem Tainted: G W
2.6.26-1-xen-amd64
#1
[19017.501887]
[19017.501888] Call Trace:
[19017.502058] [<ffffffff8022cba2>] warn_on_slowpath+0x51/0x78
[19017.502151] [<ffffffff8022d6ae>] printk+0x4e/0x56
[19017.502248] [<ffffffff80358d06>] extract_buf+0xa0/0x105
[19017.502343] [<ffffffff8029b43e>] __d_lookup+0xba/0x134
[19017.502434] [<ffffffff8021950b>] __change_page_attr_set_clr+0x84/0xa7f
[19017.502527] [<ffffffff80291949>] do_lookup+0x63/0x1c1
[19017.502618] [<ffffffff8029aa34>] dput+0x21/0x13e
[19017.502707] [<ffffffff80294020>] __link_path_walk+0xcbc/0xdfa
[19017.502804] [<ffffffff80219fc2>] change_page_attr_set_clr+0xbc/0x1d0
[19017.502900] [<ffffffff8026482d>] find_lock_page+0x1f/0xc3
[19017.502994] [<ffffffff8021a82f>]
phys_mem_access_prot_allowed+0x12e/0x247
[19017.503093] [<ffffffff80384f5c>] xen_mmap_mem+0x2f/0x6b
[19017.503184] [<ffffffff80279b4c>] mmap_region+0x218/0x425
[19017.503287] [<ffffffff8027a376>] do_mmap_pgoff+0x2e8/0x34d
[19017.503384] [<ffffffff8020fb10>] sys_mmap+0x8b/0x110
[19017.503477] [<ffffffff8020b528>] system_call+0x68/0x6d
[19017.503568] [<ffffffff8020b4c0>] system_call+0x0/0x6d
[19017.501887]
[19017.501888] Call Trace:
[19017.502058] [<ffffffff8022cba2>] warn_on_slowpath+0x51/0x78
[19017.502151] [<ffffffff8022d6ae>] printk+0x4e/0x56
[19017.502248] [<ffffffff80358d06>] extract_buf+0xa0/0x105
[19017.502343] [<ffffffff8029b43e>] __d_lookup+0xba/0x134
[19017.502434] [<ffffffff8021950b>] __change_page_attr_set_clr+0x84/0xa7f
[19017.502527] [<ffffffff80291949>] do_lookup+0x63/0x1c1
[19017.502618] [<ffffffff8029aa34>] dput+0x21/0x13e
[19017.502707] [<ffffffff80294020>] __link_path_walk+0xcbc/0xdfa
[19017.502804] [<ffffffff80219fc2>] change_page_attr_set_clr+0xbc/0x1d0
[19017.502900] [<ffffffff8026482d>] find_lock_page+0x1f/0xc3
[19017.502994] [<ffffffff8021a82f>]
phys_mem_access_prot_allowed+0x12e/0x247
[19017.503093] [<ffffffff80384f5c>] xen_mmap_mem+0x2f/0x6b
[19017.503184] [<ffffffff80279b4c>] mmap_region+0x218/0x425
[19017.503287] [<ffffffff8027a376>] do_mmap_pgoff+0x2e8/0x34d
[19017.503384] [<ffffffff8020fb10>] sys_mmap+0x8b/0x110
[19017.503477] [<ffffffff8020b528>] system_call+0x68/0x6d
[19017.503568] [<ffffffff8020b4c0>] system_call+0x0/0x6d
[19017.503660]
[19017.503741] ---[ end trace 6b9e1e2038670f1d ]---
[19017.503830] mmap-mem:18798 /dev/mem ioremap_change_attr failed
write-back for ffffffffe8000000-ffffffffe8001000
Reply to: