1. 11 1月, 2012 4 次提交
  2. 03 1月, 2012 3 次提交
    • B
      offb: Fix setting of the pseudo-palette for >8bpp · 1bb0b7d2
      Benjamin Herrenschmidt 提交于
      When using a >8bpp framebuffer, offb advertises truecolor, not directcolor,
      and doesn't touch the color map even if it has a corresponding access method
      for the real hardware.
      
      Thus it needs to set the pseudo-palette with all 3 components of the color,
      like other truecolor framebuffers, not with copies of the color index like
      a directcolor framebuffer would do.
      
      This went unnoticed for a long time because it's pretty hard to get offb
      to kick in with anything but 8bpp (old BootX under MacOS will do that and
      qemu does it).
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      CC: stable@kernel.org
      1bb0b7d2
    • B
      offb: Add palette hack for qemu "standard vga" framebuffer · 9b961ed2
      Benjamin Herrenschmidt 提交于
      We rename the mach64 hack to "simple" since that's also applicable
      to anything using VGA-style DAC IO ports (set to 8-bit DAC) and we
      use it for qemu vga.
      
      Note that this is keyed on a device-tree "compatible" property that
      is currently only set by an upcoming version of SLOF when using the
      qemu "pseries" platform. This is on purpose as other qemu ppc platforms
      using OpenBIOS aren't properly setting the DAC to 8-bit at the time of
      the writing of this patch.
      
      We can fix OpenBIOS later to do that and add the required property, in
      which case it will be matched by this change.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      9b961ed2
    • B
      offb: Fix bug in calculating requested vram size · c055fe07
      Benjamin Herrenschmidt 提交于
      We used to try to request 8 times more vram than needed, which would
      fail if the card has a too small BAR (observed with qemu & kvm).
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      CC: stable@kernel.org
      c055fe07
  3. 02 1月, 2012 1 次提交
  4. 28 12月, 2011 1 次提交
  5. 06 12月, 2011 1 次提交
  6. 27 11月, 2011 1 次提交
    • R
      staging: add omapdrm DRM/KMS driver for TI OMAP platforms · cd5351f4
      Rob Clark 提交于
      A DRM display driver for TI OMAP platform.  Similar to omapfb (fbdev)
      and omap_vout (v4l2 display) drivers in the past, this driver uses the
      DSS2 driver to access the display hardware, including support for
      HDMI, DVI, and various types of LCD panels.  And it implements GEM
      support for buffer allocation (for KMS as well as offscreen buffers
      used by the xf86-video-omap userspace xorg driver).
      
      The driver maps CRTCs to overlays, encoders to overlay-managers, and
      connectors to dssdev's.  Note that this arrangement might change slightly
      when support for drm_plane overlays is added.
      
      For GEM support, non-scanout buffers are using the shmem backed pages
      provided by GEM core (In drm_gem_object_init()).  In the case of scanout
      buffers, which need to be physically contiguous, those are allocated
      with CMA and use drm_gem_private_object_init().
      
      See userspace xorg driver:
      git://github.com/robclark/xf86-video-omap.git
      
      Refer to this link for CMA (Continuous Memory Allocator):
      http://lkml.org/lkml/2011/8/19/302
      
      Links to previous versions of the patch:
      v1: http://lwn.net/Articles/458137/
      v2: http://patches.linaro.org/4156/
      v3: http://patches.linaro.org/4688/
      v4: http://patches.linaro.org/4791/
      
      History:
      
      v5: move headers from include/drm at Greg KH's request, minor rebasing
          on 3.2-rc1, pull in private copies of drm_gem_{get,put}_pages()
          because "drm/gem: add functions to get/put pages" patch is not
          merged yet
      v4: bit of rework of encoder/connector _dpms() code, modeset_init()
          rework to not use nested functions, update TODO.txt
      v3: minor cleanups, improved error handling for dev_load(), some minor
          API changes that will be needed later for tiled buffer support
      v2: replace omap_vram with CMA for scanout buffer allocation, remove
          unneeded functions, use dma_addr_t for physical addresses, error
          handling cleanup, refactor attach/detach pages into common drm
          functions, split non-userspace-facing API into omap_priv.h, remove
          plugin API
      
      v1: original
      Signed-off-by: NRob Clark <rob@ti.com>
      Acked-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      cd5351f4
  7. 22 11月, 2011 3 次提交
  8. 19 11月, 2011 1 次提交
    • G
      USB: convert some miscellanies drivers to use module_usb_driver() · fe748483
      Greg Kroah-Hartman 提交于
      This converts the remaining USB drivers in the kernel to use the
      module_usb_driver() macro which makes the code smaller and a bit
      simpler.
      
      Added bonus is that it removes some unneeded kernel log messages about
      drivers loading and/or unloading.
      
      Cc: Guenter Roeck <guenter.roeck@ericsson.com>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Ben Dooks <ben-linux@fluff.org>
      Cc: Till Harbaum <till@harbaum.org>
      Cc: Karsten Keil <isdn@linux-pingi.de>
      Cc: Chris Ball <cjb@laptop.org>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Lauro Ramos Venancio <lauro.venancio@openbossa.org>
      Cc: Aloisio Almeida Jr <aloisio.almeida@openbossa.org>
      Cc: Samuel Ortiz <sameo@linux.intel.com>
      Cc: Steve Glendinning <steve.glendinning@smsc.com>
      Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
      Cc: Evgeniy Polyakov <zbr@ioremap.net>
      Cc: Wim Van Sebroeck <wim@iguana.be>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jesper Juhl <jj@chaosbits.net>
      Cc: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
      Cc: Jamie Iles <jamie@jamieiles.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      fe748483
  9. 18 11月, 2011 3 次提交
    • T
      OMAPDSS: DISPC: skip scaling calculations when not scaling · f95cb5eb
      Tomi Valkeinen 提交于
      Current code calculates scaling factors for video overlays even when the
      overlays are not scaled. Change the code to skip calculations when not
      scaling.
      
      This optimizes the code a bit, but also fixes a problem when configuring
      an overlay for a disabled display: if the display is disabled we don't
      necessarily know the pixel clock used when the display is enabled, and
      in some cases (like HDMI) the pixel clock is set to zero until a proper
      video mode is set later. A wrong pixel clock will mess up the
      scaling calculations, causing an error like:
      
      omapdss DISPC error: failed to set up scaling, required fclk rate = 0
      Hz, current fclk rate = 170666666 Hz
      
      A proper fix would be to check later whether the clocks are enough for the
      scaling, at the point when the overlay or display is actually enabled,
      but this patch removes the problem for now.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      f95cb5eb
    • T
      OMAPFB: fix compilation warnings due to missing include · 1c6bc899
      Tomi Valkeinen 提交于
      Fix warnings similar to this by including module.h:
      
      drivers/video/omap/dispc.c:276:1: warning: data definition has no type
      or storage class
      drivers/video/omap/dispc.c:276:1: warning: type defaults to 'int' in
      declaration of 'EXPORT_SYMBOL'
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      1c6bc899
    • T
      OMAPDSS: HDMI: fix returned HDMI pixel clock · ef319c6e
      Tomi Valkeinen 提交于
      hdmi_get_pixel_clock() returns the pixel clock in Hz, but the pck is
      stored as kHz. This means the return value has to be multiplied by 1000,
      not by 10000 as the code did.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      ef319c6e
  10. 01 11月, 2011 6 次提交
  11. 31 10月, 2011 1 次提交
    • P
      Kconfig: remove a few puzzling comments · bfc994b5
      Paul Bolle 提交于
      These comments mention CONFIG options that do not exist: not as a symbol
      in a Kconfig file (without the CONFIG_ prefix) and neither as a symbol
      (with that prefix) in the code.
      
      There's one reference to XSCALE_PMU_TIMER as a negative dependency.
      But XSCALE_PMU_TIMER is never defined (CONFIG_XSCALE_PMU_TIMER is
      also unused in the code). It shows up with type "unknown" if you search
      for it in menuconfig. Apparently a negative dependency on an unknown
      symbol is always true. That negative dependency can be removed too.
      Signed-off-by: NPaul Bolle <pebolle@tiscali.nl>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      bfc994b5
  12. 25 10月, 2011 1 次提交
  13. 15 10月, 2011 1 次提交
  14. 08 10月, 2011 2 次提交
  15. 05 10月, 2011 9 次提交
  16. 04 10月, 2011 2 次提交