]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu/vcn: reset fw_shared when VCPU buffers corrupted on vcn v4.0.3
authorXiang Liu <xiang.liu@amd.com>
Fri, 15 Nov 2024 08:59:30 +0000 (16:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:04:08 +0000 (20:04 +0100)
commit3c1d06bbad225585a98eb9977b392b6bc810fad6
tree7521dceca72c8fdfa09cf80bb2373a92c8163f70
parente451d7ca7870fe3c970e91532ffeb7272f36f894
drm/amdgpu/vcn: reset fw_shared when VCPU buffers corrupted on vcn v4.0.3

[ Upstream commit 928cd772e18ffbd7723cb2361db4a8ccf2222235 ]

It is not necessarily corrupted. When there is RAS fatal error, device
memory access is blocked. Hence vcpu bo cannot be saved to system memory
as in a regular suspend sequence before going for reset. In other full
device reset cases, that gets saved and restored during resume.

v2: Remove redundant code like vcn_v4_0 did
v2: Refine commit message
v3: Drop the volatile
v3: Refine commit message

Signed-off-by: Xiang Liu <xiang.liu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Stanley.Yang <Stanley.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c