From: Scott Wood <scottwood@freescale.com>
To: McClintock Matthew-B29882 <B29882@freescale.com>
Cc: "<kvm-ppc@vger.kernel.org>" <kvm-ppc@vger.kernel.org>,
Wood Scott-B07421 <B07421@freescale.com>,
linuxppc-dev <linuxppc-dev@lists.ozlabs.org>,
Alexander Graf <agraf@suse.de>, kvm list <kvm@vger.kernel.org>
Subject: Re: [PATCH] PPC: Don't sync timebase when inside VM
Date: Thu, 8 Mar 2012 12:43:16 -0600 [thread overview]
Message-ID: <4F58FDC4.2080909@freescale.com> (raw)
In-Reply-To: <CAEsOVNcqSBh0hmgUQcJJjD28JbreBqYygHF7Q6Y8uaFzdj2PYw@mail.gmail.com>
On 03/08/2012 12:24 PM, McClintock Matthew-B29882 wrote:
> On Thu, Mar 8, 2012 at 12:20 PM, Scott Wood <scottwood@freescale.com> wrote:
>> On 03/08/2012 11:31 AM, McClintock Matthew-B29882 wrote:
>>> On Fri, Mar 2, 2012 at 11:17 AM, Scott Wood <scottwood@freescale.com> wrote:
>>>> On 03/02/2012 10:30 AM, Alexander Graf wrote:
>>>>>
>>>>> On 02.03.2012, at 17:20, Scott Wood wrote:
>>>>>> Again, for 85xx we should *never* sync the timebase in the kernel,
>>>>>> hypervisor or no.
>>>>>
>>>>> The code says "if the kexec config option is enabled, do the sync". I'm fairly sure it's there for a reason.
>>>>
>>>> Sigh. I forgot about that. It's because instead of doing kexec the
>>>> simple way, we actually physically reset the core. We really shouldn't
>>>> do that. And we *really* shouldn't do it just because CONFIG_KEXEC is
>>>> defined, regardless of whether we're actually booting from kexec.
>>>
>>> How would one rocver a core that's off in the weeds?
>>
>> System reset?
>
> kdump restarts a kernel using a reserved memory region to inspect the
> memory of the crashed kernel. Wouldn't system reset cause issues here?
Oh, kdump.
Maybe in that case, go ahead and reset the other cores (or halt them via
some other means), but don't do anything with them. Just boot a single
core in the dump kernel, do the dumping, then reset the system?
Or if you must sync the timebase in Linux, do it the way U-Boot does
(and skip it if you don't have access to the relevant CCSR bits).
Are I/O devices a problem with kdump and not resetting the system,
especially on some of our chips where certain I/O devices are difficult
to reset?
-Scott
next prev parent reply other threads:[~2012-03-08 18:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-02 14:12 [PATCH] PPC: Don't sync timebase when inside VM Alexander Graf
2012-03-02 16:20 ` Scott Wood
2012-03-02 16:30 ` Alexander Graf
2012-03-02 17:17 ` Scott Wood
2012-03-08 17:31 ` McClintock Matthew-B29882
2012-03-08 18:20 ` Scott Wood
2012-03-08 18:24 ` McClintock Matthew-B29882
2012-03-08 18:43 ` Scott Wood [this message]
2012-03-08 18:46 ` McClintock Matthew-B29882
2013-07-22 22:19 ` Scott Wood
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=4F58FDC4.2080909@freescale.com \
--to=scottwood@freescale.com \
--cc=B07421@freescale.com \
--cc=B29882@freescale.com \
--cc=agraf@suse.de \
--cc=kvm-ppc@vger.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.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).