]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: Enable IFWI update support for PSPv14.0.2 and v14.0.3
authorShiwu Zhang <shiwu.zhang@amd.com>
Wed, 28 May 2025 12:51:11 +0000 (20:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Jun 2025 16:19:01 +0000 (12:19 -0400)
Make the psp_vbflash and psp_vbflash_status available in sysfs.

v2: make it available for v14.0.2 as well (hawking)

Signed-off-by: Shiwu Zhang <shiwu.zhang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index e6f0b035e20b22e111a7396f6d78ae9b922cd223..5c462d5a4aec1161f12e7eec0a5a33a60bc8cc02 100644 (file)
@@ -252,6 +252,7 @@ static int psp_early_init(struct amdgpu_ip_block *ip_block)
                break;
        case IP_VERSION(14, 0, 2):
        case IP_VERSION(14, 0, 3):
+               adev->psp.sup_ifwi_up = !amdgpu_sriov_vf(adev);
                psp_v14_0_set_psp_funcs(psp);
                break;
        case IP_VERSION(14, 0, 5):