All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: "Bruno Prémont" <bonbons@linux-vserver.org>
Cc: kernel list <linux-kernel@vger.kernel.org>,
	dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org,
	mbroemme@plusserver.de
Subject: Re: intelfb refuses to load
Date: Sun, 12 Dec 2010 08:52:03 +0100	[thread overview]
Message-ID: <20101212075203.GA1934@elf.ucw.cz> (raw)
In-Reply-To: <20101211234356.1e9007fe@neptune.home>

Hi!

> Looks like you are using the wrong intel driver.
> 
> For intel modesetting you need
> CONFIG_DRM=y
> CONFIG_DRM_KMS_HELPER=y
> # CONFIG_DRM_TDFX is not set
> # CONFIG_DRM_R128 is not set
> # CONFIG_DRM_RADEON is not set
> # CONFIG_DRM_I810 is not set
> # CONFIG_DRM_I830 is not set
> CONFIG_DRM_I915=y
> # CONFIG_DRM_I915_KMS is not set
> # CONFIG_DRM_MGA is not set
> # CONFIG_DRM_SIS is not set
> # CONFIG_DRM_VIA is not set
> # CONFIG_DRM_SAVAGE is not set
> 
> # CONFIG_FB_I810 is not set
> 
> That will give you inteldrmfb.
>                         ^^^
> 

> Not sure what dependency is missing in your config that DRM_I915 does
> not show up... (it might be CONFIG_AGP_INTEL)

It is hidden by "choice" with interesting name.

Unfrotunately, if I do this, I get kernel messages for about a second,
and then blank screen. Thinkpad X60...

I now have:

i915.modeset=1 video=inteldrmfb:mode=1024x768 fbcon=scrollback:64k 

on cmdline and:

CONFIG_DRM=y
CONFIG_DRM_KMS_HELPER=y
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_I810 is not set
# CONFIG_DRM_I830 is not set
CONFIG_DRM_I915=y
# CONFIG_DRM_I915_KMS is not set
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set
# CONFIG_DRM_VIA is not set
# CONFIG_DRM_SAVAGE is not set
# CONFIG_STUB_POULSBO is not set
CONFIG_VGASTATE=y
CONFIG_VIDEO_OUTPUT_CONTROL=y
CONFIG_FB=y
CONFIG_FIRMWARE_EDID=y
# CONFIG_FB_DDC is not set
...
CONFIG_ACPI_VIDEO=y


> intelfb (CONFIG_FB_I810) is obsolete and only supports a pretty limited
> part of intel GPU features, modesetting only for VGA output (and not
> sure it works at all with recent GPUs).

Perhaps something like this should be done? I had no idea that the
choice is for modern drivers, too...

								Pavel

diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig
index 7af4436..3f1e7fd 100644
--- a/drivers/gpu/drm/Kconfig
+++ b/drivers/gpu/drm/Kconfig
@@ -81,7 +81,7 @@ config DRM_I810
 	  for this driver to work.
 
 choice
-	prompt "Intel 830M, 845G, 852GM, 855GM, 865G"
+	prompt "Intel 830M, 845G, 852GM, 855GM, 865G, ..., i915 driver"
 	depends on DRM && AGP && AGP_INTEL
 	optional
 


-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

WARNING: multiple messages have this Message-ID (diff)
From: Pavel Machek <pavel@ucw.cz>
To: "Bruno Prémont" <bonbons@linux-vserver.org>
Cc: kernel list <linux-kernel@vger.kernel.org>,
	dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org,
	mbroemme@plusserver.de
Subject: Re: intelfb refuses to load
Date: Sun, 12 Dec 2010 07:52:03 +0000	[thread overview]
Message-ID: <20101212075203.GA1934@elf.ucw.cz> (raw)
In-Reply-To: <20101211234356.1e9007fe@neptune.home>

Hi!

> Looks like you are using the wrong intel driver.
> 
> For intel modesetting you need
> CONFIG_DRM=y
> CONFIG_DRM_KMS_HELPER=y
> # CONFIG_DRM_TDFX is not set
> # CONFIG_DRM_R128 is not set
> # CONFIG_DRM_RADEON is not set
> # CONFIG_DRM_I810 is not set
> # CONFIG_DRM_I830 is not set
> CONFIG_DRM_I915=y
> # CONFIG_DRM_I915_KMS is not set
> # CONFIG_DRM_MGA is not set
> # CONFIG_DRM_SIS is not set
> # CONFIG_DRM_VIA is not set
> # CONFIG_DRM_SAVAGE is not set
> 
> # CONFIG_FB_I810 is not set
> 
> That will give you inteldrmfb.
>                         ^^^
> 

> Not sure what dependency is missing in your config that DRM_I915 does
> not show up... (it might be CONFIG_AGP_INTEL)

It is hidden by "choice" with interesting name.

Unfrotunately, if I do this, I get kernel messages for about a second,
and then blank screen. Thinkpad X60...

I now have:

i915.modeset=1 video=inteldrmfb:mode\x1024x768 fbcon=scrollback:64k 

on cmdline and:

CONFIG_DRM=y
CONFIG_DRM_KMS_HELPER=y
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_I810 is not set
# CONFIG_DRM_I830 is not set
CONFIG_DRM_I915=y
# CONFIG_DRM_I915_KMS is not set
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set
# CONFIG_DRM_VIA is not set
# CONFIG_DRM_SAVAGE is not set
# CONFIG_STUB_POULSBO is not set
CONFIG_VGASTATE=y
CONFIG_VIDEO_OUTPUT_CONTROL=y
CONFIG_FB=y
CONFIG_FIRMWARE_EDID=y
# CONFIG_FB_DDC is not set
...
CONFIG_ACPI_VIDEO=y


> intelfb (CONFIG_FB_I810) is obsolete and only supports a pretty limited
> part of intel GPU features, modesetting only for VGA output (and not
> sure it works at all with recent GPUs).

Perhaps something like this should be done? I had no idea that the
choice is for modern drivers, too...

								Pavel

diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig
index 7af4436..3f1e7fd 100644
--- a/drivers/gpu/drm/Kconfig
+++ b/drivers/gpu/drm/Kconfig
@@ -81,7 +81,7 @@ config DRM_I810
 	  for this driver to work.
 
 choice
-	prompt "Intel 830M, 845G, 852GM, 855GM, 865G"
+	prompt "Intel 830M, 845G, 852GM, 855GM, 865G, ..., i915 driver"
 	depends on DRM && AGP && AGP_INTEL
 	optional
 


-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  reply	other threads:[~2010-12-12  7:52 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-11 22:13 intelfb refuses to load Pavel Machek
2010-12-11 22:13 ` Pavel Machek
2010-12-11 22:43 ` Bruno Prémont
2010-12-11 22:43   ` Bruno Prémont
2010-12-12  7:52   ` Pavel Machek [this message]
2010-12-12  7:52     ` Pavel Machek
2010-12-12  8:00     ` Dave Airlie
2010-12-12  8:00       ` Dave Airlie
2010-12-12  8:08       ` Pavel Machek
2010-12-12  8:08         ` Pavel Machek
2010-12-12 12:10         ` Alessandro Suardi
2010-12-12 12:10           ` Alessandro Suardi
2010-12-12 13:39   ` Dave Young
2010-12-12 13:39     ` Dave Young
2010-12-11 22:44 ` Matt Turner

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=20101212075203.GA1934@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=bonbons@linux-vserver.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mbroemme@plusserver.de \
    /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.