From: Ingo Molnar <mingo@elte.hu>
To: Eric Anholt <eric@anholt.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Norbert Preining <preining@logic.at>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Jens Axboe <jens.axboe@oracle.com>,
Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Subject: [PATCH] drm, i915: select framebuffer support automatically
Date: Thu, 5 Feb 2009 17:56:57 +0100 [thread overview]
Message-ID: <20090205165657.GA15490@elte.hu> (raw)
In-Reply-To: <1233809147.13118.8.camel@gaiman>
* Eric Anholt <eric@anholt.net> wrote:
> On Wed, 2009-02-04 at 19:56 +0100, Ingo Molnar wrote:
> > * Linus Torvalds <torvalds@linux-foundation.org> wrote:
> >
> > > On Wed, 4 Feb 2009, Norbert Preining wrote:
> > > >
> > > > The problem is that if you have a configuration under 2.6.28 without
> > > > CONFIG_FB and just call make oldconfig, or even make config and don't
> > > > know that you loose the DRM. And I was using make oldconfig (there is a
> > > > graphical config?? ;-))
> > >
> > > Sure. It's inconvenient, no question about that. I asked the i915 people
> > > to look into not requiring CONFIG_FB, and I hope they will, but my point
> > > is that I don't think we can consider "small one-time inconvenience" to be
> > > a "regression".
> >
> > if you mean that as a general principle, there's four very real downsides in
> > my opinion.
> >
> > Firstly, we could have done better (and still can do better), via various
> > easy and non-intrusive measures:
> >
> > - We could add a runtime warning:
> >
> > for example a WARN_ONCE("please enable CONFIG_DRM_I915 and CONFIG_FB")
> > that there's no DRM because CONFIG_FB is not selected and oldconfig
> > loses the I915 setting silently - placed in a key DRM ioctl, would
> > have gone a long way addressing the issue. Testers do notice kernel
> > warnings that pop up when their X gets slow. (This approach might also
> > have the added bonus of warning folks who enable the wrong driver for
> > the hardware.)
> >
> > - Or we could add a more thoughtful Kconfig migration:
> >
> > Rename DRM_I915 to DRM_I915_FB [which it really is now], and keep
> > DRM_I915 as a non-interactive migration helper: if set, it
> > auto-selects both FB and DRM_I915_FB.
> >
> > While CONFIG_FB is an interactive Kconfig option so a select can be
> > dangerous to a correct dependency tree, it seems safe to do in this
> > specific case because it seems to be a rather leaf entry with no
> > dependencies.
>
> I tried select FB. It's the right thing to do. It doesn't work. I
> posted to the mailing list two weeks ago about the insane dependency
> chain that kbuild comes up with and fails on when we do this, and got
> silence.
I mean the patch below.
I have tested it here it works fine and has no dependency problems, nor any
build breakages on 32-bit or 64-bit x86. When you tried this you probably
ran into the FB_I810 and FB_INTEL complication - this patch solves that too.
What do you think?
Ingo
--------------->
>From ca835567dcb7c513a26a4396d86f12848e62de8d Mon Sep 17 00:00:00 2001
From: Ingo Molnar <mingo@elte.hu>
Date: Thu, 5 Feb 2009 16:03:34 +0100
Subject: [PATCH] drm, i915: select framebuffer support automatically
Migration helper.
The i915 driver recently added a 'depends on FB' rule to its
Kconfig entry - which silently turns off DRM_I915 if someone
has a working config but no CONFIG_FB selected, and upgrades
to the latest upstream kernel.
Norbert Preining reported this problem:
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=12599
Subject : dri /dev node disappeared with 2.6.29-rc1
So change it to "select FB", which auto-selects framebuffer
support. This way the driver keeps working, regardless of
whether FB was enabled before or not.
Kconfig select's of interactive options can be problematic to
dependencies and can cause build breakages - but in this case
it's safe because it's a leaf entry with no dependencies of its
own.
( There is some minor circular dependency fallout as FB_I810
and FB_INTEL also used 'depends on FB' constructs - update
those to "select FB" too. )
Reported-by: Norbert Preining <preining@logic.at>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
drivers/gpu/drm/Kconfig | 2 +-
drivers/video/Kconfig | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig
index 5130b72..4be3acb 100644
--- a/drivers/gpu/drm/Kconfig
+++ b/drivers/gpu/drm/Kconfig
@@ -70,7 +70,7 @@ config DRM_I915
select FB_CFB_FILLRECT
select FB_CFB_COPYAREA
select FB_CFB_IMAGEBLIT
- depends on FB
+ select FB
tristate "i915 driver"
help
Choose this option if you have a system that has Intel 830M, 845G,
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index f026770..bf0af66 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -1054,9 +1054,10 @@ config FB_RIVA_BACKLIGHT
config FB_I810
tristate "Intel 810/815 support (EXPERIMENTAL)"
- depends on FB && EXPERIMENTAL && PCI && X86_32
+ depends on EXPERIMENTAL && PCI && X86_32
select AGP
select AGP_INTEL
+ select FB
select FB_MODE_HELPERS
select FB_CFB_FILLRECT
select FB_CFB_COPYAREA
@@ -1119,7 +1120,8 @@ config FB_CARILLO_RANCH
config FB_INTEL
tristate "Intel 830M/845G/852GM/855GM/865G/915G/945G/945GM/965G/965GM support (EXPERIMENTAL)"
- depends on FB && EXPERIMENTAL && PCI && X86
+ depends on EXPERIMENTAL && PCI && X86
+ select FB
select AGP
select AGP_INTEL
select FB_MODE_HELPERS
next prev parent reply other threads:[~2009-02-05 16:57 UTC|newest]
Thread overview: 156+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-04 10:21 2.6.29-rc3-git6: Reported regressions from 2.6.28 Rafael J. Wysocki
2009-02-04 10:21 ` [Bug #12400] git-latest: kernel oops in IOMMU setup Rafael J. Wysocki
2009-02-04 10:23 ` [Bug #12415] WARNING: at drivers/net/wireless/iwlwifi/iwl-sta.c:689 Rafael J. Wysocki
2009-02-04 13:04 ` Christian Borntraeger
2009-02-05 1:39 ` Rafael J. Wysocki
2009-02-04 10:23 ` [Bug #12416] Recent change to kernel spikes out ccache/distcc Rafael J. Wysocki
2009-02-05 1:57 ` Theodore Tso
2009-02-05 2:13 ` Rafael J. Wysocki
2009-02-04 10:23 ` [Bug #12414] iwl4965 cannot use "ap auto" on latest 2.6.28/29? Rafael J. Wysocki
2009-02-04 19:15 ` Jeff Chua
2009-02-05 1:37 ` Rafael J. Wysocki
2009-02-05 14:34 ` Jeff Chua
2009-02-14 11:41 ` Jeff Chua
2009-02-14 18:46 ` Jeff Chua
2009-02-14 20:10 ` Rafael J. Wysocki
2009-02-04 10:23 ` [Bug #12418] Repeated ioctl(4, 0x40046445, ..) loop in glxgears Rafael J. Wysocki
2009-02-04 10:23 ` [Bug #12417] glx performance drop with: "x86: PAT: implement track/untrack of pfnmap regions for x86 - v3" Rafael J. Wysocki
2009-02-04 13:46 ` Ingo Molnar
2009-02-04 16:02 ` Alexey Fisher
2009-02-04 16:42 ` Ingo Molnar
2009-02-05 0:55 ` Rafael J. Wysocki
2009-02-04 10:23 ` [Bug #12419] possible circular locking dependency on i915 dma Rafael J. Wysocki
2009-02-04 10:23 ` [Bug #12427] cpumask change causes sparc build bustage Rafael J. Wysocki
2009-02-04 10:23 ` [Bug #12444] X hangs following switch from radeonfb console - Bisected Rafael J. Wysocki
2009-02-04 10:23 ` [Bug #12490] ath5k related kernel panic in 2.6.29-rc1 Rafael J. Wysocki
2009-02-06 18:48 ` Bob Copeland
2009-02-06 23:55 ` Rafael J. Wysocki
2009-02-04 10:23 ` [Bug #12491] i915 lockdep warning Rafael J. Wysocki
2009-02-04 22:37 ` Roland Dreier
2009-02-05 1:03 ` Rafael J. Wysocki
2009-02-06 22:46 ` Roland Dreier
2009-02-06 23:40 ` Jesse Barnes
2009-02-07 1:20 ` Brandeburg, Jesse
2009-02-07 1:48 ` Roland Dreier
2009-02-07 13:53 ` Rafael J. Wysocki
2009-02-11 0:43 ` Eric Anholt
2009-02-11 18:14 ` Roland Dreier
2009-02-04 10:23 ` [Bug #12441] Xorg can't use dri on radeon X1950 AGP Rafael J. Wysocki
2009-02-04 10:23 ` [Bug #12493] ACPI related kernel panic when booting 2.6.29-rc2 Rafael J. Wysocki
2009-02-04 10:23 ` [Bug #12494] Sony backlight regression from 2.6.28 to 29-rc Rafael J. Wysocki
2009-02-04 10:23 ` [Bug #12496] swsusp cannot find resume device (sometimes) Rafael J. Wysocki
2009-02-04 10:23 ` [Bug #12495] thinkpad problems during resume Rafael J. Wysocki
2009-02-04 13:06 ` Christian Borntraeger
2009-02-05 1:41 ` Rafael J. Wysocki
2009-02-04 10:23 ` [Bug #12501] build bug in eeepc-laptop.c Rafael J. Wysocki
2009-02-04 10:23 ` [Bug #12497] new barrier warnings in 2.6.29-rc1 Rafael J. Wysocki
2009-02-06 8:12 ` Christoph Hellwig
2009-02-04 10:23 ` [Bug #12499] Problem with using bluetooth adaper connected to usb port Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12503] [slab corruption] BUG key_jar: Poison overwritten Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12502] pipe_read oops on sh Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12505] 2.6.29-rc1 Firefox crashing on page load Rafael J. Wysocki
2009-02-04 15:23 ` Justin Mattock
2009-02-04 16:46 ` Ingo Molnar
2009-02-04 18:15 ` Justin Mattock
2009-02-05 1:08 ` Rafael J. Wysocki
2009-02-05 1:37 ` Justin Mattock
2009-02-04 10:24 ` [Bug #12509] lockdep report. fb_mmap vs sys_mmap2 Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12510] 2.6.29-rc2 dies on startup Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12508] "powerpc/pci: Reserve legacy regions on PCI" broke my G3 Rafael J. Wysocki
2009-02-04 21:44 ` Benjamin Herrenschmidt
2009-02-06 18:55 ` Mikael Pettersson
2009-02-04 10:24 ` [Bug #12506] Undefined symbols when CONFIG_MFD_PCF50633 is enabled Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12518] BUG: using smp_processor_id() in preemptible [00000000] code: dellWirelessCtl/ Rafael J. Wysocki
2009-02-04 15:58 ` Alex Riesen
2009-02-04 10:24 ` [Bug #12538] xfs_fsr fails on 2.6.29-rc kernels Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12511] WARNING: at drivers/dma/dmaengine.c:352 Rafael J. Wysocki
2009-02-04 16:03 ` Dan Williams
2009-02-05 1:13 ` Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12551] end_request: I/O error, dev cciss/c0d0, sector 87435720 Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12598] tg3 dead after resume Rafael J. Wysocki
2009-02-05 0:43 ` Parag Warudkar
2009-02-05 1:03 ` Jesse Barnes
2009-02-04 10:24 ` [Bug #12574] possible circular locking dependency detected Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12591] NULL pointer dereference in blk_queue_io_stat Rafael J. Wysocki
2009-02-04 12:53 ` Jens Axboe
2009-02-05 1:21 ` Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12571] Suspend-resume on Dell Latitude D410 newly broken in 2.6.29-rc* Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12599] dri /dev node disappeared with 2.6.29-rc1 Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12602] CRED changes causing setuid failures Rafael J. Wysocki
2009-02-04 18:09 ` David Smith
2009-02-05 1:15 ` Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12601] virt-manager broken on 2.6.29-rc2 Rafael J. Wysocki
2009-02-04 23:26 ` Stephen Hemminger
2009-02-05 1:25 ` Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12600] i915 lockdep warning Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12606] fb_mmap: circular locking dependency on hibernation Rafael J. Wysocki
2009-02-04 14:43 ` Andrey Borzenkov
2009-02-05 1:43 ` Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12604] Commit 31a12666d8f0c22235297e1c1575f82061480029 slows down Berkeley DB Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12605] Suspend regression, hang after matroxfb Rafael J. Wysocki
2009-02-05 12:16 ` Eric Sesterhenn
2009-02-05 16:12 ` Rafael J. Wysocki
2009-02-08 12:39 ` Eric Sesterhenn
2009-02-04 10:24 ` [Bug #12608] 2.6.29-rc powerpc G5 Xorg legacy_mem regression Rafael J. Wysocki
2009-02-04 23:48 ` Benjamin Herrenschmidt
2009-02-05 17:23 ` Hugh Dickins
2009-02-05 21:05 ` Benjamin Herrenschmidt
2009-02-05 21:20 ` Hugh Dickins
2009-02-05 21:45 ` Dave Airlie
2009-02-06 6:01 ` Benjamin Herrenschmidt
2009-02-05 22:33 ` Jesse Barnes
2009-02-05 23:57 ` Benjamin Herrenschmidt
2009-02-06 5:40 ` Benjamin Herrenschmidt
2009-02-06 12:56 ` Hugh Dickins
2009-02-06 16:49 ` Jesse Barnes
2009-02-06 22:17 ` Hugh Dickins
2009-02-06 22:45 ` Jesse Barnes
2009-02-07 0:50 ` Hugh Dickins
2009-02-07 1:47 ` Jesse Barnes
2009-02-07 3:05 ` Benjamin Herrenschmidt
2009-02-07 23:15 ` Jesse Barnes
2009-02-07 2:51 ` Benjamin Herrenschmidt
2009-02-04 10:24 ` [Bug #12610] sync-Regression in 2.6.28.2? Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12611] kernel BUG at kernel/cgroup.c:398! Rafael J. Wysocki
2009-02-05 1:02 ` Li Zefan
2009-02-05 1:53 ` Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12609] v2.6.29-rc2 libata sff 32bit PIO regression Rafael J. Wysocki
2009-02-05 17:30 ` Hugh Dickins
2009-02-05 22:54 ` Rafael J. Wysocki
2009-02-06 23:10 ` Larry Finger
2009-02-06 23:58 ` Rafael J. Wysocki
2009-02-23 16:22 ` Larry Finger
2009-02-23 22:13 ` Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12613] [Suspend regression][DRM, RADEON] Rafael J. Wysocki
2009-02-04 22:25 ` etienne
2009-02-05 1:18 ` Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12616] boot hang: async vs. kexec Rafael J. Wysocki
2009-02-04 16:50 ` Randy Dunlap
2009-02-05 1:26 ` Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12617] unable to compile e100 firmware into kernel Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12615] boot hangs while bringing up gianfar ethernet Rafael J. Wysocki
2009-02-04 16:54 ` Ira Snyder
2009-02-05 1:23 ` Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12621] Resume broken on iBook Rafael J. Wysocki
2009-02-04 10:24 ` [Bug #12618] hackbench [pthread mode] regression with 2.6.29-rc3 Rafael J. Wysocki
2009-02-04 16:24 ` 2.6.29-rc3-git6: Reported regressions from 2.6.28 Linus Torvalds
2009-02-04 16:32 ` Ingo Molnar
2009-02-04 18:11 ` Norbert Preining
2009-02-04 18:17 ` Linus Torvalds
2009-02-04 18:21 ` Norbert Preining
2009-02-04 18:56 ` Ingo Molnar
2009-02-04 22:22 ` Bron Gondwana
2009-02-05 1:08 ` Ingo Molnar
2009-02-05 1:26 ` Bron Gondwana
2009-02-05 4:45 ` Eric Anholt
2009-02-05 14:51 ` Norbert Preining
2009-02-05 16:56 ` Ingo Molnar [this message]
2009-02-08 11:49 ` [PATCH] drm, i915: select framebuffer support automatically Dave Airlie
2009-02-05 17:17 ` 2.6.29-rc3-git6: Reported regressions from 2.6.28 Randy Dunlap
2009-02-05 19:12 ` Ingo Molnar
2009-02-05 19:14 ` Randy Dunlap
2009-02-05 19:20 ` Ingo Molnar
2009-02-05 19:23 ` Randy Dunlap
2009-02-05 19:36 ` Ingo Molnar
2009-02-11 0:33 ` Eric Anholt
2009-02-05 2:07 ` Rafael J. Wysocki
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=20090205165657.GA15490@elte.hu \
--to=mingo@elte.hu \
--cc=eric@anholt.net \
--cc=h-shimamoto@ct.jp.nec.com \
--cc=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=preining@logic.at \
--cc=rjw@sisk.pl \
--cc=torvalds@linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).