1. 20 Mar, 2015 36 commits
  2. 18 Mar, 2015 1 commit
  3. 17 Mar, 2015 3 commits
    • Daniel Vetter's avatar
      86a930d5
    • Mika Kuoppala's avatar
      drm/i915: Fix vmap_batch page iterator overrun · 72c5ba95
      Mika Kuoppala authored
      vmap_batch() calculates amount of needed pages for the mapping
      we are going to create. And it uses this page count as an
      argument for the for_each_sg_pages() macro. The macro takes the number
      of sg list entities as an argument, not the page count. So we ended
      up iterating through all the pages on the mapped object, corrupting
      memory past the smaller pages[] array.
      
      Fix this by bailing out when we have enough pages.
      
      This regression has been introduced in
      
      commit 17cabf57
      Author: Chris Wilson <chris@chris-wilson.co.uk>
      Date:   Wed Jan 14 11:20:57 2015 +0000
      
          drm/i915: Trim the command parser allocations
      
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: default avatarMika Kuoppala <mika.kuoppala@intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      72c5ba95
    • Jeff McGee's avatar
      drm/i915: Export total subslice and EU counts · a1559ffe
      Jeff McGee authored
      Setup new I915_GETPARAM ioctl entries for subslice total and
      EU total. Userspace drivers need these values when constructing
      GPGPU commands. This kernel query method is intended to replace
      the PCI ID-based tables that userspace drivers currently maintain.
      The kernel driver can employ fuse register reads as needed to
      ensure the most accurate determination of GT config attributes.
      This first became important with Cherryview in which the config
      could differ between devices with the same PCI ID.
      
      The kernel detection of these values is device-specific and not
      included in this patch. Because zero is not a valid value for any of
      these parameters, a value of zero is interpreted as unknown for the
      device. Userspace drivers should continue to maintain ID-based tables
      for older devices not supported by the new query method.
      
      v2: Increment our I915_GETPARAM indices to fit after REVISION
          which was merged ahead of us.
      
      For: VIZ-4636
      Signed-off-by: default avatarJeff McGee <jeff.mcgee@intel.com>
      Tested-by: default avatarZhigang Gong <zhigang.gong@linux.intel.com>
      Acked-by: default avatarZhigang Gong <zhigang.gong@linux.intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      a1559ffe