]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/amdgpu: remove hardcoded module name in prints
authorAurabindo Pillai <mail@aurabindo.in>
Thu, 9 Apr 2020 01:28:15 +0000 (21:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Apr 2020 16:02:40 +0000 (12:02 -0400)
Let format prefixes take care of printing the module name
through pr_fmt and dev_fmt definitions.

Signed-off-by: Aurabindo Pillai <mail@aurabindo.in>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c

index 9dff792c929036701e78af5f19f24463e9f6448b..d7df11b07d116ab4d2c828e68db84e7f2d848910 100644 (file)
@@ -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,
                                        &param);
        if (ret) {
-               pr_err("amdgpu: failed to validate PT BOs\n");
+               pr_err("failed to validate PT BOs\n");
                return ret;
        }
 
        ret = amdgpu_amdkfd_validate(&param, pd);
        if (ret) {
-               pr_err("amdgpu: failed to validate PD\n");
+               pr_err("failed to validate PD\n");
                return ret;
        }
 
@@ -377,7 +377,7 @@ static int vm_validate_pt_pd_bos(struct amdgpu_vm *vm)
        if (vm->use_cpu_for_update) {
                ret = amdgpu_bo_kmap(pd, NULL);
                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;
                }
        }
index 9db9ab417dae564ea588b62563fb14a24f8cd0c6..9f1377c160908d0cd63270573d32d41fb4b42882 100644 (file)
@@ -1187,7 +1187,7 @@ static void amdgpu_switcheroo_set_state(struct pci_dev *pdev, enum vga_switchero
                return;
 
        if (state == VGA_SWITCHEROO_ON) {
-               pr_info("amdgpu: switched on\n");
+               pr_info("switched on\n");
                /* don't suspend or resume card normally */
                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
                dev->switch_power_state = DRM_SWITCH_POWER_ON;
                drm_kms_helper_poll_enable(dev);
        } else {
-               pr_info("amdgpu: switched off\n");
+               pr_info("switched off\n");
                drm_kms_helper_poll_disable(dev);
                dev->switch_power_state = DRM_SWITCH_POWER_CHANGING;
                amdgpu_device_suspend(dev, true);
index 5ed4227f304bd49050139505622cdf2673878e8a..0cc4c67f95f721f7671d5e46824b0b0d5e70e7fa 100644 (file)
@@ -260,7 +260,7 @@ int amdgpu_irq_init(struct amdgpu_device *adev)
                nvec = pci_alloc_irq_vectors(adev->pdev, 1, 1, flags);
                if (nvec > 0) {
                        adev->irq.msi_enabled = true;
-                       dev_dbg(adev->dev, "amdgpu: using MSI/MSI-X.\n");
+                       dev_dbg(adev->dev, "using MSI/MSI-X.\n");
                }
        }
 
index b205039350b6c9d469ecdb3d738a71ea3cb40f17..c1a530dbe1628a5a90b14e9b06fadc4db42480ef 100644 (file)
@@ -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));
        if (r) {
-               dev_warn(adev->dev, "amdgpu: No suitable DMA available.\n");
+               dev_warn(adev->dev, "No suitable DMA available.\n");
                return r;
        }
        adev->need_swiotlb = drm_need_swiotlb(44);
index 9da9596a36388d31e4c2cc5fb106df3c962dcd2f..e8529e244a2bca56a0067e04dbac5c71710e3e5b 100644 (file)
@@ -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));
        if (r) {
-               pr_warn("amdgpu: No suitable DMA available\n");
+               pr_warn("No suitable DMA available\n");
                return r;
        }
        adev->need_swiotlb = drm_need_swiotlb(40);
index 27d83204fa2b00c3a8e663ceb18402ce39ba24e0..0aa5b82808d12b8bf68d2d308c9a88778708435a 100644 (file)
@@ -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));
        if (r) {
-               pr_warn("amdgpu: No suitable DMA available\n");
+               pr_warn("No suitable DMA available\n");
                return r;
        }
        adev->need_swiotlb = drm_need_swiotlb(40);