1. 19 Dec, 2017 5 commits
  2. 18 Dec, 2017 1 commit
    • Dave Airlie's avatar
      Merge tag 'drm-misc-next-2017-12-14' of git://anongit.freedesktop.org/drm/drm-misc into drm-next · a942b3c2
      Dave Airlie authored
      drm-misc-next for 4.16:
      
      Cross-subsystem Changes:
      
       - Documentation for amlogic dt dt-bindings
      
      Core Changes:
      
       - Update edid-derived drm_display_info fields at edid property set
      
      Driver Changes:
      
       - A bunch of clean up from Noralf, including the last patches to reduce
       fbdev emulation footprint.
      
      * tag 'drm-misc-next-2017-12-14' of git://anongit.freedesktop.org/drm/drm-misc: (30 commits)
        drm/atomic-helper: Make zpos property kerneldoc less misleading
        drm: Update edid-derived drm_display_info fields at edid property set [v2]
        MAINTAINERS: Remove Jani as drm-misc co-maintainer
        drm/tinydrm: Use drm_fb_cma_fbdev_init_with_funcs/fini()
        drm/arm/mali: Use drm_fb_cma_fbdev_init/fini()
        drm/zte: Use drm_fb_cma_fbdev_init/fini()
        drm/vc4: Use drm_fb_cma_fbdev_init/fini()
        drm/tve200: Use drm_fb_cma_fbdev_init/fini()
        drm/tilcdc: Use drm_fb_cma_fbdev_init/fini()
        drm/sun4i: Use drm_fb_cma_fbdev_init/fini()
        drm/stm: Use drm_fb_cma_fbdev_init/fini()
        drm/sti: Use drm_fb_cma_fbdev_init/fini()
        drm/pl111: Use drm_fb_cma_fbdev_init/fini()
        drm/imx: Use drm_fb_cma_fbdev_init/fini()
        drm/atmel-hlcdc: Use drm_fb_cma_fbdev_init/fini()
        drm/cma-helper: Add drm_fb_cma_fbdev_init/fini()
        drm/gem-fb-helper: drm_gem_fbdev_fb_create() make funcs optional
        drm/tegra: Use drm_fb_helper_lastclose() and _poll_changed()
        drm/rockchip: Use drm_fb_helper_lastclose() and _poll_changed()
        drm/omap: Use drm_fb_helper_lastclose() and _poll_changed()
        ...
      a942b3c2
  3. 14 Dec, 2017 1 commit
  4. 13 Dec, 2017 2 commits
    • Keith Packard's avatar
      drm: Update edid-derived drm_display_info fields at edid property set [v2] · 170178fe
      Keith Packard authored
      There are a set of values in the drm_display_info structure for each
      connector which hold information derived from EDID. These are computed
      in drm_add_display_info. Before this patch, that was only called in
      drm_add_edid_modes. This meant that they were only set when EDID was
      present and never reset when EDID was not, as happened when the
      display was disconnected.
      
      One of these fields, non_desktop, is used from
      drm_mode_connector_update_edid_property, the function responsible for
      assigning the new edid value to the application-visible property.
      
      Various drivers call these two functions (drm_add_edid_modes and
      drm_mode_connector_update_edid_property) in different orders. This
      means that even when EDID is present, the drm_display_info fields may
      not have been computed at the time that
      drm_mode_connector_update_edid_property used the non_desktop value to
      set the non_desktop property.
      
      I've added a public function (drm_reset_display_info) that resets the
      drm_display_info field values to default values and then made the
      drm_add_display_info function public. These two functions are now
      called directly from drm_mode_connector_update_edid_property so that
      the drm_display_info fields are always computed from the current EDID
      information before being used in that function.
      
      This means that the drm_display_info values are often computed twice,
      once when the EDID property it set and a second time when EDID is used
      to compute modes for the device. The alternative would be to uniformly
      ensure that the values were computed once before being used, which
      would require that all drivers reliably invoke the two paths in the
      same order. The computation is inexpensive enough that it seems more
      maintainable in the long term to simply compute them in both paths.
      
      The API to drm_add_display_info has been changed so that it no longer
      takes the set of edid-based quirks as a parameter. Rather, it now
      computes those quirks itself and returns them for further use by
      drm_add_edid_modes.
      
      This patch also includes a number of 'const' additions caused by
      drm_mode_connector_update_edid_property taking a 'const struct edid *'
      parameter and wanting to pass that along to drm_add_display_info.
      
      v2: after review by Daniel Vetter <daniel.vetter@ffwll.ch>
      
      	Removed EXPORT_SYMBOL_GPL for drm_reset_display_info and
      	drm_add_display_info.
      
      	Added FIXME in drm_mode_connector_update_edid_property about
      	potentially merging that with drm_add_edid_modes to avoid
      	the need for two driver calls.
      Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
      Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20171213084427.31199-1-keithp@keithp.com
      170178fe
    • Jani Nikula's avatar
      MAINTAINERS: Remove Jani as drm-misc co-maintainer · 69adff9d
      Jani Nikula authored
      I'm juggling too many things, and drm-misc maintenance is one that I
      keep dropping on the floor. Admit reality and remove myself as
      maintainer. This still leaves us with a nice team of three who are
      actually doing the drm-misc work, while I focus on drm-intel.
      
      Cc: Daniel Vetter <daniel.vetter@intel.com>
      Cc: Gustavo Padovan <gustavo@padovan.org>
      Cc: Sean Paul <seanpaul@chromium.org>
      Cc: Dave Airlie <airlied@redhat.com>
      Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Relunctantly-Acked-By: default avatarSean Paul <seanpaul@chromium.org>
      Acked-by: default avatarGustavo Padovan <gustavo.padovan@collabora.com>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20171123121308.12818-1-jani.nikula@intel.com
      69adff9d
  5. 10 Dec, 2017 1 commit
  6. 08 Dec, 2017 27 commits
  7. 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
    • Daniel Vetter's avatar
      drm: More debug info for fb leaks in mode_config_cleanup · 2aa0fcc2
      Daniel Vetter authored
      We're spotting this very rarely in CI, but have no idea. Let's add
      more debug info about what's going on here.
      
      References: https://bugs.freedesktop.org/show_bug.cgi?id=102707Acked-by: default avatarNoralf Trønnes <noralf@tronnes.org>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20171207144925.14191-1-daniel.vetter@ffwll.ch
      2aa0fcc2