1. 20 10月, 2014 1 次提交
  2. 30 9月, 2014 1 次提交
  3. 17 4月, 2014 1 次提交
  4. 19 3月, 2014 2 次提交
  5. 05 3月, 2014 1 次提交
    • T
      OMAPDSS: convert pixel clock to common videomode style · d8d78941
      Tomi Valkeinen 提交于
      omapdss has its own video-timings struct, but we want to move the common
      videomode.
      
      The first step is to change the omapdss's pixelclock unit from kHz to
      Hz. Also, omapdss uses "pixel_clock" field name, whereas the common
      videomode uses "pixelclock" field name. This patch changes the field
      name also, as that makes it easy to spot any non-converted pixel_clock
      uses.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      d8d78941
  6. 13 1月, 2014 2 次提交
    • T
      OMAPFB: disable overlays on driver removal · b52a6e7f
      Tomi Valkeinen 提交于
      When omapfb module is removed, the driver will turn off all the displays
      it manages. However, it leaves the overlays enabled. While the overlays
      are obviously disabled as the displays are disabled, it causes issues
      when the driver module is loaded again, as at that point the overlays
      are still enabled on the hardware level. The result is that even if the
      SW thinks overlays are disabled, they are actually enabled.
      
      Fix this by making sure the overlays are disabled at module removal.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      b52a6e7f
    • T
      OMAPFB: give informative print when probe succeeds · ab7bf423
      Tomi Valkeinen 提交于
      It is quite common to have omapfb probe deferred because of a missing
      resource, and to get omapfb probed succesfully a bit later. This works
      fine. However, omapfb does not give any print on a successful probe, so
      if the omapfb is actually never probed again after deferral, this is not
      shown in the log.
      
      To help debugging, add a simple print from omapfb at the end of its
      probe, saying which display it is using and in which resolution.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      ab7bf423
  7. 17 6月, 2013 3 次提交
    • T
      OMAPFB: use EPROBE_DEFER if default display is not present · e9f322b4
      Tomi Valkeinen 提交于
      Currently omapfb returns EPROBE_DEFER if no displays have been probed at
      the time omapfb is probed. However, sometimes some of the displays have
      been probed at that time, but not all. We can't return EPROBE_DEFER in
      that case, because then one missing driver would cause omapfb to defer
      always, preventing any display from working.
      
      However, if the user has defined a default display, we can presume that
      the driver for that display is eventually loaded. Thus, this patch
      changes omapfb to return EPROBE_DEFER in case default display is not
      found.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      e9f322b4
    • T
      OMAPDSS: Implement display (dis)connect support · a7e71e7f
      Tomi Valkeinen 提交于
      We currently have two steps in panel initialization and startup: probing
      and enabling. After the panel has been probed, it's ready and can be
      configured and later enabled.
      
      This model is not enough with more complex display pipelines, where we
      may have, for example, two panels, of which only one can be used at a
      time, connected to the same video output.
      
      To support that kind of scenarios, we need to add new step to the
      initialization: connect.
      
      This patch adds support for connecting and disconnecting panels. After
      probe, but before connect, no panel ops should be called. When the
      connect is called, a proper video pipeline is established, and the panel
      is ready for use. If some part in the video pipeline is already
      connected (by some other panel), the connect call fails.
      
      One key difference with the old style setup is that connect() handles
      also connecting to the overlay manager. This means that the omapfb (or
      omapdrm) no longer needs to figure out which overlay manager to use, but
      it can just call connect() on the panel, and the proper overlay manager
      is connected by omapdss.
      
      This also allows us to add back the support for dynamic switching
      between two exclusive panels. However, the current panel device model is
      not changed to support this, as the new device model is implemented in
      the following patches and the old model will be removed. The new device
      model supports dynamic switching.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      a7e71e7f
    • T
      OMAPDSS: add helpers to get mgr or output from display · be8e8e1c
      Tomi Valkeinen 提交于
      Add two helper functions that can be used to find either the DSS output
      or the overlay manager that is connected to the given display.
      
      This hides how the output and the manager are actually connected, making
      it easier to change the connections in the future.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      be8e8e1c
  8. 23 5月, 2013 1 次提交
    • T
      OMAPDSS: Fix crash with DT boot · 591a0ac7
      Tomi Valkeinen 提交于
      When booting with DT, there's a crash when omapfb is probed. This is
      caused by the fact that omapdss+DT is not yet supported, and thus
      omapdss is not probed at all. On the other hand, omapfb is always
      probed. When omapfb tries to use omapdss, there's a NULL pointer
      dereference crash. The same error should most likely happen with omapdrm
      and omap_vout also.
      
      To fix this, add an "initialized" state to omapdss. When omapdss has
      been probed, it's marked as initialized. omapfb, omapdrm and omap_vout
      check this state when they are probed to see that omapdss is actually
      there.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      Tested-by: NPeter Ujfalusi <peter.ujfalusi@ti.com>
      591a0ac7
  9. 02 5月, 2013 2 次提交
    • T
      OMAPFB: defer probe if no displays · dfbc3231
      Tomi Valkeinen 提交于
      omapfb requires the panel drivers to have been probed when omapfb is
      initialized. omapfb does not support insertion of new panels after its
      probe. This causes a problem in case omapdss or the panel probes have
      been deferred due to EPROBE_DEFER error, as omapfb won't find any
      displays.
      
      As a quick fix, this patch changes the omapfb probe so that if omapfb
      does not find any displays, it'll return EPROBE_DEFER. This is not
      perfect, as with a board with no displays, omapfb will get deferred
      forever. Also, if the board has multiple displays, but only some of them
      have been probed, omapfb will start and leave the unprobed displays out.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      dfbc3231
    • T
      OMAPFB: use module_platform_driver() · af56fe3c
      Tomi Valkeinen 提交于
      Instead of using platform_driver_probe(), use module_platform_driver()
      so that we can support deferred probing.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      af56fe3c
  10. 24 4月, 2013 1 次提交
  11. 03 4月, 2013 1 次提交
    • T
      OMAPDSS: add output->dispc_channel · 2eea5ae6
      Tomi Valkeinen 提交于
      The DISPC channel used for each output is currently passed in panel
      platform data from the board files.
      
      To simplify this, and to make the panel drivers less dependent on OMAP,
      this patch changes omapdss to resolve the channel independently. The
      channel is resolved based on the OMAP version and, in case of DSI, the
      DSI module id. This resolved channel is stored into a new field in
      output, dispc_channel.
      
      The few places where dssdev->channel was used are changed to use
      output->recommended_channel. After this patch, dssdev->channel is
      obsolete.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      Reviewed-by: NArchit Taneja <archit@ti.com>
      2eea5ae6
  12. 13 12月, 2012 3 次提交
  13. 07 12月, 2012 5 次提交
    • T
      OMAPDSS: use omapdss_compat_init() in other drivers · a9ee9f08
      Tomi Valkeinen 提交于
      omapdss_compat_init() and omapdss_compat_uninit() is called internally
      by omapdss. This patch moves the calls to omapfb, omap_vout and omapdrm
      drivers. omapdrm driver can later remove the call after non-compat
      support has been implemented in omapdrm.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      a9ee9f08
    • T
      OMAPFB: connect ovl managers to all dssdevs · 6b6f1edf
      Tomi Valkeinen 提交于
      Commit 5d89bcc3 (OMAPDSS: remove initial
      display code from omapdss) moved setting up the initial overlay, overlay
      manager, output and display connections from omapdss to omapfb.
      
      However, currently omapfb only handles the connection related to the
      default display, which means that no overlay managers are connected to
      other displays.
      
      This patch changes omapfb to go through all dssdevs, and connect an
      overlay manager to them.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      6b6f1edf
    • T
      OMAPFB: remove warning when trying to alloc at certain paddress · 09a8c45c
      Tomi Valkeinen 提交于
      omapfb gives a WARN_ONCE if a predefined physical address is given for
      allocating the framebuffer memory, as this is not currently supported.
      
      However, the same warning happens if omapfb fails to allocate memory
      during runtime, as when the allocation has failed, omapfb tries to
      re-allocate the old memory with the physical address of the old memory
      area.
      
      Remove the warning from omapfb_alloc_fbmem, as it serves no purpose on
      the failure case above, and move it to omapfb_parse_vram_param, so that
      we only warn if physical address is given via omapfb module parameters.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      09a8c45c
    • T
      OMAPFB: simplify locking · b41deecb
      Tomi Valkeinen 提交于
      Kernel lock verification code has lately detected possible circular
      locking in omapfb. The exact problem is unclear, but omapfb's current
      locking seems to be overly complex.
      
      This patch simplifies the locking in the following ways:
      
      - Remove explicit omapfb mem region locking. I couldn't figure out the
        need for this, as long as we take care to take omapfb lock.
      
      - Get omapfb lock always, even if the operation is possibly only related
        to one fb_info. Better safe than sorry, and normally there's only one
        user for the fb so this shouldn't matter.
      
      - Make sure fb_info lock is taken first, then omapfb lock.
      
      With this patch the warnings about possible circular locking does not
      happen anymore.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      b41deecb
    • T
      OMAPFB: move dssdev->sync call out from omapfb_realloc_fbmem · 636f4e1b
      Tomi Valkeinen 提交于
      Currently omapfb_realloc_fbmem() calls dssdev->sync to ensure any
      possible frame update is finished. This patch moves the call to
      dssdev->sync from omapfb_realloc_fbmem to the callers of
      omapfb_realloc_fbmem.
      
      This keeps dssdev related calls out from omapfb_realloc_fbmem, which
      makes sense as the function should only deal with fb memory. Also, this
      seems to avoid a lockdep warning about possible circular locking.
      However, the exact reason for that warning is still unclear.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      636f4e1b
  14. 19 11月, 2012 1 次提交
  15. 13 11月, 2012 1 次提交
    • T
      OMAPFB: use dma_alloc_attrs to allocate memory · 0049fb26
      Tomi Valkeinen 提交于
      Use dma_alloc_attrs to allocate memory instead of omap specific vram
      allocator. After this we can remove the omap vram allocator.
      
      There are some downsides to this change:
      
      1) dma_alloc_attrs doesn't let us allocate at certain physical address.
      However, this should not be a problem as this feature of vram allocator
      is only used when reserving the framebuffer that was initialized by the
      bootloader, and we don't currently support "passing" a framebuffer from
      the bootloader to the kernel anyway.
      
      2) dma_alloc_attrs, as of now, always ioremaps the allocated area, and
      we don't need the ioremap when using VRFB. This patch uses
      DMA_ATTR_NO_KERNEL_MAPPING for the allocation, but the flag is currently
      not operational.
      
      3) OMAPFB_GET_VRAM_INFO ioctl cannot return real values anymore. I
      changed the ioctl to return 64M for all the values, which, I hope, the
      applications will interpret as "there's enough vram".
      
      4) "vram" kernel parameter to define how much ram to reserve for video
      use no longer works. The user needs to enable CMA and use "cma"
      parameter.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      0049fb26
  16. 29 10月, 2012 3 次提交
    • T
      OMAPFB: improve mode selection from EDID · 5e18e352
      Tomi Valkeinen 提交于
      The current omapfb code goes over all the modes found from the monitors
      EDID data, and searches for a mode that is compatible with the DSS
      hardware and has the highest x-res.
      
      While this works ok as such, it proves problematic when using DSI PLL
      for pixel clock. Calculating DSI PLL dividers is not the fastest of the
      operations, and while doing it for one mode is usually ok, doing it for
      20 modes is noticable.
      
      Also, the first mode given in the EDID data should be the native mode of
      the monitor, and thus also the best mode, so if that can be used, no
      need to look further.
      
      This patch changes the code to use the first mode that is compatible
      with the DSS hardware.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      5e18e352
    • T
      OMAPFB: remove use of extended edid block · 2b5c0d4f
      Tomi Valkeinen 提交于
      It seems that using the second EDID block causes more problems than is
      of any help. The first mode in the extended block will get
      FB_MODE_IS_FIRST set, which will override the first mode from the first
      EDID block, thus making the default videomode selection not to work
      properly.
      
      This patch removes the use of the extended edid block for now.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      2b5c0d4f
    • T
      OMAPDSS: remove initial display code from omapdss · 5d89bcc3
      Tomi Valkeinen 提交于
      Currently omapdss driver sets up the initial connections between
      overlays, overlay manager and a panel, based on default display
      parameter coming from the board file or via module parameters.
      
      This is unnecessary, as it's the higher level component that should
      decide what display to use and how. This patch removes the code from
      omapdss, and implements similar code to omapfb.
      
      The def_disp module parameter and the default display platform_data
      parameter are kept in omapdss, but omapdss doesn't do anything with
      them. It will just return the default display name with
      dss_get_default_display_name() call, which omapfb uses. This is done to
      keep the backward compatibility.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      5d89bcc3
  17. 24 10月, 2012 1 次提交
  18. 17 10月, 2012 2 次提交
  19. 09 10月, 2012 1 次提交
    • K
      mm: kill vma flag VM_RESERVED and mm->reserved_vm counter · 314e51b9
      Konstantin Khlebnikov 提交于
      A long time ago, in v2.4, VM_RESERVED kept swapout process off VMA,
      currently it lost original meaning but still has some effects:
      
       | effect                 | alternative flags
      -+------------------------+---------------------------------------------
      1| account as reserved_vm | VM_IO
      2| skip in core dump      | VM_IO, VM_DONTDUMP
      3| do not merge or expand | VM_IO, VM_DONTEXPAND, VM_HUGETLB, VM_PFNMAP
      4| do not mlock           | VM_IO, VM_DONTEXPAND, VM_HUGETLB, VM_PFNMAP
      
      This patch removes reserved_vm counter from mm_struct.  Seems like nobody
      cares about it, it does not exported into userspace directly, it only
      reduces total_vm showed in proc.
      
      Thus VM_RESERVED can be replaced with VM_IO or pair VM_DONTEXPAND | VM_DONTDUMP.
      
      remap_pfn_range() and io_remap_pfn_range() set VM_IO|VM_DONTEXPAND|VM_DONTDUMP.
      remap_vmalloc_range() set VM_DONTEXPAND | VM_DONTDUMP.
      
      [akpm@linux-foundation.org: drivers/vfio/pci/vfio_pci.c fixup]
      Signed-off-by: NKonstantin Khlebnikov <khlebnikov@openvz.org>
      Cc: Alexander Viro <viro@zeniv.linux.org.uk>
      Cc: Carsten Otte <cotte@de.ibm.com>
      Cc: Chris Metcalf <cmetcalf@tilera.com>
      Cc: Cyrill Gorcunov <gorcunov@openvz.org>
      Cc: Eric Paris <eparis@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Hugh Dickins <hughd@google.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: James Morris <james.l.morris@oracle.com>
      Cc: Jason Baron <jbaron@redhat.com>
      Cc: Kentaro Takeda <takedakn@nttdata.co.jp>
      Cc: Matt Helsley <matthltc@us.ibm.com>
      Cc: Nick Piggin <npiggin@kernel.dk>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Robert Richter <robert.richter@amd.com>
      Cc: Suresh Siddha <suresh.b.siddha@intel.com>
      Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
      Cc: Venkatesh Pallipadi <venki@google.com>
      Acked-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      314e51b9
  20. 26 9月, 2012 1 次提交
    • A
      OMAPFB: remove manager->device references · 4249e61e
      Archit Taneja 提交于
      With the introduction of output entities, managers will now connect to outputs.
      Use the helper op for overlays named get_device. This will abstract away the
      information on how to get the device from an overlay.
      
      Using the helper function will reduce the number of pointer dereferences a user
      of OMAPDSS needs to do and reduce risk of a NULL dereference.
      Signed-off-by: NArchit Taneja <archit@ti.com>
      4249e61e
  21. 13 9月, 2012 1 次提交
    • T
      ARM: OMAP2+: Prepare for irqs.h removal · 7d7e1eba
      Tony Lindgren 提交于
      As the interrupts should only be defined in the platform_data, and
      eventually coming from device tree, there's no need to define them
      in header files.
      
      Let's remove the hardcoded references to irqs.h and fix up the includes
      so we don't rely on headers included in irqs.h. Note that we're
      defining OMAP_INTC_START as 0 to the interrupts. This will be needed
      when we enable SPARSE_IRQ. For some drivers we need to add
      #include <plat/cpu.h> for now until these drivers are fixed to
      remove cpu_is_omapxxxx() usage.
      
      While at it, sort som of the includes the standard way, and add
      the trailing commas where they are missing in the related data
      structures.
      
      Note that for drivers/staging/tidspbridge we just define things
      locally.
      
      Cc: Paul Walmsley <paul@pwsan.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      7d7e1eba
  22. 11 9月, 2012 1 次提交
  23. 08 9月, 2012 1 次提交
    • T
      OMAPFB: clear framebuffers with CPU · ca444158
      Tomi Valkeinen 提交于
      Currently vram.c clears the allocated memory automatically using OMAP
      system DMA. In an effort to reduce OMAP dependencies, we'll do the
      memory clear with CPU from now on.
      
      This patch implements clearing of the framebuffer in omapfb, using
      cfb_fillrect() to do the actual clear.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      ca444158
  24. 23 8月, 2012 1 次提交
  25. 10 8月, 2012 1 次提交
  26. 29 6月, 2012 1 次提交