Amdgpu driver is used in an extensive range of devices, and each ASIC has some specific configuration. As a result of this variety, sometimes it is hard to identify the correct block that might cause the issue. This commit expands the amdgpu kernel-doc to alleviate this issue by introducing one ASIC table that describes dGPU and another one that shares the APU info. Cc: Harry Wentland <harry.wentland@amd.com> Cc: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com> Cc: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Cc: Hersen Wu <hersenxs.wu@amd.com> Cc: Alex Hung <alex.hung@amd.com> Cc: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Cc: Leo Li <sunpeng.li@amd.com> Cc: Simon Ser <contact@emersion.fr> Cc: Pekka Paalanen <pekka.paalanen@collabora.com> Cc: Sean Paul <seanpaul@chromium.org> Cc: Mark Yacoub <markyacoub@chromium.org> Cc: Pierre-Loup <pgriffais@valvesoftware.com> Cc: Michel Dänzer <michel.daenzer@mailbox.org> Cc: Kent Russell <Kent.Russell@amd.com> Reviewed-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
130 lines
2.5 KiB
ReStructuredText
130 lines
2.5 KiB
ReStructuredText
================================
|
|
Misc AMDGPU driver information
|
|
================================
|
|
|
|
GPU Product Information
|
|
=======================
|
|
|
|
Information about the GPU can be obtained on certain cards
|
|
via sysfs
|
|
|
|
product_name
|
|
------------
|
|
|
|
.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
|
|
:doc: product_name
|
|
|
|
product_number
|
|
--------------
|
|
|
|
.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
|
|
:doc: product_name
|
|
|
|
serial_number
|
|
-------------
|
|
|
|
.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
|
|
:doc: serial_number
|
|
|
|
unique_id
|
|
---------
|
|
|
|
.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
|
|
:doc: unique_id
|
|
|
|
Accelerated Processing Units (APU) Info
|
|
---------------------------------------
|
|
|
|
.. csv-table::
|
|
:header-rows: 1
|
|
:widths: 3, 2, 2, 1, 1, 1
|
|
:file: ./apu-asic-info-table.csv
|
|
|
|
Discrete GPU Info
|
|
-----------------
|
|
|
|
.. csv-table::
|
|
:header-rows: 1
|
|
:widths: 3, 2, 2, 1, 1, 1
|
|
:file: ./dgpu-asic-info-table.csv
|
|
|
|
|
|
GPU Memory Usage Information
|
|
============================
|
|
|
|
Various memory accounting can be accessed via sysfs
|
|
|
|
mem_info_vram_total
|
|
-------------------
|
|
|
|
.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
|
|
:doc: mem_info_vram_total
|
|
|
|
mem_info_vram_used
|
|
------------------
|
|
|
|
.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
|
|
:doc: mem_info_vram_used
|
|
|
|
mem_info_vis_vram_total
|
|
-----------------------
|
|
|
|
.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
|
|
:doc: mem_info_vis_vram_total
|
|
|
|
mem_info_vis_vram_used
|
|
----------------------
|
|
|
|
.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
|
|
:doc: mem_info_vis_vram_used
|
|
|
|
mem_info_gtt_total
|
|
------------------
|
|
|
|
.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
|
|
:doc: mem_info_gtt_total
|
|
|
|
mem_info_gtt_used
|
|
-----------------
|
|
|
|
.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
|
|
:doc: mem_info_gtt_used
|
|
|
|
PCIe Accounting Information
|
|
===========================
|
|
|
|
pcie_bw
|
|
-------
|
|
|
|
.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
|
|
:doc: pcie_bw
|
|
|
|
pcie_replay_count
|
|
-----------------
|
|
|
|
.. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
|
|
:doc: pcie_replay_count
|
|
|
|
GPU SmartShift Information
|
|
==========================
|
|
|
|
GPU SmartShift information via sysfs
|
|
|
|
smartshift_apu_power
|
|
--------------------
|
|
|
|
.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
|
|
:doc: smartshift_apu_power
|
|
|
|
smartshift_dgpu_power
|
|
---------------------
|
|
|
|
.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
|
|
:doc: smartshift_dgpu_power
|
|
|
|
smartshift_bias
|
|
---------------
|
|
|
|
.. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
|
|
:doc: smartshift_bias
|