diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2023-05-26 19:43:47 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-20 02:34:02 +0300 |
commit | fe19328b900cc2c92054259e16d99023111c57f3 (patch) | |
tree | 62a464b7cc493e0c11e64744d2a0b8eccd4334ae /drivers/gpu/drm/xe/xe_rtp_types.h | |
parent | ed73d03c0803bdb70d7e56c7d8a2518fb9376047 (diff) | |
download | linux-fe19328b900cc2c92054259e16d99023111c57f3.tar.xz |
drm/xe/rtp: Add support for entries with no action
Add a separate struct to hold entries in a table that has no action
associated with each of them. The goal is that the caller in future can
set a per-context callback, or just use the active entry marking
feature.
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20230526164358.86393-11-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_rtp_types.h')
-rw-r--r-- | drivers/gpu/drm/xe/xe_rtp_types.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_rtp_types.h b/drivers/gpu/drm/xe/xe_rtp_types.h index af49cbf98407..d170532a98a5 100644 --- a/drivers/gpu/drm/xe/xe_rtp_types.h +++ b/drivers/gpu/drm/xe/xe_rtp_types.h @@ -96,6 +96,13 @@ struct xe_rtp_entry_sr { u8 flags; }; +/** struct xe_rtp_entry - Entry in an rtp table, with no action associated */ +struct xe_rtp_entry { + const char *name; + const struct xe_rtp_rule *rules; + u8 n_rules; +}; + enum xe_rtp_process_type { XE_RTP_PROCESS_TYPE_GT, XE_RTP_PROCESS_TYPE_ENGINE, |