mirror of
https://github.com/torvalds/linux.git
synced 2026-05-01 04:52:32 -04:00
drm/xe/rtp: Pass xe_device parameter to FUNC matches
FUNC matches in RTP only pass the GT and hwe, preventing them from being used effectively in device workarounds. Add an additional xe_device parameter so that we can use them in device workarounds where a GT may not be available. Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com> Link: https://lore.kernel.org/r/20251013200944.2499947-41-matthew.d.roper@intel.com Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
This commit is contained in:
@@ -48,12 +48,14 @@ struct rtp_test_case {
|
||||
const struct xe_rtp_entry *entries;
|
||||
};
|
||||
|
||||
static bool match_yes(const struct xe_gt *gt, const struct xe_hw_engine *hwe)
|
||||
static bool match_yes(const struct xe_device *xe, const struct xe_gt *gt,
|
||||
const struct xe_hw_engine *hwe)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool match_no(const struct xe_gt *gt, const struct xe_hw_engine *hwe)
|
||||
static bool match_no(const struct xe_device *xe, const struct xe_gt *gt,
|
||||
const struct xe_hw_engine *hwe)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user