]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/pm: Add helper functions for gpu metrics
authorLijo Lazar <lijo.lazar@amd.com>
Mon, 11 Aug 2025 13:37:05 +0000 (19:07 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Nov 2025 16:52:46 +0000 (11:52 -0500)
commitc3cd00fea6d6980faf32421495d0f48727ace89a
tree2598f5548b6bce36939c93e24b528a05242b44eb
parent4c4c138a1c86775c4d47e24f26357a1f8b64d0a3
drm/amd/pm: Add helper functions for gpu metrics

Add helper macros to define metrics struct definitions. It will define
structs with field type followed by actual field. A helper macro is also
added to initialize the field encoding for all fields and to initialize
the field members to 0xFFs.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h