]> git.hungrycats.org Git - linux/commit
drm/amdgpu: Use memcpy to update IPD table for sriov guest
authorHawking Zhang <Hawking.Zhang@amd.com>
Sun, 1 Feb 2026 19:32:52 +0000 (03:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Mar 2026 17:58:07 +0000 (13:58 -0400)
commitc81761f2334f479ac865ab631e5166c15227adde
tree5c39f5dc0d4cc2b3f1d91429e34c0c2ca66ef0eb
parent01bdc7e219c4e10166a2eb4642e9e55af33b8ff5
drm/amdgpu: Use memcpy to update IPD table for sriov guest

On some hardware configuration, sriov guests
cannot access mm_index and mm_data. Update the
IPD table via memcpy in these cases

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h