1. 18 12月, 2021 1 次提交
  2. 15 9月, 2021 1 次提交
    • M
      drm/i915: Add mmap lock around vma_lookup() in the mman selftest. · ce079f6d
      Maarten Lankhorst 提交于
      Add mmap_read_lock/unlock around vma_lookup(). The core code requires
      this for lookups. Since we only check if the return value is NULL,
      we can immediately unlock.
      
      This fixes the following splat in the selftes:
      
      i915: Running i915_gem_mman_live_selftests/igt_mmap
      ------------[ cut here ]------------
      WARNING: CPU: 3 PID: 5654 at include/linux/mmap_lock.h:164 find_vma+0x4e/0xb0
      Modules linked in: i915(+) vgem fuse snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio mei_hdcp x86_pkg_temp_thermal coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_intel_dspcfg snd_hda_codec snd_hwdep e1000e snd_hda_core ptp snd_pcm ttm mei_me pps_core i2c_i801 prime_numbers i2c_smbus mei [last unloaded: i915]
      CPU: 3 PID: 5654 Comm: i915_selftest Tainted: G     U            5.15.0-rc1-CI-Trybot_7984+ #1
      Hardware name: Micro-Star International Co., Ltd. MS-7B54/Z370M MORTAR (MS-7B54), BIOS 1.00 10/31/2017
      RIP: 0010:find_vma+0x4e/0xb0
      Code: de 48 89 ef e8 d3 94 fe ff 48 85 c0 74 34 48 83 c4 08 5b 5d c3 48 8d bf 28 01 00 00 be ff ff ff ff e8 d6 46 8b 00 85 c0 75 c8 <0f> 0b 48 8b 85 b8 00 00 00 48 85 c0 75 c6 48 89 ef e8 12 26 87 00
      RSP: 0018:ffffc900013df980 EFLAGS: 00010246
      RAX: 0000000000000000 RBX: 00007f9df2b80000 RCX: 0000000000000000
      RDX: 0000000000000001 RSI: ffffffff822e314c RDI: ffffffff8233c83f
      RBP: ffff88811bafc840 R08: ffff888107d0ddb8 R09: 00000000fffffffe
      R10: 0000000000000001 R11: 00000000ffbae7ba R12: 0000000000000000
      R13: 0000000000000000 R14: ffff88812a710000 R15: ffff888114fa42c0
      FS:  00007f9def9d4c00(0000) GS:ffff888266580000(0000) knlGS:0000000000000000
      CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      CR2: 00007f799627fe50 CR3: 000000011bbc2006 CR4: 00000000003706e0
      DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
      Call Trace:
       __igt_mmap+0xe0/0x490 [i915]
       igt_mmap+0xd2/0x160 [i915]
       ? __trace_bprintk+0x6e/0x80
       __i915_subtests.cold.7+0x42/0x92 [i915]
       ? i915_perf_selftests+0x20/0x20 [i915]
       ? __i915_nop_setup+0x10/0x10 [i915]
       __run_selftests.part.3+0x10d/0x172 [i915]
       i915_live_selftests.cold.5+0x1f/0x47 [i915]
       i915_pci_probe+0x93/0x1d0 [i915]
      Signed-off-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Closes: https://gitlab.freedesktop.org/drm/intel/issues/4129
      Link: https://patchwork.freedesktop.org/patch/msgid/20210915105946.394412-1-maarten.lankhorst@linux.intel.comReviewed-by: NMatthew Auld <matthew.auld@intel.com>
      ce079f6d
  3. 14 9月, 2021 1 次提交
  4. 02 9月, 2021 1 次提交
  5. 30 7月, 2021 1 次提交
  6. 21 7月, 2021 1 次提交
  7. 30 6月, 2021 2 次提交
  8. 25 6月, 2021 1 次提交
  9. 11 6月, 2021 1 次提交
  10. 06 6月, 2021 1 次提交
  11. 04 5月, 2021 1 次提交
    • M
      drm/i915/uapi: implement object placement extension · 2459e56f
      Matthew Auld 提交于
      Add new extension to support setting an immutable-priority-list of
      potential placements, at creation time.
      
      If we use the normal gem_create or gem_create_ext without the
      extensions/placements then we still get the old behaviour with only
      placing the object in system memory.
      
      v2(Daniel & Jason):
          - Add a bunch of kernel-doc
          - Simplify design for placements extension
      
      Testcase: igt/gem_create/create-ext-placement-sanity-check
      Testcase: igt/gem_create/create-ext-placement-each
      Testcase: igt/gem_create/create-ext-placement-all
      Signed-off-by: NMatthew Auld <matthew.auld@intel.com>
      Signed-off-by: NCQ Tang <cq.tang@intel.com>
      Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
      Cc: Lionel Landwerlin <lionel.g.landwerlin@linux.intel.com>
      Cc: Jordan Justen <jordan.l.justen@intel.com>
      Cc: Daniel Vetter <daniel.vetter@intel.com>
      Cc: Kenneth Graunke <kenneth@whitecape.org>
      Cc: Jason Ekstrand <jason@jlekstrand.net>
      Cc: Dave Airlie <airlied@gmail.com>
      Cc: dri-devel@lists.freedesktop.org
      Cc: mesa-dev@lists.freedesktop.org
      Reviewed-by: NKenneth Graunke <kenneth@whitecape.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210429103056.407067-6-matthew.auld@intel.com
      2459e56f
  12. 25 3月, 2021 1 次提交
  13. 24 3月, 2021 1 次提交
  14. 16 12月, 2020 1 次提交
  15. 07 9月, 2020 2 次提交
  16. 02 5月, 2020 1 次提交
  17. 02 4月, 2020 1 次提交
  18. 02 3月, 2020 1 次提交
  19. 29 2月, 2020 1 次提交
  20. 06 1月, 2020 1 次提交
  21. 05 1月, 2020 2 次提交
  22. 23 12月, 2019 1 次提交
  23. 04 12月, 2019 1 次提交
  24. 25 11月, 2019 1 次提交
  25. 11 11月, 2019 1 次提交
  26. 08 11月, 2019 2 次提交
  27. 29 10月, 2019 1 次提交
  28. 22 10月, 2019 1 次提交
  29. 17 10月, 2019 1 次提交
  30. 04 10月, 2019 5 次提交
  31. 10 9月, 2019 1 次提交
    • C
      drm/i915/selftests: Tighten the timeout testing for partial mmaps · 07e98eb0
      Chris Wilson 提交于
      Currently, if there is time remaining before the start of the loop, we
      do one full iteration over many possible different chunks within the
      object. A full loop may take 50+s (depending on speed of indirect GTT
      mmapings) and we try separately with LINEAR, X and Y -- at which point
      igt times out. If we check more frequently, we will interrupt the loop
      upon our timeout -- it is hard to argue for as this significantly reduces
      the test coverage as we dramatically reduce the runtime. In practical
      terms, the coverage we should prioritise is in using different fence
      setups, forcing verification of the tile row computations over the
      current preference of checking extracting chunks. Though the exhaustive
      search is great given an infinite timeout, to improve our current
      coverage, we also add a randomised smoketest of partial mmaps. So let's
      do both, add a randomised smoketest of partial tiling chunks and the
      exhaustive (though time limited) search for failures.
      
      Even in adding another subtest, we should shave 100s off BAT! (With,
      hopefully, no loss in coverage, at least over multiple runs.)
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Cc: Matthew Auld <matthew.auld@intel.com>
      Reviewed-by: NMatthew Auld <matthew.auld@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20190910121009.13431-1-chris@chris-wilson.co.uk
      07e98eb0
  32. 19 8月, 2019 1 次提交