qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] pseries machine updates
Date: Fri, 02 Sep 2011 15:20:26 +0200	[thread overview]
Message-ID: <4E60D81A.9030007@suse.de> (raw)
In-Reply-To: <20110901014510.GH11906@yookeroo.fritz.box>

On 09/01/2011 03:45 AM, David Gibson wrote:
> On Wed, Aug 31, 2011 at 11:17:13AM +0200, Alexander Graf wrote:
>> On 11.08.2011, at 02:39, David Gibson wrote:
>>
>>> On Wed, Aug 10, 2011 at 05:16:35PM +0200, Alexander Graf wrote:
>>>> On 08/04/2011 09:02 AM, David Gibson wrote:
>>>>> Hi Alex,
>>>>>
>>>>> Here's another batch of assorted updates for the pseries machine.
>>>> Looks pretty nice. Please update patch 2/6 with the bug you found
>>>> and the whitespace problems. I'll put the others into my tree
>>>> already.
>>> Here's the updated 2/6
>>>
>>>  From e5b9ba608d4814a46f256337bbf60b94fdc2c5d9 Mon Sep 17 00:00:00 2001
>>> From: Ben Herrenschmidt<benh@kernel.crashing.org>
>>> Date: Thu, 4 Aug 2011 16:56:41 +1000
>>> Subject: [PATCH] Implement POWER7's CFAR in TCG
>>>
>>> This patch implements support for the CFAR SPR on POWER7 (Come From
>>> Address Register), which snapshots the PC value at the time of a branch or
>>> an rfid.  The latest powerpc-next kernel also catches it and can show it in
>>> xmon or in the signal frames.
>>>
>>> This works well enough to let recent kernels boot (which otherwise oops
>>> on the CFAR access).  It hasn't been tested enough to be confident that the
>>> CFAR values are actually accurate, but one thing at a time.
>>>
>>> Signed-off-by: Ben Herrenschmidt<benh@kernel.crashing.org>
>>> Signed-off-by: David Gibson<david@gibson.dropbear.id.au>
>> agraf@lychee:/home/agraf/release/qemu>  git pw am 109480
>> ERROR: code indent should never use tabs
>> #107: FILE: target-ppc/translate.c:162:
>> +^I^I^I^I  offsetof(CPUState, cfar), "cfar");$
>>
>> ERROR: code indent should never use tabs
>> #174: FILE: target-ppc/translate.c:9289:
>> +^Icpu_fprintf(f, " CFAR " TARGET_FMT_lx"\n", env->cfar);$
> Blah.  Fixed now, I'll try to get BenH to use the emacs magic to stop
> it putting tabs in.
>
>> WARNING: space prohibited between function name and open parenthesis '('
>> #199: FILE: target-ppc/translate_init.c:134:
>> +static void spr_read_cfar (void *opaque, int gprn, int sprn)
>>
>> WARNING: space prohibited between function name and open parenthesis '('
>> #204: FILE: target-ppc/translate_init.c:139:
>> +static void spr_write_cfar (void *opaque, int sprn, int gprn)
> Well, these are deliberate, on the grounds that matching the
> surrounding functions seemed more important than matching the global
> style guidelines.
>
> Revised patch below
>
>  From b35b94ea867550faf99fc553b661739551c9bb8b Mon Sep 17 00:00:00 2001
> From: Ben Herrenschmidt<benh@kernel.crashing.org>
> Date: Thu, 4 Aug 2011 16:56:41 +1000
> Subject: [PATCH] Implement POWER7's CFAR in TCG
>
> This patch implements support for the CFAR SPR on POWER7 (Come From
> Address Register), which snapshots the PC value at the time of a branch or
> an rfid.  The latest powerpc-next kernel also catches it and can show it in
> xmon or in the signal frames.
>
> This works well enough to let recent kernels boot (which otherwise oops
> on the CFAR access).  It hasn't been tested enough to be confident that the
> CFAR values are actually accurate, but one thing at a time.
>
> Signed-off-by: Ben Herrenschmidt<benh@kernel.crashing.org>
> Signed-off-by: David Gibson<david@gibson.dropbear.id.au>
> ---
>   target-ppc/cpu.h            |    8 ++++++++
>   target-ppc/translate.c      |   28 ++++++++++++++++++++++++++++
>   target-ppc/translate_init.c |   23 ++++++++++++++++++++++-
>   3 files changed, 58 insertions(+), 1 deletions(-)

Thanks, applied. Please resend patches as full patches though. Patchwork 
doesn't deal too well with updated inline patches.


Alex

      reply	other threads:[~2011-09-02 13:20 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-04  7:02 [Qemu-devel] pseries machine updates David Gibson
2011-08-04  7:02 ` [Qemu-devel] [PATCH 1/6] pseries: Bugfixes for interrupt numbering in XICS code David Gibson
2011-08-04  7:02 ` [Qemu-devel] [PATCH 2/6] Implement POWER7's CFAR in TCG David Gibson
2011-08-10 15:10   ` Alexander Graf
2011-08-11  0:35     ` David Gibson
2011-08-04  7:02 ` [Qemu-devel] [PATCH 3/6] pseries: Add real mode debugging hcalls David Gibson
2011-08-10 15:19   ` Alexander Graf
2011-08-04  7:02 ` [Qemu-devel] [PATCH 4/6] pseries: Add a phandle to the xicp interrupt controller device tree node David Gibson
2011-08-04  7:02 ` [Qemu-devel] [PATCH 5/6] pseries: interrupt controller should not have a 'reg' property David Gibson
2011-08-04  7:02 ` [Qemu-devel] [PATCH 6/6] pseries: More complete WIMG validation in H_ENTER code David Gibson
2011-08-10 15:16 ` [Qemu-devel] pseries machine updates Alexander Graf
2011-08-10 15:24   ` Alexander Graf
2011-08-11  0:44     ` David Gibson
2011-08-31  9:18       ` Alexander Graf
2011-08-11  0:39   ` David Gibson
2011-08-31  9:17     ` Alexander Graf
2011-09-01  1:45       ` David Gibson
2011-09-02 13:20         ` Alexander Graf [this message]

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=4E60D81A.9030007@suse.de \
    --to=agraf@suse.de \
    --cc=qemu-devel@nongnu.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).