drm/amd: Don't parse IMU ucode version if it won't be loaded
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 13 Oct 2023 19:26:03 +0000 (14:26 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2023 22:26:51 +0000 (18:26 -0400)
commit4916615fe96fb530517b0d46702c750c20a5601c
tree41754a80b52beda1cc7cb31c176ca2afb7bd6738
parentd757dfd667aad54c6ed0b6f22a11ad5a317663de
drm/amd: Don't parse IMU ucode version if it won't be loaded

When the IMU ucode is loaded by the PSP parsing the version that comes from
Linux will vary. Rather than showing the wrong data to kernel interface
consumers, avoid populating it in this case.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/imu_v11_0.c