Skip to content

drm/i915/gt: Fix recent kCFI violations

Nathan Chancellor dri-devel intel-gfx linux-patches llvm 1 version In review

Get series with b4
b4 am 20230530-i915-gt-cache_level-wincompatible-function-pointer-types-strict-v1-0-54501d598229@kernel.org change-id 20230530-i915-gt-cache_level-wincompatible-function-pointer-types-strict-32a5c65249a5

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/i915/gt: Fix second parameter type of pre-gen8 pte_encode callbacksdrivers/gpu/drm/i915/gt/intel_ggtt.c+13 -132 replies
2/2drm/i915/gt: Fix parameter in gmch_ggtt_insert_{entries,page}()drivers/gpu/drm/i915/gt/intel_ggtt_gmch.c+4 -42 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAndi ShytiFei Yang
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] drm/i915/gt: Fix recent kCFI violations

Hi all,

This series fixes a few clang kernel Control Flow Integrity (kCFI) violations that appear after commit 9275277d5324 ("drm/i915: use pat_index instead of cache_level"). They were found between run time testing on real hardware and compile time testing with -Wincompatible-function-pointer-types-strict (which is not yet enabled for the kernel but I build with it locally to catch new instances).

If there are any problems or questions, please let me know.

---
Nathan Chancellor (2):
drm/i915/gt: Fix second parameter type of pre-gen8 pte_encode callbacks drm/i915/gt: Fix parameter in gmch_ggtt_insert_{entries,page}()

 drivers/gpu/drm/i915/gt/intel_ggtt.c      | 26 +++++++++++++-------------
 drivers/gpu/drm/i915/gt/intel_ggtt_gmch.c |  8 ++++----
 2 files changed, 17 insertions(+), 17 deletions(-)

---
base-commit: 08264f85c5c05ecc38d409c84d48cfb00ccd3bc4
change-id: 20230530-i915-gt-cache_level-wincompatible-function-pointer-types-strict-32a5c65249a5

Best regards,

Signature · 1 line
Nathan Chancellor <[email protected]>