]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/ras: snapshot remote cmd header to fix double-fetch
authorStanley.Yang <Stanley.Yang@amd.com>
Tue, 12 May 2026 07:44:28 +0000 (15:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jun 2026 17:50:34 +0000 (13:50 -0400)
commitf9db1378f11092c4f22737331c4f2adad1bc0045
tree224736c91bfa6bcf883fa4032323a629ab20f8fd
parent01f38e607a2262450d54736ad2b69497c72f36dd
drm/amd/ras: snapshot remote cmd header to fix double-fetch

The response header lives in PF-controlled shared memory. Copy it
into a local struct once, then read cmd_res and output_size from the
snapshot so the PF cannot flip cmd_res or grow output_size between
checks.

Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_virt_ras_cmd.c