Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/ps3: Fix hcall lv1_get_virtual_address_space_id_of_ppe

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>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Geoff Levand and committed by
Benjamin Herrenschmidt
b5ecc559 7652918c

+2 -2
+1 -1
arch/powerpc/include/asm/lv1call.h
··· 231 231 LV1_CALL(write_htab_entry, 4, 0, 1 ) 232 232 LV1_CALL(construct_virtual_address_space, 3, 2, 2 ) 233 233 LV1_CALL(invalidate_htab_entries, 5, 0, 3 ) 234 - LV1_CALL(get_virtual_address_space_id_of_ppe, 1, 1, 4 ) 234 + LV1_CALL(get_virtual_address_space_id_of_ppe, 0, 1, 4 ) 235 235 LV1_CALL(query_logical_partition_address_region_info, 1, 5, 6 ) 236 236 LV1_CALL(select_virtual_address_space, 1, 0, 7 ) 237 237 LV1_CALL(pause, 1, 0, 9 )
+1 -1
arch/powerpc/platforms/ps3/spu.c
··· 154 154 u64 id; 155 155 156 156 lv1_get_logical_ppe_id(&id); 157 - lv1_get_virtual_address_space_id_of_ppe(id, &id); 157 + lv1_get_virtual_address_space_id_of_ppe(&id); 158 158 159 159 return id; 160 160 }