Skip to content

Commit cdf02fe

Browse files
committed
drm/xe/oa/uapi: Add/remove OA config perf ops
Introduce add/remove config perf ops for OA. OA configurations consist of a set of event/counter select register address/value pairs. The add_config perf op validates and stores such configurations and also exposes them in the metrics sysfs. These configurations will be programmed to OA unit HW when an OA stream using a configuration is opened. The OA stream can also switch to other stored configurations. v2: Start config id's from 1 and other minor review comments (Umesh) v3: Add 32 bit build v4: Add kernel doc for non-static functions (Michal) Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Acked-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240618014609.3233427-6-ashutosh.dixit@intel.com
1 parent a9f905a commit cdf02fe

File tree

6 files changed

+495
-0
lines changed

6 files changed

+495
-0
lines changed

drivers/gpu/drm/xe/xe_device.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,8 @@ int xe_device_probe(struct xe_device *xe)
670670

671671
xe_display_register(xe);
672672

673+
xe_oa_register(xe);
674+
673675
xe_debugfs_register(xe);
674676

675677
xe_hwmon_register(xe);
@@ -710,6 +712,8 @@ void xe_device_remove(struct xe_device *xe)
710712
struct xe_gt *gt;
711713
u8 id;
712714

715+
xe_oa_unregister(xe);
716+
713717
xe_device_remove_display(xe);
714718

715719
xe_display_fini(xe);

0 commit comments

Comments
 (0)