]> git.hungrycats.org Git - linux/commit
drm/xe/rtp: Add FIELD_SET_FUNC RTP action
authorMatt Roper <matthew.d.roper@intel.com>
Wed, 17 Jun 2026 19:24:46 +0000 (12:24 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 17 Jun 2026 20:59:05 +0000 (13:59 -0700)
commit7a8884330059d345537f5bbcb74d806144dafe2b
tree3bd492b161b3a166f26a15c5cfcfa91d80b67cd2
parent4d39b3e7d5937e1672316da79de3b683b5d7257a
drm/xe/rtp: Add FIELD_SET_FUNC RTP action

Most of our RTP programming involves programming constant values into
register fields.  However there are a few cases (e.g., RING_CMD_CCTL
programming) that rely on dynamic per-GT or per-engine checks to decide
what value will be programmed.  Add a FIELD_SET_FUNC RTP action which
will call the provided function pointer once at RTP processing time to
determine the appropriate value.

v2:
 - Tweak kerneldoc to avoid duplicating explanation from FIELD_SET.
   (Gustavo)

Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://patch.msgid.link/20260617-rtp_with_dynamic_vals-v2-2-3f4cb34c2ea1@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_rtp.c
drivers/gpu/drm/xe/xe_rtp.h
drivers/gpu/drm/xe/xe_rtp_types.h