Skip to content

Commit 2d38a53

Browse files
author
Ben Skeggs
committed
drm/nouveau: silence suspend/resume debugging messages
These are particularly annoying on Optimus systems where these paths can be called regularly. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
1 parent 8567180 commit 2d38a53

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

‎drivers/gpu/drm/nouveau/nouveau_drm.c‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -585,18 +585,18 @@ nouveau_do_suspend(struct drm_device *dev, bool runtime)
585585
nouveau_led_suspend(dev);
586586

587587
if (dev->mode_config.num_crtc) {
588-
NV_INFO(drm, "suspending console...\n");
588+
NV_DEBUG(drm, "suspending console...\n");
589589
nouveau_fbcon_set_suspend(dev, 1);
590-
NV_INFO(drm, "suspending display...\n");
590+
NV_DEBUG(drm, "suspending display...\n");
591591
ret = nouveau_display_suspend(dev, runtime);
592592
if (ret)
593593
return ret;
594594
}
595595

596-
NV_INFO(drm, "evicting buffers...\n");
596+
NV_DEBUG(drm, "evicting buffers...\n");
597597
ttm_bo_evict_mm(&drm->ttm.bdev, TTM_PL_VRAM);
598598

599-
NV_INFO(drm, "waiting for kernel channels to go idle...\n");
599+
NV_DEBUG(drm, "waiting for kernel channels to go idle...\n");
600600
if (drm->cechan) {
601601
ret = nouveau_channel_idle(drm->cechan);
602602
if (ret)
@@ -609,15 +609,15 @@ nouveau_do_suspend(struct drm_device *dev, bool runtime)
609609
goto fail_display;
610610
}
611611

612-
NV_INFO(drm, "suspending fence...\n");
612+
NV_DEBUG(drm, "suspending fence...\n");
613613
if (drm->fence && nouveau_fence(drm)->suspend) {
614614
if (!nouveau_fence(drm)->suspend(drm)) {
615615
ret = -ENOMEM;
616616
goto fail_display;
617617
}
618618
}
619619

620-
NV_INFO(drm, "suspending object tree...\n");
620+
NV_DEBUG(drm, "suspending object tree...\n");
621621
ret = nvif_client_suspend(&drm->client.base);
622622
if (ret)
623623
goto fail_client;
@@ -630,7 +630,7 @@ nouveau_do_suspend(struct drm_device *dev, bool runtime)
630630

631631
fail_display:
632632
if (dev->mode_config.num_crtc) {
633-
NV_INFO(drm, "resuming display...\n");
633+
NV_DEBUG(drm, "resuming display...\n");
634634
nouveau_display_resume(dev, runtime);
635635
}
636636
return ret;
@@ -641,19 +641,19 @@ nouveau_do_resume(struct drm_device *dev, bool runtime)
641641
{
642642
struct nouveau_drm *drm = nouveau_drm(dev);
643643

644-
NV_INFO(drm, "resuming object tree...\n");
644+
NV_DEBUG(drm, "resuming object tree...\n");
645645
nvif_client_resume(&drm->client.base);
646646

647-
NV_INFO(drm, "resuming fence...\n");
647+
NV_DEBUG(drm, "resuming fence...\n");
648648
if (drm->fence && nouveau_fence(drm)->resume)
649649
nouveau_fence(drm)->resume(drm);
650650

651651
nouveau_run_vbios_init(dev);
652652

653653
if (dev->mode_config.num_crtc) {
654-
NV_INFO(drm, "resuming display...\n");
654+
NV_DEBUG(drm, "resuming display...\n");
655655
nouveau_display_resume(dev, runtime);
656-
NV_INFO(drm, "resuming console...\n");
656+
NV_DEBUG(drm, "resuming console...\n");
657657
nouveau_fbcon_set_suspend(dev, 0);
658658
}
659659

0 commit comments

Comments
 (0)