Commit 84b77336 authored by Huang Rui's avatar Huang Rui Committed by Alex Deucher

drm/amdgpu: use DRM print instead of printk

Acked-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 841686df
...@@ -7687,9 +7687,8 @@ static int si_dpm_init_microcode(struct amdgpu_device *adev) ...@@ -7687,9 +7687,8 @@ static int si_dpm_init_microcode(struct amdgpu_device *adev)
out: out:
if (err) { if (err) {
printk(KERN_ERR DRM_ERROR("si_smc: Failed to load firmware. err = %d\"%s\"\n",
"si_smc: Failed to load firmware. err = %d\"%s\"\n", err, fw_name);
err, fw_name);
release_firmware(adev->pm.fw); release_firmware(adev->pm.fw);
adev->pm.fw = NULL; adev->pm.fw = NULL;
} }
...@@ -7908,15 +7907,15 @@ static void si_dpm_print_power_state(struct amdgpu_device *adev, ...@@ -7908,15 +7907,15 @@ static void si_dpm_print_power_state(struct amdgpu_device *adev,
amdgpu_dpm_print_class_info(rps->class, rps->class2); amdgpu_dpm_print_class_info(rps->class, rps->class2);
amdgpu_dpm_print_cap_info(rps->caps); amdgpu_dpm_print_cap_info(rps->caps);
printk("\tuvd vclk: %d dclk: %d\n", rps->vclk, rps->dclk); DRM_INFO("\tuvd vclk: %d dclk: %d\n", rps->vclk, rps->dclk);
for (i = 0; i < ps->performance_level_count; i++) { for (i = 0; i < ps->performance_level_count; i++) {
pl = &ps->performance_levels[i]; pl = &ps->performance_levels[i];
if (adev->asic_type >= CHIP_TAHITI) if (adev->asic_type >= CHIP_TAHITI)
printk("\t\tpower level %d sclk: %u mclk: %u vddc: %u vddci: %u pcie gen: %u\n", DRM_INFO("\t\tpower level %d sclk: %u mclk: %u vddc: %u vddci: %u pcie gen: %u\n",
i, pl->sclk, pl->mclk, pl->vddc, pl->vddci, pl->pcie_gen + 1); i, pl->sclk, pl->mclk, pl->vddc, pl->vddci, pl->pcie_gen + 1);
else else
printk("\t\tpower level %d sclk: %u mclk: %u vddc: %u vddci: %u\n", DRM_INFO("\t\tpower level %d sclk: %u mclk: %u vddc: %u vddci: %u\n",
i, pl->sclk, pl->mclk, pl->vddc, pl->vddci); i, pl->sclk, pl->mclk, pl->vddc, pl->vddci);
} }
amdgpu_dpm_print_ps_status(adev, rps); amdgpu_dpm_print_ps_status(adev, rps);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment