]> www.infradead.org Git - users/hch/misc.git/commitdiff
Remove unnecessary firmware version check for gc v9_4_2
authorCandice Li <candice.li@amd.com>
Wed, 26 Mar 2025 05:41:01 +0000 (13:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Mar 2025 21:45:53 +0000 (17:45 -0400)
GC v9_4_2 uses a new versioning scheme for CP firmware, making
the warning ("CP firmware version too old, please update!") irrelevant.

Signed-off-by: Candice Li <candice.li@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

index 1080e9198ad9d0cbf586a76065875bde29224c8a..d7db4cb907ae55b9f68d8a9fcefd8dd7186395f6 100644 (file)
@@ -1269,6 +1269,7 @@ static void gfx_v9_0_check_fw_write_wait(struct amdgpu_device *adev)
        adev->gfx.mec_fw_write_wait = false;
 
        if ((amdgpu_ip_version(adev, GC_HWIP, 0) != IP_VERSION(9, 4, 1)) &&
+           (amdgpu_ip_version(adev, GC_HWIP, 0) != IP_VERSION(9, 4, 2)) &&
            ((adev->gfx.mec_fw_version < 0x000001a5) ||
             (adev->gfx.mec_feature_version < 46) ||
             (adev->gfx.pfp_fw_version < 0x000000b7) ||