



































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




































2
IBM Systems & Technology Group – Cell/Quasar Ecosystem & Solutions Enablement
4
DMA transfers, mailbox messages,and signal-notification
All three are implemented andcontrolled by the SPE’s MFC
IBM Systems & Technology Group – Cell/Quasar Ecosystem & Solutions Enablement
5
Four 16B data rings connecting 12 bus elements –
Two clockwise / Two counter-clockwise
Physically overlaps all processor elements
Central arbiter supports up to three concurrent transfers per data ring –
Two stage, dual round robin arbiter
Each element port simultaneously supports 16B in and 16B out data path –
Ring topology is transparent to element data interface
16B
16B
16B
16B
Data Arb
16B
16B
16B
16B
16B
16B
16B
16B
16B
16B
16B
16B
16B16B16B16B
16B16B16B16B
SPE
SPE
SPE
SPE7 SPE
SPE
SPE
SPE
PPE MIC
BIF/IOIF
IOIF
IBM Systems & Technology Group – Cell/Quasar Ecosystem & Solutions Enablement
9
All operations on a given channel are unidirectional (they can be only read orwrite operations for a given channel,not bidirectional) 9
Accesses to channel-interface resources through MMIO addresses donot stall 9
Channel operations are done in program order 9
Channel read operations to reserved channels return ‘0’s 9
Channel write operations to reserved channels have no effect 9
Reading of channel counts on reserved channels returns ‘0’ 9
Channel instructions use the 32-bit preferred slot in a 128-bit transfer
IBM Systems & Technology Group – Cell/Quasar Ecosystem & Solutions Enablement
IBM Systems & Technology Group – Cell/Quasar Ecosystem & Solutions Enablement
10
IBM Systems & Technology Group – Cell/Quasar Ecosystem & Solutions Enablement
11
fenced
(all commands executed before within the same tag
group must finish first, later ones could be before)
barrier
(the barrier command and all commands issued
thereafter are not executed until all previously issued commands inthe same tag group have been performed)
IBM Systems & Technology Group – Cell/Quasar Ecosystem & Solutions Enablement
13
DMA transfers – transfer sizes can be 1, 2, 4, 8, and n*16 bytes (n integer) – maximum is 16KB per DMA transfer – 128B alignment is preferable
DMA command queues per SPU – 16-element queue for SPU-initiated requests – 8-element queue for PPE-initiated requests ¾
SPU-initiated DMA is always preferable
DMA tags – each DMA command is tagged with a 5-bit identifier – same identifier can be used for multiple commands – tags used for polling status or waiting on completion of DMA commands
DMA lists – a single DMA command can cause execution of a list of transfer requests (in LS) – lists implement scatter-gather functions – a list can contain up to 2K transfer requests
IBM Systems & Technology Group – Cell/Quasar Ecosystem & Solutions Enablement
IBM Systems & Technology Group – Cell/Quasar Ecosystem & Solutions Enablement
16
DMA read and write commands are non-blocking
Tags, tag groups, and tag masks used for: – checking status of DMA commands – waiting for completion of DMA commands
Each DMA command has a 5-bit tag – commands with same tag value form a “tag group”
Tag mask is used to identify tag groups for status checks – tag mask is a 32-bit word – each bit in the tag mask corresponds to a specific tag id:
tag_mask = (1 << tag_id)
IBM Systems & Technology Group – Cell/Quasar Ecosystem & Solutions Enablement
17
Set tag mask unsigned int tag_mask; mfc_write_tag_mask(tag_mask); – tag mask remains set until changed
Fetch tag status unsigned int result; result = mfc_read_tag_status();
/* or mfc_stat_tag_status(); */
tag id (corresponding to the status bit location) are still either in progress orin the DMA queue
IBM Systems & Technology Group – Cell/Quasar Ecosystem & Solutions Enablement
19
inline
void
dma_mem_to_ls(unsigned
int
mem_addr,
volatile
void
*ls_addr,unsigned
int
size)
{
unsigned
int
tag
=
0;
unsigned
int
mask
=
1;
mfc_get(ls_addr,mem_addr,size,tag,0,0); mfc_write_tag_mask(mask); mfc_read_tag_status_all();
}
Set tag mask^ Wait for all tagDMA completed
Read contentsof mem_addr
into ls_addr
IBM Systems & Technology Group – Cell/Quasar Ecosystem & Solutions Enablement
20
inline
void
dma_ls_to_mem(unsigned
int
mem_addr,volatile
void
*ls_addr,
unsigned
int
size)
{
unsigned
int
tag
=
0;
unsigned
int
mask
=
1;
mfc_put(ls_addr,mem_addr,size,tag,0,0); mfc_write_tag_mask(mask); mfc_read_tag_status_all();
}
Write contents of
mem_addr into
ls_addr
Set tag mask^ Set tag mask