Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) =========================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2)  drm/amdgpu AMDgpu driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3) =========================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5) The drm/amdgpu driver supports all AMD Radeon GPUs based on the Graphics Core
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6) Next (GCN) architecture.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) Module Parameters
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) =================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) The amdgpu driver supports the following module parameters:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) Core Driver Infrastructure
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) ==========================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) This section covers core driver infrastructure.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) .. _amdgpu_memory_domains:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) Memory Domains
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) --------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) .. kernel-doc:: include/uapi/drm/amdgpu_drm.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26)    :doc: memory domains
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) Buffer Objects
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) --------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32)    :doc: amdgpu_object
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35)    :internal:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) PRIME Buffer Sharing
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) --------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41)    :doc: PRIME Buffer Sharing
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44)    :internal:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) MMU Notifier
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) ------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50)    :doc: MMU Notifier
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53)    :internal:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) AMDGPU Virtual Memory
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) ---------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59)    :doc: GPUVM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62)    :internal:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) Interrupt Handling
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) ------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68)    :doc: Interrupt Handling
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71)    :internal:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) IP Blocks
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) ------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) .. kernel-doc:: drivers/gpu/drm/amd/include/amd_shared.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77)    :doc: IP Blocks
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) .. kernel-doc:: drivers/gpu/drm/amd/include/amd_shared.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80)    :identifiers: amd_ip_block_type amd_ip_funcs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) AMDGPU XGMI Support
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) ===================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) AMDGPU RAS Support
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) ==================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) The AMDGPU RAS interfaces are exposed via sysfs (for informational queries) and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) debugfs (for error injection).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) RAS debugfs/sysfs Control and Error Injection Interfaces
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) --------------------------------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97)    :doc: AMDGPU RAS debugfs control interface
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) RAS Reboot Behavior for Unrecoverable Errors
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) --------------------------------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103)    :doc: AMDGPU RAS Reboot Behavior for Unrecoverable Errors
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) RAS Error Count sysfs Interface
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) -------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109)    :doc: AMDGPU RAS sysfs Error Count Interface
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) RAS EEPROM debugfs Interface
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) ----------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115)    :doc: AMDGPU RAS debugfs EEPROM table reset interface
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) RAS VRAM Bad Pages sysfs Interface
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) ----------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121)    :doc: AMDGPU RAS sysfs gpu_vram_bad_pages Interface
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) Sample Code
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) -----------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) Sample code for testing error injection can be found here:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) https://cgit.freedesktop.org/mesa/drm/tree/tests/amdgpu/ras_tests.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) This is part of the libdrm amdgpu unit tests which cover several areas of the GPU.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) There are four sets of tests:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) RAS Basic Test
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) The test verifies the RAS feature enabled status and makes sure the necessary sysfs and debugfs files
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) are present.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) RAS Query Test
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) This test checks the RAS availability and enablement status for each supported IP block as well as
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) the error counts.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) RAS Inject Test
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) This test injects errors for each IP.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) RAS Disable Test
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) This test tests disabling of RAS features for each IP block.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) GPU Power/Thermal Controls and Monitoring
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) =========================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) This section covers hwmon and power/thermal controls.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) HWMON Interfaces
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) ----------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) .. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159)    :doc: hwmon
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) GPU sysfs Power State Interfaces
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) --------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) GPU power controls are exposed via sysfs files.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) power_dpm_state
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) ~~~~~~~~~~~~~~~
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) .. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170)    :doc: power_dpm_state
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) power_dpm_force_performance_level
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) .. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176)    :doc: power_dpm_force_performance_level
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) pp_table
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) ~~~~~~~~
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) .. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182)    :doc: pp_table
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) pp_od_clk_voltage
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) ~~~~~~~~~~~~~~~~~
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) .. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188)    :doc: pp_od_clk_voltage
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) pp_dpm_*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) ~~~~~~~~
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) .. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194)    :doc: pp_dpm_sclk pp_dpm_mclk pp_dpm_socclk pp_dpm_fclk pp_dpm_dcefclk pp_dpm_pcie
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) pp_power_profile_mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) ~~~~~~~~~~~~~~~~~~~~~
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) .. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200)    :doc: pp_power_profile_mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) \*_busy_percent
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) ~~~~~~~~~~~~~~~
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) .. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206)    :doc: gpu_busy_percent
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) .. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209)    :doc: mem_busy_percent
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) gpu_metrics
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) ~~~~~~~~~~~~~~~~~~~~~
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) .. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215)    :doc: gpu_metrics
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) GPU Product Information
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) =======================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) Information about the GPU can be obtained on certain cards
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) via sysfs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) product_name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) ------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227)    :doc: product_name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) product_number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) --------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233)    :doc: product_name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) serial_number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) -------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239)    :doc: serial_number
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) unique_id
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) ---------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244) .. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245)    :doc: unique_id
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247) GPU Memory Usage Information
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248) ============================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 249) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 250) Various memory accounting can be accessed via sysfs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 251) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 252) mem_info_vram_total
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 253) -------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 254) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 255) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 256)    :doc: mem_info_vram_total
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 257) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 258) mem_info_vram_used
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 259) ------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 260) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 261) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 262)    :doc: mem_info_vram_used
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 263) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 264) mem_info_vis_vram_total
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 265) -----------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 266) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 267) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 268)    :doc: mem_info_vis_vram_total
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 269) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 270) mem_info_vis_vram_used
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 271) ----------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 272) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 273) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 274)    :doc: mem_info_vis_vram_used
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 275) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 276) mem_info_gtt_total
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 277) ------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 278) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 279) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 280)    :doc: mem_info_gtt_total
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 281) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 282) mem_info_gtt_used
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 283) -----------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 284) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 285) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 286)    :doc: mem_info_gtt_used
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 287) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 288) PCIe Accounting Information
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 289) ===========================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 290) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 291) pcie_bw
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 292) -------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 293) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 294) .. kernel-doc:: drivers/gpu/drm/amd/pm/amdgpu_pm.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 295)    :doc: pcie_bw
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 296) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 297) pcie_replay_count
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 298) -----------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 299) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 300) .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 301)    :doc: pcie_replay_count
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 302) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 303)