1. 13 Dec, 2017 1 commit
  2. 12 Dec, 2017 14 commits
  3. 11 Dec, 2017 6 commits
  4. 08 Dec, 2017 10 commits
  5. 07 Dec, 2017 6 commits
    • Chris Wilson's avatar
      drm/i915: Refactor common list iteration over GGTT vma · e2189dd0
      Chris Wilson authored
      In quite a few places, we have a list iteration over the vma on an
      object that only want to inspect GGTT vma. By construction, these are
      placed at the start of the list, so we have copied that knowledge into
      many callsites. Pull that knowledge back to i915_vma.h and provide a
      for_each_ggtt_vma() to tidy up the code.
      
      v2: Add a backreference from vma_create() to remind ourselves why we put
      ggtt vma at the head of the obj->vma_list (and ppgtt vma at the tail).
      v3: Fixup s/vma/V/
      Suggested-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20171207211407.31549-1-chris@chris-wilson.co.uk
      e2189dd0
    • 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
    • Chris Wilson's avatar
      drm/i915: Track GGTT writes on the vma · 7125397b
      Chris Wilson authored
      As writes through the GTT and GGTT PTE updates do not share the same
      path, they are not strictly ordered and so we must explicitly flush the
      indirect writes prior to modifying the PTE. We do track outstanding GGTT
      writes on the object itself, but since the object may have multiple GGTT
      vma, that is overly coarse as we can track and flush individual vma as
      required.
      
      Whilst here, update the GGTT flushing behaviour for Cannonlake.
      
      v2: Hard-code ring offset to allow use during unload (after RCS may have
      been freed, or never existed!)
      
      References: https://bugs.freedesktop.org/show_bug.cgi?id=104002Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Reviewed-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20171206124914.19960-2-chris@chris-wilson.co.uk
      7125397b
    • Chris Wilson's avatar
      drm/i915: Remove vma from object on destroy, not close · 010e3e68
      Chris Wilson authored
      Originally we translated from the object to the vma by walking
      obj->vma_list to find the matching vm (for user lookups). Now we process
      user lookups using the rbtree, and we only use obj->vma_list itself for
      maintaining state (e.g. ensuring that all vma are flushed or rebound).
      As such maintenance needs to go on beyond the user's awareness of the
      vma, defer removal of the vma from the obj->vma_list from i915_vma_close()
      to i915_vma_destroy()
      
      Fixes: 5888fc9e ("drm/i915: Flush pending GTT writes before unbinding")
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104155Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20171206124914.19960-1-chris@chris-wilson.co.ukReviewed-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
      010e3e68
    • 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
  6. 06 Dec, 2017 3 commits
    • Gustavo A. R. Silva's avatar
      drm/fb-helper: Fix potential NULL pointer dereference · 89f3f356
      Gustavo A. R. Silva authored
      fb_helper is being dereferenced before it is null checked,
      hence there is a potential null pointer dereference.
      
      Fix this by moving the pointer dereference after fb_helper
      has been null checked.
      
      This issue was detected with the help of Coccinelle.
      
      Fixes: c777990f ("drm/fb-helper: Handle function NULL argument")
      Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20171205174628.GA31189@embeddedor.com
      89f3f356
    • Dave Airlie's avatar
      Merge branch 'drm-next-4.16' of git://people.freedesktop.org/~agd5f/linux into drm-next · 9c606cd4
      Dave Airlie authored
      First feature request for 4.16.  Highlights:
      - RV and Vega header cleanups
      - TTM operation context support
      - 48 bit GPUVM fixes for Vega/RV
      - More smatch fixes
      - ECC support for vega10
      - Resizeable BAR support
      - Multi-display sync support in DC
      - SR-IOV fixes
      - Various scheduler improvements
      - GPU reset fixes and vram lost tracking
      - Clean up DC/powerplay interfaces
      - DCN display fixes
      - Various DC fixes
      
      * 'drm-next-4.16' of git://people.freedesktop.org/~agd5f/linux: (291 commits)
        drm/radeon: Use drm_fb_helper_lastclose() and _poll_changed()
        drm/amdgpu: Use drm_fb_helper_lastclose() and _poll_changed()
        drm/amd/display: Use drm_fb_helper_poll_changed()
        drm/ttm: swap consecutive allocated pooled pages v4
        drm/amdgpu: fix amdgpu_sync_resv v2
        drm/ttm: swap consecutive allocated cached pages v3
        drm/amd/amdgpu: set gtt size according to system memory size only
        drm/amdgpu: Get rid of dep_sync as a seperate object.
        drm/amdgpu: allow specifying vm_block_size for multi level PDs v2
        drm/amdgpu: move validation of the VM size into the VM code
        drm/amdgpu: allow non pot VM size values
        drm/amdgpu: choose number of VM levels based on VM size
        drm/amdgpu: unify VM size handling of Vega10 with older generation
        drm/amdgpu: fix amdgpu_vm_num_entries
        drm/amdgpu: fix VM PD addr shift
        drm/amdgpu: correct vce4.0 fw config for SRIOV (V2)
        drm/amd/display: Don't call dm_log_to_buffer directly in dc_conn_log
        drm/amd/display: Add dm_logger_append_va API
        drm/ttm: Use a static string instead of an array of char *
        drm/amd/display: remove usage of legacy_cursor_update
        ...
      9c606cd4
    • Noralf Trønnes's avatar
      drm/radeon: Use drm_fb_helper_lastclose() and _poll_changed() · 3997eea5
      Noralf Trønnes authored
      This driver can use drm_fb_helper_lastclose() in its .lastclose function.
      It can also use drm_fb_helper_output_poll_changed() as its
      .output_poll_changed callback.
      
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: "Christian König" <christian.koenig@amd.com>
      Signed-off-by: default avatarNoralf Trønnes <noralf@tronnes.org>
      Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      3997eea5