1. 21 12月, 2011 35 次提交
  2. 20 12月, 2011 1 次提交
  3. 06 12月, 2011 4 次提交
    • J
      drm/ttm: callback move_notify any time bo placement change v4 · dc97b340
      Jerome Glisse 提交于
      Previously we were calling back move_notify in error path when the
      bo is returned to it's original position or when destroy the bo.
      When destroying the bo set the new mem placement as NULL when calling
      back in the driver.
      
      Updating nouveau to deal with NULL placement properly.
      
      v2: reserve the object before calling move_notify in bo destroy path
          at that point ttm should be the only piece of code interacting
          with the object so atomic_set is safe here.
      v3: callback move notify only once the bo is in its new position
          call move notify want swaping out the buffer
      v4:- don't call move_notify when swapin out bo, assume driver should
           do what is appropriate in swap notify
         - move move_notify call back to ttm_bo_cleanup_memtype_use for
           destroy path
      Reviewed-by: NJerome Glisse <jglisse@redhat.com>
      Reviewed-by: NThomas Hellstrom <thellstrom@vmware.com>
      dc97b340
    • J
      drm/ttm: simplify memory accounting for ttm user v2 · 57de4ba9
      Jerome Glisse 提交于
      Provide helper function to compute the kernel memory size needed
      for each buffer object. Move all the accounting inside ttm, simplifying
      driver and avoiding code duplication accross them.
      
      v2 fix accounting of ghost object, one would have thought that i
         would have run into the issue since a longtime but it seems
         ghost object are rare when you have plenty of vram ;)
      Signed-off-by: NJerome Glisse <jglisse@redhat.com>
      Reviewed-by: NThomas Hellstrom <thellstrom@vmware.com>
      57de4ba9
    • J
      drm/ttm: isolate dma data from ttm_tt V4 · 8e7e7052
      Jerome Glisse 提交于
      Move dma data to a superset ttm_dma_tt structure which herit
      from ttm_tt. This allow driver that don't use dma functionalities
      to not have to waste memory for it.
      
      V2 Rebase on top of no memory account changes (where/when is my
         delorean when i need it ?)
      V3 Make sure page list is initialized empty
      V4 typo/syntax fixes
      Signed-off-by: NJerome Glisse <jglisse@redhat.com>
      Reviewed-by: NThomas Hellstrom <thellstrom@vmware.com>
      8e7e7052
    • K
      drm/nouveau: enable the ttm dma pool when swiotlb is active V3 · 3230cfc3
      Konrad Rzeszutek Wilk 提交于
      If the card is capable of more than 32-bit, then use the default
      TTM page pool code which allocates from anywhere in the memory.
      
      Note: If the 'ttm.no_dma' parameter is set, the override is ignored
      and the default TTM pool is used.
      
      V2 use pci_set_consistent_dma_mask
      V3 Rebase on top of no memory account changes (where/when is my
         delorean when i need it ?)
      
      CC: Ben Skeggs <bskeggs@redhat.com>
      CC: Francisco Jerez <currojerez@riseup.net>
      CC: Dave Airlie <airlied@redhat.com>
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Reviewed-by: NJerome Glisse <jglisse@redhat.com>
      3230cfc3