1. 08 3月, 2010 1 次提交
    • U
      platform-drivers: move probe to .devinit.text in drivers/video · c2e13037
      Uwe Kleine-König 提交于
      A pointer to a probe callback is passed to the core via
      platform_driver_register and so the function must not disappear when the
      .init sections are discarded.  Otherwise (if also having HOTPLUG=y)
      unbinding and binding a device to the driver via sysfs will result in an
      oops as does a device being registered late.
      
      An alternative to this patch is using platform_driver_probe instead of
      platform_driver_register plus removing the pointer to the probe function
      from the struct platform_driver.
      Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: Adrian Bunk <bunk@stusta.de>
      Cc: Alberto Mardegan <mardy@users.sourceforge.net>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Andriy Skulysh <askulysh@gmail.com>
      Cc: Antonino Daplas <adaplas@gmail.com>
      Cc: Anton Vorontsov <avorontsov@ru.mvista.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      Cc: Chandramouli Narayanan <mouli@linux.intel.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Frans Pop <elendil@planet.nl>
      Cc: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Cc: Helge Deller <deller@gmx.de>
      Cc: Huang Ying <ying.huang@intel.com>
      Cc: Ian Molton <spyro@f2s.com>
      Cc: Joshua Kinard <kumba@gentoo.org>
      Cc: Kaj-Michael Lang <milang@tal.org>
      Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
      Cc: linux-fbdev-devel@lists.sourceforge.net
      Cc: Maciej W. Rozycki <macro@linux-mips.org>
      Cc: Magnus Damm <damm@igel.co.jp>
      Cc: Martin Michlmayr <tbm@cyrius.com>
      Cc: Matthias Kaehlcke <matthias@kaehlcke.net>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: Pavel Machek <pavel@suse.cz>
      Cc: Philipp Zabel <philipp.zabel@gmail.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Cc: Roel Kluin <roel.kluin@gmail.com>
      Cc: Roland Stigge <stigge@antcom.de>
      Cc: Russell King <rmk+kernel@arm.linux.org.uk>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Vincent Sanders <vince@simtec.co.uk>
      Cc: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
      Acked-by: NRalf Baechle <ralf@linux-mips.org>
      Acked-by: NArnaud Patard <arnaud.patard@rtp-net.org>
      Acked-by: NJames Simmons <jsimmons@infradead.org>
      Acked-by: NPeter Jones <pjones@redhat.com>
      Acked-by: NJaya Kumar <jayakumar.lkml@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      c2e13037
  2. 23 2月, 2010 1 次提交
  3. 17 6月, 2009 1 次提交
    • D
      fbdev: add support for handoff from firmware to hw framebuffers · 4410f391
      Dave Airlie 提交于
      With KMS we have ran into an issue where we really want the KMS fb driver
      to be the one running the console, so panics etc can be shown by switching
      out of X etc.
      
      However with vesafb/efifb built-in, we end up with those on fb0 and the
      KMS fb driver on fb1, driving the same piece of hw, so this adds an fb
      info flag to denote a firmware fbdev, and adds a new aperture base/size
      range which can be compared when the hw drivers are installed to see if
      there is a conflict with a firmware driver, and if there is the firmware
      driver is unregistered and the hw driver takes over.
      
      It uses new aperture_base/size members instead of comparing on the fix
      smem_start/length, as smem_start/length might for example only cover the
      first 1MB of the PCI aperture, and we could allocate the kms fb from 8MB
      into the aperture, thus they would never overlap.
      
      [akpm@linux-foundation.org: coding-style fixes]
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      Acked-by: NPeter Jones <pjones@redhat.com>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4410f391
  4. 14 4月, 2009 1 次提交
  5. 01 4月, 2009 1 次提交
    • B
      efifb: dmi set video type · e14a685d
      Brian Maly 提交于
      The current logic for dmi matching in efifb does not allow efifb to load
      on all hardware that we can dmi match for.
      
      For a real world example, boot with elilo (3.7 or 3.8 vanilla) and on a
      Apple (MacBook) and EFI framebuffer driver will not load (you will have no
      video).  This specific hardware is efi v1.10, so we have UGA and not GOP.
      Without special bootloader magic (i.e.  extra elilo patches for UGA
      graphics detection) no screen info will be passed to the kernel and as a
      result efifb will not load.
      
      This patch allows the dmi match to happen by moving it to earlier in
      efifb_init, and sets the video type (in set_system) so that efifb can load
      when we have a valid dmi match and already know the specifics of the
      hardware.
      
      Without this patch the efifb driver will fail to load in the event screen
      info is not found and passed in by the bootloader, being that we will
      never get to look for a dmi match.  A primary reason for matching with dmi
      is because not all bootloaders detect the video info properly.  The
      solution is that in the event of a dmi match, we should set
      screen_info.orig_video_isVGA.  Most bootloaders fail to set screen info on
      Apple hardware, and this is a big problem for people who use Apple
      hardware.
      
      Tested on a MacBook SantaRosa with elilo-3.8 (vanilla) and resolves the
      issue, the dmi match now works, EFI framebuffer now loads and video works.
      Signed-off-by: NBrian Maly <bmaly@redhat.com>
      Acked-by: NHuang Ying <ying.huang@intel.com>
      Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
      Cc: Chandramouli Narayanan <mouli@linux.intel.com>
      Acked-by: NPeter Jones <pjones@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      e14a685d
  6. 17 10月, 2008 1 次提交
  7. 30 11月, 2007 1 次提交
    • H
      x86_64 EFI boot support: EFI frame buffer driver · 7c83172b
      Huang, Ying 提交于
      This patch adds Graphics Output Protocol support to the kernel.  UEFI2.0 spec
      deprecates Universal Graphics Adapter (UGA) protocol and only Graphics Output
      Protocol (GOP) is produced.  Therefore, the boot loader needs to query the
      UEFI firmware with appropriate Output Protocol and pass the video information
      to the kernel.  As a result of GOP protocol, an EFI framebuffer driver is
      needed for displaying console messages.  The patch adds a EFI framebuffer
      driver.  The EFI frame buffer driver in this patch is based on the Intel Mac
      framebuffer driver.
      
      The ELILO bootloader takes care of passing the video information as
      appropriate for EFI firmware.
      
      The framebuffer driver has been tested in i386 kernel and x86_64 kernel on EFI
      platform.
      Signed-off-by: NChandramouli Narayanan <mouli@linux.intel.com>
      Signed-off-by: NHuang Ying <ying.huang@intel.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Andi Kleen <ak@suse.de>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      7c83172b