1. 30 11月, 2011 1 次提交
  2. 23 11月, 2011 4 次提交
  3. 20 11月, 2011 1 次提交
    • M
      drm/radeon/kms: add a CS ioctl flag not to rewrite tiling flags in the CS · e70f224c
      Marek Olšák 提交于
      This adds a new optional chunk to the CS ioctl that specifies optional flags
      to the CS parser. Why this is useful is explained below. Note that some regs
      no longer need the NOP relocation packet if this feature is enabled.
      Tested on r300g and r600g with this flag disabled and enabled.
      
      Assume there are two contexts sharing the same mipmapped tiled texture.
      One context wants to render into the first mipmap and the other one
      wants to render into the last mipmap. As you probably know, the hardware
      has a MACRO_SWITCH feature, which turns off macro tiling for small mipmaps,
      but that only applies to samplers.
      (at least on r300-r500, though later hardware likely behaves the same)
      
      So we want to just re-set the tiling flags before rendering (writing
      packets), right? ... No. The contexts run in parallel, so they may
      set the tiling flags simultaneously and then fire their command streams
      also simultaneously. The last one setting the flags wins, the other one
      loses.
      
      Another problem is when one context wants to render into the first and
      the last mipmap in one CS. Impossible. It must flush before changing
      tiling flags and do the rendering into the smaller mipmaps in another CS.
      
      Yet another problem is that writing copy_blit in userspace would be a mess
      involving re-setting tiling flags to please the kernel, and causing races
      with other contexts at the same time.
      
      The only way out of this is to send tiling flags with each CS, ideally
      with each relocation. But we already do that through the registers.
      So let's just use what we have in the registers.
      Signed-off-by: NMarek Olšák <maraeo@gmail.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      e70f224c
  4. 18 11月, 2011 2 次提交
  5. 17 11月, 2011 9 次提交
  6. 16 11月, 2011 2 次提交
  7. 14 11月, 2011 1 次提交
    • T
      drm: Remove utterly bogus preempt_disable() sections · d53dab3a
      Thomas Gleixner 提交于
      commit 27641c3f (drm/vblank: Add support for precise vblank
      timestamping) adds preempt_disable()/enable() around a spin locked
      section with the comments:
      
       * Disable preemption, so vblank_time_lock is held as short as
       * possible, even under a kernel with PREEMPT_RT patches.
      
      /* Disable preemption while holding vblank_time_lock. Do
       * it explicitely to guard against PREEMPT_RT kernel.
      
      Just that this has never been tested on a RT kernel which would have
      granted that nonsense with a might_sleep() warning because
      dev->vblank_time_lock is converted to a "sleeping" spinlock on RT.
      
      So this is activly wrong on RT and superflous on mainline. Remove it.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Acked-by: NMario Kleiner <mario.kleiner@tuebingen.mpg.de>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      d53dab3a
  8. 13 11月, 2011 1 次提交
  9. 11 11月, 2011 19 次提交