On 02/04/2011 03:18 PM, James Simmons wrote:
> 
>>> Hi all!
>>>
>>>     This weekend I just finished up the second version of the TTM/GEM 
>>> patch for the VIA chipset. Changes from the last patch are:
>>>
>> Hi James,
>>
>> The drm pci ids for the Chrome9 chipsets are still missing from your
>> patch. See 0001-Chrome9-pci-ids-for-drm.patch
> 
> Sorry about that. Some how the patch got dropped by accident. I included 
> it now. 
>  
no worries :-)

>> Anyway, no luck so far on my side, I get a oops in TTM. I've attached
>> the relevant part of the kernel log. I'm still testing on a VX900, I've
>> yet to prepare my other machines.
>>
>> Because of the above, it's not even going to VRAM probing, but anyway
>> both VX900 and VX855 hostbridge support is missing and I guess VX800
>> host bridge support is buggy. PCI_DEVICE_ID_VIA_VX800 is not the host
>> bridge, but the correct pci device is not defined anyway. See
>> 0002-Get-VRAM-from-VX900-and-VX855-Host-Bridge.patch
> 
> The agp code is such a pain. I uploaded a new patch which hopefully 
> addresses this issue. Please try this patch.
> 
> http://www.infradead.org/~jsimmons/via-ttm.diff
> 
Thanks for the updated patch.

The module is loading now, but fails to map the MMIO. Then the kernel
oopses a short time after. Full log attached. I'm starting in runlevel 3
then load the via driver manually, not even trying to start the X server.

Regards,
Xavier
Feb  4 16:20:23 sam kernel: [  117.910714] [drm] Initialized drm 1.1.0 20060810
Feb  4 16:20:23 sam kernel: [  118.103869] pci 0000:00:01.0: PCI INT A -> GSI 
40 (level, low) -> IRQ 40
Feb  4 16:20:23 sam kernel: [  118.130943] [TTM] Zone  kernel: Available 
graphics memory: 898742 kiB.
Feb  4 16:20:23 sam kernel: [  118.130996] [TTM] Initializing pool allocator.
Feb  4 16:20:23 sam kernel: [  118.131412] [TTM] Failed creating ttm backend 
entry
Feb  4 16:20:23 sam kernel: [  118.131459] [drm] VIA MMIO region failed to map
Feb  4 16:20:23 sam kernel: [  118.131501] [TTM] Trying to take down 
uninitialized memory manager type 3
Feb  4 16:20:23 sam kernel: [  118.131546] [TTM] Trying to take down 
uninitialized memory manager type 2
Feb  4 16:20:23 sam kernel: [  118.131591] [TTM] Trying to take down 
uninitialized memory manager type 1
Feb  4 16:20:23 sam kernel: [  118.131648] [TTM] Finalizing pool allocator.
Feb  4 16:20:23 sam kernel: [  118.131740] [TTM] Zone  kernel: Used memory at 
exit: 0 kiB.
Feb  4 16:20:23 sam kernel: [  118.132757] pci 0000:00:01.0: PCI INT A disabled
Feb  4 16:20:23 sam udevd-work[1673]: setfilecon /dev/dri/card0 failed: No such 
file or directory
Feb  4 16:21:25 sam abrt: Kerneloops: Reported 8 kernel oopses to Abrt
Feb  4 16:21:25 sam abrtd: Directory 'kerneloops-1296832885-1617-8' creation 
detected
Feb  4 16:21:25 sam abrtd: New crash 
/var/spool/abrt/kerneloops-1296832885-1617-8, processing
Feb  4 16:21:25 sam abrtd: Registered Action plugin 'RunApp'
Feb  4 16:21:25 sam abrtd: 
RunApp('/var/spool/abrt/kerneloops-1296832885-1617-8','test x"`cat component`" 
= x"xorg-x11-server-Xorg" && cp /var/log/Xorg.0.log .')
Feb  4 16:21:25 sam kernel: [  179.986194] BUG: sleeping function called from 
invalid context at arch/x86/mm/fault.c:1081
Feb  4 16:21:25 sam kernel: [  179.986277] in_atomic(): 0, irqs_disabled(): 1, 
pid: 1832, name: sh
Feb  4 16:21:25 sam kernel: [  179.986345] Pid: 1832, comm: sh Not tainted 
2.6.37-rc8+ #9
Feb  4 16:21:25 sam kernel: [  179.986405] Call Trace:
Feb  4 16:21:25 sam kernel: [  179.986543]  [<ffffffff810418fb>] 
__might_sleep+0xeb/0xf0
Feb  4 16:21:25 sam kernel: [  179.986685]  [<ffffffff81474762>] 
do_page_fault+0x1ad/0x35a
Feb  4 16:21:25 sam kernel: [  179.986832]  [<ffffffff81114da8>] ? 
__mem_cgroup_commit_charge+0x8e/0x97
Feb  4 16:21:25 sam kernel: [  179.986975]  [<ffffffff81116de8>] ? 
mem_cgroup_charge_common+0x66/0x76
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff810dd444>] ? 
__lru_cache_add+0x34/0x5b
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff81471a55>] 
page_fault+0x25/0x30
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff8110def7>] ? 
__kmalloc+0xc4/0x115
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff8110dec4>] ? 
__kmalloc+0x91/0x115
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff8115889c>] ? 
load_elf_binary+0x123/0x179b
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff8115889c>] 
load_elf_binary+0x123/0x179b
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff81471287>] ? 
_raw_read_lock+0xe/0x10
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff81156074>] ? 
load_misc_binary+0x79/0x346
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff811ffcee>] ? 
ima_must_measure+0x26/0x30
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff811ff42a>] ? 
process_measurement+0x62/0xec
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff8103e8a5>] ? 
need_resched+0x23/0x2d
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff810dd59a>] ? 
put_page+0x28/0x80
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff8111fe1f>] 
search_binary_handler+0xb6/0x22e
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff81158779>] ? 
load_elf_binary+0x0/0x179b
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff81121024>] 
do_execve+0x19a/0x294
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff8101276f>] 
sys_execve+0x43/0x5a
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff8100b0dc>] 
stub_execve+0x6c/0xc0
Feb  4 16:21:25 sam kernel: [  179.987013] BUG: unable to handle kernel NULL 
pointer dereference at 000000000000037f
Feb  4 16:21:25 sam kernel: [  179.987013] IP: [<ffffffff8110def7>] 
__kmalloc+0xc4/0x115
Feb  4 16:21:25 sam kernel: [  179.987013] PGD 69f4b067 PUD 69f4a067 PMD 0 
Feb  4 16:21:25 sam kernel: [  179.987013] Oops: 0000 [#1] SMP 
Feb  4 16:21:25 sam kernel: [  179.987013] last sysfs file: 
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/charge_full
Feb  4 16:21:25 sam kernel: [  179.987013] CPU 0 
Feb  4 16:21:25 sam kernel: [  179.987013] Modules linked in: via ttm drm 
sunrpc cpufreq_ondemand acpi_cpufreq freq_table mperf ip6t_REJECT 
nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables ipv6 padlock_aes 
cryptd aes_x86_64 aes_generic xts gf128mul dm_crypt uinput arc4 ecb ath9k 
snd_hda_codec_via mac80211 snd_hda_intel snd_usb_audio snd_hda_codec snd_hwdep 
snd_usbmidi_lib ath9k_common snd_seq snd_rawmidi ath9k_hw snd_seq_device 
snd_pcm snd_timer ath cfg80211 snd uvcvideo videodev rfkill atl1c v4l1_compat 
v4l2_compat_ioctl32 video soundcore i2c_core shpchp wmi output snd_page_alloc 
serio_raw pcspkr pata_acpi ata_generic pata_via [last unloaded: scsi_wait_scan]
Feb  4 16:21:25 sam kernel: [  179.987013] 
Feb  4 16:21:25 sam kernel: [  179.987013] Pid: 1832, comm: sh Not tainted 
2.6.37-rc8+ #9 L740/L740
Feb  4 16:21:25 sam kernel: [  179.987013] RIP: 0010:[<ffffffff8110def7>]  
[<ffffffff8110def7>] __kmalloc+0xc4/0x115
Feb  4 16:21:25 sam kernel: [  179.987013] RSP: 0018:ffff88006a9efcd8  EFLAGS: 
00010002
Feb  4 16:21:25 sam kernel: [  179.987013] RAX: 0000000000000000 RBX: 
00000000000000d0 RCX: 0000000000000046
Feb  4 16:21:25 sam kernel: [  179.987013] RDX: 0000000000000000 RSI: 
0000000000000003 RDI: ffff88006a9ee000
Feb  4 16:21:25 sam kernel: [  179.987013] RBP: ffff88006a9efd18 R08: 
ffff88006fc164b0 R09: 00000000fffffffe
Feb  4 16:21:25 sam kernel: [  179.987013] R10: ffff88006a9efdf0 R11: 
0000000000000007 R12: ffff88006d402780
Feb  4 16:21:25 sam kernel: [  179.987013] R13: 0000000000000286 R14: 
00000000000001f8 R15: 000000000000037f
Feb  4 16:21:25 sam kernel: [  179.987013] FS:  00007f6cf7f0d720(0000) 
GS:ffff88006fc00000(0000) knlGS:0000000000000000
Feb  4 16:21:25 sam kernel: [  179.987013] CS:  0010 DS: 0000 ES: 0000 CR0: 
000000008005003b
Feb  4 16:21:25 sam kernel: [  179.987013] CR2: 000000000000037f CR3: 
000000006a6f0000 CR4: 00000000000006f0
Feb  4 16:21:25 sam kernel: [  179.987013] DR0: 0000000000000000 DR1: 
0000000000000000 DR2: 0000000000000000
Feb  4 16:21:25 sam kernel: [  179.987013] DR3: 0000000000000000 DR6: 
00000000ffff0ff0 DR7: 0000000000000400
Feb  4 16:21:25 sam kernel: [  179.987013] Process sh (pid: 1832, threadinfo 
ffff88006a9ee000, task ffff880069ea4530)
Feb  4 16:21:25 sam kernel: [  179.987013] Stack:
Feb  4 16:21:25 sam kernel: [  179.987013]  ffff88006a9efd18 ffffffff8115889c 
ffff880069ea4530 00000000fffffff4
Feb  4 16:21:25 sam kernel: [  179.987013]  ffff88006a5cbd00 ffff88006a8d8a00 
00000000000001f8 00000000000001f8
Feb  4 16:21:25 sam kernel: [  179.987013]  ffff88006a9efe58 ffffffff8115889c 
0000000100000000 ffff880069ea4530
Feb  4 16:21:25 sam kernel: [  179.987013] Call Trace:
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff8115889c>] ? 
load_elf_binary+0x123/0x179b
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff8115889c>] 
load_elf_binary+0x123/0x179b
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff81471287>] ? 
_raw_read_lock+0xe/0x10
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff81156074>] ? 
load_misc_binary+0x79/0x346
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff811ffcee>] ? 
ima_must_measure+0x26/0x30
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff811ff42a>] ? 
process_measurement+0x62/0xec
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff8103e8a5>] ? 
need_resched+0x23/0x2d
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff810dd59a>] ? 
put_page+0x28/0x80
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff8111fe1f>] 
search_binary_handler+0xb6/0x22e
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff81158779>] ? 
load_elf_binary+0x0/0x179b
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff81121024>] 
do_execve+0x19a/0x294
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff8101276f>] 
sys_execve+0x43/0x5a
Feb  4 16:21:25 sam kernel: [  179.987013]  [<ffffffff8100b0dc>] 
stub_execve+0x6c/0xc0
Feb  4 16:21:25 sam kernel: [  179.987013] Code: 4c 03 04 25 38 db 00 00 4d 8b 
38 4d 85 ff 75 16 48 8b 4d c8 83 ca ff 89 de 4c 89 e7 e8 28 fb ff ff 49 89 c7 
eb 0c 49 63 44 24 18 <49> 8b 04 07 49 89 00 4c 89 ef e8 3b ce ff ff 4d 85 ff 74 
11 f6 
Feb  4 16:21:25 sam kernel: [  179.987013] RIP  [<ffffffff8110def7>] 
__kmalloc+0xc4/0x115
Feb  4 16:21:25 sam kernel: [  179.987013]  RSP <ffff88006a9efcd8>
Feb  4 16:21:25 sam kernel: [  179.987013] CR2: 000000000000037f
Feb  4 16:21:25 sam kernel: [  179.987013] ---[ end trace 392331e5c8b351c5 ]---
Feb  4 16:21:25 sam kernel: [  180.004558] BUG: unable to handle kernel NULL 
pointer dereference at 000000000000037f
Feb  4 16:21:25 sam kernel: [  180.004796] IP: [<ffffffff8110ff03>] 
__kmalloc_node_track_caller+0x10f/0x118
Feb  4 16:21:25 sam kernel: [  180.004940] PGD 6a06f067 PUD 6a38a067 PMD 0 
Feb  4 16:21:25 sam kernel: [  180.005009] Oops: 0000 [#2] SMP 
Feb  4 16:21:25 sam kernel: [  180.005009] last sysfs file: 
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT1/charge_full
Feb  4 16:21:25 sam kernel: [  180.005009] CPU 0 
Feb  4 16:21:25 sam kernel: [  180.005009] Modules linked in: via ttm drm 
sunrpc cpufreq_ondemand acpi_cpufreq freq_table mperf ip6t_REJECT 
nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables ipv6 padlock_aes 
cryptd aes_x86_64 aes_generic xts gf128mul dm_crypt uinput arc4 ecb ath9k 
snd_hda_codec_via mac80211 snd_hda_intel snd_usb_audio snd_hda_codec snd_hwdep 
snd_usbmidi_lib ath9k_common snd_seq snd_rawmidi ath9k_hw snd_seq_device 
snd_pcm snd_timer ath cfg80211 snd uvcvideo videodev rfkill atl1c v4l1_compat 
v4l2_compat_ioctl32 video soundcore i2c_core shpchp wmi output snd_page_alloc 
serio_raw pcspkr pata_acpi ata_generic pata_via [last unloaded: scsi_wait_scan]
Feb  4 16:21:25 sam kernel: [  180.005009] 
Feb  4 16:21:25 sam kernel: [  180.005009] Pid: 1617, comm: abrtd Tainted: G    
  D     2.6.37-rc8+ #9 L740/L740
Feb  4 16:21:25 sam kernel: [  180.005009] RIP: 0010:[<ffffffff8110ff03>]  
[<ffffffff8110ff03>] __kmalloc_node_track_caller+0x10f/0x118
Feb  4 16:21:25 sam kernel: [  180.005009] RSP: 0018:ffff8800696c5a08  EFLAGS: 
00010046
Feb  4 16:21:25 sam kernel: [  180.005009] RAX: 0000000000000000 RBX: 
000000000000037f RCX: ffffffff813b89f8
Feb  4 16:21:25 sam kernel: [  180.005009] RDX: 0000000000000000 RSI: 
0000000000000003 RDI: ffff8800696c4000
Feb  4 16:21:25 sam kernel: [  180.005009] RBP: ffff8800696c5a48 R08: 
ffff88006fc164b0 R09: 000000000000007d
Feb  4 16:21:25 sam kernel: [  180.005009] R10: 0000000000000000 R11: 
0000000000000004 R12: ffff88006d402780
Feb  4 16:21:25 sam kernel: [  180.005009] R13: 00000000ffffffff R14: 
00000000000004d0 R15: 0000000000000286
Feb  4 16:21:25 sam kernel: [  180.005009] FS:  00007f9a1029e800(0000) 
GS:ffff88006fc00000(0000) knlGS:0000000000000000
Feb  4 16:21:25 sam kernel: [  180.005009] CS:  0010 DS: 0000 ES: 0000 CR0: 
0000000080050033
Feb  4 16:21:25 sam kernel: [  180.005009] CR2: 000000000000037f CR3: 
000000006a7b2000 CR4: 00000000000006f0
Feb  4 16:21:25 sam kernel: [  180.005009] DR0: 0000000000000000 DR1: 
0000000000000000 DR2: 0000000000000000
Feb  4 16:21:25 sam kernel: [  180.005009] DR3: 0000000000000000 DR6: 
00000000ffff0ff0 DR7: 0000000000000400
Feb  4 16:21:25 sam kernel: [  180.005009] Process abrtd (pid: 1617, threadinfo 
ffff8800696c4000, task ffff880069404530)
Feb  4 16:21:25 sam kernel: [  180.005009] Stack:
Feb  4 16:21:25 sam kernel: [  180.005009]  ffffffff813b89f8 00000000000001d8 
ffffea00017482e8 ffff88006a8d8100
Feb  4 16:21:25 sam kernel: [  180.005009]  0000000000000080 ffff88006d4026c0 
0000000000000000 0000000000000080
Feb  4 16:21:25 sam kernel: [  180.005009]  ffff8800696c5a98 ffffffff813bca7b 
0000000000000000 000004d0ffffffff
Feb  4 16:21:25 sam kernel: [  180.005009] Call Trace:
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff813b89f8>] ? 
sock_alloc_send_pskb+0xbf/0x2ce
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff813bca7b>] 
__alloc_skb+0x7c/0x13f
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff813b89f8>] 
sock_alloc_send_pskb+0xbf/0x2ce
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff813b8c1c>] 
sock_alloc_send_skb+0x15/0x17
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff81446d8a>] 
unix_stream_sendmsg+0x11e/0x2e9
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff813b4dee>] 
__sock_sendmsg+0x6b/0x77
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff813b5424>] 
sock_sendmsg+0xa8/0xc1
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff8103e8bd>] ? 
should_resched+0xe/0x2e
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff810372c8>] ? 
ptep_set_access_flags+0x43/0x51
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff810eecaa>] ? 
do_wp_page+0x26e/0x58b
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff8103e8a5>] ? 
need_resched+0x23/0x2d
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff8103e8bd>] ? 
should_resched+0xe/0x2e
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff813befae>] ? 
copy_from_user+0x2f/0x31
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff813bf39e>] ? 
verify_iovec+0x54/0xa6
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff813b7008>] 
sys_sendmsg+0x235/0x2b3
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff81052899>] ? 
wait_consider_task+0x5f7/0x97c
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff814748d3>] ? 
do_page_fault+0x31e/0x35a
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff81067e61>] ? 
find_pid_ns+0x24/0x6e
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff81053ff8>] ? 
sys_wait4+0xad/0xc1
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff81123b12>] ? 
path_put+0x22/0x26
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff8109a9c8>] ? 
audit_syscall_entry+0x11c/0x148
Feb  4 16:21:25 sam kernel: [  180.005009]  [<ffffffff8100ac82>] 
system_call_fastpath+0x16/0x1b
Feb  4 16:21:25 sam kernel: [  180.005009] Code: e9 45 89 f0 48 8b 55 c8 48 8b 
7d c0 48 89 de e8 47 ba ff ff 48 83 c4 18 48 89 d8 5b 41 5c 41 5d 41 5e 41 5f 
c9 c3 49 63 44 24 18 <48> 8b 04 03 49 89 00 eb a3 55 48 89 e5 66 66 66 66 90 48 
89 f8 
Feb  4 16:21:25 sam kernel: [  180.005009] RIP  [<ffffffff8110ff03>] 
__kmalloc_node_track_caller+0x10f/0x118
Feb  4 16:21:25 sam kernel: [  180.005009]  RSP <ffff8800696c5a08>
Feb  4 16:21:25 sam kernel: [  180.005009] CR2: 000000000000037f
Feb  4 16:21:25 sam kernel: [  180.005009] ---[ end trace 392331e5c8b351c6 ]---
_______________________________________________
Openchrome-devel mailing list
[email protected]
http://wiki.openchrome.org/mailman/listinfo/openchrome-devel

Reply via email to