]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe/rtp: Add "always true" match function
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 24 Apr 2026 20:48:12 +0000 (13:48 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Mon, 27 Apr 2026 20:20:34 +0000 (13:20 -0700)
commit176f302e313a7e9038f878719dd0865045b5b2b6
treeae0c0b6a07fd6b806750554d7c0282e53fa0c463
parent78b8d6d05ad0a58da0375bbfd744e58a61a69ac0
drm/xe/rtp: Add "always true" match function

All RTP table entries are required to have at least one rule.  In cases
where an entry should apply unconditionally across all platforms we've
been using a graphics version range of 12.00 - forever since this covers
all platforms supported by the driver.  However if the primary GT is
disabled via configfs (not actually possible today, but probably
possible in the future) or if we have a future platform that lacks a
primary GT and only supports media/display, this rule would cause
important programming to fail to apply on the media GT.

Add a simple match function that just always returns true
unconditionally.  This solves the worries above while also being more
immediately human-readable.

Reviewed-by: Shuicheng Lin <shuicheng.lin@intel.com>
Link: https://patch.msgid.link/20260424-engine-setup-v2-2-59cc620a25f1@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_hw_engine.c
drivers/gpu/drm/xe/xe_rtp.c
drivers/gpu/drm/xe/xe_rtp.h