xref: /linux/Documentation/gpu/amdgpu/driver-misc.rst (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1================================
2 Misc AMDGPU driver information
3================================
4
5GPU Product Information
6=======================
7
8Information about the GPU can be obtained on certain cards
9via sysfs
10
11product_name
12------------
13
14.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
15   :doc: product_name
16
17product_number
18--------------
19
20.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
21   :doc: product_number
22
23serial_number
24-------------
25
26.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
27   :doc: serial_number
28
29fru_id
30-------------
31
32.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
33   :doc: fru_id
34
35manufacturer
36-------------
37
38.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c
39   :doc: manufacturer
40
41unique_id
42---------
43
44.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
45   :doc: unique_id
46
47board_info
48----------
49
50.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
51   :doc: board_info
52
53Accelerated Processing Units (APU) Info
54---------------------------------------
55
56.. csv-table::
57   :header-rows: 1
58   :widths: 3, 2, 2, 1, 1, 1, 1
59   :file: ./apu-asic-info-table.csv
60
61Discrete GPU Info
62-----------------
63
64.. csv-table::
65   :header-rows: 1
66   :widths: 3, 2, 2, 1, 1, 1
67   :file: ./dgpu-asic-info-table.csv
68
69
70GPU Memory Usage Information
71============================
72
73Various memory accounting can be accessed via sysfs
74
75mem_info_vram_total
76-------------------
77
78.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
79   :doc: mem_info_vram_total
80
81mem_info_vram_used
82------------------
83
84.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
85   :doc: mem_info_vram_used
86
87mem_info_vis_vram_total
88-----------------------
89
90.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
91   :doc: mem_info_vis_vram_total
92
93mem_info_vis_vram_used
94----------------------
95
96.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
97   :doc: mem_info_vis_vram_used
98
99mem_info_gtt_total
100------------------
101
102.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
103   :doc: mem_info_gtt_total
104
105mem_info_gtt_used
106-----------------
107
108.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
109   :doc: mem_info_gtt_used
110
111PCIe Accounting Information
112===========================
113
114pcie_bw
115-------
116
117.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
118   :doc: pcie_bw
119
120pcie_replay_count
121-----------------
122
123.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
124   :doc: pcie_replay_count
125
126GPU SmartShift Information
127==========================
128
129GPU SmartShift information via sysfs
130
131smartshift_apu_power
132--------------------
133
134.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
135   :doc: smartshift_apu_power
136
137smartshift_dgpu_power
138---------------------
139
140.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
141   :doc: smartshift_dgpu_power
142
143smartshift_bias
144---------------
145
146.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
147   :doc: smartshift_bias
148