remove redundacy debug log in smu.
eg:
[ 6897.969447] amdgpu: [powerplay] smu 11 clk dpm feature 1 is not enabled
[ 6897.969448] amdgpu: [powerplay] smu 11 clk dpm feature 1 is not enabled
[ 6897.969448] amdgpu: [powerplay] smu 11 clk dpm feature 1 is not enabled
[ 6899.024114] amdgpu: [powerplay] Unsupported SMU message: 38
[ 6899.024151] amdgpu: [powerplay] smu 11 clk dpm feature 1 is not enabled
[ 6899.024151] amdgpu: [powerplay] smu 11 clk dpm feature 1 is not enabled
[ 6899.024152] amdgpu: [powerplay] smu 11 clk dpm feature 1 is not enabled
[ 6900.078296] amdgpu: [powerplay] Unsupported SMU message: 38
[ 6900.078332] amdgpu: [powerplay] smu 11 clk dpm feature 1 is not enabled
[ 6900.078332] amdgpu: [powerplay] smu 11 clk dpm feature 1 is not enabled
[ 6900.078333] amdgpu: [powerplay] smu 11 clk dpm feature 1 is not enabled
[ 6901.133230] amdgpu: [powerplay] Unsupported SMU message: 38
Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
}
if(!smu_feature_is_enabled(smu, feature_id)) {
- pr_warn("smu %d clk dpm feature %d is not enabled\n", clk_type, feature_id);
return false;
}
mapping = navi10_message_map[index];
if (!(mapping.valid_mapping)) {
- pr_warn("Unsupported SMU message: %d\n", index);
return -EINVAL;
}
mapping = navi10_clk_map[index];
if (!(mapping.valid_mapping)) {
- pr_warn("Unsupported SMU clock: %d\n", index);
return -EINVAL;
}
mapping = navi10_feature_mask_map[index];
if (!(mapping.valid_mapping)) {
- pr_warn("Unsupported SMU feature: %d\n", index);
return -EINVAL;
}
mapping = navi10_table_map[index];
if (!(mapping.valid_mapping)) {
- pr_warn("Unsupported SMU table: %d\n", index);
return -EINVAL;
}
mapping = navi10_pwr_src_map[index];
if (!(mapping.valid_mapping)) {
- pr_warn("Unsupported power source: %d\n", index);
return -EINVAL;
}
mapping = navi10_workload_map[profile];
if (!(mapping.valid_mapping)) {
- pr_warn("Unsupported workload: %d\n", (int)profile);
return -EINVAL;
}
mapping = vega20_table_map[index];
if (!(mapping.valid_mapping)) {
- pr_warn("Unsupported SMU table: %d\n", index);
return -EINVAL;
}
mapping = vega20_pwr_src_map[index];
if (!(mapping.valid_mapping)) {
- pr_warn("Unsupported power source: %d\n", index);
return -EINVAL;
}
mapping = vega20_feature_mask_map[index];
if (!(mapping.valid_mapping)) {
- pr_warn("Unsupported SMU feature: %d\n", index);
return -EINVAL;
}
mapping = vega20_clk_map[index];
if (!(mapping.valid_mapping)) {
- pr_warn("Unsupported SMU clock: %d\n", index);
return -EINVAL;
}
mapping = vega20_message_map[index];
if (!(mapping.valid_mapping)) {
- pr_warn("Unsupported SMU message: %d\n", index);
return -EINVAL;
}
mapping = vega20_workload_map[profile];
if (!(mapping.valid_mapping)) {
- pr_warn("Unsupported SMU workload: %d\n", (int)profile);
return -EINVAL;
}