All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Ben Guthro <ben@guthro.net>
Cc: Konrad Rzeszutek <konrad@darnok.org>,
	Xen Devel <xen-devel@lists.xensource.com>
Subject: Re: debugging spinlocks
Date: Mon, 30 Jan 2012 16:34:20 +0000	[thread overview]
Message-ID: <4F26C68C.7020600@citrix.com> (raw)
In-Reply-To: <CAOvdn6We7=dqynZnC9eRosrQV9LzEgPAJMmvWh=wa87Ty+6ggg@mail.gmail.com>

On 30/01/12 16:27, Ben Guthro wrote:
> Konrad, et al.
>
> I'm having an issue with my guests that, when I am running wireless
> drivers in dom0, and the PV-on-HVM guest tries to access the network -
> I get a hung dom0.
>
> When I turn on
> Kernel Hacking->
> Spinlock and rw-lock debugging: basic checks
>
> The hang goes away, but does not print out anything terribly useful in
> the serial log.
>
>
> The config file  changes made by this menuconfig setting can be found below:
>
>
> While I know from other conversations, that Konrad is aware of my
> setup, for other's benefit - this is a 64bit dom0 3.2.2 kernel, with a
> few of his branches pulled in.
>
> Any thoughts, or suggestions on how best to debug these deadlocks
> would be greatly appreciated.

It looks like
http://lists.xen.org/archives/html/xen-devel/2012-01/msg01917.html might
apply to you.

Does that patch help?

~Andrew

>
> -Ben Guthro
>
>
> diff --git a/configs/config.ubuntu.amd64 b/configs/config.ubuntu.amd64
> index 205b5c6..f7a233f 100644
> --- a/configs/config.ubuntu.amd64
> +++ b/configs/config.ubuntu.amd64
> @@ -257,27 +257,27 @@ CONFIG_PADATA=y
>  # CONFIG_INLINE_SPIN_LOCK_BH is not set
>  # CONFIG_INLINE_SPIN_LOCK_IRQ is not set
>  # CONFIG_INLINE_SPIN_LOCK_IRQSAVE is not set
> -CONFIG_INLINE_SPIN_UNLOCK=y
> +# CONFIG_INLINE_SPIN_UNLOCK is not set
>  # CONFIG_INLINE_SPIN_UNLOCK_BH is not set
> -CONFIG_INLINE_SPIN_UNLOCK_IRQ=y
> +# CONFIG_INLINE_SPIN_UNLOCK_IRQ is not set
>  # CONFIG_INLINE_SPIN_UNLOCK_IRQRESTORE is not set
>  # CONFIG_INLINE_READ_TRYLOCK is not set
>  # CONFIG_INLINE_READ_LOCK is not set
>  # CONFIG_INLINE_READ_LOCK_BH is not set
>  # CONFIG_INLINE_READ_LOCK_IRQ is not set
>  # CONFIG_INLINE_READ_LOCK_IRQSAVE is not set
> -CONFIG_INLINE_READ_UNLOCK=y
> +# CONFIG_INLINE_READ_UNLOCK is not set
>  # CONFIG_INLINE_READ_UNLOCK_BH is not set
> -CONFIG_INLINE_READ_UNLOCK_IRQ=y
> +# CONFIG_INLINE_READ_UNLOCK_IRQ is not set
>  # CONFIG_INLINE_READ_UNLOCK_IRQRESTORE is not set
>  # CONFIG_INLINE_WRITE_TRYLOCK is not set
>  # CONFIG_INLINE_WRITE_LOCK is not set
>  # CONFIG_INLINE_WRITE_LOCK_BH is not set
>  # CONFIG_INLINE_WRITE_LOCK_IRQ is not set
>  # CONFIG_INLINE_WRITE_LOCK_IRQSAVE is not set
> -CONFIG_INLINE_WRITE_UNLOCK=y
> +# CONFIG_INLINE_WRITE_UNLOCK is not set
>  # CONFIG_INLINE_WRITE_UNLOCK_BH is not set
> -CONFIG_INLINE_WRITE_UNLOCK_IRQ=y
> +# CONFIG_INLINE_WRITE_UNLOCK_IRQ is not set
>  # CONFIG_INLINE_WRITE_UNLOCK_IRQRESTORE is not set
>  CONFIG_MUTEX_SPIN_ON_OWNER=y
>  CONFIG_FREEZER=y
> @@ -398,7 +398,7 @@ CONFIG_HAVE_MEMBLOCK_NODE_MAP=y
>  CONFIG_ARCH_DISCARD_MEMBLOCK=y
>  # CONFIG_MEMORY_HOTPLUG is not set
>  CONFIG_PAGEFLAGS_EXTENDED=y
> -CONFIG_SPLIT_PTLOCK_CPUS=4
> +CONFIG_SPLIT_PTLOCK_CPUS=999999
>  # CONFIG_COMPACTION is not set
>  CONFIG_MIGRATION=y
>  CONFIG_PHYS_ADDR_T_64BIT=y
> @@ -4255,7 +4255,7 @@ CONFIG_TIMER_STATS=y
>  # CONFIG_DEBUG_KMEMLEAK is not set
>  # CONFIG_DEBUG_RT_MUTEXES is not set
>  # CONFIG_RT_MUTEX_TESTER is not set
> -# CONFIG_DEBUG_SPINLOCK is not set
> +CONFIG_DEBUG_SPINLOCK=y
>  # CONFIG_DEBUG_MUTEXES is not set
>  # CONFIG_DEBUG_LOCK_ALLOC is not set
>  # CONFIG_PROVE_LOCKING is not set
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

-- 
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer
T: +44 (0)1223 225 900, http://www.citrix.com

  reply	other threads:[~2012-01-30 16:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-30 16:27 debugging spinlocks Ben Guthro
2012-01-30 16:34 ` Andrew Cooper [this message]
2012-01-30 17:32   ` Ben Guthro
2012-01-31 11:00     ` David Vrabel
2012-01-30 16:40 ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F26C68C.7020600@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=ben@guthro.net \
    --cc=konrad@darnok.org \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.