drm/amdgpu: Add PSP fw version check for fw reserve GFX command
authorFrank Min <Frank.Min@amd.com>
Tue, 5 Aug 2025 14:30:54 +0000 (22:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Aug 2025 20:07:31 +0000 (16:07 -0400)
commite67b8afcb6d86f1bc6a69e4e52cf9dcfe636f995
tree8c3a4f4ffa885c488ae1e0586ecd0d3fd4d7b084
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
drm/amdgpu: Add PSP fw version check for fw reserve GFX command

The fw reserved GFX command is only supported starting from PSP fw
version 0x3a0e14 and 0x3b0e0d. Older versions do not support this command.

Add a version guard to ensure the command is only used when the running
PSP fw meets the minimum version requirement.

This ensures backward compatibility and safe operation across fw
revisions.

Fixes: a3b7f9c306e1 ("drm/amdgpu: reclaim psp fw reservation memory region")
Signed-off-by: Frank Min <Frank.Min@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 065e23170a1e09bc9104b761183e59562a029619)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c