]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: add helpers to access cross-die registers smn addr for soc v1_0
authorLe Ma <le.ma@amd.com>
Thu, 6 Nov 2025 04:03:04 +0000 (12:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Jan 2026 21:59:57 +0000 (16:59 -0500)
commit216779827f8d52a39d94d43c47737a829991ad8c
tree109fad601702a98541796b6633af8deaa8fa8db1
parent0dd72af5528a404fca78ef0cad26582d34560c9b
drm/amdgpu: add helpers to access cross-die registers smn addr for soc v1_0

Encode die_id/socket_id for upper 32bits of soc v1_0 registers SMN address.

v2: fix logical error caught by clang

Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc_v1_0.c
drivers/gpu/drm/amd/amdgpu/soc_v1_0.h