xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@eu.citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Ben Guthro <ben.guthro@gmail.com>,
	Marek Marczykowski <marmarek@invisiblethingslab.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Only CPU0 active after ACPI S3, xen 4.1.3
Date: Wed, 16 Jan 2013 11:58:19 +0000	[thread overview]
Message-ID: <50F695DB.6000402@eu.citrix.com> (raw)
In-Reply-To: <50F68D8F.7030704@eu.citrix.com>

On 16/01/13 11:22, George Dunlap wrote:
> On 03/01/13 08:52, Jan Beulich wrote:
>>>>> On 31.12.12 at 13:51, Ben Guthro <ben.guthro@gmail.com> wrote:
>>> My current suspicion is irq delivery, because of the following 
>>> messages I
>>> see on the console on the way down:
>>>
>>> (XEN) Preparing system for ACPI S3 state.
>>> (XEN) Disabling non-boot CPUs ...
>>> (XEN) Broke affinity for irq 1
>>> (XEN) Broke affinity for irq 9
>>> (XEN) Broke affinity for irq 12
>>> (XEN) Broke affinity for irq 26
>>> (XEN) Broke affinity for irq 30
>>> (XEN) Broke affinity for irq 1
>>> (XEN) Broke affinity for irq 1
>>> (XEN) Entering ACPI S3 state.
>> No, that's normal behavior. But you ought to be able to verify by
>> pinning Dom0's vCPU 0 to pCPU 0, and within Dom0 setting the
>> affinities of all interrupts to CPU 0 - that should make all of these
>> messages go away.
>>
>>> Jan - any suggestions on how to procede with this? FWIW, Xen 4.0.y 
>>> suspends
>>> on this machine reliably.
>> With two scheduler related changesets having got spotted as
>> problematic by now (23255:1f95b55ef427 and 23269:d67e4d12723f,
>> albeit the latter not really scheduler specific), I'm really very much
>> hoping for George to have an idea, the more that ...
>
> Marek,
>
> Sorry I haven't been following the thread -- have you tested this with 
> 4.2, with and without the corresponding patch reverted 
> (25079:d5ccb2d1dbd1)?  That might tell us whether the patch itself was 
> wrong, or whether there was a mistake in back-porting the patch 
> (possibly because of different invariants outside of the patched code).
>
> Jan, the commit message isn't very informative -- can you point me to 
> a conversation describing the problem you're fixing wrt 
> suspend/resume, and/or describe what you were trying to do?  Given the 
> results, the whole thing about not disabling scheduling during suspend 
> seems a bit suspect...

In particular, just on a fairly cursory bit of function call skimming, 
it looks like:
* This change means that cpupool.c:cpu_callback() won't call 
cpupool_cpu_add() when resuming
* cpupool_cpu_add() does a bunch of paperwork (which would be 
unnecessary given the changes re suspend), but also calls 
cpupool_assign_cpu_locked()
* cpupool_assign_cpu_locked() calls schedule_cpu_switch()
* schedule_cpu_switch() calls the scheduler's tick_resume()

So is it possible that on resume ticks are not being re-enabled, or 
something like that?

(And possibly related to Ben's problem, ticks are not being disabled on 
suspend?)

  -George

  reply	other threads:[~2013-01-16 11:58 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-29 18:55 Only CPU0 active after ACPI S3, xen 4.1.3 Marek Marczykowski
2012-11-30  9:33 ` Jan Beulich
2012-11-30 16:07   ` Marek Marczykowski
2012-11-30 16:12     ` Jan Beulich
2012-11-30 16:18       ` Marek Marczykowski
2012-12-03  7:39         ` Jan Beulich
2012-12-04 13:27           ` Marek Marczykowski
2012-12-20 15:59             ` Marek Marczykowski
2012-12-20 16:37               ` Jan Beulich
2012-12-20 19:41               ` Ben Guthro
2012-12-20 23:17                 ` Marek Marczykowski
2012-12-21  4:52                   ` Marek Marczykowski
2012-12-21  8:55                     ` Jan Beulich
2012-12-21 13:33                       ` Marek Marczykowski
2012-12-21 13:34                         ` Marek Marczykowski
2012-12-21 13:42                         ` Jan Beulich
2012-12-21 13:59                           ` Marek Marczykowski
2012-12-21 14:03                             ` Ben Guthro
2012-12-21 14:05                             ` Jan Beulich
2012-12-21 15:30                             ` Marek Marczykowski
2012-12-21 15:54                               ` Ben Guthro
2012-12-21 16:03                               ` Jan Beulich
2012-12-21 16:18                                 ` Ben Guthro
2012-12-23  2:49                                   ` Marek Marczykowski
2012-12-23 13:45                                     ` Ben Guthro
2012-12-31 12:51                                       ` Ben Guthro
2013-01-03  8:52                                         ` Jan Beulich
2013-01-16 11:22                                           ` George Dunlap
2013-01-16 11:58                                             ` George Dunlap [this message]
2013-01-16 13:08                                               ` Jan Beulich
2013-01-16 13:58                                                 ` George Dunlap
2013-01-16 14:31                                                   ` Jan Beulich
2013-01-03  8:52                         ` Jan Beulich
2013-01-12  7:05                           ` Marek Marczykowski
2013-01-14  3:28                             ` Marek Marczykowski
2012-11-30 21:33 ` Konrad Rzeszutek Wilk
2012-11-30 22:12   ` Ben Guthro

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=50F695DB.6000402@eu.citrix.com \
    --to=george.dunlap@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=ben.guthro@gmail.com \
    --cc=marmarek@invisiblethingslab.com \
    --cc=xen-devel@lists.xen.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).