Commit dd4fa6c1 authored by Aurabindo Pillai's avatar Aurabindo Pillai Committed by Alex Deucher

drm/amd/amdgpu: remove hardcoded module name in prints

Let format prefixes take care of printing the module name
through pr_fmt and dev_fmt definitions.
Signed-off-by: default avatarAurabindo Pillai <mail@aurabindo.in>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 539489fc
...@@ -362,13 +362,13 @@ static int vm_validate_pt_pd_bos(struct amdgpu_vm *vm) ...@@ -362,13 +362,13 @@ static int vm_validate_pt_pd_bos(struct amdgpu_vm *vm)
ret = amdgpu_vm_validate_pt_bos(adev, vm, amdgpu_amdkfd_validate, ret = amdgpu_vm_validate_pt_bos(adev, vm, amdgpu_amdkfd_validate,
&param); &param);
if (ret) { if (ret) {
pr_err("amdgpu: failed to validate PT BOs\n"); pr_err("failed to validate PT BOs\n");
return ret; return ret;
} }
ret = amdgpu_amdkfd_validate(&param, pd); ret = amdgpu_amdkfd_validate(&param, pd);
if (ret) { if (ret) {
pr_err("amdgpu: failed to validate PD\n"); pr_err("failed to validate PD\n");
return ret; return ret;
} }
...@@ -377,7 +377,7 @@ static int vm_validate_pt_pd_bos(struct amdgpu_vm *vm) ...@@ -377,7 +377,7 @@ static int vm_validate_pt_pd_bos(struct amdgpu_vm *vm)
if (vm->use_cpu_for_update) { if (vm->use_cpu_for_update) {
ret = amdgpu_bo_kmap(pd, NULL); ret = amdgpu_bo_kmap(pd, NULL);
if (ret) { if (ret) {
pr_err("amdgpu: failed to kmap PD, ret=%d\n", ret); pr_err("failed to kmap PD, ret=%d\n", ret);
return ret; return ret;
} }
} }
......
...@@ -1187,7 +1187,7 @@ static void amdgpu_switcheroo_set_state(struct pci_dev *pdev, enum vga_switchero ...@@ -1187,7 +1187,7 @@ static void amdgpu_switcheroo_set_state(struct pci_dev *pdev, enum vga_switchero
return; return;
if (state == VGA_SWITCHEROO_ON) { if (state == VGA_SWITCHEROO_ON) {
pr_info("amdgpu: switched on\n"); pr_info("switched on\n");
/* don't suspend or resume card normally */ /* don't suspend or resume card normally */
dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; dev->switch_power_state = DRM_SWITCH_POWER_CHANGING;
...@@ -1201,7 +1201,7 @@ static void amdgpu_switcheroo_set_state(struct pci_dev *pdev, enum vga_switchero ...@@ -1201,7 +1201,7 @@ static void amdgpu_switcheroo_set_state(struct pci_dev *pdev, enum vga_switchero
dev->switch_power_state = DRM_SWITCH_POWER_ON; dev->switch_power_state = DRM_SWITCH_POWER_ON;
drm_kms_helper_poll_enable(dev); drm_kms_helper_poll_enable(dev);
} else { } else {
pr_info("amdgpu: switched off\n"); pr_info("switched off\n");
drm_kms_helper_poll_disable(dev); drm_kms_helper_poll_disable(dev);
dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; dev->switch_power_state = DRM_SWITCH_POWER_CHANGING;
amdgpu_device_suspend(dev, true); amdgpu_device_suspend(dev, true);
......
...@@ -260,7 +260,7 @@ int amdgpu_irq_init(struct amdgpu_device *adev) ...@@ -260,7 +260,7 @@ int amdgpu_irq_init(struct amdgpu_device *adev)
nvec = pci_alloc_irq_vectors(adev->pdev, 1, 1, flags); nvec = pci_alloc_irq_vectors(adev->pdev, 1, 1, flags);
if (nvec > 0) { if (nvec > 0) {
adev->irq.msi_enabled = true; adev->irq.msi_enabled = true;
dev_dbg(adev->dev, "amdgpu: using MSI/MSI-X.\n"); dev_dbg(adev->dev, "using MSI/MSI-X.\n");
} }
} }
......
...@@ -858,7 +858,7 @@ static int gmc_v6_0_sw_init(void *handle) ...@@ -858,7 +858,7 @@ static int gmc_v6_0_sw_init(void *handle)
r = dma_set_mask_and_coherent(adev->dev, DMA_BIT_MASK(44)); r = dma_set_mask_and_coherent(adev->dev, DMA_BIT_MASK(44));
if (r) { if (r) {
dev_warn(adev->dev, "amdgpu: No suitable DMA available.\n"); dev_warn(adev->dev, "No suitable DMA available.\n");
return r; return r;
} }
adev->need_swiotlb = drm_need_swiotlb(44); adev->need_swiotlb = drm_need_swiotlb(44);
......
...@@ -1019,7 +1019,7 @@ static int gmc_v7_0_sw_init(void *handle) ...@@ -1019,7 +1019,7 @@ static int gmc_v7_0_sw_init(void *handle)
r = dma_set_mask_and_coherent(adev->dev, DMA_BIT_MASK(40)); r = dma_set_mask_and_coherent(adev->dev, DMA_BIT_MASK(40));
if (r) { if (r) {
pr_warn("amdgpu: No suitable DMA available\n"); pr_warn("No suitable DMA available\n");
return r; return r;
} }
adev->need_swiotlb = drm_need_swiotlb(40); adev->need_swiotlb = drm_need_swiotlb(40);
......
...@@ -1144,7 +1144,7 @@ static int gmc_v8_0_sw_init(void *handle) ...@@ -1144,7 +1144,7 @@ static int gmc_v8_0_sw_init(void *handle)
r = dma_set_mask_and_coherent(adev->dev, DMA_BIT_MASK(40)); r = dma_set_mask_and_coherent(adev->dev, DMA_BIT_MASK(40));
if (r) { if (r) {
pr_warn("amdgpu: No suitable DMA available\n"); pr_warn("No suitable DMA available\n");
return r; return r;
} }
adev->need_swiotlb = drm_need_swiotlb(40); adev->need_swiotlb = drm_need_swiotlb(40);
......
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