1. 07 4月, 2011 2 次提交
  2. 31 3月, 2011 1 次提交
  3. 23 9月, 2010 2 次提交
  4. 11 8月, 2010 1 次提交
  5. 18 5月, 2010 1 次提交
  6. 25 4月, 2010 1 次提交
    • T
      drivers/video/efifb.c: support framebuffer for NVIDIA 9400M in MacBook Pro 5,1 · 8a3bdfe6
      Thomas Gerlach 提交于
      Description of patch:
      ---------------------
      
      This is a patch for the EFI framebuffer driver to enable the framebuffer
      of the NVIDIA 9400M as found in MacBook Pro (MBP) 5,1 and up.  The
      framebuffer of the NVIDIA graphic cards are located at the following
      addresses in memory:
      
      9400M:    0xC0010000
      9600M GT: 0xB0030000
      
      The patch delivered right here only provides the memory location of the
      framebuffer of the 9400M device.  The 9600M GT is not covered.  It is
      assumed that the 9400M is used when powered up the MBP.
      
      The information which device is currently powered and in use is stored in
      the 64 bytes large EFI variable "gpu-power-prefs".  More specifically,
      byte 0x3B indicates whether 9600M GT (0x00) or 9400M (0x01) is online.
      
      The PCI bus IDs are the following:
      9400M:    PCI 03:00:00
      9600M GT: PCI 02:00:00
      
      The EFI variables can be easily read-out and manipulated with "rEFIt", an
      MBP specific bootloader tool.  For more information on how handle rEFIt
      and EFI variables please consult "http://refit.sourceforge.net" and
      "http://ubuntuforums.org/archive/index.php/t-1076879.html".
      
      IMPORTANT NOTE: The information on how to activate the 9400M device given
      at "ubuntuforums.org" is not correct, since it states
      
      gpu-power-prefs[0x3B] = 0x00 -> 9400M (PCI 02:00:00)
      gpu-power-prefs[0x3B] = 0x01 -> 9600M GT (PCI 03:00:00)
      
      Actually, the assignment of the values and the PCI bus IDs are swapped.
      
      Suggestions:
      ------------
      
      To cover framebuffers of both 9400M and 9600M GT, I would suggest to
      implement a conditional on "gpu-power-prefs".  Depending on the value of
      byte 0x3B, the according framebuffer is selected.  However, this requires
      kernel access to the EFI variables.
      
      [akpm@linux-foundation.org: rename optname, per Peter Jones]
      Signed-off-by: NThomas Gerlach <t.m.gerlach@freenet.de>
      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>
      8a3bdfe6
  7. 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
  8. 23 2月, 2010 1 次提交
  9. 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
  10. 14 4月, 2009 1 次提交
  11. 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
  12. 17 10月, 2008 1 次提交
  13. 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