Skip to contentSkip to conversation

ps3: fix gpu_context_allocate hcall

PATCH In review Geoff Levand 2 participants 3 messages Jan 25, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 12/14 ps3: fix gpu_context_allocate hcall

From: Geert Uytterhoeven <[email protected]>

PS3: lv1_gpu_context_allocate() takes only one input parameter

---
 include/asm-powerpc/lv1call.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
include/asm-powerpc/lv1call.h +1 -1
@@ -307,7 +307,7 @@ LV1_CALL(gpu_device_map,                
 LV1_CALL(gpu_device_unmap,                              1, 0, 213 )
 LV1_CALL(gpu_memory_allocate,                           5, 2, 214 )
 LV1_CALL(gpu_memory_free,                               1, 0, 216 )
-LV1_CALL(gpu_context_allocate,                          2, 5, 217 )
+LV1_CALL(gpu_context_allocate,                          1, 5, 217 )
 LV1_CALL(gpu_context_free,                              1, 0, 218 )
 LV1_CALL(gpu_context_iomap,                             5, 0, 221 )
 LV1_CALL(gpu_context_attribute,                         6, 0, 225 )
#2 lore raw
In reply to Geoff Levand
Quoted 15 lines · Geoff Levand

From: Geert Uytterhoeven <[email protected]>

PS3: lv1_gpu_context_allocate() takes only one input parameter

---
 include/asm-powerpc/lv1call.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

include/asm-powerpc/lv1call.h LV1_CALL(gpu_device_map, · line 313

Quoted 8 lines
include/asm-powerpc/lv1call.h +1 -1
@@ -307,7 +307,7 @@ LV1_CALL(gpu_device_map,                
 LV1_CALL(gpu_device_unmap,                              1, 0, 213 )
 LV1_CALL(gpu_memory_allocate,                           5, 2, 214 )
 LV1_CALL(gpu_memory_free,                               1, 0, 216 )
-LV1_CALL(gpu_context_allocate,                          2, 5, 217 )
+LV1_CALL(gpu_context_allocate,                          1, 5, 217 )
 LV1_CALL(gpu_context_free,                              1, 0, 218 )
 LV1_CALL(gpu_context_iomap,                             5, 0, 221 )
 LV1_CALL(gpu_context_attribute,                         6, 0, 225 )

Paul,

Please don't apply this one.

There was some discrepancy in the documents, and I just now got the final word from the lv1 team that this parameter is a flag, and is needed, but currently should be zero.

Sorry for the trouble.

-Geoff