1. 17 Aug, 2022 5 commits
  2. 09 Aug, 2022 2 commits
    • Matthew Auld's avatar
      drm/i915/ttm: fix CCS handling · 8676145e
      Matthew Auld authored
      Crucible + recent Mesa seems to sometimes hit:
      
      GEM_BUG_ON(num_ccs_blks > NUM_CCS_BLKS_PER_XFER)
      
      And it looks like we can also trigger this with gem_lmem_swapping, if we
      modify the test to use slightly larger object sizes.
      
      Looking closer it looks like we have the following issues in
      migrate_copy():
      
        - We are using plain integer in various places, which we can easily
          overflow with a large object.
      
        - We pass the entire object size (when the src is lmem) into
          emit_pte() and then try to copy it, which doesn't work, since we
          only have a few fixed sized windows in which to map the pages and
          perform the copy. With an object > 8M we therefore aren't properly
          copying the pages. And then with an object > 64M we trigger the
          GEM_BUG_ON(num_ccs_blks > NUM_CCS_BLKS_PER_XFER).
      
      So it looks like our copy handling for any object > 8M (which is our
      CHUNK_SZ) is currently broken on DG2.
      
      Fixes: da0595ae ("drm/i915/migrate: Evict and restore the flatccs capable lmem obj")
      Testcase: igt@gem_lmem_swapping
      Signed-off-by: default avatarMatthew Auld <matthew.auld@intel.com>
      Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
      Cc: Ramalingam C <ramalingam.c@intel.com>
      Reviewed-by: Ramalingam C<ramalingam.c@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20220805132240.442747-2-matthew.auld@intel.com
      8676145e
    • Matthew Auld's avatar
      drm/i915/ttm: remove calc_ctrl_surf_instr_size · dba4d442
      Matthew Auld authored
      We only ever need to emit one ccs block copy command.
      Signed-off-by: default avatarMatthew Auld <matthew.auld@intel.com>
      Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
      Cc: Ramalingam C <ramalingam.c@intel.com>
      Reviewed-by: Ramalingam C<ramalingam.c@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20220805132240.442747-1-matthew.auld@intel.com
      dba4d442
  3. 08 Aug, 2022 1 commit
  4. 03 Aug, 2022 1 commit
  5. 02 Aug, 2022 2 commits
  6. 01 Aug, 2022 1 commit
  7. 29 Jul, 2022 6 commits
  8. 28 Jul, 2022 10 commits
  9. 21 Jul, 2022 2 commits
  10. 20 Jul, 2022 1 commit
  11. 19 Jul, 2022 3 commits
  12. 15 Jul, 2022 1 commit
  13. 13 Jul, 2022 4 commits
  14. 12 Jul, 2022 1 commit