]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/pm: Add smu vram copy function
authorLijo Lazar <lijo.lazar@amd.com>
Fri, 27 Mar 2026 07:43:00 +0000 (13:13 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Apr 2026 17:51:54 +0000 (13:51 -0400)
commitf2275ea90be581f599e7c88a9dbfc5dd4383087d
treec7a1b3aac6e1f86711e7dd462fee18be7541474f
parent1d0a26cf37c1b2e9928d2b61af6f282232b5daea
drm/amd/pm: Add smu vram copy function

Add a wrapper function for copying data/to from vram. This additionally
checks for any RAS fatal error. Copy cannot be trusted if any RAS fatal
error happened as VRAM becomes inaccessible.

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.c
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h