]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/rtp: Allow to OR rules
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 18 Jun 2024 05:00:42 +0000 (22:00 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 18 Jun 2024 19:03:28 +0000 (12:03 -0700)
commitdc72c52a42e0255441bed7444ab16f2b6c98b681
treefe35aaa57379e1ace2a5c0ece4a4698d49409880
parent512660cd1f1ab60d4ab8a0ae25b507d10be40fb3
drm/xe/rtp: Allow to OR rules

Some workarounds started to depend on different set of conditions where
the action should be applied if any of them match. See e.g.
commit 24d0d98af1c3 ("drm/xe/xe2lpm: Fixup Wa_14020756599"). Add
XE_RTP_MATCH_OR that allows to implement a logical OR for the rules.
Normal precedence applies:

r1, r2, OR, r3

means

(r1 AND r2) OR r3

The check is shortcut as soon as a set of conditions match.

v2: Do not match on empty number of rules-other-than-OR evaluated

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240618050044.324454-4-lucas.demarchi@intel.com
drivers/gpu/drm/xe/tests/xe_rtp_test.c
drivers/gpu/drm/xe/xe_rtp.c
drivers/gpu/drm/xe/xe_rtp.h
drivers/gpu/drm/xe/xe_rtp_types.h