History

drm/amdgpu: add new INFO IOCTL query for input power

Some chips provide both average and input power. Previously we just exposed average power, add a new query for input power. Example userspace: https://github.com/Umio-Yasuno/libdrm-amdgpu-sys-rs/tree/input_power

Alex Deucher committed 3 years ago

Commit d3f452f1 parent d4b9cfe2 files · +11 −0Browse files

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

Unified · Split

include/uapi/drm/amdgpu_drm.h+2−0
@@ -865,6 +865,8 @@ struct drm_amdgpu_cs_chunk_cp_gfx_shadow { · 864 unmodified lines
865865 #define AMDGPU_INFO_SENSOR_PEAK_PSTATE_GFX_SCLK 0xa
866866 /* Subquery id: Query GPU peak pstate memory clock */
867867 #define AMDGPU_INFO_SENSOR_PEAK_PSTATE_GFX_MCLK 0xb
868+ /* Subquery id: Query input GPU power */
869+ #define AMDGPU_INFO_SENSOR_GPU_INPUT_POWER 0xc
868870 /* Number of VRAM page faults on CPU access. */
869871 #define AMDGPU_INFO_NUM_VRAM_CPU_PAGE_FAULTS 0x1E
870872 #define AMDGPU_INFO_VRAM_LOST_COUNTER 0x1F

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