]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/oa: Preserve oa_ctrl unused bits
authorAshutosh Dixit <ashutosh.dixit@intel.com>
Fri, 17 Jan 2025 03:21:55 +0000 (19:21 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 3 Feb 2025 17:56:34 +0000 (12:56 -0500)
commit588c20079e17dae9e1f49ba42981a05de1c9136e
tree4a4e21d725c865f27f6be7f5203bdc47ba43e323
parent2014c95afecee3e76ca4a56956a936e23283f05b
drm/xe/oa: Preserve oa_ctrl unused bits

UMD's have interest in setting unused bits of the oa_ctrl register "out of
band" for certain experiments. To facilitate this, don't clobber previous
oa_ctrl unused bits, i.e. rmw the values rather than simply write them.

Fixes: e936f885f1e9 ("drm/xe/oa/uapi: Expose OA stream fd")
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250117032155.3048063-1-ashutosh.dixit@intel.com
(cherry picked from commit cfa9d40db8c30d894171010fe765d96e9bc6a47e)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/regs/xe_oa_regs.h
drivers/gpu/drm/xe/xe_oa.c