1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/i915/gt/uc
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
..
abi drm/i915/guc: Enable Wa_14019159160 2024-03-07 15:26:47 -08:00
guc_capture_fwif.h drm/i915/guc: add intel_guc_state_capture member docs for ads_null_cache and max_mmio_per_node 2023-05-04 12:11:54 +03:00
intel_gsc_binary_headers.h drm/i915/mtl/gsc: extract release and security versions from the gsc binary 2023-06-13 15:02:40 -07:00
intel_gsc_fw.c drm/i915/guc: Use the new gt_to_guc() wrapper 2024-03-01 13:19:43 +01:00
intel_gsc_fw.h drm/i915/selftest/gsc: Ensure GSC Proxy init completes before selftests 2023-07-27 14:16:29 -07:00
intel_gsc_proxy.c drm/i915/guc: Use the new gt_to_guc() wrapper 2024-03-01 13:19:43 +01:00
intel_gsc_proxy.h drm/i915/gsc: add support for GSC proxy interrupt 2023-05-04 04:02:00 -07:00
intel_gsc_uc.c drm/i915: More use of GT specific print helpers 2023-10-10 15:40:26 -07:00
intel_gsc_uc.h drm/i915/mtl/gsc: Add a gsc_info debugfs 2023-06-13 15:02:44 -07:00
intel_gsc_uc_debugfs.c drm/i915/mtl/gsc: Add a gsc_info debugfs 2023-06-13 15:02:44 -07:00
intel_gsc_uc_debugfs.h drm/i915/mtl/gsc: Add a gsc_info debugfs 2023-06-13 15:02:44 -07:00
intel_gsc_uc_heci_cmd_submit.c drm/i915/pxp/mtl: Update pxp-firmware response timeout 2023-09-19 12:11:18 -07:00
intel_gsc_uc_heci_cmd_submit.h drm/i915/pxp/mtl: Update pxp-firmware response timeout 2023-09-19 12:11:18 -07:00
intel_guc.c Merge tag 'drm-intel-gt-next-2024-04-26' of https://anongit.freedesktop.org/git/drm/drm-intel into drm-next 2024-04-30 14:40:43 +10:00
intel_guc.h Merge tag 'drm-intel-gt-next-2024-04-26' of https://anongit.freedesktop.org/git/drm/drm-intel into drm-next 2024-04-30 14:40:43 +10:00
intel_guc_ads.c Merge tag 'drm-intel-gt-next-2024-04-26' of https://anongit.freedesktop.org/git/drm/drm-intel into drm-next 2024-04-30 14:40:43 +10:00
intel_guc_ads.h drm/i915/guc: Convert engine record to iosys_map 2022-02-25 15:23:23 -08:00
intel_guc_capture.c drm/i915/guc: Correct capture of EIR register on hang 2024-03-04 15:35:22 -08:00
intel_guc_capture.h drm/i915/guc: Fix error capture for virtual engines 2023-05-03 11:42:14 -07:00
intel_guc_ct.c drm/i915/guc: Create the guc_to_i915() wrapper 2023-12-08 12:31:01 +01:00
intel_guc_ct.h drm/i915/guc: Add CT size delay helper 2023-10-18 06:01:09 +02:00
intel_guc_debugfs.c drm/i915/guc: Delay disabling guc_id scheduling for better hysteresis 2022-10-26 17:29:43 -07:00
intel_guc_debugfs.h drm/i915/uc: Move uC debugfs to its own folder under GT 2020-03-26 21:23:03 +00:00
intel_guc_fw.c Merge tag 'drm-intel-gt-next-2024-04-26' of https://anongit.freedesktop.org/git/drm/drm-intel into drm-next 2024-04-30 14:40:43 +10:00
intel_guc_fw.h drm/i915/huc: make "support huc" reflect HW capabilities 2020-03-26 21:22:01 +00:00
intel_guc_fwif.h drm/i915/guc: Add support for w/a KLVs 2024-03-07 15:26:45 -08:00
intel_guc_hwconfig.c drm/i915/guc: Use the new gt_to_guc() wrapper 2024-03-01 13:19:43 +01:00
intel_guc_log.c drm/i915/guc: Create the guc_to_i915() wrapper 2023-12-08 12:31:01 +01:00
intel_guc_log.h drm/i915/guc: Make GuC log sizes runtime configurable 2022-08-17 10:07:04 -07:00
intel_guc_log_debugfs.c drm/i915/guc: Speed up GuC log dumps 2021-12-20 15:33:16 -08:00
intel_guc_log_debugfs.h drm/i915/uc: Move uC debugfs to its own folder under GT 2020-03-26 21:23:03 +00:00
intel_guc_print.h drm/i915/guc: More debug print updates - GuC logging 2023-02-08 23:51:05 -08:00
intel_guc_rc.c drm/i915/guc: Create the guc_to_i915() wrapper 2023-12-08 12:31:01 +01:00
intel_guc_rc.h drm/i915/guc/rc: Setup and enable GuCRC feature 2021-08-03 16:05:44 -07:00
intel_guc_reg.h drm/i915/guc: Improve GuC load error reporting 2023-03-23 15:49:49 -07:00
intel_guc_slpc.c drm/i915/guc: Use context hints for GT frequency 2024-03-07 10:25:06 -08:00
intel_guc_slpc.h drm/i915/guc: Use context hints for GT frequency 2024-03-07 10:25:06 -08:00
intel_guc_slpc_types.h drm/i915/guc/slpc: Provide sysfs for efficient freq 2023-04-28 09:59:51 -07:00
intel_guc_submission.c Merge tag 'drm-intel-gt-next-2024-04-26' of https://anongit.freedesktop.org/git/drm/drm-intel into drm-next 2024-04-30 14:40:43 +10:00
intel_guc_submission.h drm/i915/guc: Flush context destruction worker at suspend 2024-01-09 09:33:07 -08:00
intel_huc.c drm/i915/guc: Use the new gt_to_guc() wrapper 2024-03-01 13:19:43 +01:00
intel_huc.h drm/i915/mtl/huc: auth HuC via GSC 2023-06-05 09:53:51 -07:00
intel_huc_debugfs.c drm/i915: rename debugfs_gt files 2021-09-18 23:33:19 -07:00
intel_huc_debugfs.h drm/i915/uc: Move uC debugfs to its own folder under GT 2020-03-26 21:23:03 +00:00
intel_huc_fw.c drm/i915: Make i915_coherent_map_type GT-centric 2023-08-10 14:14:11 +02:00
intel_huc_fw.h drm/i915/mtl/huc: auth HuC via GSC 2023-06-05 09:53:51 -07:00
intel_huc_print.h drm/i915/huc: Parse the GSC-enabled HuC binary 2023-06-05 09:52:44 -07:00
intel_uc.c Linux 6.9-rc5 2024-04-22 14:35:52 +10:00
intel_uc.h drm/i915/uc: perma-pin firmwares 2023-06-05 09:52:42 -07:00
intel_uc_debugfs.c drm/i915/mtl/gsc: Add a gsc_info debugfs 2023-06-13 15:02:44 -07:00
intel_uc_debugfs.h drm/i915/uc: Move uC debugfs to its own folder under GT 2020-03-26 21:23:03 +00:00
intel_uc_fw.c drm/i915/guc: Use the new gt_to_guc() wrapper 2024-03-01 13:19:43 +01:00
intel_uc_fw.h drm/i915/mtl/gsc: query the GSC FW for its compatibility version 2023-06-13 15:02:42 -07:00
intel_uc_fw_abi.h drm/i915/huc: Parse the GSC-enabled HuC binary 2023-06-05 09:52:44 -07:00
selftest_guc.c drm/i915/guc: Use the new gt_to_guc() wrapper 2024-03-01 13:19:43 +01:00
selftest_guc_hangcheck.c drm/i915/guc: Fix for potential false positives in GuC hang selftest 2023-11-30 13:50:49 -08:00
selftest_guc_multi_lrc.c drm/i915/guc: More debug print updates - GuC selftests 2023-02-08 23:34:47 -08:00