Skip to contentSkip to conversation

2.6.37 dom0 non-fatal BUG: sleeping function called from invalid context at kernel/mutex.c:85

DISCUSSION Boris Derzhavets 5 participants 11 messages Jan 6, 2011

lore
Share & tools
lore
#0 lore raw

In response to Michael Young post fedora-xen list :-

Quoted 1 line

There is a 2.6.37 kernel to test (2.6.37-1.xendom0.fc15)

Works for me under Xen 4.0.1 , but attempt to "startx" causes stack trace. Works as vanilla as well . Allows to run KVMs been built with standard fedora kernel.

Boris.

--- On Thu, 1/6/11, Pasi Kärkkäinen <[email protected]> wrote:

From: Pasi Kärkkäinen <[email protected]>
Subject: [Xen-devel] 2.6.37 dom0 non-fatal BUG: sleeping function called from invalid context at kernel/mutex.c:85
To: [email protected]
Cc: "Ian Campbell" <[email protected]>, "Konrad Rzeszutek Wilk" <[email protected]>
Date: Thursday, January 6, 2011, 12:36 PM

Hello,

First of all.. big thanks to everyone involved in upstreaming Xen dom0 bits!

I just tried upstream pvops 2.6.37 dom0 kernel on one of my machines, and it worked out-of-the-box ! Even nouveau kms/modesetting worked just fine.

There was non-fatal BUG/traceback though:

Full dmesg log available at: http://pasik.reaktio.net/xen/logs/dmesg-2.6.37-1.xendom0.fc15.x86_64-kms-modesetting.txt

[    9.930809] BUG: sleeping function called from invalid context at kernel/mutex.c:85 [    9.931616] in_atomic(): 0, irqs_disabled(): 1, pid: 572, name: kworker/0:2 [    9.932403] Pid: 572, comm: kworker/0:2 Not tainted 2.6.37-1.xendom0.fc15.x86_64 #1 [    9.933188] Call Trace:
[    9.933973]  [<ffffffff81042005>] __might_sleep+0xeb/0xf0
[    9.934758]  [<ffffffff81476e9e>] mutex_lock+0x24/0x50
[    9.935533]  [<ffffffff810abe14>] free_desc+0x2e/0x5f
[    9.936296]  [<ffffffff810abe80>] irq_free_descs+0x3b/0x71
[    9.937064]  [<ffffffff812ac0c8>] irq_free_desc+0x13/0x15
[    9.937812]  [<ffffffff812aca85>] xen_destroy_irq+0xe1/0xf5
[    9.938545]  [<ffffffff81477d3f>] ? _raw_spin_unlock_irqrestore+0x17/0x19 [    9.939270]  [<ffffffff813b70b9>] xen_teardown_msi_irq+0xe/0x10
[    9.939982]  [<ffffffff81255630>] default_teardown_msi_irqs+0x57/0x80 [    9.940674]  [<ffffffff812550f6>] free_msi_irqs+0x8b/0xe9
[    9.941352]  [<ffffffff81255ff4>] pci_disable_msix+0x35/0x39
[    9.942030]  [<ffffffffa005111a>] xhci_cleanup_msix+0x31/0x51 [xhci_hcd] [    9.942705]  [<ffffffffa0051d35>] xhci_suspend+0x199/0x1ab [xhci_hcd] [    9.943370]  [<ffffffffa00565ce>] xhci_pci_suspend+0x23/0x25 [xhci_hcd] [    9.944029]  [<ffffffff81350355>] suspend_common+0x65/0xe2
[    9.944677]  [<ffffffff810073df>] ? xen_restore_fl_direct_end+0x0/0x1 [    9.945318]  [<ffffffff813503eb>] hcd_pci_runtime_suspend+0x19/0x43
[    9.945955]  [<ffffffff8124549b>] pci_pm_runtime_suspend+0x58/0xea
[    9.946587]  [<ffffffff81245443>] ? pci_pm_runtime_suspend+0x0/0xea
[    9.947221]  [<ffffffff812ef7a0>] rpm_suspend+0x285/0x3c5
[    9.947836]  [<ffffffff810073df>] ? xen_restore_fl_direct_end+0x0/0x1 [    9.948445]  [<ffffffff8107d31f>] ? arch_local_irq_restore+0xb/0xd
[    9.949051]  [<ffffffff81477d3f>] ? _raw_spin_unlock_irqrestore+0x17/0x19 [    9.949648]  [<ffffffff8107d32c>] ? arch_local_irq_disable+0xb/0xd
[    9.950230]  [<ffffffff812f0357>] __pm_runtime_suspend+0x51/0x6d
[    9.950801]  [<ffffffff8124515b>] ? pci_pm_runtime_idle+0x0/0x4d
[    9.951359]  [<ffffffff812451a2>] pci_pm_runtime_idle+0x47/0x4d
[    9.951906]  [<ffffffff812efaa5>] rpm_idle+0x14d/0x18f
[    9.952445]  [<ffffffff812f042e>] ? pm_runtime_work+0x0/0xa0
[    9.952970]  [<ffffffff812f0499>] pm_runtime_work+0x6b/0xa0
[    9.953490]  [<ffffffff810665ab>] process_one_work+0x18c/0x285
[    9.954010]  [<ffffffff810673b2>] worker_thread+0x104/0x1a4
[    9.954526]  [<ffffffff810672ae>] ? worker_thread+0x0/0x1a4
[    9.955038]  [<ffffffff8106a9e3>] kthread+0x82/0x8a
[    9.955545]  [<ffffffff8100bae4>] kernel_thread_helper+0x4/0x10
[    9.956060]  [<ffffffff8100aee3>] ? int_ret_from_sys_call+0x7/0x1b
[    9.956575]  [<ffffffff814782dd>] ? retint_restore_args+0x5/0x6
[    9.957088]  [<ffffffff8100bae0>] ? kernel_thread_helper+0x0/0x10

-- Pasi

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 10 lines · Boris Derzhavets

In response to Michael Young post fedora-xen list :-

Quoted 1 line

There is a 2.6.37 kernel to test (2.6.37-1.xendom0.fc15)

Works for me under Xen 4.0.1 , but attempt to "startx" causes stack trace. Works as vanilla as well . Allows to run KVMs been built with standard fedora kernel.

Boris.

Haven't tried 2.6.37 yet but I have not been able to get X running with any of the dom0 kernels while using Ubuntu Lucid. I've always gotten a stack trace.

-Gerry

#2 lore raw

The most  pvops kernel  2.6.32.27 works fine with X  under Xen 4.0.1 ( Video Radeon HD 4650)  with kms enabled on following systems  :-

1. Ubuntu 10.04  Server + Ubuntu Desktop
2. Ubuntu 10.10  Server + Ubuntu Desktop
3. Fedora 14
4. Scientific Linux 6 Server ALPHA 3 ( RHEL 6 Server)

What Video Controller you have been using ?

Boris.

--- On Thu, 1/6/11, Gerry Reno <[email protected]> wrote:

From: Gerry Reno <[email protected]>
Subject: Re: [Xen-devel] 2.6.37 dom0 non-fatal BUG: sleeping function called from invalid context at kernel/mutex.c:85
To: [email protected]
Date: Thursday, January 6, 2011, 12:50 PM

Quoted 10 lines · Boris Derzhavets

In response to Michael Young post fedora-xen list :-

Quoted 1 line

There is a 2.6.37 kernel to test (2.6.37-1.xendom0.fc15)

Works for me under Xen 4.0.1 , but attempt to "startx" causes stack trace. Works as vanilla as well . Allows to run KVMs been built with standard fedora kernel.

Boris.

Haven't tried 2.6.37 yet but I have not been able to get X running with any of the dom0 kernels while using Ubuntu Lucid.  I've always gotten a stack trace.

-Gerry

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw
Quoted 12 lines · Boris Derzhavets

The most pvops kernel 2.6.32.27 works fine with X under Xen 4.0.1 ( Video Radeon HD 4650) with kms enabled on following systems :-

1. Ubuntu 10.04 Server + Ubuntu Desktop
2. Ubuntu 10.10 Server + Ubuntu Desktop
3. Fedora 14
4. Scientific Linux 6 Server ALPHA 3 ( RHEL 6 Server)

What Video Controller you have been using ?

Boris.

01:05.0 VGA compatible controller: ATI Technologies Inc Radeon HD 3300 Graphics
Subsystem: Giga-byte Technology Device d000
Flags: bus master, fast devsel, latency 0, IRQ 27 Memory at d0000000 (32-bit, prefetchable) [size=256M] I/O ports at ee00 [size=256]
Memory at fdfe0000 (32-bit, non-prefetchable) [size=64K] Memory at fde00000 (32-bit, non-prefetchable) [size=1M]
Capabilities: [50] Power Management version 3
Capabilities: [a0] Message Signalled Interrupts: Mask- 64bit+
Queue=0/0 Enable+
Kernel driver in use: fglrx_pci
Kernel modules: fglrx, radeon

-Gerry

#4 lore raw
Quoted 14 lines · Gerry Reno
Quoted 12 lines · Boris Derzhavets

The most pvops kernel 2.6.32.27 works fine with X under Xen 4.0.1 ( Video Radeon HD 4650) with kms enabled on following systems :-

1. Ubuntu 10.04 Server + Ubuntu Desktop
2. Ubuntu 10.10 Server + Ubuntu Desktop
3. Fedora 14
4. Scientific Linux 6 Server ALPHA 3 ( RHEL 6 Server)

What Video Controller you have been using ?

Boris.

Quoted 12 lines

01:05.0 VGA compatible controller: ATI Technologies Inc Radeon HD 3300 Graphics
Subsystem: Giga-byte Technology Device d000
Flags: bus master, fast devsel, latency 0, IRQ 27 Memory at d0000000 (32-bit, prefetchable) [size=256M] I/O ports at ee00 [size=256]
Memory at fdfe0000 (32-bit, non-prefetchable) [size=64K] Memory at fde00000 (32-bit, non-prefetchable) [size=1M]
Capabilities: [50] Power Management version 3
Capabilities: [a0] Message Signalled Interrupts: Mask- 64bit+
Queue=0/0 Enable+
Kernel driver in use: fglrx_pci

fglrx is the ATI binary only/proprietary driver? I think that's your problem. ATI are the only ones who can fix that to work with Xen.

The open source radeon driver does work just fine for me on 2.6.32 and has done for some time. I don't believe the required fixes are in 2.6.37 though, although they might be queued for 2.6.38.

Ian.

#5 lore raw
In reply to Gerry Reno
Quoted 9 lines · Gerry Reno
Quoted 8 lines · Boris Derzhavets

In response to Michael Young post fedora-xen list :-

Quoted 1 line

There is a 2.6.37 kernel to test (2.6.37-1.xendom0.fc15)

Works for me under Xen 4.0.1 , but attempt to "startx" causes stack trace. Works as vanilla as well . Allows to run KVMs been built with standard fedora kernel.

Quoted 7 lines
Quoted 2 lines

Boris.

Haven't tried 2.6.37 yet but I have not been able to get X running with any of the dom0 kernels while using Ubuntu Lucid. I've always gotten a stack trace.

Which kernels did you try?
Can you post the stack trace?

-- Pasi

#6 lore raw
Quoted 21 lines · Pasi Kärkkäinen
Quoted 11 lines · Gerry Reno
Quoted 9 lines · Boris Derzhavets

In response to Michael Young post fedora-xen list :-

Quoted 2 lines

There is a 2.6.37 kernel to test (2.6.37-1.xendom0.fc15)

Works for me under Xen 4.0.1 , but attempt to "startx" causes stack trace. Works as vanilla as well . Allows to run KVMs been built with standard fedora kernel.

Quoted 8 lines
Quoted 3 lines

Boris.

Haven't tried 2.6.37 yet but I have not been able to get X running with any of the dom0 kernels while using Ubuntu Lucid. I've always gotten a stack trace.

Quoted 5 lines

Which kernels did you try?
Can you post the stack trace?

-- Pasi

I'm using this machine currently so I can't reboot it to get a stack trace. Too much work open. It's probably the same stack trace that Boris got.
I tested using some 2.6.31 and 2.6.32 kernels.

-Gerry

#7 lore raw
Quoted 25 lines · Gerry Reno
Quoted 24 lines · Pasi Kärkkäinen
Quoted 11 lines · Gerry Reno
Quoted 9 lines · Boris Derzhavets

In response to Michael Young post fedora-xen list :-

Quoted 2 lines

There is a 2.6.37 kernel to test (2.6.37-1.xendom0.fc15)

Works for me under Xen 4.0.1 , but attempt to "startx" causes stack trace. Works as vanilla as well . Allows to run KVMs been built with standard fedora kernel.

Quoted 8 lines
Quoted 3 lines

Boris.

Haven't tried 2.6.37 yet but I have not been able to get X running with any of the dom0 kernels while using Ubuntu Lucid. I've always gotten a stack trace.

Which kernels did you try?
Can you post the stack trace?

Quoted 8 lines
Quoted 2 lines

-- Pasi

I'm using this machine currently so I can't reboot it to get a stack trace. Too much work open. It's probably the same stack trace that Boris got.
I tested using some 2.6.31 and 2.6.32 kernels.

2.6.31 tree is outdated and it doesn't have the gfx related fixes in it.

Also only the pretty recent 2.6.32.x versions have the drm/kms/ttm gfx related fixes (by konrad) in it.

So if it was many months ago when you tested, you should re-test.

-- Pasi

#8 lore raw
In reply to Gerry Reno
Quoted 2 lines

I tested using some 2.6.31 and 2.6.32 kernels.
-Gerry

Would suggest to try the most recent 2.6.32.27 pvops via Jeremy Git Repos

Boris.

--- On Thu, 1/6/11, Gerry Reno <[email protected]> wrote:

From: Gerry Reno <[email protected]>
Subject: Re: [Xen-devel] 2.6.37 dom0 non-fatal BUG: sleeping function called from invalid context at kernel/mutex.c:85
To: [email protected]
Date: Thursday, January 6, 2011, 1:12 PM

Quoted 20 lines · Pasi Kärkkäinen

On Thu, Jan 06, 2011 at 12:50:16PM -0500, Gerry Reno wrote:

Quoted 18 lines · Boris Derzhavets

Quoted 5 lines

In response to Michael Young post fedora-xen list :-

Quoted 2 lines

There is a 2.6.37 kernel to test (2.6.37-1.xendom0.fc15)

Quoted 7 lines

Works for me under Xen 4.0.1 , but attempt to "startx" causes stack trace. Works as vanilla as well . Allows to run KVMs been built with standard fedora kernel.

Boris.

Haven't tried 2.6.37 yet but I have not been able to get X running with any of the dom0 kernels while using Ubuntu Lucid.  I've always gotten a stack trace.

Quoted 6 lines
Quoted 1 line

Which kernels did you try?
Can you post the stack trace?

-- Pasi

I'm using this machine currently so I can't reboot it to get a stack trace.  Too much work open.  It's probably the same stack trace that Boris got.
I tested using some 2.6.31 and 2.6.32 kernels.

-Gerry

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#9 lore raw
In reply to Gerry Reno
Quoted 9 lines · Gerry Reno
Quoted 8 lines · Boris Derzhavets

In response to Michael Young post fedora-xen list :-

Quoted 1 line

There is a 2.6.37 kernel to test (2.6.37-1.xendom0.fc15)

Works for me under Xen 4.0.1 , but attempt to "startx" causes stack trace. Works as vanilla as well . Allows to run KVMs been built with standard fedora kernel.

Quoted 6 lines
Quoted 2 lines

Boris.

Haven't tried 2.6.37 yet but I have not been able to get X running with any of the dom0 kernels while using Ubuntu Lucid. I've always gotten a stack trace.

Can you try:

git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git

devel/fix-amd-bootup

branch please?

Quoted 8 lines

-Gerry

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#10 lore raw
Quoted 20 lines · Konrad Rzeszutek Wilk
Quoted 11 lines · Gerry Reno
Quoted 9 lines · Boris Derzhavets

In response to Michael Young post fedora-xen list :-

Quoted 2 lines

There is a 2.6.37 kernel to test (2.6.37-1.xendom0.fc15)

Works for me under Xen 4.0.1 , but attempt to "startx" causes stack trace. Works as vanilla as well . Allows to run KVMs been built with standard fedora kernel.

Quoted 7 lines
Quoted 3 lines

Boris.

Haven't tried 2.6.37 yet but I have not been able to get X running with any of the dom0 kernels while using Ubuntu Lucid. I've always gotten a stack trace.

Quoted 11 lines

Can you try:

git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git

devel/fix-amd-bootup

branch please?

Konrad,
Thanks. Yes, I'll try it but it won't be for a couple days.

Gerry