02.08.2013 Views

P4080 PCIe Adapter SDK User Guide Production Release

P4080 PCIe Adapter SDK User Guide Production Release

P4080 PCIe Adapter SDK User Guide Production Release

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Freescale Semiconductor<br />

qportal1: qman-portal@4000 {<br />

cell-index = ;<br />

compatible = "fsl,p4080-qman-portal", "fsl,qman-portal";<br />

fsl,usdpaa-portal;<br />

reg = ;<br />

cpu-handle = ;<br />

interrupts = ;<br />

fsl,qman-channel-id = ;<br />

fsl,qman-pool-channels = ;<br />

};<br />

There is no mechanism provided to determine what, if anything, user space software will do with a given<br />

user space portal. Initially, these portals are present but not initialized. Each user space portal has a /dev<br />

entry. It is a USDPAA driver decision as to which portals a given process or thread will use. A portal is<br />

placed into use when a user space process or thread requests it via the QMan API.<br />

4.8 Note on the current USDPAA Implementation<br />

In the current implementation, portals are bound to cores via the cpu-handle in the portal device tree node.<br />

Most commonly, a thread will make itself affine to its portal’s core. If it does not, stashing may be done<br />

to the wrong core’s cache. This is not necessarily functionally incorrect, but it is not efficient.<br />

4.9 Buffer Manager (BMan)<br />

The BMan driver and its software support is very similar to QMan’s. BMan software portals may be used<br />

in the kernel or in user space just like QMan portals. Just as with QMan, the same BMan software API is<br />

available in both the kernel and in user space. This API also is defined in the “Queue Manager, Buffer<br />

Manager API Reference Manual.”<br />

4.10 DMA-Memory Management<br />

The Freescale DPAA hardware provides several peripherals such as FMan, SEC, and PME that read and<br />

© Freescale Semiconductor, Inc., 2011. All rights reserved.<br />

Freescale Confidential Proprietary Page 23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!