Skip to contentSkip to conversation

drm/amdgpu: use dev_dbg to print messages in runtime cycle

PATCH In review Guchun Chen 2 participants 2 messages Nov 24, 2022 – Nov 25, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: use dev_dbg to print messages in runtime cycle

Runtime PM can happen pretty frequently, as these printings may be annoyed, switch to dev_dbg.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1 -1
index 8b1f6c032a2e..447e27b2e16b 100644
@@ -2568,7 +2568,7 @@ static int amdgpu_pmops_runtime_suspend(struct device *dev)
 		amdgpu_device_baco_enter(drm_dev);
 	}
 
-	dev_info(&pdev->dev, "asic/device is runtime suspended\n");
+	dev_dbg(&pdev->dev, "asic/device is runtime suspended\n");
 
 	return 0;
 }
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -1
index 7bb2de1d11ff..4a18d1944e4f 100644
@@ -861,7 +861,7 @@ static int psp_tmr_unload(struct psp_context *psp)
 	struct psp_gfx_cmd_resp *cmd = acquire_psp_cmd_buf(psp);
 
 	psp_prep_tmr_unload_cmd_buf(psp, cmd);
-	dev_info(psp->adev->dev, "free PSP TMR buffer\n");
+	dev_dbg(psp->adev->dev, "free PSP TMR buffer\n");
 
 	ret = psp_cmd_submit_buf(psp, NULL, cmd,
 				 psp->fence_buf_mc_addr);
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Guchun Chen

Runtime PM can happen pretty frequently, as these printings may be annoyed, switch to dev_dbg.

Quoted 34 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1 -1
index 8b1f6c032a2e..447e27b2e16b 100644
@@ -2568,7 +2568,7 @@ static int amdgpu_pmops_runtime_suspend(struct device *dev)
                amdgpu_device_baco_enter(drm_dev);
        }
 
-       dev_info(&pdev->dev, "asic/device is runtime suspended\n");
+       dev_dbg(&pdev->dev, "asic/device is runtime suspended\n");
 
        return 0;
 }
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -2
index 7bb2de1d11ff..4a18d1944e4f 100644
@@ -861,7 +861,7 @@ static int psp_tmr_unload(struct psp_context *psp)
        struct psp_gfx_cmd_resp *cmd = acquire_psp_cmd_buf(psp);
 
        psp_prep_tmr_unload_cmd_buf(psp, cmd);
-       dev_info(psp->adev->dev, "free PSP TMR buffer\n");
+       dev_dbg(psp->adev->dev, "free PSP TMR buffer\n");
 
        ret = psp_cmd_submit_buf(psp, NULL, cmd,
                                 psp->fence_buf_mc_addr);
--

2.25.1