1
0
Fork 0
alistair23-linux/drivers/gpu/drm/i915/oa
Umesh Nerlige Ramappa a37f08a882 drm/i915/perf: Refactor oa object to better manage resources
The oa object manages the oa buffer and must be allocated when the user
intends to read performance counter snapshots. This can be achieved by
making the oa object part of the stream object which is allocated when a
stream is opened by the user.

Attributes in the oa object that are gen-specific are moved to the perf
object so that they can be initialized on driver load.

The split provides a better separation of the objects used in perf
implementation of i915 driver so that resources are allocated and
initialized only when needed.

v2: Fix checkpatch warnings
v3: Addressed Lionel's review comment
v4: Rebase
v5: Fix rebase/merge issue with ratelimit_state_init

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190806233002.984-1-umesh.nerlige.ramappa@intel.com
2019-08-07 20:34:39 +01:00
..
Makefile drm/i915/oa: update the generated files 2019-08-02 15:09:52 +03:00
i915_oa_bdw.c drm/i915/perf: Refactor oa object to better manage resources 2019-08-07 20:34:39 +01:00
i915_oa_bdw.h drm/i915/oa: update the generated files 2019-08-02 15:09:52 +03:00
i915_oa_bxt.c drm/i915/perf: Refactor oa object to better manage resources 2019-08-07 20:34:39 +01:00
i915_oa_bxt.h drm/i915/oa: update the generated files 2019-08-02 15:09:52 +03:00
i915_oa_cflgt2.c drm/i915/perf: Refactor oa object to better manage resources 2019-08-07 20:34:39 +01:00
i915_oa_cflgt2.h drm/i915/oa: update the generated files 2019-08-02 15:09:52 +03:00
i915_oa_cflgt3.c drm/i915/perf: Refactor oa object to better manage resources 2019-08-07 20:34:39 +01:00
i915_oa_cflgt3.h drm/i915/oa: update the generated files 2019-08-02 15:09:52 +03:00
i915_oa_chv.c drm/i915/perf: Refactor oa object to better manage resources 2019-08-07 20:34:39 +01:00
i915_oa_chv.h drm/i915/oa: update the generated files 2019-08-02 15:09:52 +03:00
i915_oa_cnl.c drm/i915/perf: Refactor oa object to better manage resources 2019-08-07 20:34:39 +01:00
i915_oa_cnl.h drm/i915/oa: update the generated files 2019-08-02 15:09:52 +03:00
i915_oa_glk.c drm/i915/perf: Refactor oa object to better manage resources 2019-08-07 20:34:39 +01:00
i915_oa_glk.h drm/i915/oa: update the generated files 2019-08-02 15:09:52 +03:00
i915_oa_hsw.c drm/i915/perf: Refactor oa object to better manage resources 2019-08-07 20:34:39 +01:00
i915_oa_hsw.h drm/i915/oa: update the generated files 2019-08-02 15:09:52 +03:00
i915_oa_icl.c drm/i915/perf: Refactor oa object to better manage resources 2019-08-07 20:34:39 +01:00
i915_oa_icl.h drm/i915/oa: update the generated files 2019-08-02 15:09:52 +03:00
i915_oa_kblgt2.c drm/i915/perf: Refactor oa object to better manage resources 2019-08-07 20:34:39 +01:00
i915_oa_kblgt2.h drm/i915/oa: update the generated files 2019-08-02 15:09:52 +03:00
i915_oa_kblgt3.c drm/i915/perf: Refactor oa object to better manage resources 2019-08-07 20:34:39 +01:00
i915_oa_kblgt3.h drm/i915/oa: update the generated files 2019-08-02 15:09:52 +03:00
i915_oa_sklgt2.c drm/i915/perf: Refactor oa object to better manage resources 2019-08-07 20:34:39 +01:00
i915_oa_sklgt2.h drm/i915/oa: update the generated files 2019-08-02 15:09:52 +03:00
i915_oa_sklgt3.c drm/i915/perf: Refactor oa object to better manage resources 2019-08-07 20:34:39 +01:00
i915_oa_sklgt3.h drm/i915/oa: update the generated files 2019-08-02 15:09:52 +03:00
i915_oa_sklgt4.c drm/i915/perf: Refactor oa object to better manage resources 2019-08-07 20:34:39 +01:00
i915_oa_sklgt4.h drm/i915/oa: update the generated files 2019-08-02 15:09:52 +03:00