1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/i915/gt/uc
Arnd Bergmann d4f36db623 drm/i915/guc: avoid FIELD_PREP warning
With gcc-7 and earlier, there are lots of warnings like

In file included from <command-line>:0:0:
In function '__guc_context_policy_add_priority.isra.66',
    inlined from '__guc_context_set_prio.isra.67' at drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c:3292:3,
    inlined from 'guc_context_set_prio' at drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c:3320:2:
include/linux/compiler_types.h:399:38: error: call to '__compiletime_assert_631' declared with attribute error: FIELD_PREP: mask is not constant
  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
                                      ^
...
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c:2422:3: note: in expansion of macro 'FIELD_PREP'
   FIELD_PREP(GUC_KLV_0_KEY, GUC_CONTEXT_POLICIES_KLV_ID_##id) | \
   ^~~~~~~~~~

Make sure that GUC_KLV_0_KEY is an unsigned value to avoid the warning.

Fixes: 77b6f79df6 ("drm/i915/guc: Update to GuC version 69.0.3")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Julia Filipchuk <julia.filipchuk@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240430164809.482131-1-julia.filipchuk@intel.com
(cherry picked from commit 364e039827)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2024-05-29 11:35:26 +03:00
..
abi drm/i915/guc: avoid FIELD_PREP warning 2024-05-29 11:35:26 +03: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
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
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
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
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
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