]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: Use unique CPER record id across devices
authorXiang Liu <xiang.liu@amd.com>
Thu, 6 Mar 2025 07:23:34 +0000 (15:23 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Mar 2025 17:54:08 +0000 (12:54 -0500)
commit148084bbb1e5131b3f1200c72c2b60d85e73aa75
tree6c0a949d681455e41a81de987e96bc97849ab122
parent216be476f14a8a129f1e3210d3c97b9a94942fea
drm/amdgpu: Use unique CPER record id across devices

Encode socket id to CPER record id to be unique across devices.

v2: add pointer check for adev->smuio.funcs->get_socket_id
v2: set 0 if adev->smuio.funcs->get_socket_id is NULL

Signed-off-by: Xiang Liu <xiang.liu@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c