History

drm/xe/uapi: Add block diagram of a device

In order to make proper use the uAPI, a prerequisite is to understand some key concepts about the discrete GPU devices which are supported by the Xe driver. For example, some structs defined in the uAPI are an abstraction of a hardware component with a specific role. This diagram helps to build a mental representation of a device how it is seen by the Xe driver. As written in the documentation, it does not intend to be a literal representation of an existing device. A lot more information could be added but the intention for the overview is to keep it simple, and go into detail as needed in other sections. v2: Add GT1 inside Tile0 (José Roberto de Souza)

Francois Dugast committed 2 years ago

Commit 33c6fda1 parent 535881a1 file · +39 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/drm/xe_drm.h+39−0
@@ -23,6 +23,45 @@ extern "C" { · 22 unmodified lines
23 * 5. uEvents23 * 5. uEvents
24 */24 */
25 25
26/**
27 * DOC: Xe Device Block Diagram
28 *
29 * The diagram below represents a high-level simplification of a discrete
30 * GPU supported by the Xe driver. It shows some device components which
31 * are necessary to understand this API, as well as how their relations
32 * to each other. This diagram does not represent real hardware::
33 *
34 * ┌──────────────────────────────────────────────────────────────────┐
35 * │ ┌──────────────────────────────────────────────────┐ ┌─────────┐ │
36 * │ │ ┌───────────────────────┐ ┌─────┐ │ │ ┌─────┐ │ │
37 * │ │ │ VRAM0 ├───┤ ... │ │ │ │VRAM1│ │ │
38 * │ │ └───────────┬───────────┘ └─GT1─┘ │ │ └──┬──┘ │ │
39 * │ │ ┌──────────────────┴───────────────────────────┐ │ │ ┌──┴──┐ │ │
40 * │ │ │ ┌─────────────────────┐ ┌─────────────────┐ │ │ │ │ │ │ │
41 * │ │ │ │ ┌──┐ ┌──┐ ┌──┐ ┌──┐ │ │ ┌─────┐ ┌─────┐ │ │ │ │ │ │ │ │
42 * │ │ │ │ │EU│ │EU│ │EU│ │EU│ │ │ │RCS0 │ │BCS0 │ │ │ │ │ │ │ │ │
43 * │ │ │ │ └──┘ └──┘ └──┘ └──┘ │ │ └─────┘ └─────┘ │ │ │ │ │ │ │ │
44 * │ │ │ │ ┌──┐ ┌──┐ ┌──┐ ┌──┐ │ │ ┌─────┐ ┌─────┐ │ │ │ │ │ │ │ │
45 * │ │ │ │ │EU│ │EU│ │EU│ │EU│ │ │ │VCS0 │ │VCS1 │ │ │ │ │ │ │ │ │
46 * │ │ │ │ └──┘ └──┘ └──┘ └──┘ │ │ └─────┘ └─────┘ │ │ │ │ │ │ │ │
47 * │ │ │ │ ┌──┐ ┌──┐ ┌──┐ ┌──┐ │ │ ┌─────┐ ┌─────┐ │ │ │ │ │ │ │ │
48 * │ │ │ │ │EU│ │EU│ │EU│ │EU│ │ │ │VECS0│ │VECS1│ │ │ │ │ │ ... │ │ │
49 * │ │ │ │ └──┘ └──┘ └──┘ └──┘ │ │ └─────┘ └─────┘ │ │ │ │ │ │ │ │
50 * │ │ │ │ ┌──┐ ┌──┐ ┌──┐ ┌──┐ │ │ ┌─────┐ ┌─────┐ │ │ │ │ │ │ │ │
51 * │ │ │ │ │EU│ │EU│ │EU│ │EU│ │ │ │CCS0 │ │CCS1 │ │ │ │ │ │ │ │ │
52 * │ │ │ │ └──┘ └──┘ └──┘ └──┘ │ │ └─────┘ └─────┘ │ │ │ │ │ │ │ │
53 * │ │ │ └─────────DSS─────────┘ │ ┌─────┐ ┌─────┐ │ │ │ │ │ │ │ │
54 * │ │ │ │ │CCS2 │ │CCS3 │ │ │ │ │ │ │ │ │
55 * │ │ │ ┌─────┐ ┌─────┐ ┌─────┐ │ └─────┘ └─────┘ │ │ │ │ │ │ │ │
56 * │ │ │ │ ... │ │ ... │ │ ... │ │ │ │ │ │ │ │ │ │
57 * │ │ │ └─DSS─┘ └─DSS─┘ └─DSS─┘ └─────Engines─────┘ │ │ │ │ │ │ │
58 * │ │ └───────────────────────────GT0────────────────┘ │ │ └─GT2─┘ │ │
59 * │ └────────────────────────────Tile0─────────────────┘ └─ Tile1──┘ │
60 * └─────────────────────────────Device0───────┬──────────────────────┘
61 * │
62 * ───────────────────────┴────────── PCI bus
63 */
64
26/**65/**
27 * DOC: Xe uAPI Overview66 * DOC: Xe uAPI Overview
28 *67 *

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t