There are two parts that go together:
- X86_MATCH_VFM() to declare a matching pattern
- x86_match_cpu() to check if the current CPU matches one of the patterns in an array.
The i915 DRM driver started to use this in Linux 6.14.
This is part of the update of DRM drivers to Linux 6.14.
Sponsored by: The FreeBSD Foundation