All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcin Slusarz <marcin.slusarz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: [PATCH] drm/nouveau: printk info about disabled modesetting
Date: Mon, 4 Apr 2011 19:27:35 +0200	[thread overview]
Message-ID: <20110404172735.GA8979@joi.lan> (raw)

... to make it obvious why nouveau refused to drive the hardware.

Signed-off-by: Marcin Slusarz <marcin.slusarz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 drivers/gpu/drm/nouveau/nouveau_drv.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.c b/drivers/gpu/drm/nouveau/nouveau_drv.c
index f658a04..515c656 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.c
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.c
@@ -445,8 +445,10 @@ static int __init nouveau_init(void)
 			nouveau_modeset = 1;
 	}
 
-	if (!nouveau_modeset)
+	if (!nouveau_modeset) {
+		printk(KERN_INFO "nouveau: modesetting disabled by kernel parameter\n");
 		return 0;
+	}
 
 	nouveau_register_dsm_handler();
 	return drm_init(&driver);
-- 
1.7.4.1

             reply	other threads:[~2011-04-04 17:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-04 17:27 Marcin Slusarz [this message]
     [not found] ` <20110404172735.GA8979-OI9uyE9O0yo@public.gmane.org>
2011-05-01 22:03   ` [PATCH] drm/nouveau: printk info about disabled modesetting Marcin Slusarz
     [not found]     ` <20110501220341.GI6742-OI9uyE9O0yo@public.gmane.org>
2011-05-02  6:51       ` Ben Skeggs
2011-05-02 16:39         ` Marcin Slusarz
2011-05-02 16:42         ` Pekka Paalanen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110404172735.GA8979@joi.lan \
    --to=marcin.slusarz-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.