
Recall first from The memory hierarchy and why it limits the GPU
- The memory hierarchy runs from per-thread registers to per-block shared memory and L1, then a device-wide L2, then DRAM.
- Occupancy is active warps divided by max warps per SM, limited by registers, shared memory and threads.
- Latency hiding means the SM runs other warps while one warp waits on memory; low occupancy starves the scheduler.
Which GPUs live inside embedded SoCs?
3 min readIn the last lesson you saw how the memory hierarchy limits a discrete GPU. Embedded SoCs avoid that gap by putting the GPU on the same die and the same memory as the CPU, and this lesson answers which GPU families do this and how.
When moving a GPU program from a Raspberry Pi 4 to a Raspberry Pi 5, you need to account for a change in GPU generation even though both boards use Broadcom SoCs. The Pi 4 has VideoCore VI and the Pi 5 has VideoCore VII. Linux documents its V3D GPU driver separately from the display hardware that sends the finished image to a monitor. That distinction matters when a board can display a desktop but a program still fails to initialize the GPU interface it needs. Linux V3D driver documentation
A A system on a chip, or SoC, integrates processors and other hardware functions on a single chip. These can include a GPU, memory controllers, and interfaces to external devices. The GPU family identifies the design used for the graphics processor. The SoC model identifies the chip that implements it, and the board model identifies the product that carries that chip. Keep those names separate when checking whether your program can run on a target.
| GPU family or platform | Where you encounter it |
|---|---|
| NVIDIA GPU in Tegra | NVIDIA Jetson modules use Tegra SoCs. Tegra names the SoC family, and the GPU architecture varies across Jetson generations. Jetson is the platform in this list associated with CUDA. |
| Arm Mali | Chip vendors integrate Mali graphics designs into their own SoCs. Bifrost and Valhall are two Mali architecture generations, represented by GPUs such as the Mali-G52 and Mali-G57 respectively. |
| Broadcom VideoCore | Raspberry Pi 4 pairs the BCM2711 with VideoCore VI. Raspberry Pi 5 pairs the BCM2712 with VideoCore VII. |
| Imagination PowerVR | PowerVR designs appear in SoCs from other vendors. The original BeagleBone Black is an embedded example, with a PowerVR SGX530 in its Texas Instruments AM335x SoC. |
| Qualcomm Adreno | Qualcomm integrates Adreno GPUs into Snapdragon SoCs, including chips used in phones and embedded products. The exact Adreno model depends on the Snapdragon chip. |
The SoC vendor and the GPU designer can be different companies. If a board specification gives you only the chip name, use that chip model to identify its GPU. If it gives you only a family name such as Mali, look for the exact model. A GPU generation is useful when reading a driver support list because that list may cover a specific set of GPU models. On a BeagleBone Black, for example, the SGX530 entry establishes which hardware is present. Using it from an Ubuntu installation requires a compatible software stack for that hardware.
What the CPU and GPU share
3 min readA Unified memory architecture, or UMA, means the CPU and integrated GPU use the same physical system memory. In these embedded designs, system DRAM supplies the storage for both CPU and GPU allocations. There is no separate bank of discrete VRAM dedicated to the GPU. The DRAM chips can still sit outside the SoC. The CPU and GPU reach that memory through the SoC's interconnect and memory controllers.
A typical discrete GPU has its own VRAM. If a CPU program decodes a frame into system RAM and the discrete GPU will process it in VRAM, the frame must reach that separate memory before the GPU uses it there. On an embedded SoC, a compatible allocation can let the CPU write the frame and the GPU read the same physical bytes in system DRAM. The data still travels through the memory system when the GPU reads it. The transfer you can avoid is a copy of the full frame into a second allocation for the GPU.
Sharing a physical pool and sharing a particular buffer are two distinct properties. Suppose a program decodes an image into one allocation and then uploads it through a graphics interface that creates a second allocation. On a UMA board, both allocations may reside in system DRAM and the upload may still copy the pixel data. If the producer and consumer can use the same allocation, they also need to agree on the format and layout of the image. For example, the GPU must know where each row starts and how the bytes in that row represent pixels.
Access also needs to occur in the correct order. If the CPU is still writing the last rows while the GPU starts reading, the GPU could process an incomplete frame. The program needs a way to establish that the writer has finished and that its writes are visible to the reader. The CPU and GPU may use different addresses to refer to the same physical buffer. Use the buffer and synchronization mechanisms supported by the driver and API. Linux DMA-BUF is one mechanism for sharing buffers between drivers, with documented rules for coordinating access. Linux DMA-BUF documentation
The shared pool changes capacity planning, too. The operating system, CPU program, and GPU all draw from system DRAM. If a program retains its input frames while the GPU produces output frames in separate buffers, both sets of frames occupy that pool at the same time. Other devices, such as a display controller reading a frame for output, can also use the same memory system. To understand the cost of a pipeline, count the allocations that must coexist and identify the stages that read or write each one. An avoided copy saves the reads and writes associated with that copy. The processing and display stages still make their own memory requests.
Power budgets and Linux driver support
3 min readA 5 to 15 W envelope is a useful example for low-power embedded operation. Treat it as a range for selected systems or operating modes. Embedded GPU families span products outside that range, and a power figure needs a measurement boundary. A module budget can cover the CPU, GPU, memory, and other module hardware. A reading at the board's power input can also include board circuitry or attached devices supplied through that input. A quoted GPU-only measurement would answer a different question.
The boundary matters when several functions run together. Consider a board that captures video, processes frames on the GPU, and prepares results on the CPU. Each function can contribute to the power consumed within the board's budget. A brief GPU run on a cool board shows how that run behaved under its initial conditions. To evaluate whether the board can maintain the required frame rate in service, you need evidence from sustained operation with the relevant workload, power mode, and cooling. The GPU family name identifies the design lineage. It supplies neither a measured power figure for your workload nor a sustained frame rate.
Many embedded GPU stacks have mobile origins. Phones and similar devices need responsive graphics under battery and cooling limits. OpenGL ES and EGL are common interfaces in that ecosystem, and some stacks also expose Vulkan. On an embedded Linux product, the stack may come from the SoC vendor's board support package or from upstream Linux and Mesa. NVIDIA's Jetson software stack also provides CUDA support. The exact operating system image matters because the kernel driver, any required firmware, and the userspace driver have to support the hardware and the interface your program uses.
Start with the program's requirement. A CUDA program needs a CUDA-capable target and a compatible software stack. A Vulkan program needs a Vulkan implementation for the target and the features it uses. On Linux, a DRM render node can give a program access to GPU rendering without giving it control over display modes. Finding a render node therefore tells you something about kernel access. To establish that a specific program can run, also identify the userspace implementation and check that it exposes the API and features the program requires. Linux DRM userspace API documentation
When comparing two boards, record the board and SoC models, the exact GPU, the operating system image and driver stack, and the interface the program needs. Then identify which buffers the program can share and what the quoted power figure covers. Those details explain why a program can need changes when moved between two UMA boards, even though both have an integrated GPU. In “The Jetson lineup and unified memory,” you will apply this platform comparison to NVIDIA Jetson and see how its lineup gives concrete examples of the memory design introduced here.
Key takeaways
- Jetson uses NVIDIA Tegra, Raspberry Pi 4 and 5 use VideoCore VI and VII respectively, and Mali, PowerVR, and Adreno are other embedded GPU families.
- In the unified memory architecture described here, CPU and GPU allocations draw from system DRAM and the GPU has no separate VRAM.
- Sharing a physical buffer can avoid a payload copy when the software stack supports sharing and coordinates access.
- A 5 to 15 W figure describes a low-power operating envelope at a specified boundary, and API support depends on the installed driver stack.
Reflect
- Explain to a colleague, in two sentences: match five embedded GPU families to their vendors and SoC platforms.
- Which objective are you least sure about? Re-read that section, then do its exercise in the practice pack.
- What surprised you when you ran the commands yourself?
On a real board
Repeat the key commands on your Raspberry Pi or lab board over SSH or the serial console. Note anything that behaves differently from your PC, such as missing tools, a BusyBox shell or a read-only filesystem.
References and further reading
- Kernel documentationVideoCore V3D: the Linux GPU driver
- Kernel documentationDRM UAPI: render nodes and userspace access
- Kernel documentationDMA-BUF: buffer sharing and synchronization
Official documentation first. Links checked when the lesson was published.