drm/amdgpu: Add unique_id support for sienna cichlid
authorKent Russell <kent.russell@amd.com>
Thu, 10 Feb 2022 00:56:46 +0000 (19:56 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 1 Apr 2022 03:05:54 +0000 (23:05 -0400)
commitebd9c071d29e56b21ef5155757e0da9926d8d814
tree49e666185c1727dfd8ed3e108ee43cae476e9863
parent4a93d938a4cbebaafa20cb3ca449eb501f118b40
drm/amdgpu: Add unique_id support for sienna cichlid

This is being added to SMU Metrics, so add the required tie-ins in the
kernel. Also create the corresponding unique_id sysfs file.

v2: Add FW version check, remove SMU mutex
v3: Fix style warning
v4: Add MP1 IP_VERSION check to FW version check

Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c
drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu11_driver_if_sienna_cichlid.h
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c