Skip to contentSkip to conversation

powerpc/ps3: Fix lv1_gpu_attribute hcall

PATCH In review Geoff Levand 2 participants 2 messages Oct 12, 2011 – Oct 13, 2011

Subsystems (3)
lore
Share & tools
lore

Geoff Levand

author maintainer
#0 lore raw

PATCH 1/1 powerpc/ps3: Fix lv1_gpu_attribute hcall

The lv1_gpu_attribute hcall takes three, not five input arguments. Adjust the lv1 hcall table and all calls.

---
 arch/powerpc/include/asm/lv1call.h |    2 +-
 sound/ppc/snd_ps3.c                |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/include/asm/lv1call.h +1 -1
@@ -315,7 +315,7 @@ LV1_CALL(gpu_context_free,              
 LV1_CALL(gpu_context_iomap,                             5, 0, 221 )
 LV1_CALL(gpu_context_attribute,                         6, 0, 225 )
 LV1_CALL(gpu_context_intr,                              1, 1, 227 )
-LV1_CALL(gpu_attribute,                                 5, 0, 228 )
+LV1_CALL(gpu_attribute,                                 3, 0, 228 )
 LV1_CALL(get_rtc,                                       0, 2, 232 )
 LV1_CALL(set_ppe_periodic_tracer_frequency,             1, 0, 240 )
 LV1_CALL(start_ppe_periodic_tracer,                     5, 0, 241 )
sound/ppc/snd_ps3.c +1 -1
@@ -875,7 +875,7 @@ static void __devinit snd_ps3_audio_set_
 		(0x0fUL << 12) |
 		(PS3_AUDIO_IOID);
 
-	ret = lv1_gpu_attribute(0x100, 0x007, val, 0, 0);
+	ret = lv1_gpu_attribute(0x100, 0x007, val);
 	if (ret)
 		pr_info("%s: gpu_attribute failed %d\n", __func__,
 			ret);
Acked-by on v1 1/1
#1 lore raw

At Wed, 12 Oct 2011 11:42:13 -0700,

Quoted 6 lines · Geoff Levand

The lv1_gpu_attribute hcall takes three, not five input arguments. Adjust the lv1 hcall table and all calls.

Quoted 30 lines
---
 arch/powerpc/include/asm/lv1call.h |    2 +-
 sound/ppc/snd_ps3.c                |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/include/asm/lv1call.h +1 -1
@@ -315,7 +315,7 @@ LV1_CALL(gpu_context_free,              
 LV1_CALL(gpu_context_iomap,                             5, 0, 221 )
 LV1_CALL(gpu_context_attribute,                         6, 0, 225 )
 LV1_CALL(gpu_context_intr,                              1, 1, 227 )
-LV1_CALL(gpu_attribute,                                 5, 0, 228 )
+LV1_CALL(gpu_attribute,                                 3, 0, 228 )
 LV1_CALL(get_rtc,                                       0, 2, 232 )
 LV1_CALL(set_ppe_periodic_tracer_frequency,             1, 0, 240 )
 LV1_CALL(start_ppe_periodic_tracer,                     5, 0, 241 )
sound/ppc/snd_ps3.c +1 -1
@@ -875,7 +875,7 @@ static void __devinit snd_ps3_audio_set_
 		(0x0fUL << 12) |
 		(PS3_AUDIO_IOID);
 
-	ret = lv1_gpu_attribute(0x100, 0x007, val, 0, 0);
+	ret = lv1_gpu_attribute(0x100, 0x007, val);
 	if (ret)
 		pr_info("%s: gpu_attribute failed %d\n", __func__,
 			ret);