drm/amdgpu/pm: make unsupported power profile messages debug
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Feb 2021 17:21:07 +0000 (12:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Feb 2021 22:23:49 +0000 (17:23 -0500)
Making them an error confuses users and the errors are harmless
as not all asics support all profiles.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1488
Acked-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c

index 45564a776e9b2228d48ba299c1123a8ef343ae1c..9f0d03ae310924be9a919327a8ea33e1be943e6a 100644 (file)
@@ -1322,7 +1322,7 @@ static int arcturus_set_power_profile_mode(struct smu_context *smu,
                                                       CMN2ASIC_MAPPING_WORKLOAD,
                                                       profile_mode);
        if (workload_type < 0) {
-               dev_err(smu->adev->dev, "Unsupported power profile mode %d on arcturus\n", profile_mode);
+               dev_dbg(smu->adev->dev, "Unsupported power profile mode %d on arcturus\n", profile_mode);
                return -EINVAL;
        }
 
index 7b7ae5532ddb9de04ff29aa66f8fb67c0da4652c..fd5539f8b53a9729ac51c3c7316f2e9d9312519d 100644 (file)
@@ -810,7 +810,7 @@ static int vangogh_set_power_profile_mode(struct smu_context *smu, long *input,
                                                       CMN2ASIC_MAPPING_WORKLOAD,
                                                       profile_mode);
        if (workload_type < 0) {
-               dev_err_once(smu->adev->dev, "Unsupported power profile mode %d on VANGOGH\n",
+               dev_dbg(smu->adev->dev, "Unsupported power profile mode %d on VANGOGH\n",
                                        profile_mode);
                return -EINVAL;
        }
index 9a8b1a1e148e07eeedb20a87184d7f9e6703435e..c9f766cbe22712f6397175f002f2d8e4dde70d70 100644 (file)
@@ -826,7 +826,7 @@ static int renoir_set_power_profile_mode(struct smu_context *smu, long *input, u
                 * TODO: If some case need switch to powersave/default power mode
                 * then can consider enter WORKLOAD_COMPUTE/WORKLOAD_CUSTOM for power saving.
                 */
-               dev_err_once(smu->adev->dev, "Unsupported power profile mode %d on RENOIR\n", profile_mode);
+               dev_dbg(smu->adev->dev, "Unsupported power profile mode %d on RENOIR\n", profile_mode);
                return -EINVAL;
        }