1. 17 Jan, 2010 3 commits
    • Luca Barbieri's avatar
      drm/nouveau: Acknowledge DMA_VTX_PROTECTION PGRAPH interrupts · d051bbb2
      Luca Barbieri authored
      Currently Nouveau is unable to dismiss DMA_VTX_PROTECTION errors,
      which results in an infinite loop in the interrupt handler.
      These errors are caused both by bugs in the Gallium driver and by
      user-specified index buffers with out of bounds indices.
      By mmio-tracing the nVidia drivers, I found out how this is done.
      On DMA_VTX_PROTECTION, The nVidia driver reads the register 0x402000,
      always getting the value 4, and then writes 4 back to 0x402000.
      This patch adds that logic by reading 0x402000 and writing the same
      value back.
      It's unclear what should happen if the value read is not 4, and
      the current approach might not be the correct one.
      To test this, modify mesa/progs/trivial/vbo-drawrange.c, defining
      ELTOBJ to 1 and replacing indices with huge out of bounds integers.
      Without this patch, the GPU and/or kernel should lock up.
      With this patch, it should misrender as expected but not lock up.
      The errors are still logged since they are useful for development.
      This has been tested on NV49 and may not work on other cards.
      To find out how things work on other cards, run the aforementioned
      test using the blob with mmiotrace and grep for a read of the PGRAPH
      source register.
      Signed-off-by: default avatarLuca Barbieri <luca@luca-barbieri.com>
      Signed-off-by: default avatarFrancisco Jerez <currojerez@riseup.net>
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
    • Ben Skeggs's avatar
      drm/nouveau: fix thinko in nv04_instmem.c · 0d92971d
      Ben Skeggs authored
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
    • Ben Skeggs's avatar
      drm/nouveau: fix a race condition in nouveau_dma_wait() · ba59953d
      Ben Skeggs authored
      Can be triggered easily on certain cards (NV46 and NV50 of mine) by
      running "dmesg", the DRM's channel will lockup.
      Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
  2. 14 Jan, 2010 14 commits
  3. 10 Jan, 2010 23 commits