[Intel-xe] [PATCH 5/7] drm/xe/rtp: Let rule_matches() receive xe_device
Lucas De Marchi
lucas.demarchi at intel.com
Thu May 4 17:08:14 UTC 2023
On Thu, May 04, 2023 at 12:17:46PM -0400, Rodrigo Vivi wrote:
>On Thu, May 04, 2023 at 12:32:48AM -0700, Lucas De Marchi wrote:
>> Since some rules use xe_gt, rule_matches() uses that for matching the
>> rules, even if most of them are actually checking flags in the
>> device/platform layer. In order to allow the device-centric rules to be
>> checked for out-of-band WAs, let's pass the pointer to xe_device, too.
>
>why? if we can infer that from gt...
because in those cases gt can be NULL. Same reason why we pass both hwe
and gt. We could infer hwe from gt, but hwe is not always valid.
Lucas De Marchi
More information about the Intel-xe
mailing list