drm/amd: Detect IFWI or PD upgrade support in psp_early_init()
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 27 Jun 2023 21:22:26 +0000 (16:22 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Jul 2023 17:51:47 +0000 (13:51 -0400)
commite7347f1c73cd2c0df09a59e90fd31e599e239b61
tree3b6ae2feb67d6fa530230edc46592eb0719942ab
parent649663af73f59ca6f7dc9021b93c087877e4d8e3
drm/amd: Detect IFWI or PD upgrade support in psp_early_init()

Rather than evaluating the IP version for visibility, evaluate it
at the same time as the IP is initialized.

Suggested-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h