From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: Re: pv_ops dom0 kernel vga text console line offset problem Date: Mon, 1 Feb 2010 13:42:30 +0200 Message-ID: <20100201114230.GY2861@reaktio.net> References: <20091213163135.GZ16033@reaktio.net> <4B27DEA0.6050605@goop.org> <20100124161219.GF2861@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20100124161219.GF2861@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: xen-devel@lists.xensource.com, Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org On Sun, Jan 24, 2010 at 06:12:19PM +0200, Pasi K=E4rkk=E4inen wrote: > On Tue, Dec 15, 2009 at 11:08:16AM -0800, Jeremy Fitzhardinge wrote: > > On 12/13/2009 08:31 AM, Pasi K=E4rkk=E4inen wrote: > >> My newer x86_64 testbox shows a problem with vga text console, basic= ly > >> when drm is initialized (without modesetting, kernel has "nomodeset"= parameter), > >> all the text gets some offset, ie. the text doesn't start from the > >> beginning of the line, but from the middle of the screen. > >> > >> This happens with pv_ops dom0 kernel, using Xen 3.4.x hypervisor. Th= e > >> same kernel binary works OK without problems on baremetal (without X= en). > >> > >> I recorded a video of this behaviour, it's easiest to check it out: > >> http://pasik.reaktio.net/xen/pv_ops-dom0-debug/xen_pvops_dom0_vga_co= nsole_line_offset_problem-xvid.avi > >> > >> Any ideas? > >> > >> Hardware is Supermicro Intel motherboard with ATI ES1000 graphics. > >> =20 > > > > Yes, that's very odd. Are you using any ATI-specific drivers, or is = =20 > > this being used as plain generic VGA hardware? You have radeon drm; = =20 > > what happens if you disable that? > > >=20 > I just hacked the initrd image to not load radeon/drm/ttm modules,=20 > and also blacklisted them in modprobe.d so that udev can't load them. >=20 > And the offset-problem still happens.. It looks like it happens when > USB modules are loaded.. ? >=20 > (I verified after the system started that no radeon/drm/ttm modules wer= e loaded). >=20 Ok, it seems this problem also happens when running RHEL5 kernel-xen, which is 2.6.18 based. So this text offset problem is NOT pv_ops related.=20 I think it's something to do with this specific system and Xen. > > I guess there's some register state which isn't being either set up =20 > > properly, or read back properly, so the kernel driver is out of sync = =20 > > with the actual hardware state. But I'm not sure where I'd start =20 > > looking for the problem. > > >=20 > Hmm.. I wonder if it's actually related to the other USB problem I have= : > http://pasik.reaktio.net/xen/pv_ops-dom0-debug/dmesg-2.6.31.6-vga-text-= console-line-offset-problem2.txt >=20 So this USB issue is a separate problem. Recently there has been a couple= of other reports from different users about this USB issue. -- Pasi > usb 1-5: new high speed USB device using ehci_hcd and address 2 >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > [ INFO: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected ] > 2.6.31.6 #8 > ------------------------------------------------------ > khubd/42 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: > (&retval->lock){......}, at: [] dma_pool_alloc+0x45/= 0x321 >=20 > and this task is already holding: > (&ehci->lock){-.....}, at: [] ehci_urb_enqueue+0xb4/= 0xd7a > which would create a new lock dependency: > (&ehci->lock){-.....} -> (&retval->lock){......} >=20 > but this new dependency connects a HARDIRQ-irq-safe lock: > (&ehci->lock){-.....} > ... which became HARDIRQ-irq-safe at: > [] __lock_acquire+0x254/0xc0e > [] lock_acquire+0xee/0x12e > [] _spin_lock+0x45/0x8e > [] ehci_irq+0x41/0x441 > [] usb_hcd_irq+0x59/0xcc > [] handle_IRQ_event+0x62/0x148 > [] handle_level_irq+0x90/0xf9 > [] handle_irq+0x9a/0xba > [] xen_evtchn_do_upcall+0x10c/0x1bd > [] xen_do_hypervisor_callback+0x1e/0x30 > [] 0xffffffffffffffff >=20 > to a HARDIRQ-irq-unsafe lock: > (purge_lock){+.+...} > ... which became HARDIRQ-irq-unsafe at: > ... [] __lock_acquire+0x2c8/0xc0e > [] lock_acquire+0xee/0x12e > [] _spin_lock+0x45/0x8e > [] __purge_vmap_area_lazy+0x63/0x198 > [] vm_unmap_aliases+0x18f/0x1b2 > [] xen_alloc_ptpage+0x47/0x75 > [] xen_alloc_pte+0x13/0x15 > [] __pte_alloc_kernel+0x6f/0xdd > [] vmap_page_range_noflush+0x1c5/0x315 > [] map_vm_area+0x41/0x6b > [] __vmalloc_area_node+0x12f/0x167 > [] __vmalloc_node+0x90/0xb5 > [] __vmalloc+0x28/0x3e > [] alloc_large_system_hash+0x12c/0x1f8 > [] vfs_caches_init+0xb8/0x140 > [] start_kernel+0x3ef/0x44c > [] x86_64_start_reservations+0xbb/0xd6 > [] xen_start_kernel+0x5dc/0x5e3 > [] 0xffffffffffffffff >=20 > other info that might help us debug this: >=20 > 2 locks held by khubd/42: > #0: (usb_address0_mutex){+.+...}, at: [] hub_port_i= nit+0x8c/0x7ec > #1: (&ehci->lock){-.....}, at: [] ehci_urb_enqueue+= 0xb4/0xd7a >=20 > the HARDIRQ-irq-safe lock's dependencies: > -> (&ehci->lock){-.....} ops: 0 { > IN-HARDIRQ-W at: > [] __lock_acquire+0x254/0xc0e > [] lock_acquire+0xee/0x12e > [] _spin_lock+0x45/0x8e > [] ehci_irq+0x41/0x441 > [] usb_hcd_irq+0x59/0xcc > [] handle_IRQ_event+0x62/0x14= 8 > [] handle_level_irq+0x90/0xf9 > [] handle_irq+0x9a/0xba > [] xen_evtchn_do_upcall+0x10c= /0x1bd > [] xen_do_hypervisor_callback= +0x1e/0x30 > [] 0xffffffffffffffff > INITIAL USE at: > [] __lock_acquire+0x33f/0xc0e > [] lock_acquire+0xee/0x12e > [] _spin_lock_irqsave+0x5d/0xa= b > [] ehci_endpoint_reset+0x5a/0x= 12b > [] usb_hcd_reset_endpoint+0x35= /0x84 > [] usb_enable_endpoint+0x52/0x= a6 > [] usb_enable_interface+0x4b/0= x74 > [] usb_set_configuration+0x479= /0x6af > [] generic_probe+0x6c/0xcb > [] usb_probe_device+0x6c/0xb4 > [] driver_probe_device+0xed/0x= 22a > [] __device_attach+0x4d/0x68 > [] bus_for_each_drv+0x68/0xb3 > [] device_attach+0x75/0xa0 > [] bus_probe_device+0x3a/0x65 > [] device_add+0x3db/0x586 > [] usb_new_device+0x169/0x232 > [] usb_add_hcd+0x4be/0x6a8 > [] usb_hcd_pci_probe+0x263/0x3= bd > [] local_pci_probe+0x2a/0x42 > [] do_work_for_cpu+0x27/0x50 > [] kthread+0xac/0xb4 > [] child_rip+0xa/0x20 > [] 0xffffffffffffffff > } > ... key at: [] __key.35644+0x0/0x8 > -> (hcd_urb_list_lock){......} ops: 0 { > INITIAL USE at: > [] __lock_acquire+0x33f/0xc0= e > [] lock_acquire+0xee/0x12e > [] _spin_lock+0x45/0x8e > [] usb_hcd_link_urb_to_ep+0x= 37/0xc8 > [] usb_hcd_submit_urb+0x308/= 0xa03 > [] usb_submit_urb+0x258/0x2e= b > [] usb_start_wait_urb+0x71/0= x1d4 > [] usb_control_msg+0x10c/0x1= 44 > [] usb_get_descriptor+0x83/0= xc9 > [] usb_get_device_descriptor= +0x85/0xc8 > [] usb_add_hcd+0x472/0x6a8 > [] usb_hcd_pci_probe+0x263/0= x3bd > [] local_pci_probe+0x2a/0x42 > [] do_work_for_cpu+0x27/0x50 > [] kthread+0xac/0xb4 > [] child_rip+0xa/0x20 > [] 0xffffffffffffffff > } > ... key at: [] hcd_urb_list_lock+0x18/0x40 > ... acquired at: > [] __lock_acquire+0xa79/0xc0e > [] lock_acquire+0xee/0x12e > [] _spin_lock+0x45/0x8e > [] usb_hcd_link_urb_to_ep+0x37/0xc8 > [] ehci_urb_enqueue+0xcd/0xd7a > [] usb_hcd_submit_urb+0x86d/0xa03 > [] usb_submit_urb+0x258/0x2eb > [] usb_start_wait_urb+0x71/0x1d4 > [] usb_control_msg+0x10c/0x144 > [] hub_port_init+0x319/0x7ec > [] hub_events+0x94d/0x11e6 > [] hub_thread+0x46/0x1d2 > [] kthread+0xac/0xb4 > [] child_rip+0xa/0x20 > [] 0xffffffffffffffff >=20 >=20 > the HARDIRQ-irq-unsafe lock's dependencies: > -> (purge_lock){+.+...} ops: 0 { > HARDIRQ-ON-W at: > [] __lock_acquire+0x2c8/0xc0e > [] lock_acquire+0xee/0x12e > [] _spin_lock+0x45/0x8e > [] __purge_vmap_area_lazy+0x6= 3/0x198 > [] vm_unmap_aliases+0x18f/0x1= b2 > [] xen_alloc_ptpage+0x47/0x75 > [] xen_alloc_pte+0x13/0x15 > [] __pte_alloc_kernel+0x6f/0x= dd > [] vmap_page_range_noflush+0x= 1c5/0x315 > [] map_vm_area+0x41/0x6b > [] __vmalloc_area_node+0x12f/= 0x167 > [] __vmalloc_node+0x90/0xb5 > [] __vmalloc+0x28/0x3e > [] alloc_large_system_hash+0x= 12c/0x1f8 > [] vfs_caches_init+0xb8/0x140 > ] __vmalloc+0x28/0x3e > [] alloc_large_system_hash+0x= 12c/0x1f8 > [] vfs_caches_init+0xb8/0x140 > [] start_kernel+0x3ef/0x44c > [] x86_64_start_reservations+= 0xbb/0xd6 > [] xen_start_kernel+0x5dc/0x5= e3 > [] 0xffffffffffffffff > INITIAL USE at: > [] __lock_acquire+0x33f/0xc0e > [] lock_acquire+0xee/0x12e > [] _spin_lock+0x45/0x8e > [] __purge_vmap_area_lazy+0x63= /0x198 > [] vm_unmap_aliases+0x18f/0x1b= 2 > [] xen_alloc_ptpage+0x47/0x75 > [] xen_alloc_pte+0x13/0x15 > [] __pte_alloc_kernel+0x6f/0xd= d > [] vmap_page_range_noflush+0x1= c5/0x315 > [] map_vm_area+0x41/0x6b > [] __vmalloc_area_node+0x12f/0= x167 > [] __vmalloc_node+0x90/0xb5 > [] __vmalloc+0x28/0x3e > [] alloc_large_system_hash+0x1= 2c/0x1f8 > [] vfs_caches_init+0xb8/0x140 > [] start_kernel+0x3ef/0x44c > [] x86_64_start_reservations+0= xbb/0xd6 > [] xen_start_kernel+0x5dc/0x5e= 3 > [] 0xffffffffffffffff > } > ... key at: [] purge_lock.26578+0x18/0x40 > -> (vmap_area_lock){+.+...} ops: 0 { > HARDIRQ-ON-W at: > [] __lock_acquire+0x2c8/0xc= 0e > x14a/0x20a > [] __vmalloc_node+0x77/0xb5 > [] __vmalloc+0x28/0x3e > [] alloc_large_system_hash+= 0x12c/0x1f8 > [] vfs_caches_init+0xb8/0x1= 40 > [] start_kernel+0x3ef/0x44c > [] x86_64_start_reservation= s+0xbb/0xd6 > [] xen_start_kernel+0x5dc/0= x5e3 > [] 0xffffffffffffffff > SOFTIRQ-ON-W at: > [] __lock_acquire+0x2e9/0xc= 0e > [] lock_acquire+0xee/0x12e > [] _spin_lock+0x45/0x8e > [] alloc_vmap_area+0x116/0x= 28a > [] __get_vm_area_node+0x14a= /0x20a > [] __vmalloc_node+0x77/0xb5 > [] __vmalloc+0x28/0x3e > [] alloc_large_system_hash+= 0x12c/0x1f8 > [] vfs_caches_init+0xb8/0x1= 40 > [] start_kernel+0x3ef/0x44c > [] x86_64_start_reservation= s+0xbb/0xd6 > [] xen_start_kernel+0x5dc/0= x5e3 > [] 0xffffffffffffffff > INITIAL USE at: > [] __lock_acquire+0x33f/0xc0= e > [] lock_acquire+0xee/0x12e > [] _spin_lock+0x45/0x8e > [] alloc_vmap_area+0x116/0x2= 8a > [] __get_vm_area_node+0x14a/= 0x20a > [] __vmalloc_node+0x77/0xb5 > [ [] vfs_caches_init+0xb8/0x14= 0 > [] start_kernel+0x3ef/0x44c > [] x86_64_start_reservations= +0xbb/0xd6 > [] xen_start_kernel+0x5dc/0x= 5e3 > [] 0xffffffffffffffff > } > ... key at: [] vmap_area_lock+0x18/0x40 > -> (&rnp->lock){..-...} ops: 0 { > IN-SOFTIRQ-W at: > [] __lock_acquire+0x275/0= xc0e > [] lock_acquire+0xee/0x12= e > [] _spin_lock_irqsave+0x5= d/0xab > [] cpu_quiet+0x38/0xb0 > [] __rcu_process_callback= s+0x83/0x259 > [] rcu_process_callbacks+= 0x5d/0x76 > [] __do_softirq+0xf6/0x1f= 0 > [] call_softirq+0x1c/0x30 > [] do_softirq+0x5f/0xd7 > [] irq_exit+0x66/0xbc > [] xen_evtchn_do_upcall+0= x18d/0x1bd > [] xen_do_hypervisor_call= back+0x1e/0x30 > [] 0xffffffffffffffff > INITIAL USE at: > [] __lock_acquire+0x33f/0x= c0e > [] lock_acquire+0xee/0x12e > [] _spin_lock_irqsave+0x5d= /0xab > [] rcu_init_percpu_data+0x= 3d/0x18b > [] rcu_cpu_notify+0x4a/0xa= 7 > [] __rcu_init+0x168/0x1b3 > [] rcu_init+0x1c/0x3e > [] start_kernel+0x268/0x44= c > [0x5e3 > [] 0xffffffffffffffff > } > ... key at: [] __key.20517+0x0/0x8 > ... acquired at: > [] __lock_acquire+0xa79/0xc0e > [] lock_acquire+0xee/0x12e > [] _spin_lock_irqsave+0x5d/0xab > [] __call_rcu+0x9d/0x13c > [] call_rcu+0x28/0x3e > [] __free_vmap_area+0x7b/0x98 > [] __purge_vmap_area_lazy+0x149/0x198 > [] vm_unmap_aliases+0x18f/0x1b2 > [] xen_create_contiguous_region+0x4a/0xf3 > [] xen_swiotlb_alloc_coherent+0x84/0xef > [] dma_alloc_coherent+0xaf/0xec > [] dmam_alloc_coherent+0x67/0xc0 > [] ahci_port_start+0x63/0xf6 > [] ata_host_start+0xf4/0x1a9 > [] ata_host_activate+0x39/0x102 > [] ahci_init_one+0xca3/0xcd7 > [] local_pci_probe+0x2a/0x42 > [] do_work_for_cpu+0x27/0x50 > [] kthread+0xac/0xb4 > [] child_rip+0xa/0x20 > [] 0xffffffffffffffff >=20 > -> (&rcu_state.onofflock){..-...} ops: 0 { > IN-SOFTIRQ-W at: > [] __lock_acquire+0x275/0= xc0e > [] lock_acquire+0xee/0x12= e > [] _spin_lock+0x45/0x8e > [] rcu_start_gp+0xc5/0x15= 4 > [] cpu_quiet_msk+0xae/0xc= d > [] rcu_process_dyntick+0x= e0/0x11d > [] force_quiescent_state+= 0x121/0x1a2 > [] __rcu_process_callback= s+0x48/0x259 > [] rcu_process_callbacks+= 0x3e/0x76 > [] __do_softirq+0xf6/0x1f= 0 > do_softirq+0x5f/0xd7 > [] irq_exit+0x66/0xbc > [] xen_evtchn_do_upcall+0= x18d/0x1bd > [] xen_do_hypervisor_call= back+0x1e/0x30 > [] 0xffffffffffffffff > INITIAL USE at: > [] __lock_acquire+0x33f/0x= c0e > [] lock_acquire+0xee/0x12e > [] _spin_lock+0x45/0x8e > [] rcu_init_percpu_data+0x= e6/0x18b > [] rcu_cpu_notify+0x4a/0xa= 7 > [] __rcu_init+0x168/0x1b3 > [] rcu_init+0x1c/0x3e > [] start_kernel+0x268/0x44= c > [] x86_64_start_reservatio= ns+0xbb/0xd6 > [] xen_start_kernel+0x5dc/= 0x5e3 > [] 0xffffffffffffffff > } > ... key at: [] rcu_state+0x14f0/0x1580 > ... acquired at: > [] __lock_acquire+0xa79/0xc0e > [] lock_acquire+0xee/0x12e > [] _spin_lock+0x45/0x8e > [] rcu_init_percpu_data+0xfa/0x18b > [] rcu_cpu_notify+0x4a/0xa7 > [] __rcu_init+0x168/0x1b3 > [] rcu_init+0x1c/0x3e > [] start_kernel+0x268/0x44c > [] x86_64_start_reservations+0xbb/0xd6 > [] xen_start_kernel+0x5dc/0x5e3 > [] 0xffffffffffffffff >=20 > ... acquired at: > [] __lock_acquire+0xa79/0xc0e > [] lock_acquire+0xee/0x12e > [] _spin_lock+0x45/0x8e > [] rcu_start_gp+0xc5/0x154 > [] __call_rcu+0xa8/0x13c > [] call_rcu+p_area_lazy+0x149/0x198 > [] vm_unmap_aliases+0x18f/0x1b2 > [] xen_create_contiguous_region+0x4a/0xf3 > [] xen_swiotlb_alloc_coherent+0x84/0xef > [] dma_alloc_coherent+0xaf/0xec > [] dmam_alloc_coherent+0x67/0xc0 > [] ahci_port_start+0x63/0xf6 > [] ata_host_start+0xf4/0x1a9 > [] ata_host_activate+0x39/0x102 > [] ahci_init_one+0xca3/0xcd7 > [] local_pci_probe+0x2a/0x42 > [] do_work_for_cpu+0x27/0x50 > [] kthread+0xac/0xb4 > [] child_rip+0xa/0x20 > [] 0xffffffffffffffff >=20 > ... acquired at: > [] __lock_acquire+0xa79/0xc0e > [] lock_acquire+0xee/0x12e > [] _spin_lock+0x45/0x8e > [] __purge_vmap_area_lazy+0x132/0x198 > [] vm_unmap_aliases+0x18f/0x1b2 > [] xen_create_contiguous_region+0x4a/0xf3 > [] xen_swiotlb_alloc_coherent+0x84/0xef > [] dma_alloc_coherent+0xaf/0xec > [] dmam_alloc_coherent+0x67/0xc0 > [] ahci_port_start+0x63/0xf6 > [] ata_host_start+0xf4/0x1a9 > [] ata_host_activate+0x39/0x102 > [] ahci_init_one+0xca3/0xcd7 > [] local_pci_probe+0x2a/0x42 > [] do_work_for_cpu+0x27/0x50 > [] kthread+0xac/0xb4 > [] child_rip+0xa/0x20 > [] 0xffffffffffffffff >=20 >=20 > stack backtrace: > Pid: 42, comm: khubd Not tainted 2.6.31.6 #8 > Call Trace: > [] check_usage+0x29a/0x2bf > [] ? check_noncircular+0xa1/0xe8 > [] check_irq_usage+0x70/0xe9 > [] __lock_acquire+0x973/0xc0e > [] lock_acquire+0xee/0x12e > [] ? dma_pool_alloc+0x45/0x321 > [] ? dma_pool_alloc+0x45/0x321 > [] _spin_lock_irqsave+0x5d/0xab > [] ? dma_pool_alloc+0x45/0x321 > [] ? add_lock_to_list+0x8a/0xe5 > [] dforce_evtchn_callback+0x20/0x36 > [] ? check_events+0x12/0x20 > [] ehci_qh_alloc+0x37/0xfe > [] ? xen_restore_fl_direct_end+0x0/0x1 > [] qh_append_tds+0x4c/0x478 > [] ? _spin_unlock+0x3a/0x55 > [] ehci_urb_enqueue+0xf2/0xd7a > [] ? check_events+0x12/0x20 > [] ? usb_create_hcd+0x1a4/0x1ba > [] usb_hcd_submit_urb+0x86d/0xa03 > [] ? xen_restore_fl_direct_end+0x0/0x1 > [] ? xen_force_evtchn_callback+0x20/0x36 > [] ? debug_check_no_locks_freed+0x13d/0x16a > [] ? check_events+0x12/0x20 > [] ? xen_restore_fl_direct_end+0x0/0x1 > [] ? lockdep_init_map+0xad/0x138 > [] usb_submit_urb+0x258/0x2eb > [] ? __init_waitqueue_head+0x4d/0x76 > [] usb_start_wait_urb+0x71/0x1d4 > [] usb_control_msg+0x10c/0x144 > [] hub_port_init+0x319/0x7ec > [] hub_events+0x94d/0x11e6 > [] ? check_events+0x12/0x20 > [] ? xen_force_evtchn_callback+0x20/0x36 > [] hub_thread+0x46/0x1d2 > [] ? autoremove_wake_function+0x0/0x5f > [] ? hub_thread+0x0/0x1d2 > [] kthread+0xac/0xb4 > [] child_rip+0xa/0x20 > [] ? restore_args+0x0/0x30 > [] ? child_rip+0x0/0x20 > usb 1-5: New USB device found, idVendor=3D14dd, idProduct=3D0002 > usb 1-5: New USB device strings: Mfr=3D1, Product=3D2, SerialNumber=3D3 > usb 1-5: Product: Multidevice > usb 1-5: Manufacturer: Peppercon AG > usb 1-5: SerialNumber: 0962b201b34649022DFD5493FE193F22 > usb 1-5: configuration #1 chosen from 1 choice > input: Peppercon AG Multidevice as /devices/pci0000:00/0000:00:1a.7/usb= 1/1-5/1-5:1.2/input/input3 > generic-usb 0003:14DD:0002.0001: input,hidraw0: USB HID v1.01 Mouse [Pe= ppercon AG Multidevice] on usb-0000:00:1a.7-5/input2 > input: Peppercon AG Multidevice as /devices/pci0000:00/0000:00:1a.7/usb= 1/1-5/1-5:1.3/input/input4 > generic-usb 0003:14DD:0002.0002: input,hidraw1: e] on usb-0000:00:1a.7-= 5/input3 >=20 > -- Pasi >=20 >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel