1. 18 Dec, 2017 2 commits
    • Jyri Sarha's avatar
      drm/tilcdc: Remove drm_framebuffer_get() and *_put() calls · 1775ede0
      Jyri Sarha authored
      The drm_framebuffer_get() and drm_framebuffer_put() calls in the
      tilcdc driver are obsolete. The drm atomic modesetting core should
      take care of holding the references while the atomic state object is
      in use. The old state is deleted when a commit of a new one is
      completed after drm_atomic_helper_wait_for_vblanks().
      
      This also fixes an occasional framebuffer leak the old
      drm_framebuffer_get() and drm_framebuffer_put() code had.
      Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
      1775ede0
    • Logan Gunthorpe's avatar
      drm/tilcdc: ensure nonatomic iowrite64 is not used · 4e5ca2d9
      Logan Gunthorpe authored
      Add a check to ensure iowrite64 is only used if it is atomic.
      
      It was decided in [1] that the tilcdc driver should not be using an
      atomic operation (so it was left out of this patchset). However, it turns
      out that through the drm code, a nonatomic header is actually included:
      
      include/linux/io-64-nonatomic-lo-hi.h
      is included from include/drm/drm_os_linux.h:9:0,
                  from include/drm/drmP.h:74,
                  from include/drm/drm_modeset_helper.h:26,
                  from include/drm/drm_atomic_helper.h:33,
                  from drivers/gpu/drm/tilcdc/tilcdc_crtc.c:19:
      
      And thus, without this change, this patchset would inadvertantly
      change the behaviour of the tilcdc driver.
      
      [1] lkml.kernel.org/r/CAK8P3a2HhO_zCnsTzq7hmWSz5La5Thu19FWZpun16iMnyyNreQ@mail.gmail.com
      Signed-off-by: default avatarLogan Gunthorpe <logang@deltatee.com>
      Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
      Cc: Jyri Sarha <jsarha@ti.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: David Airlie <airlied@linux.ie>
      Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
      4e5ca2d9
  2. 08 Dec, 2017 2 commits
  3. 07 Dec, 2017 3 commits
    • Dave Airlie's avatar
      Merge tag 'drm-intel-next-2017-12-01' of git://anongit.freedesktop.org/drm/drm-intel into drm-next · 3f1f0b1c
      Dave Airlie authored
      [airlied: fix conflict in intel_dsi.c]
      
      drm-intel-next-2017-12-01:
      
      - Init clock gate fix (Ville)
      - Execlists event handling corrections (Chris, Michel)
      - Improvements on GPU Cache invalidation and context switch (Chris)
      - More perf OA changes (Lionel)
      - More selftests improvements and fixes (Chris, Matthew)
      - Clean-up on modules parameters (Chris)
      - Clean-up around old ringbuffer submission and hw semaphore on old platforms (Chris)
      - More Cannonlake stabilization effort (David, James)
      - Display planes clean-up and improvements (Ville)
      - New PMU interface for perf queries... (Tvrtko)
      - ... and other subsequent PMU changes and fixes (Tvrtko, Chris)
      - Remove success dmesg noise from rotation (Chris)
      - New DMC for Kabylake (Anusha)
      - Fixes around atomic commits (Daniel)
      - GuC updates and fixes (Sagar, Michal, Chris)
      - Couple gmbus/i2c fixes (Ville)
      - Use exponential backoff for all our wait_for() (Chris)
      - Fixes for i915/fbdev (Chris)
      - Backlight fixes (Arnd)
      - Updates on shrinker (Chris)
      - Make Hotplug enable more robuts (Chris)
      - Disable huge pages (TPH) on lack of a needed workaround (Joonas)
      - New GuC images for SKL, KBL, BXT (Sagar)
      - Add HW Workaround for Geminilake performance (Valtteri)
      - Fixes for PPS timings (Imre)
      - More IPS fixes (Maarten)
      - Many fixes for Display Port on gen2-gen4 (Ville)
      - Retry GPU reset making the recover from hang more robust (Chris)
      
      * tag 'drm-intel-next-2017-12-01' of git://anongit.freedesktop.org/drm/drm-intel: (101 commits)
        drm/i915: Update DRIVER_DATE to 20171201
        drm/i915/cnl: Mask previous DDI - PLL mapping
        drm/i915: Remove unsafe i915.enable_rc6
        drm/i915: Sleep and retry a GPU reset if at first we don't succeed
        drm/i915: Interlaced DP output doesn't work on VLV/CHV
        drm/i915: Pass crtc state to intel_pipe_{enable,disable}()
        drm/i915: Wait for pipe to start on i830 as well
        drm/i915: Fix vblank timestamp/frame counter jumps on gen2
        drm/i915: Fix deadlock in i830_disable_pipe()
        drm/i915: Fix has_audio readout for DDI A
        drm/i915: Don't add the "force audio" property to DP connectors that don't support audio
        drm/i915: Disable DP audio for g4x
        drm/i915/selftests: Wake the device before executing requests on the GPU
        drm/i915: Set fake_vma.size as well as fake_vma.node.size for capture
        drm/i915: Tidy up signed/unsigned comparison
        drm/i915: Enable IPS with only sprite plane visible too, v4.
        drm/i915: Make ips_enabled a property depending on whether IPS is enabled, v3.
        drm/i915: Avoid PPS HW/SW state mismatch due to rounding
        drm/i915: Skip switch-to-kernel-context on suspend when wedged
        drm/i915/glk: Apply WaProgramL3SqcReg1DefaultForPerf for GLK too
        ...
      3f1f0b1c
    • Dave Airlie's avatar
      Merge tag 'drm-misc-next-2017-12-07' of git://anongit.freedesktop.org/drm/drm-misc into drm-next · 5c379b4f
      Dave Airlie authored
      UAPI Changes:
      
      - Add "panel orientation" property to DRM to indicate orientation of the
      panel vs the device's casing (Hans de Goede)
      
      Core Changes:
      
      - misc doc and bug fixes
      
      Driver Changes:
      
      - sun4i: Many improvements to the DE driver like multi-plane support and
      YUV formats (Jernej Skrabec)
      
      * tag 'drm-misc-next-2017-12-07' of git://anongit.freedesktop.org/drm/drm-misc: (50 commits)
        drm/sun4i: Fix uninitialized variables in vi layer
        drm/fb-helper: Fix potential NULL pointer dereference
        gpu: drm: stm: Adopt SPDX identifiers
        gpu: drm: sti: Adopt SPDX identifiers
        drm/fsl-dcu: Use drm_mode_config_helper_suspend/resume()
        drm/sun4i: Wire in DE2 YUV support
        drm/sun4i: Expand DE2 scaler lib with YUV support
        drm/sun4i: Add DE2 definitions for YUV formats
        drm/sun4i: Add DE2 CSC library
        drm/sun4i: Add CCSC property to DE2 configuration
        drm/sun4i: Add support for HW scaling to DE2
        drm/sun4i: Add scaler configuration to DE2 mixers
        drm/sun4i: Add support for DE2 VI planes
        drm/sun4i: Reorganize UI layer code in DE2
        drm/sun4i: Add support for all HW supported DE2 RGB formats
        drm/sun4i: Add multi plane support to DE2 driver
        drm/sun4i: Move interlace related code in DE2
        drm/sun4i: Move channel size related code in DE2
        drm/sun4i: Move line width setting in DE2
        drm/sun4i: Use values calculated by atomic check
        ...
      5c379b4f
    • Jernej Skrabec's avatar
      drm/sun4i: Fix uninitialized variables in vi layer · bc29489f
      Jernej Skrabec authored
      min_scale and max_scale in sun8i_vi_layer_atomic_check() can be used
      without initialization.
      
      Fix that.
      
      Fixes: b862a648 ("drm/sun4i: Add support for HW scaling to DE2")
      Signed-off-by: default avatarJernej Skrabec <jernej.skrabec@siol.net>
      Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20171206152603.25937-1-jernej.skrabec@siol.net
      bc29489f
  4. 06 Dec, 2017 33 commits