Commit 2d38a535 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau: silence suspend/resume debugging messages

These are particularly annoying on Optimus systems where these paths can
be called regularly.
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 85671805
...@@ -585,18 +585,18 @@ nouveau_do_suspend(struct drm_device *dev, bool runtime) ...@@ -585,18 +585,18 @@ nouveau_do_suspend(struct drm_device *dev, bool runtime)
nouveau_led_suspend(dev); nouveau_led_suspend(dev);
if (dev->mode_config.num_crtc) { if (dev->mode_config.num_crtc) {
NV_INFO(drm, "suspending console...\n"); NV_DEBUG(drm, "suspending console...\n");
nouveau_fbcon_set_suspend(dev, 1); nouveau_fbcon_set_suspend(dev, 1);
NV_INFO(drm, "suspending display...\n"); NV_DEBUG(drm, "suspending display...\n");
ret = nouveau_display_suspend(dev, runtime); ret = nouveau_display_suspend(dev, runtime);
if (ret) if (ret)
return ret; return ret;
} }
NV_INFO(drm, "evicting buffers...\n"); NV_DEBUG(drm, "evicting buffers...\n");
ttm_bo_evict_mm(&drm->ttm.bdev, TTM_PL_VRAM); ttm_bo_evict_mm(&drm->ttm.bdev, TTM_PL_VRAM);
NV_INFO(drm, "waiting for kernel channels to go idle...\n"); NV_DEBUG(drm, "waiting for kernel channels to go idle...\n");
if (drm->cechan) { if (drm->cechan) {
ret = nouveau_channel_idle(drm->cechan); ret = nouveau_channel_idle(drm->cechan);
if (ret) if (ret)
...@@ -609,7 +609,7 @@ nouveau_do_suspend(struct drm_device *dev, bool runtime) ...@@ -609,7 +609,7 @@ nouveau_do_suspend(struct drm_device *dev, bool runtime)
goto fail_display; goto fail_display;
} }
NV_INFO(drm, "suspending fence...\n"); NV_DEBUG(drm, "suspending fence...\n");
if (drm->fence && nouveau_fence(drm)->suspend) { if (drm->fence && nouveau_fence(drm)->suspend) {
if (!nouveau_fence(drm)->suspend(drm)) { if (!nouveau_fence(drm)->suspend(drm)) {
ret = -ENOMEM; ret = -ENOMEM;
...@@ -617,7 +617,7 @@ nouveau_do_suspend(struct drm_device *dev, bool runtime) ...@@ -617,7 +617,7 @@ nouveau_do_suspend(struct drm_device *dev, bool runtime)
} }
} }
NV_INFO(drm, "suspending object tree...\n"); NV_DEBUG(drm, "suspending object tree...\n");
ret = nvif_client_suspend(&drm->client.base); ret = nvif_client_suspend(&drm->client.base);
if (ret) if (ret)
goto fail_client; goto fail_client;
...@@ -630,7 +630,7 @@ nouveau_do_suspend(struct drm_device *dev, bool runtime) ...@@ -630,7 +630,7 @@ nouveau_do_suspend(struct drm_device *dev, bool runtime)
fail_display: fail_display:
if (dev->mode_config.num_crtc) { if (dev->mode_config.num_crtc) {
NV_INFO(drm, "resuming display...\n"); NV_DEBUG(drm, "resuming display...\n");
nouveau_display_resume(dev, runtime); nouveau_display_resume(dev, runtime);
} }
return ret; return ret;
...@@ -641,19 +641,19 @@ nouveau_do_resume(struct drm_device *dev, bool runtime) ...@@ -641,19 +641,19 @@ nouveau_do_resume(struct drm_device *dev, bool runtime)
{ {
struct nouveau_drm *drm = nouveau_drm(dev); struct nouveau_drm *drm = nouveau_drm(dev);
NV_INFO(drm, "resuming object tree...\n"); NV_DEBUG(drm, "resuming object tree...\n");
nvif_client_resume(&drm->client.base); nvif_client_resume(&drm->client.base);
NV_INFO(drm, "resuming fence...\n"); NV_DEBUG(drm, "resuming fence...\n");
if (drm->fence && nouveau_fence(drm)->resume) if (drm->fence && nouveau_fence(drm)->resume)
nouveau_fence(drm)->resume(drm); nouveau_fence(drm)->resume(drm);
nouveau_run_vbios_init(dev); nouveau_run_vbios_init(dev);
if (dev->mode_config.num_crtc) { if (dev->mode_config.num_crtc) {
NV_INFO(drm, "resuming display...\n"); NV_DEBUG(drm, "resuming display...\n");
nouveau_display_resume(dev, runtime); nouveau_display_resume(dev, runtime);
NV_INFO(drm, "resuming console...\n"); NV_DEBUG(drm, "resuming console...\n");
nouveau_fbcon_set_suspend(dev, 0); nouveau_fbcon_set_suspend(dev, 0);
} }
......
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