Marcin Slusarz
2011-Apr-04 17:27 UTC
[Nouveau] [PATCH] drm/nouveau: printk info about disabled modesetting
... to make it obvious why nouveau refused to drive the hardware.
Signed-off-by: Marcin Slusarz <marcin.slusarz at gmail.com>
---
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
Marcin Slusarz
2011-May-01 22:03 UTC
[Nouveau] [PATCH] drm/nouveau: printk info about disabled modesetting
On Mon, Apr 04, 2011 at 07:27:35PM +0200, Marcin Slusarz wrote:> ... to make it obvious why nouveau refused to drive the hardware. > > Signed-off-by: Marcin Slusarz <marcin.slusarz at gmail.com> > --- > 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); > --ping