1. 25 1月, 2012 4 次提交
    • T
      OMAPDSS: DISPC: print fifo threshold values in bytes · 3cb5d966
      Tomi Valkeinen 提交于
      Fifo thresholds are calculated using bytes, but the debug print prints
      values in buffer units. Change the prints to use bytes to be in line
      with the calculations, and also to print in the same units on all OMAPs.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      3cb5d966
    • T
      OMAPDSS: APPLY: add fifo-merge support · 1d71f42b
      Tomi Valkeinen 提交于
      Add fifo-merge support. This is done mainly in four functions:
      mgr_enable/disable and ovl_enable/disable. These are the functions where
      overlays are taken into and out of active use.
      
      The process to enable and disable fifo-merge is not simple. We need to
      do it in steps, waiting in between for certain settings to be taken into
      use, and continuing after that. The reason for this is that fifo-merge
      is a common thing for all managers/overlays, and its use must be
      synchronized.
      
      As an example, when we disable an overlay, we first set the overlay as
      disabled, then wait until the overlay is actually disabled in the HW,
      and only after that we may re-configure the fifos, possibly taking
      fifo-merge into use.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      1d71f42b
    • T
      OMAPDSS: APPLY: add fifo merge support funcs · fb011974
      Tomi Valkeinen 提交于
      Add mechanism to set/unset the DISPC fifo-merge:
      
      Add new fields to dss_data, fifo_merge and fifo_merge_dirty. These are
      similar to the other info/dirty flags in ovl_priv_data and ovl_mgr_data,
      but fifo merge is a common attribute to all managers and thus outside
      the ovl_mgr_data.
      
      The fifo-merge field is used in the dss_write_regs_common, which handles
      writing the register.
      
      dss_apply_fifo_merge() can be used to set/unset the fifo merge field in
      the dss_data.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      fb011974
    • T
      OMAPDSS: FEAT: Add FIFO_MERGE feature · e6b0f884
      Tomi Valkeinen 提交于
      Add feature flag for fifo merge. OMAP2 doesn't contain fifo merge, later
      OMAPs do.
      
      dispc_enable_fifomerge() checks for the flag when called, and gives a
      WARN if fifo merge is being enabled when it is not supported.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      e6b0f884
  2. 13 1月, 2012 1 次提交
  3. 05 1月, 2012 4 次提交
  4. 02 1月, 2012 8 次提交
    • C
      OMAPDSS: DISPC: Update Scaling Clock Logic · 7282f1b7
      Chandrabhanu Mahapatra 提交于
      Clock requirements for scaling in OMAP2, OMAP3 and OMAP4 are different. In
      OMAP2 and OMAP3 the required clock rate is a function of pixel clock, vertical
      downscale ratio and horizontal downscale ratio whereas in OMAP4 it is a
      function of pixel clock and horizontal downscale ratio only. Selection of 3-tap
      vs 5-tap coefficients depends on clock rate line buffer width in OMAP3 whereas
      in OMAP4 it is independent of clock rate and line buffer width. In OMAP2 3-tap
      for vertical and 5-tap for horizontal scaling is used. In OMAP4 5-tap is used
      both for horizontal and vertical scaling for better performance. Also, the
      number and width of line buffers differs in OMAP3 and OMAP4.
      
      So, clock functions have been fined tuned for OMAP3 and support has been added
      added for OMAP4. This code has been tested on OMAP2, OMAP3 and OMAP4, and
      scaling issues due to clock errors have been resolved.
      Signed-off-by: NChandrabhanu Mahapatra <cmahapatra@ti.com>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      7282f1b7
    • C
      OMAPDSS: DISPC: Update Fir Coefficients · debd9074
      Chandrabhanu Mahapatra 提交于
      The FIR coefficients present in kernel are being updated to new coefficients
      consisting of 24 coefficient tables, with 12 each for 3 tap and 5 tap scenario,
      which are chosen on the basis of DISPC up/downsampling filters M value. M is
      the inverse of low pass cut off frequency of the sampling filter. For vertical
      scaling 3 tap or 5 tap tables are used based on the clock rate and width of
      the line buffer whereas in OMAP2 3 tap is always used. For horizontal scaling
      however 5 tap tables are always used.
      
      New coefficients and the corresponding logic have been tested on OMAP2, OMAP3
      and OMAP4. Horizontal and vertical scaling worked fine except for some 3 tap
      vs 5 tap issue during vertical upscaling and clock failing issues which is
      acknowledged in the next patch. Vertical upscaling was found to perform better
      under 5 taps. The 24 coefficient tables have been moved to another file
      dispc_coefs.c for proper maintainance.
      
      This code is written based on code written by Lajos Molnar <lajos@ti.com> in
      Android Kernel for scaling. Lajos Molnar <lajos@ti.com> had fine tuned the FIR
      coefficient selection process and reduced outliness and blockiness around
      images when upscaling more than 2 times.
      Signed-off-by: NChandrabhanu Mahapatra <cmahapatra@ti.com>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      debd9074
    • R
      OMAPDSS: APPLY: fix NULL pointer deref when mgr is not set · 1f3f53ae
      Rob Clark 提交于
      extra_info_update_ongoing() goes through all overlays, but doesn't check
      if the overlay is connected to a manager. This leads to a crash whenever
      an overlay has been detached.
      
      Add a check to skip the non-connected overlays.
      Reported-by: NRob Clark <rob@ti.com>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      1f3f53ae
    • A
      OMAPDSS: DSI: Fix HSDIV related PLL info in dsi_dump_clocks() · 84309f16
      Archit Taneja 提交于
      The clock names of DSI_PLL_HSDIV_DISPC and DSI_PLL_HSDIV_DSI was made
      dynamic based on the current value of DISPC and DSI FCLK sources. This
      doesn't need to be done since we are just interested in the clock names,
      and not the current clock sources for DISPC and DSI FCLKs.
      
      Use only the generic and omap specific names for the DSI PLL's HSDIV
      clocks.
      Signed-off-by: NArchit Taneja <archit@ti.com>
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      84309f16
    • T
      OMAPDSS: APPLY: move simple_check functions · 54540d41
      Tomi Valkeinen 提交于
      The functions dss_ovl_simple_check() and dss_mgr_simple_check() are not
      really part of the apply mechanism, and can be moved to overlay.c and
      manager.c.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      54540d41
    • R
      OMAPDSS: fix potential NULL pointer ref in OCP_ERR handling path · 00f17e45
      Rob Clark 提交于
      The dispc's error handler tries to disable all outputs when OCP_ERR
      happens. However, the code doesn't check if there actually is a display
      on each particular output, nor if there's a driver for the display. This
      may lead to NULL pointer reference.
      Signed-off-by: NRob Clark <rob@ti.com>
      [tomi.valkeinen@ti.com: added patch description]
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      00f17e45
    • T
      OMAPDSS: APPLY: move check functions · 6ac48d1e
      Tomi Valkeinen 提交于
      The functions dss_ovl_check, dss_mgr_check_zorder, dss_mgr_check in
      apply.c are not really part of the apply mechanism, and can be moved to
      overlay.c and manager.c.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      6ac48d1e
    • T
      OMAPDSS: APPLY: remove unused variables · 5af661ce
      Tomi Valkeinen 提交于
      dss_mgr_check_zorder() has two unused variables. Remove them.
      Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
      5af661ce
  5. 02 12月, 2011 23 次提交