1. 14 Oct, 2015 28 commits
  2. 08 Oct, 2015 5 commits
  3. 02 Oct, 2015 7 commits
    • Grazvydas Ignotas's avatar
      drm/radeon: remove volatile qualifier · 1c5dc335
      Grazvydas Ignotas authored
      There doesn't seem to be any need to have 'ib' volatile, the code is
      not even consistent with it and some places already miss it. As it is
      now it's just making gcc produce worse code. If there are special
      requirements for that memory, then proper primitives like memory
      barriers or accessor functions should be used, but it doesn't look
      like that is needed here.
      While at it, change the type to match the one in radeon_ib structure.
      Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
      Signed-off-by: default avatarGrazvydas Ignotas <notasas@gmail.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      1c5dc335
    • Grazvydas Ignotas's avatar
      drm/radeon: refactor register check loop · 7874d390
      Grazvydas Ignotas authored
      After this patch the register check loop does the same thing as before,
      except that now gcc does better job optimizing it: it now sees that
      end_reg was already checked against PACKET3_SET_CONTEXT_REG_END and can
      optimize REG_SAFE_BM_SIZE comparison out of evergreen_is_safe_reg()
      as (PACKET3_SET_CONTEXT_REG_END >> 7) < REG_SAFE_BM_SIZE.
      Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
      Signed-off-by: default avatarGrazvydas Ignotas <notasas@gmail.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      7874d390
    • Grazvydas Ignotas's avatar
      drm/radeon: split evergreen_cs_check_reg · e5b69da6
      Grazvydas Ignotas authored
      evergreen_cs_check_reg() is a large function and gcc doesn't want to
      inline it. It has a quick check for reg_safe_bm[] to see if register
      needs special handling, which often results in early exit. However
      because the function is large, it has a long prologue/epilogue to
      save/restore all the callee-save registers which according to perf is
      taking significant amount of time. To avoid this, we can reuse
      evergreen_is_safe_reg() to do the early check directly in register loop.
      Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
      Signed-off-by: default avatarGrazvydas Ignotas <notasas@gmail.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      e5b69da6
    • Grazvydas Ignotas's avatar
      drm/radeon: simplify register checker · 4a985353
      Grazvydas Ignotas authored
      To avoid having to distinguish between CAYMAN or older on every register
      check, place a pointer in evergreen_cs_track and use it unconditionally.
      Also make use of the fact that both reg_safe_bm[] arrays are of the same
      length to remove another CAYMAN check.
      Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
      Signed-off-by: default avatarGrazvydas Ignotas <notasas@gmail.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      4a985353
    • Lukas Wunner's avatar
      drm/amdgpu: Spell vga_switcheroo consistently · 1694467b
      Lukas Wunner authored
      Currently everyone and their dog has their own favourite spelling
      for vga_switcheroo. This makes it hard to grep dmesg for log entries
      relating to vga_switcheroo. It also makes it hard to find related
      source files in the tree.
      
      vga_switcheroo.c uses pr_fmt "vga_switcheroo". Use that everywhere.
      Signed-off-by: default avatarLukas Wunner <lukas@wunner.de>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      1694467b
    • Lukas Wunner's avatar
      drm/radeon: Spell vga_switcheroo consistently · 8e5de1d8
      Lukas Wunner authored
      Currently everyone and their dog has their own favourite spelling
      for vga_switcheroo. This makes it hard to grep dmesg for log entries
      relating to vga_switcheroo. It also makes it hard to find related
      source files in the tree.
      
      vga_switcheroo.c uses pr_fmt "vga_switcheroo". Use that everywhere.
      Signed-off-by: default avatarLukas Wunner <lukas@wunner.de>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      8e5de1d8
    • Dave Airlie's avatar
      Merge tag 'drm-intel-next-2015-09-11' of git://anongit.freedesktop.org/drm-intel into drm-next · d4070ff7
      Dave Airlie authored
      - initialize backlight from VBT as fallback (Jani)
      - hpd A support from Ville
      - various atomic polish all over (mostly from Maarten)
      - first parts of virtualize gpu guest support on bdw from
        Zhiyuan Lv
      - GuC fixes from Alex
      - polish for the chv clocks code (Ville)
      - various things all over, as usual
      
      * tag 'drm-intel-next-2015-09-11' of git://anongit.freedesktop.org/drm-intel: (145 commits)
        drm/i915: Update DRIVER_DATE to 20150911
        drm/i915: Remove one very outdated comment
        drm/i915: Use crtc->state for duplication.
        drm/i915: Do not handle a null plane state.
        drm/i915: Remove legacy plane updates for cursor and sprite planes.
        drm/i915: Use atomic state when changing cursor visibility.
        drm/i915: Use the atomic state in intel_update_primary_planes.
        drm/i915: Use the plane state in intel_crtc_info.
        drm/i915: Use atomic plane state in the primary plane update.
        drm/i915: add attached connector to hdmi container
        drm/i915: don't hard code vlv backlight frequency if unset
        drm/i915: initialize backlight max from VBT
        drm/i915: use pch backlight override on hsw too
        drm/i915/bxt: Clean up bxt_init_clock_gating
        drm/i915: Fix cmdparser STORE/LOAD command descriptors
        drm/i915: Dump pfit state as hex
        drm/i915: access the PP_ON_DELAYS/PP_OFF_DELAYS regs only pre GEN5
        drm/i915: access the PP_CONTROL reg only pre GEN5
        drm/i915: Refactor common ringbuffer allocation code
        drm/i915: use the yesno helper for logging
        ...
      d4070ff7