1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/i915/selftests
Dave Airlie 68b89e23c2 Merge tag 'drm-intel-gt-next-2024-04-26' of https://anongit.freedesktop.org/git/drm/drm-intel into drm-next
UAPI Changes:

- drm/i915/guc: Use context hints for GT frequency

    Allow user to provide a low latency context hint. When set, KMD
    sends a hint to GuC which results in special handling for this
    context. SLPC will ramp the GT frequency aggressively every time
    it switches to this context. The down freq threshold will also be
    lower so GuC will ramp down the GT freq for this context more slowly.
    We also disable waitboost for this context as that will interfere with
    the strategy.

    We need to enable the use of SLPC Compute strategy during init, but
    it will apply only to contexts that set this bit during context
    creation.

    Userland can check whether this feature is supported using a new param-
    I915_PARAM_HAS_CONTEXT_FREQ_HINT. This flag is true for all guc submission
    enabled platforms as they use SLPC for frequency management.

    The Mesa usage model for this flag is here -
    https://gitlab.freedesktop.org/sushmave/mesa/-/commits/compute_hint

- drm/i915/gt: Enable only one CCS for compute workload

    Enable only one CCS engine by default with all the compute sices
    allocated to it.

    While generating the list of UABI engines to be exposed to the
    user, exclude any additional CCS engines beyond the first
    instance

    ***

    NOTE: This W/A will make all DG2 SKUs appear like single CCS SKUs by
    default to mitigate a hardware bug. All the EUs will still remain
    usable, and all the userspace drivers have been confirmed to be able
    to dynamically detect the change in number of CCS engines and adjust.

    For the smaller percent of applications that get perf benefit from
    letting the userspace driver dispatch across all 4 CCS engines we will
    be introducing a sysfs control as a later patch to choose 4 CCS each
    with 25% EUs (or 50% if 2 CCS).

    NOTE: A regression has been reported at

    https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10895

    However Andi has been triaging the issue and we're closing in a fix
    to the gap in the W/A implementation:

    https://lists.freedesktop.org/archives/intel-gfx/2024-April/348747.html

Driver Changes:

- Add new and fix to existing workarounds: Wa_14018575942 (MTL),
  Wa_16019325821 (Gen12.70), Wa_14019159160 (MTL), Wa_16015675438,
  Wa_14020495402 (Gen12.70) (Tejas, John, Lucas)
- Fix UAF on destroy against retire race and remove two earlier
  partial fixes (Janusz)
- Limit the reserved VM space to only the platforms that need it (Andi)
- Reset queue_priority_hint on parking for execlist platforms (Chris)
- Fix gt reset with GuC submission is disabled (Nirmoy)
- Correct capture of EIR register on hang (John)

- Remove usage of the deprecated ida_simple_xx() API
- Refactor confusing __intel_gt_reset() (Nirmoy)
- Fix the fix for GuC reset lock confusion (John)
- Simplify/extend platform check for Wa_14018913170 (John)
- Replace dev_priv with i915 (Andi)
- Add and use gt_to_guc() wrapper (Andi)
- Remove bogus null check (Rodrigo, Dan)

. Selftest improvements (Janusz, Nirmoy, Daniele)

Signed-off-by: Dave Airlie <airlied@redhat.com>

From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ZitVBTvZmityDi7D@jlahtine-mobl.ger.corp.intel.com
2024-04-30 14:40:43 +10:00
..
i915_active.c drm/i915: use drm_printf() with the drm_err_printer intead of pr_err() 2024-02-09 11:52:09 +02:00
i915_gem.c drm/i915: use pat_index instead of cache_level 2023-05-11 17:38:55 +02:00
i915_gem_evict.c drm/i915: use pat_index instead of cache_level 2023-05-11 17:38:55 +02:00
i915_gem_gtt.c drm/i915/selftest: annotate maybe unused but set variable unused 2023-06-07 13:25:00 +03:00
i915_live_selftests.h drm/i915/gt: Add selftests for TLB invalidation 2023-02-01 16:17:41 +00:00
i915_mock_selftests.h drm: move the buddy allocator from i915 into common drm 2022-01-19 08:17:07 +01:00
i915_perf.c Merge tag 'drm-intel-gt-next-2023-08-04' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2023-08-07 13:49:25 +10:00
i915_perf_selftests.h drm/i915/gem: Zap the i915_gem_object_blt code 2021-06-17 14:23:15 +01:00
i915_random.c
i915_random.h
i915_request.c drm/i915/selftests: Annotate struct perf_series with __counted_by 2023-10-05 11:30:40 +02:00
i915_selftest.c drm/i915/dg2: wait for HuC load completion before running selftests 2024-04-19 08:02:37 -07:00
i915_sw_fence.c drm/i915/selftests: add local workqueue for SW fence selftest 2023-06-10 06:33:16 +03:00
i915_syncmap.c drm/i915/syncmap: squelch a sparse warning 2023-12-04 12:06:26 +02:00
i915_vma.c drm/i915: Rename ggtt_view as gtt_view 2022-09-08 10:24:17 +01:00
igt_atomic.c
igt_atomic.h
igt_flush_test.c drm/i915/selftests: Flush all tiles on test exit 2023-01-26 14:11:47 +01:00
igt_flush_test.h
igt_live_test.c drm/i915/selftests: Fix engine reset count storage for multi-tile 2023-12-07 11:39:01 +00:00
igt_live_test.h drm/i915/selftests: Fix engine reset count storage for multi-tile 2023-12-07 11:39:01 +00:00
igt_mmap.c drm/i915: Use ttm mmap handling for ttm bo's. 2021-06-11 10:53:25 +02:00
igt_mmap.h drm/i915: Use ttm mmap handling for ttm bo's. 2021-06-11 10:53:25 +02:00
igt_reset.c drm/i915/selftests: Use clear_and_wake_up_bit() for the per-engine reset bitlocks 2021-11-10 09:04:30 +01:00
igt_reset.h
igt_spinner.c drm/i915/selftests: Align igt_spinner_create_request with hangcheck 2023-08-16 13:57:17 -07:00
igt_spinner.h drm/i915: Add igt_spinner_pin() to allow for ww locking around spinner. 2021-03-24 17:27:21 +01:00
intel_memory_region.c drm/i915: Use struct resource for memory region IO as well 2024-02-07 01:58:40 +02:00
intel_scheduler_helpers.c drm/i915/selftests: Fix dependency of some timeouts on HZ 2024-03-06 15:33:57 +02:00
intel_scheduler_helpers.h drm/i915/selftests: Add initial GuC selftest for scrubbing lost G2H 2021-09-13 11:30:38 -07:00
intel_uncore.c drm/i915: Drop dead code for pvc 2024-03-22 14:14:56 -07:00
lib_sw_fence.c drm/i915: Drop stealing of bits from i915_sw_fence function pointer 2021-11-30 17:52:15 -08:00
lib_sw_fence.h
librapl.c drm/i915/selftests: Only query RAPL for integrated power measurements 2021-04-20 10:49:05 +01:00
librapl.h drm/i915/selftests: Only query RAPL for integrated power measurements 2021-04-20 10:49:05 +01:00
mock_drm.h
mock_gem_device.c drm/i915/gt: remove i915->gt0 in favour of i915->gt[0] 2023-10-04 18:27:51 +03:00
mock_gem_device.h drm/i915/selftest: Create mock_destroy_device 2020-09-21 10:36:24 +02:00
mock_gtt.c drm/i915: use pat_index instead of cache_level 2023-05-11 17:38:55 +02:00
mock_gtt.h drm/i915: Remove unused i915->ggtt 2022-01-05 10:49:02 -08:00
mock_region.c drm/i915: use i915_sg_dma_sizes() for all backends 2022-11-09 10:07:22 +00:00
mock_region.h drm/i915: add io_size plumbing 2022-02-28 08:47:27 +00:00
mock_request.c
mock_request.h
mock_uncore.c drm/i915/selftests: Use to_gt() helper 2021-12-17 21:51:00 -08:00
mock_uncore.h
scatterlist.c drm/i915: Check for integer truncation on scatterlist creation 2022-12-30 04:19:18 -05:00