1. 27 Jan, 2012 5 commits
  2. 26 Jan, 2012 2 commits
    • Michal Kubecek's avatar
      agp: fix scratch page cleanup · 590dfe2f
      Michal Kubecek authored
      In error cleanup of agp_backend_initialize() and in agp_backend_cleanup(),
      agp_destroy_page() is passed virtual address of the scratch page. This
      leads to a kernel warning if the initialization fails (or upon regular
      cleanup) as pointer to struct page should be passed instead.
      Signed-off-by: default avatarMichal Kubecek <mkubecek@suse.cz>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      590dfe2f
    • Dave Airlie's avatar
      Merge branch 'drm-intel-fixes' of git://people.freedesktop.org/~keithp/linux into drm-fixes · c8fe74ae
      Dave Airlie authored
      * 'drm-intel-fixes' of git://people.freedesktop.org/~keithp/linux: (24 commits)
        drm/i915: fixup forcewake spinlock fallout in drpc debugfs function
        drm/i915: debugfs: show semaphore registers also on gen7
        drm/i915: allow userspace forcewake references also on gen7
        drm/i915: Re-enable gen7 RC6 and GPU turbo after resume.
        drm/i915: Correct debugfs printout for RC1e.
        Revert "drm/i915: Work around gen7 BLT ring synchronization issues."
        drm/i915: rip out the HWSTAM missed irq workaround
        drm/i915: paper over missed irq issues with force wake voodoo
        drm/i915: Hold gt_lock across forcewake register reads
        drm/i915: Hold gt_lock during reset
        drm/i915: Move reset forcewake processing to gen6_do_reset
        drm/i915: protect force_wake_(get|put) with the gt_lock
        drm/i915: convert force_wake_get to func pointer in the gpu reset code
        drm/i915: sprite init failure on pre-SNB is not a failure
        drm/i915: VBT Parser cleanup for eDP block
        drm/i915: mask transcoder select bits before setting them on LVDS
        drm/i915: Add Clientron E830 to the ignore LVDS list
        CHROMIUM: i915: Add DMI override to skip CRT initialization on ZGB
        drm/i915: handle 3rd pipe
        drm/i915: simplify pipe checking
        ...
      c8fe74ae
  3. 25 Jan, 2012 5 commits
    • Ben Skeggs's avatar
      drm/ttm: fix two regressions since move_notify changes · 9f1feed2
      Ben Skeggs authored
      Both changes in dc97b340 cause serious
      regressions in the nouveau driver.
      
      move_notify() was originally able to presume that bo->mem is the old node,
      and new_mem is the new node.  The above commit moves the call to
      move_notify() to after move() has been done, which means that now, sometimes,
      new_mem isn't the new node at all, bo->mem is, and new_mem points at a
      stale, possibly-just-been-killed-by-move node.
      
      This is clearly not a good situation.  This patch reverts this change, and
      replaces it with a cleanup in the move() failure path instead.
      
      The second issue is that the call to move_notify() from cleanup_memtype_use()
      causes the TTM ghost objects to get passed into the driver.  This is clearly
      bad as the driver knows nothing about these "fake" TTM BOs, and ends up
      accessing uninitialised memory.
      
      I worked around this in nouveau's move_notify() hook by ensuring the BO
      destructor was nouveau's.  I don't particularly like this solution, and
      would rather TTM never pass the driver these objects.  However, I don't
      clearly understand the reason why we're calling move_notify() here anyway
      and am happy to work around the problem in nouveau instead of breaking the
      behaviour expected by other drivers.
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
      Reviewed-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
      Cc: Jerome Glisse <j.glisse@gmail.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      9f1feed2
    • Daniel Vetter's avatar
      drm/i915: fixup forcewake spinlock fallout in drpc debugfs function · 93b525dc
      Daniel Vetter authored
      My forcewake spinlock patches have a functional conflict with Ben
      Widawsky's gen6 drpc support for debugfs. Result was a benign warning
      about trying to read an non-atomic variabla with atomic_read.
      
      Note that the entire check is racy anyway and purely informational.
      Also update it to reflect the forcewake voodoo changes, the kernel can
      now also hold onto a forcewake reference for longer times.
      Signed-Off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Reviewed-by: default avatarBen Widawsky <ben@bwidawsk.net>
      Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
      93b525dc
    • Jerome Glisse's avatar
      drm/radeon: avoid deadlock if GPU lockup is detected in ib_pool_get · 9fc04b50
      Jerome Glisse authored
      If GPU lockup is detected in ib_pool get we are holding the ib_pool
      mutex that will be needed by the GPU reset code. As ib_pool code is
      safe to be reentrant from GPU reset code we should not block if we
      are trying to get the ib pool lock on the behalf of the same userspace
      caller, thus use the radeon_mutex_lock helper.
      Signed-off-by: default avatarJerome Glisse <jglisse@redhat.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      9fc04b50
    • Jerome Glisse's avatar
      drm/radeon: silence out possible lock dependency warning · d54fbd49
      Jerome Glisse authored
      Silence out the lock dependency warning by moving bo allocation out
      of ib mutex protected section. Might lead to useless temporary
      allocation but it's not harmful as such things only happen at
      initialization.
      Signed-off-by: default avatarJerome Glisse <jglisse@redhat.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      d54fbd49
    • Thomas Hellstrom's avatar
      drm: Fix authentication kernel crash · 598781d7
      Thomas Hellstrom authored
      If the master tries to authenticate a client using drm_authmagic and
      that client has already closed its drm file descriptor,
      either wilfully or because it was terminated, the
      call to drm_authmagic will dereference a stale pointer into kmalloc'ed memory
      and corrupt it.
      
      Typically this results in a hard system hang.
      
      This patch fixes that problem by removing any authentication tokens
      (struct drm_magic_entry) open for a file descriptor when that file
      descriptor is closed.
      Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
      Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      598781d7
  4. 24 Jan, 2012 12 commits
  5. 23 Jan, 2012 3 commits
  6. 20 Jan, 2012 1 commit
  7. 19 Jan, 2012 12 commits