Hi all, Here is a v4 of this series. It is mostly prompted by one of Imre's series [1] that attracted my attention at how we do locking in the perf part of the driver. I believe up to now it was fine due to the fact that we had all configs always present in kernel space. With this series, configs can now go away. So locking needs some reworking, in particular dev_priv->perf.exclusive_stream needs to be locked. This series also introduce a new lock for adding/modifying/removing configs. Cheers, [1] : https://patchwork.freedesktop.org/series/27309/ Lionel Landwerlin (3): drm/i915/perf: fix flex eu registers programming drm/i915/perf: prune OA configs drm/i915: Implement I915_PERF_ADD/REMOVE_CONFIG interface drivers/gpu/drm/i915/i915_drv.c | 2 + drivers/gpu/drm/i915/i915_drv.h | 92 +- drivers/gpu/drm/i915/i915_oa_bdw.c | 5360 +-------------------------------- drivers/gpu/drm/i915/i915_oa_bdw.h | 8 +- drivers/gpu/drm/i915/i915_oa_bxt.c | 2623 +--------------- drivers/gpu/drm/i915/i915_oa_bxt.h | 8 +- drivers/gpu/drm/i915/i915_oa_chv.c | 2806 +---------------- drivers/gpu/drm/i915/i915_oa_chv.h | 8 +- drivers/gpu/drm/i915/i915_oa_glk.c | 2535 +--------------- drivers/gpu/drm/i915/i915_oa_glk.h | 8 +- drivers/gpu/drm/i915/i915_oa_hsw.c | 764 +---- drivers/gpu/drm/i915/i915_oa_hsw.h | 8 +- drivers/gpu/drm/i915/i915_oa_kblgt2.c | 2971 +----------------- drivers/gpu/drm/i915/i915_oa_kblgt2.h | 8 +- drivers/gpu/drm/i915/i915_oa_kblgt3.c | 3020 +------------------ drivers/gpu/drm/i915/i915_oa_kblgt3.h | 8 +- drivers/gpu/drm/i915/i915_oa_sklgt2.c | 3458 +-------------------- drivers/gpu/drm/i915/i915_oa_sklgt2.h | 8 +- drivers/gpu/drm/i915/i915_oa_sklgt3.c | 3019 +------------------ drivers/gpu/drm/i915/i915_oa_sklgt3.h | 8 +- drivers/gpu/drm/i915/i915_oa_sklgt4.c | 3073 +------------------ drivers/gpu/drm/i915/i915_oa_sklgt4.h | 8 +- drivers/gpu/drm/i915/i915_perf.c | 706 +++-- drivers/gpu/drm/i915/i915_reg.h | 2 + include/uapi/drm/i915_drm.h | 24 + 25 files changed, 973 insertions(+), 29562 deletions(-) -- 2.13.2 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx