]> git.hungrycats.org Git - linux/commit
drm/xe: Move engines' non-LRC programming RTP table off the stack
authorMatt Roper <matthew.d.roper@intel.com>
Wed, 17 Jun 2026 19:24:48 +0000 (12:24 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 17 Jun 2026 20:59:05 +0000 (13:59 -0700)
commit4ff7902a64c1831dfc70791d2f88125e003d21c2
tree6afe596f40095a3a234464d2e672029c92fdc787
parent431a233c1710c89c1ff4beab4aa2131065943108
drm/xe: Move engines' non-LRC programming RTP table off the stack

The 'engine_sr' RTP table was allocated on the stack because it wasn't
truly constant and needed to calculate the proper value for
RING_CMD_CCTL at runtime based on other stack variables.  Using the
FIELD_SET_FUNC action allows us to make the table itself truly constant
and move it off the stack; the RING_CMD_CCTL value is now calculated
during RTP table processing.

v2:
 - Made table static

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