]> Gentwo Git Trees - linux/.git/commit
drm/xe/oa: Store forcewake reference in stream structure
authorMatt Roper <matthew.d.roper@intel.com>
Mon, 10 Nov 2025 23:20:21 +0000 (15:20 -0800)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 13 Nov 2025 22:05:51 +0000 (14:05 -0800)
commit6bcb180f6f4585554cefbe8c412aa8879b15f07a
tree43136ee52268fe314970002983992a8f35a3a61b
parent9de2606f4a795ac7d62c1d0877e65caf32fb67cd
drm/xe/oa: Store forcewake reference in stream structure

Calls to xe_force_wake_put() should generally pass the exact reference
returned by xe_force_wake_get().  Since OA grabs and releases forcewake
in different functions, xe_oa_stream_destroy() is currently calling put
with a hardcoded ALL mask.  Although this works for now, it's somewhat
fragile in case OA moves to more precise power domain management in the
future.

Stash the original reference obtained during stream initialization
inside the stream structure so that we can use it directly when the
stream is destroyed.

Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Link: https://patch.msgid.link/20251110232017.1475869-35-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_oa.c
drivers/gpu/drm/xe/xe_oa_types.h