drm/amd/powerplay: update smu10_verify_smc_interface() to be raven2 compatible
authorEvan Quan <evan.quan@amd.com>
Fri, 15 Jun 2018 22:22:38 +0000 (17:22 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Sep 2018 14:37:01 +0000 (09:37 -0500)
Check the raven2 version number as well.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c

index bb07d43f3874454a9ba42d83dae54422b5154098..6f961dec20887f6cecc7fd82af407d1969bbc3fa 100644 (file)
@@ -177,7 +177,8 @@ static int smu10_verify_smc_interface(struct pp_hwmgr *hwmgr)
                        PPSMC_MSG_GetDriverIfVersion);
        smc_driver_if_version = smu10_read_arg_from_smc(hwmgr);
 
-       if (smc_driver_if_version != SMU10_DRIVER_IF_VERSION) {
+       if ((smc_driver_if_version != SMU10_DRIVER_IF_VERSION) &&
+           (smc_driver_if_version != SMU10_DRIVER_IF_VERSION + 1)) {
                pr_err("Attempt to read SMC IF Version Number Failed!\n");
                return -EINVAL;
        }