Merge branch 'dev_ck_v2.1_xls_910_914' into 'dev_ck_v2.1'
1. add synch to spu_sw_queue.s.c See merge request ucp/driver/ucp4008_platform_spu!5
This commit is contained in:
commit
63cf238d85
@ -119,7 +119,8 @@ void spu_insert_cmd_ext(char *name, OSP_FUNCPTR pfunc, char *desc, uint32_t argn
|
||||
|
||||
memcpy_ucp(tlb[num].cmd, name, strlen(name) + 1);
|
||||
memcpy_ucp(tlb[num].descption, desc, strlen(desc) + 1);
|
||||
memcpy_ucp(tlb[num].wrapper, (OSP_FUNCPTR)spu_shell_wrapper, sizeof(OSP_FUNCPTR));
|
||||
tlb[num].wrapper = (OSP_FUNCPTR)spu_shell_wrapper;
|
||||
//memcpy_ucp(tlb[num].wrapper, (OSP_FUNCPTR)spu_shell_wrapper, sizeof(OSP_FUNCPTR));
|
||||
//memcpy_ucp(tlb[num].routine, pfunc, sizeof(OSP_FUNCPTR));
|
||||
tlb[num].routine = pfunc;
|
||||
tlb[num].argnum = argnum;
|
||||
|
@ -520,11 +520,14 @@ uint8_t spu_sw_enque(spu_sw_queue_index_e emqueue_idx, int8_t *pi8addr)
|
||||
u16enqueue_cnt++;
|
||||
u32msg_addr = u32queue_share_addr + SPU_APE_RFM_MSG_OFFSET + SPU_APE_RFM_MSG_SIZE*u16enqueue_idx;
|
||||
|
||||
__ucps2_synch(0);
|
||||
do_write_short(u32msg_addr, u16enque_idx);
|
||||
debug_write(DBG_DDR_COMMON_IDX(core_id, 124), u16enque_idx);
|
||||
//debug_write(DBG_DDR_COMMON_IDX(core_id, 125), u16enqueue_cnt);
|
||||
debug_write(DBG_DDR_COMMON_IDX(core_id, 126), u32msg_addr);
|
||||
debug_write(DBG_DDR_COMMON_IDX(core_id, 127), u32enque_addr);
|
||||
|
||||
__ucps2_synch(0);
|
||||
do_write_short(u32enque_addr, u16enqueue_cnt);
|
||||
return 0;
|
||||
}
|
||||
@ -563,6 +566,7 @@ uint8_t spu_sw_deque(spu_sw_queue_index_e emqueue_idx, uint32_t **pu32value)
|
||||
|
||||
u16queue_msg_idx = do_read_short(u32msg_addr);
|
||||
*pu32value = (uint32_t *)(gst_sw_queue_mem[emqueue_idx].u32addr + (u16queue_msg_idx)*SPU_APE_RFM_QUE_SIG_SIZE);
|
||||
__ucps2_synch(0);
|
||||
do_write_short(u32deque_addr, u16dequeue_cnt);
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user