]> git.hungrycats.org Git - linux/commit
drm/xe/rtp: Ensure locking/ref counting for OA whitelists
authorAshutosh Dixit <ashutosh.dixit@intel.com>
Mon, 15 Jun 2026 22:42:27 +0000 (15:42 -0700)
committerAshutosh Dixit <ashutosh.dixit@intel.com>
Mon, 22 Jun 2026 19:28:34 +0000 (12:28 -0700)
commit645f1a2589bd4782e25490e5ecc05b7043c36cbf
treeb14a65356ce42a30a443b80a4e2e9055f4b098f9
parentf8e6874f46f19a6a2a0f24a81689f90641bb402a
drm/xe/rtp: Ensure locking/ref counting for OA whitelists

Since multiple OA streams might be open in parallel on a gt, ensure that
proper locking is in place. Also ensure that OA registers are whitelisted
when the first OA stream is open and de-whitelisted after the last OA
stream is closed.

Fixes: 828a8eaf37c3 ("drm/xe/oa: Add MMIO trigger support")
Cc: stable@vger.kernel.org # v6.12+
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Link: https://patch.msgid.link/20260615224227.34880-10-ashutosh.dixit@intel.com
drivers/gpu/drm/xe/xe_oa_types.h
drivers/gpu/drm/xe/xe_reg_whitelist.c