linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Geoff Levand <geoff@infradead.org>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: cbe-oss-dev@lists.ozlabs.org, linuxppc-dev@lists.ozlabs.org
Subject: [PATCH 3/8] powerpc/ps3: Fix hcall lv1_get_virtual_address_space_id_of_ppe
Date: Wed, 30 Nov 2011 01:38:49 +0000	[thread overview]
Message-ID: <da809ff2ee6de9a2930da3c3918a659d05904f5d.1322615824.git.geoff@infradead.org> (raw)
In-Reply-To: <cover.1322615824.git.geoff@infradead.org>

The lv1_get_virtual_address_space_id_of_ppe hcall takes 0, not 1 input
arguments.  Adjust the lv1 hcall table and all calls.

Signed-off-by: Geoff Levand <geoff@infradead.org>
---
 arch/powerpc/include/asm/lv1call.h |    2 +-
 arch/powerpc/platforms/ps3/spu.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/include/asm/lv1call.h b/arch/powerpc/include/asm/lv1call.h
index 807d895..3ddf66c 100644
--- a/arch/powerpc/include/asm/lv1call.h
+++ b/arch/powerpc/include/asm/lv1call.h
@@ -231,7 +231,7 @@ LV1_CALL(allocate_memory,                               4, 2,   0 )
 LV1_CALL(write_htab_entry,                              4, 0,   1 )
 LV1_CALL(construct_virtual_address_space,               3, 2,   2 )
 LV1_CALL(invalidate_htab_entries,                       5, 0,   3 )
-LV1_CALL(get_virtual_address_space_id_of_ppe,           1, 1,   4 )
+LV1_CALL(get_virtual_address_space_id_of_ppe,           0, 1,   4 )
 LV1_CALL(query_logical_partition_address_region_info,   1, 5,   6 )
 LV1_CALL(select_virtual_address_space,                  1, 0,   7 )
 LV1_CALL(pause,                                         1, 0,   9 )
diff --git a/arch/powerpc/platforms/ps3/spu.c b/arch/powerpc/platforms/ps3/spu.c
index 451fad1..e17fa14 100644
--- a/arch/powerpc/platforms/ps3/spu.c
+++ b/arch/powerpc/platforms/ps3/spu.c
@@ -154,7 +154,7 @@ static unsigned long get_vas_id(void)
 	u64 id;
 
 	lv1_get_logical_ppe_id(&id);
-	lv1_get_virtual_address_space_id_of_ppe(id, &id);
+	lv1_get_virtual_address_space_id_of_ppe(&id);
 
 	return id;
 }
-- 
1.7.0.4

  parent reply	other threads:[~2011-11-30  1:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-30  1:38 [GIT PULL] PS3 updates for powerpc next Geoff Levand
2011-11-30  1:38 ` [PATCH 2/8] powerpc/ps3: Fix hcall lv1_net_stop_rx_dma Geoff Levand
2011-11-30  1:50   ` Geoff Levand
2011-11-30  1:38 ` [PATCH 1/8] powerpc/ps3: Interrupt code cleanup Geoff Levand
2011-11-30  1:38 ` Geoff Levand [this message]
2011-11-30  1:38 ` [PATCH 5/8] powerpc/ps3: Fix hcall lv1_read_repository_node Geoff Levand
2011-11-30  1:38 ` [PATCH 6/8] powerpc/ps3: Fix pr_debug build warnings Geoff Levand
2011-11-30 20:57   ` Geert Uytterhoeven
2011-12-01 18:58     ` [PATCH 6/8 v2] powerpc/ps3: Fix PS3 repository " Geoff Levand
2011-11-30  1:38 ` [PATCH 7/8] powerpc/ps3: Add __init to ps3_smp_probe Geoff Levand
2011-11-30  1:38 ` [PATCH 4/8] powerpc/ps3: Fix hcall lv1_get_version_info Geoff Levand
2011-11-30  1:38 ` [PATCH 8/8] powerpc/ps3: Update ps3_defconfig Geoff Levand

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=da809ff2ee6de9a2930da3c3918a659d05904f5d.1322615824.git.geoff@infradead.org \
    --to=geoff@infradead.org \
    --cc=benh@kernel.crashing.org \
    --cc=cbe-oss-dev@lists.ozlabs.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).